Patch from Kenneth Chen to fix brl disassembly.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7d6a26a7
AC
12002-11-24 Andrew Cagney <ac131313@redhat.com>
2
3 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
4 default to get_frame_base.
5 * gdbarch.h, gdbarch.c: Regenerate.
6 * arch-utils.c (default_frame_address): Delete function.
7 * arch-utils.h (default_frame_address): Delete declaration
8
6abe1021
PM
92002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
10
11 * varobj.c (find_frame_addr_in_frame_chain):
12 Use get_frame_base instead of FRAME_FP,
13 obvious fix.
14
c193f6ac
AC
152002-11-19 Andrew Cagney <ac131313@redhat.com>
16
17 * frame.h (FRAME_FP): Delete macro.
18 (get_frame_base): New function declaration.
19 * frame.c (get_frame_base): New function.
20 (get_frame_id): Use ->frame.
21 (frame_find_by_id): Rewrite to use get_frame_id.
22 * blockframe.c: Use get_frame_base instead of FRAME_FP.
23 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
24 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
25 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
26 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
27 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
28 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
29
e5d2af14
AC
302002-11-24 Andrew Cagney <ac131313@redhat.com>
31
32 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
33
931d12c6
AC
342002-11-24 Andrew Cagney <ac131313@redhat.com>
35
36 * frame.c (set_unwind_by_pc): Revert change below, use
37 PC_IN_CALL_DUMMY.
38 (get_prev_frame): Ditto.
39
5e0f933e
AC
402002-11-24 Andrew Cagney <ac131313@redhat.com>
41
42 * dummy-frame.c (pc_in_dummy_frame): New function.
43 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
44 (find_dummy_frame): Update comment.
45 (generic_pop_current_frame): Use get_frame_type.
46 * dummy-frame.h (pc_in_dummy_frame): Declare.
47 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
48 (create_new_frame): Use pc_in_dummy_frame.
49 (get_prev_frame): Use pc_in_dummy_frame.
50 (frame_saved_regs_register_unwind): Use get_prev_frame.
51 (deprecated_generic_get_saved_register): Use get_prev_frame.
52
7d8547c9
AC
532002-11-23 Andrew Cagney <ac131313@redhat.com>
54
55 * blockframe.c (find_frame_addr_in_frame_chain): Move function
56 from here ...
57 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
58 (varobj_create): Note that frame ID should be used.
59 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
60
0225421b
AC
612002-11-23 Andrew Cagney <ac131313@redhat.com>
62
63 * breakpoint.c: Include "gdb_assert.h".
64 (deprecated_frame_in_dummy): Assert that generic dummy frames are
65 not being used.
66 * Makefile.in (breakpoint.o): Update dependencies.
67 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
68 deprecated_frame_in_dummy.
69 * stack.c (print_frame_info_base): Ditto.
70 (frame_info): Ditto.
71 (print_frame_info_base): Ditto. Delete dead code.
72
32eeb91a
AS
732002-11-23 Andreas Schwab <schwab@suse.de>
74
75 * Makefile.in (m68k_tdep_h): Define.
76 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
77 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
78 * m68k-tdep.c: Move register number enum ...
79 * m68k-tdep.h: ... to this new file and rename the constants from
80 E_* to M68K_*. All uses changed.
81 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
82 * abug-rom.c: Include "m68k-tdep.h". Use
83 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
84 * cpu32bug-rom.c: Likewise.
85 * dbug-rom.c: Likewise.
86 * m68k-tdep.c: Likewise.
87 * m68klinux-nat.c: Likewise.
88 * remote-est.c: Likewise.
89 * rom68k-rom.c: Likewise.
90 * config/m68k/tm-linux.h: Likewise.
91
9648bac8
AC
922002-11-23 Andrew Cagney <ac131313@redhat.com>
93
94 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
95 dummy frame initialization code.
96 * mips-tdep.c (mips_gdbarch_init): Ditto.
97
91a175b3
CF
982002-11-22 Christopher Faylor <cgf@redhat.com>
99
100 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
101 attach will hang.
102
f4ded5b1
AC
1032002-11-22 Andrew Cagney <ac131313@redhat.com>
104
105 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
106 to default_frame_address.
107 * gdbarch.h, gdbarch.c: Re-generate.
108
109 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
110 or frame_locals_address to default_frame_address.
111 * m68k-tdep.c (m68k_gdbarch_init): Update.
112 * i386-tdep.c (i386_gdbarch_init): Update.
113 * frv-tdep.c (frv_gdbarch_init): Update.
114 * sh-tdep.c (sh_gdbarch_init): Update.
115 * v850-tdep.c (v850_gdbarch_init): Update.
116 * sparc-tdep.c (sparc_gdbarch_init): Update.
117 * mips-tdep.c (mips_gdbarch_init): Update.
118 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
119 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
120 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
121
122 * cris-tdep.c (cris_frame_args_address): Delete function.
123 (cris_frame_locals_address): Delete function.
124 (cris_gdbarch_init): Do not set frame_args_address or
125 frame_locals_address.
126
f7c1e0f3
MS
1272002-11-22 Michael Snyder <msnyder@redhat.com>
128
129 * thread-db.c (thread_db_load): Tell the user what's going on
130 if dlopen fails on libthread_db.
131
03dac896
AS
1322002-11-23 Andreas Schwab <schwab@suse.de>
133
134 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
135 invariant return values.
136
7a67d0fe
AS
1372002-11-22 Andreas Schwab <schwab@suse.de>
138
139 * valops.c (value_slice): Move declaration of `offset' to avoid
140 warning.
141
5633f842
CF
1422002-11-22 Christopher Faylor <cgf@redhat.com>
143
144 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
145 (struct so_stuff): Add end_addr field.
146 (register_loaded_dll): Calculate and store end address of loaded dll.
147 (solib_address): New function.
148 (child_solib_loaded_library_pathname): Pass carefully constructed
149 section info to safe_symbol_file_add rather than ignoring it.
150 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
151 DLL is loaded.
152 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
153 (child_create_inferior): Fix a compiler warning.
154 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
155 (solib_address): Declare new function.
156
d85fe7f7
AS
1572002-11-22 Andreas Schwab <schwab@suse.de>
158
159 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
160 and FPS registers.
161
8308e54c
DJ
1622002-11-21 Daniel Jacobowitz <drow@mvista.com>
163
164 * maint.c (_initialize_maint_cmds): Fix typo. From
165 Francesco Potorti` <pot@gnu.org>.
166
8997bd5e
AC
1672002-11-21 Andrew Cagney <cagney@redhat.com>
168
169 * mips-tdep.c (mips_dump_tdep): Delete references to
170 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
171 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
172 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
173 * printcmd.c (build_address_symbolic): Delete calls to
174 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
175 (address_info): Ditto.
176 Fix PR gdb/773.
177
4e87b832
KD
1782002-11-19 Klee Dienes <kdienes@apple.com>
179 Adam Fedor <fedor@gnu.org>
180
181 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
182 the ability to explicitly specify the quote characters and word
183 break characters; if NULL is specified for either, use the old
184 behavior of using the characters used by the completer.
185 (skip_chars): New function. Convenience wrapper around
186 skip_quoted_chars to provide the original skip_chars behavior.
187 * completer.h (skip_quoted_chars): Add prototype.
188
9ba8d803
AC
1892002-11-19 Andrew Cagney <ac131313@redhat.com>
190
191 Problems reported by Paul Eggert.
192 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
193
0a595803
AS
1942002-11-19 Andreas Schwab <schwab@suse.de>
195
196 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
197 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
198 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
199 (m68k_linux_frame_saved_pc): Move to ...
200 * m68klinux-tdep.c: ... here. New file.
201 * Makefile.in (m68klinux-tdep.o): Add dependencies.
202 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
203
e8afa4d7
AF
2042002-11-19 Adam Fedor <fedor@gnu.org>
205
206 * objc-exp.y: Revert to old skip_quoted usage.
207
a76c9d72
AF
2082002-11-19 Adam Fedor <fedor@gnu.org>
209
210 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
211 (objc_lang_h): Define.
212 (YYFILES): Add objc-exp.tab.c.
213 (local-maintainer-clean): Remove objc-exp.tab.c.
214 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
215
fd0e9d45
PM
2162002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
217
218 * p-exp.y (typecast rule): Add automatic dereference of
219 pascal classes if needed.
220 (THIS): Set current_type.
221 Automatically dereference pascal classes.
222 (typebase rule): Add ^typebase recognition.
223
82eeeb94
AF
2242002-11-18 Adam Fedor <fedor@gnu.org>
225
226 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
227 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
228 (op_name): Handle OP_OBJC_SELF.
229 * Makefile.in (expprint.o): Add additional depends.
230
646df18d
AF
2312002-11-18 Adam Fedor <fedor@gnu.org>
232
233 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
234 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
235 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
236 * objc-exp.y: Likewise.
237
379b85df
AF
2382002-11-18 Adam Fedor <fedor@gnu.org>
239
240 * gdb/parser-defs.h: (struct objc_class_str): New structure
241 for parsing ObjC classes.
242
85cf597a
AC
2432002-11-18 Andrew Cagney <ac131313@redhat.com>
244
245 * stack.c (frame_relative_level): Copy function from here ...
246 * frame.c (frame_relative_level): ...to here.
247
5a203e44
AC
2482002-11-18 Andrew Cagney <ac131313@redhat.com>
249
250 * frame.h (enum frame_type): Define.
251 (get_frame_type): Declare.
252 (struct frame_info): Add field `type'. Delete field
253 signal_handler_caller.
254 (deprecated_set_frame_signal_handler_caller): Declare.
255 * frame.c (get_frame_type): New function.
256 (deprecated_set_frame_type): New function.
257 (create_new_frame): Set the frame's type.
258 (get_prev_frame): Similar.
259 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
260 * s390-tdep.c: Ditto.
261 * m68klinux-nat.c: Ditto.
262 * ns32k-tdep.c: Ditto.
263 * x86-64-linux-tdep.c: Ditto.
264 * vax-tdep.c: Ditto.
265 * rs6000-tdep.c: Ditto.
266 * ppc-linux-tdep.c: Ditto.
267 * i386-interix-tdep.c: Ditto.
268 * mips-tdep.c: Ditto.
269 * m68k-tdep.c: Ditto.
270 * hppa-tdep.c: Ditto.
271 * ia64-tdep.c: Ditto.
272 * cris-tdep.c: Ditto.
273 * arm-tdep.c: Ditto.
274 * alpha-tdep.c: Ditto.
275 * i386-tdep.c: Ditto.
276 * stack.c: Ditto.
277 * ada-lang.c: Ditto.
278 * blockframe.c: Update.
279 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
280 deprecated_set_frame_type instead of signal_handler_caller.
281 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
282 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
283 * breakpoint.h: Delete FIXME suggesting get_frame_type.
284
bf4ae8b2
KD
2852002-11-18 Klee Dienes <kdienes@apple.com>
286
287 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
288
a672ef13
KD
2892002-11-18 Klee Dienes <kdienes@apple.com>
290
291 * buildsym.c (pop_context): Add comment.
292
0c5e171a
KD
2932002-11-18 Klee Dienes <kdienes@apple.com>
294
295 * buildsym.h (pop_context): Convert to function, defined in
296 buildsym.c.
297 * buildsym.c: Include gdb_assert.h.
298 (pop_context): Implement as C function. Add check for stack
299 underflow.
300 * dbxread.c (process_one_symbol): Complain and stop processing
301 that symbol if we are already at the top of the context stack for
302 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
303 when processing N_RBRAC.
304
8a1f4c4c
DJ
3052002-11-16 Daniel Jacobowitz <drow@mvista.com>
306
307 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
308 define.
309 (struct target_waitstatus): Add opaque definition.
310 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
311 * exec.c (init_exec_ops): Likewise.
312 * fork-child.c (clone_and_follow_inferior): Remove.
313 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
314 * inferior.h (clone_and_follow_inferior): Remove prototype.
315 * infrun.c (follow_fork_mode_both): Remove.
316 (follow_fork_mode_kind_names): Remove commented out "both".
317 (follow_inferior_fork): Remove follow_fork_mode_both support.
318 * inftarg.c (child_clone_and_follow_inferior): Remove.
319 (child_post_follow_inferior_by_clone): Remove.
320 (init_child_ops): Don't set to_clone_and_follow_inferior
321 or to_post_follow_inferior_by_clone.
322 * target.c (default_clone_and_follow_inferior): Remove.
323 (cleanup_target): Don't set to_clone_and_follow_inferior
324 or to_post_follow_inferior_by_clone.
325 (find_default_clone_and_follow_inferior): Remove.
326 (init_dummy_target): Don't set to_clone_and_follow_inferior.
327 (debug_to_clone_and_follow_inferior): Remove.
328 (debug_to_post_follow_inferior_by_clone): Remove.
329 (setup_target_debug): Don't set to_clone_and_follow_inferior
330 or to_post_follow_inferior_by_clone.
331 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
332 and to_post_follow_inferior_by_clone.
333 (child_clone_and_follow_inferior): Remove prototype.
334 (child_post_follow_inferior_by_clone): Remove prototype.
335 (target_clone_and_follow_inferior): Remove macro.
336 (target_post_follow_inferior_by_clone): Remove macro.
337 (find_default_clone_and_follow_inferior): Remove prototype.
338
47932f85
DJ
3392002-11-16 Daniel Jacobowitz <drow@mvista.com>
340
341 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
342 inferior_has_vforked, and inferior_has_execd instead of
343 target_has_forked, target_has_vforked, and target_has_execd.
344 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
345 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
346 (CHILD_WAIT): Define.
347 (child_wait): Add prototype.
348 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
349 Add prototype.
350 (hpux_has_vforked): Likewise, from child_has_vforked.
351 (hpux_has_execd): Likewise, from child_has_execd.
352 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
353 (not_same_real_pid, child_wait): New, copied from inftarg.c.
354 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
355 and hpux_has_syscall_event instead of the target hooks.
356 * infrun.c (inferior_has_forked, inferior_has_vforked)
357 (inferior_has_execd): New functions.
358 * inftarg.c (not_same_real_pid): Remove.
359 (child_wait): Remove references to not_same_real_pid,
360 target_has_forked, target_has_vforked, target_has_execd,
361 and target_has_syscall_event.
362 (child_has_forked, child_has_vforked, child_has_execd)
363 (child_has_syscall_event): Remove.
364 (init_child_ops): Remove references to child_has_forked,
365 child_has_vforked, child_has_execd, and child_has_syscall_event.
366 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
367 (hpux_has_vforked): Likewise, from child_has_vforked.
368 (hpux_has_execd): Likewise, from child_has_execd.
369 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
370 * target.c (cleanup_target): Remove references to
371 to_has_forked, to_has_vforked, to_has_execd, and
372 to_has_syscall_event.
373 (update_current_target): Likewise.
374 (setup_target_debug): Likewise.
375 (debug_to_has_forked): Remove.
376 (debug_to_has_vforked): Remove.
377 (debug_to_has_execd): Remove.
378 (debug_to_has_syscall_event): Remove.
379 * target.h (struct target_ops): Remove to_has_forked.
380 to_has_vforked, to_has_execd, and to_has_syscall_event.
381 (child_has_forked, child_has_vforked, child_has_execd)
382 (child_has_syscall_event): Remove prototypes.
383 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
384 prototypes.
385 (target_has_forked, target_has_vforked, target_has_execd)
386 (target_has_syscall_event): Remove macros.
387
4088142a
DJ
3882002-11-16 Daniel Jacobowitz <drow@mvista.com>
389
390 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
391 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
392 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
393 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
394 * target.c (cleanup_target): Remove reference to
395 to_can_follow_vfork_prior_to_exec.
396 (update_current_target): Likewise.
397 (debug_to_can_follow_vfork_prior_to_exec): Remove.
398 (setup_target_debug): Remove reference to
399 to_can_follow_vfork_prior_to_exec.
400 * target.h (struct target_ops): Remove
401 to_can_follow_vfork_prior_to_exec.
402 (child_can_follow_vfork_prior_to_exec): Remove prototype.
403 (target_can_follow_vfork_prior_to_exec): Remove definition.
404 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
405 define.
406 * infrun.c (follow_vfork_when_exec): Remove.
407 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
408 (follow_exec): Likewise.
409 (handle_inferior_event): Likewise.
410 (keep_going): Likewise.
411
18cde8d5
AC
4122002-11-15 Andrew Cagney <cagney@redhat.com>
413
414 * frame.c (generic_unwind_get_saved_register): Make static.
415 * frame.h (generic_unwind_get_saved_register): Delete declaration.
416 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
417 defaults to generic_unwind_get_saved_register.
418 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
419 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
420 * frv-tdep.c (frv_gdbarch_init): Ditto.
421 * i386-tdep.c (i386_gdbarch_init): Ditto.
422 * s390-tdep.c (s390_gdbarch_init): Ditto.
423 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
424 * v850-tdep.c (v850_gdbarch_init): Ditto.
425 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
426 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
427 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
428
a6b063af
AC
4292002-11-15 Andrew Cagney <cagney@redhat.com>
430
431 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
432 i386-tdep.c.
433
f407986f
AC
4342002-11-15 Andrew Cagney <cagney@redhat.com>
435
436 * frame.h (sigtramp_saved_pc): Delete declaration.
437 * blockframe.c (sigtramp_saved_pc): Delete function.
438 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
439 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
440 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
441 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
442
f18c5a73
AC
4432002-11-15 Andrew Cagney <ac131313@redhat.com>
444
445 * frame.c (frame_pc_unwind): New function.
446 (frame_saved_regs_pc_unwind): New function.
447 (frame_register_unwind): Pass unwind_cache instead of
448 register_unwind_cache.
449 (set_unwind_by_pc): Add unwind_pc parameter, set.
450 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
451 (get_prev_frame): Ditto.
452 * frame.h (frame_pc_unwind_ftype): Declare.
453 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
454 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
455 (frame_pc_unwind): Declare.
456 * dummy-frame.c (dummy_frame_pc_unwind): New function.
457 (struct dummy_frame): Add comment mentioning that values are for
458 previous frame.
459 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
460 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
461 (generic_file_frame_chain_valid): Ditto.
462 * stack.c (frame_info): Ditto.
463
d9285969 4642002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
465
466 * linespec.c (locate_first_half): New function.
467 (decode_line_1): Move code into locate_first_half.
468
d741b867
AC
4692002-11-15 Andrew Cagney <ac131313@redhat.com>
470
471 * complaints.h: Add comment explaining how to eliminate a
472 deprecated_complain call.
24382c5c 473 * complaints.h: Fix spelling errors.
d741b867 474
82d03c99
DC
4752002-11-15 David Carlton <carlton@math.stanford.edu>
476
477 * printcmd.c: Remove #include "disasm.h".
478
c97eb5d9
AC
4792002-11-14 Andrew Cagney <ac131313@redhat.com>
480
481 * frame.h: Move the most relevant interface functions to the start
482 of the file.
483
524d7c18
AC
4842002-11-14 Andrew Cagney <ac131313@redhat.com>
485
486 * regcache.h (deprecated_registers): Rename registers.
487 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
488 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
489 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
490 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
491 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
492 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
493 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
494 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
495 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
496 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
497 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
498 * v850ice.c: Update.
499
6411e720
AC
500Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
501
502 * utils.c (gdb_realpath): Add comment mentioning realpath with a
503 NULL buffer.
504
73937e03
AC
5052002-11-13 Andrew Cagney <cagney@redhat.com>
506
507 * regcache.h (deprecated_read_register_bytes): Rename
508 read_register_bytes.
509 (deprecated_write_register_bytes): Rename write_register_bytes.
510 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
511 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
512 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
513 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
514 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
515 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
516 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
517 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
518 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
519 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
520 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
521 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
522 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
523 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
524
fb0cd46e
JB
5252002-11-13 Jim Blandy <jimb@redhat.com>
526
527 * findvar.c (read_var_value): Doc fix.
528
2d28509a
AC
5292002-11-13 Andrew Cagney <cagney@redhat.com>
530
531 * regcache.c (struct regcache): Replace passthough_p with
532 readonly_p.
533 (regcache_xmalloc): Initialize readonly_p.
534 (build_regcache): Initialize readonly_p.
535 (regcache_save): New function.
536 (regcache_restore): New function.
537 (regcache_cpy): Re-implement using regcache_save and
538 regcache_restore.
539 (regcache_raw_read): Update.
540 (regcache_cooked_read): When a read-only cache, checked for cached
541 pseudo register values.
542 (regcache_raw_write): Assert that the cache is not read-only.
543 Remove code handling a non-passthrough cache.
544 * regcache.h (regcache_save): Declare.
545 (regcache_restore): Declare.
546
067df2e5
AC
5472002-11-13 Andrew Cagney <cagney@redhat.com>
548
549 * regcache.c (struct regcache_descr): Add fields
550 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
551 (init_legacy_regcache_descr): Compute the size of a cooked
552 register cache and then assign that to sizeof_raw_registers. Set
553 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
554 (init_legacy_regcache_descr): Ditto.
555
51b1fe4e
AC
5562002-11-13 Andrew Cagney <cagney@redhat.com>
557
558 * regcache.c (register_buffer): Move to near start of file, update
559 description.
560 (regcache_raw_read): Use.
561 (regcache_raw_write): Use.
562 (struct regcache): Rename raw_registers to registers and
563 raw_register_valid_p to register_valid_p.
564 (regcache_xmalloc): Update.
565 (regcache_xfree): Update.
566 (register_buffer): Update.
567 (regcache_cpy): Update.
568 (regcache_cpy_no_passthrough): Update.
569 (regcache_valid_p): Update.
570 (deprecated_grub_regcache_for_registers): Update.
571 (deprecated_grub_regcache_for_register_valid): Update.
572 (set_register_cached): Update.
573 (regcache_raw_write): Update.
574
80b4c677
PM
5752002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
576
577 * p-exp.y (name_not_typename): Use copy_name to
578 set current_type variable for fields of THIS.
579
0f3fafde
DJ
5802002-11-12 Daniel Jacobowitz <drow@mvista.com>
581
582 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
583 * monitor.c (init_base_monitor_ops): Likewise.
584 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
585 * remote-array.c (init_array_ops): Likewise.
586 * remote-e7000.c (init_e7000_ops): Likewise.
587 * remote-es.c (init_es1800_ops): Likewise.
588 (init_es1800_child_ops): Likewise.
589 * remote-rdp.c (init_remote_rdp_ops): Likewise.
590 * remote-sim.c (init_gdbsim_ops): Likewise.
591 * remote-st.c (init_st2000_ops): Likewise.
592 * sol-thread.c (init_sol_core_ops): Likewise.
593 (init_sol_thread_ops): Likewise.
594 * v850ice.c (init_850ice_ops): Likewise.
595 * win32-nat.c (init_child_ops): Likewise.
596 * wince.c (init_child_ops): Likewise.
597
82c0260e
AC
5982002-11-12 Andrew Cagney <ac131313@redhat.com>
599
600 * utils.c (gdb_realpath): Make rp a constant pointer.
601
70d35819
AC
6022002-11-12 Andrew Cagney <ac131313@redhat.com>
603
604 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
605 a constant buffer; cannonicalize_file_name(); realpath() with a
606 pathconf() defined buffer, xstrdup().
607
9835a8b0
AC
6082002-11-12 Andrew Cagney <ac131313@redhat.com>
609
610 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
611 to hang2.C; hang3.c to hang3.C.
612
3f47be5c
EZ
6132002-11-11 Elena Zannoni <ezannoni@redhat.com>
614
615 * findvar.c (read_var_value): Reenable TLS code.
616
6172002-11-11 Elena Zannoni <ezannoni@redhat.com>
618 Jim Blandy <jimb@redhat.com>
619
620 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
621 * target.c (update_current_target): Add
622 to_get_thread_local_address.
623 * target.h (to_get_thread_local_address): Export.
624 (target_get_thread_local_address): Define.
625 (target_get_thread_local_address_p): Define.
626 * thread-db.c: Include solib-svr4.h.
627 (td_thr_tls_get_addr_p): Define.
628 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
629 (thread_db_get_thread_local_address): New function.
630 (init_thread_db_ops): Initialize to_get_thread_local_address.
631 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
632 * configure: Regenerate.
633 * config.in: Regenerate.
634
636b1a6d
DC
6352002-11-11 David Carlton <carlton@math.stanford.edu>
636
637 * linespec.c (set_flags): New function.
638 (decode_line_1): Move code into set_flags.
639
44fe14ab
DC
6402002-11-11 David Carlton <carlton@math.stanford.edu>
641
642 * linespec.c (decode_line_1): Move chunks of code to separate
643 functions.
644 (initialize_defaults): New function.
645 (decode_indirect): New function.
646
e6f181f5
AC
6472002-11-11 Andrew Cagney <ac131313@redhat.com>
648
8971b011
AC
649 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
650 instead of void_code_ptr.
651 (sigtramp_saved_pc): Ditto.
652
e6f181f5
AC
653 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
654 i386_fp_regnum_p.
655
01ad7f36
DJ
6562002-11-10 Daniel Jacobowitz <drow@mvista.com>
657
658 * gdbtypes.h (struct main_type): Move artificial flag out of
659 loc. New member of ``struct field'' named static_kind. Reduce
660 overloaded meaning of bitsize.
661 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
662 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
663 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
664
665 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
666 new fields.
667 (template_to_fixed_record_type, template_to_static_fixed_type)
668 (to_record_with_fixed_variant_part): Likewise.
669 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
670 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
671 * dwarfread.c (struct_type, enum_type): Likewise.
672 * hpread.c (hpread_read_enum_type)
673 (hpread_read_function_type, hpread_read_doc_function_type)
674 (hpread_read_struct_type): Likewise.
675 * mdebugread.c (parse_symbol): Likewise.
676
bf1e52be
AC
6772002-11-10 Andrew Cagney <ac131313@redhat.com>
678
679 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
680 * stack.c (print_frame_info_base): Update.
681 (print_frame_info_base, frame_info): Update.
682 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
683 (sparc_frame_saved_pc): Update.
684 * ada-lang.c (find_printable_frame): Update.
685 * breakpoint.c (deprecated_frame_in_dummy): Update.
686
ce556f85
MK
6872002-11-09 Mark Kettenis <kettenis@gnu.org>
688
689 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
690 defined.
691 (regmap): Extend to cover all registers.
692 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
693 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
694 definitions.
695 (fetch_register, sore_register): Simplify.
696 (old_fetch_inferior_registers, old_store_inferior_registers):
697 Remove functions.
698 (cannot_fetch_register, cannot_store_register): Change
699 implementation to use regmap array to decide which registers
700 cannot be fetched/stored. This removes $orig_eax from the
701 registers that cannot be fetched/stored.
702 (fetch_inferior_registers): Call fetch_register directly instead
703 of calling old_fetch_inferior_registers.
704 (store_inferior_registers): Call store_register directly instead
705 of calling old_store_inferior_registers.
706 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
707 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
708 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
709
932bb524
KD
7102002-11-09 Klee Dienes <kdienes@apple.com>
711
712 * i387-tdep.c (i387_supply_register): When called with NULL as a
713 buffer, mark the register as not provided (to mirror the behavior
714 of supply_register).
715 (i387_supply_fxsave): Ditto.
716 (i387_supply_fsave): Ditto (inherits the behavior from
717 i387_supply_register).
718
ebe68b27
KD
7192002-11-09 Klee Dienes <kdienes@apple.com>
720
721 * blockframe.c (sigtramp_saved_pc): Use
722 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
723 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
724 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
725
15220c65
AC
7262002-11-09 Andrew Cagney <ac131313@redhat.com>
727
728 * frame.c (get_prev_frame): Test prev_p to identify a previously
729 unwound frame. Initialize prev_p.
730 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
731 comment.
732
95adb866
AC
7332002-11-09 Andrew Cagney <ac131313@redhat.com>
734
735 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
736 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
737 more comments. Zap dead code.
738
e71ecd70
MK
7392002-11-09 Mark Kettenis <kettenis@gnu.org>
740
741 * infcmd.c (print_vector_info, print_float_info): Move code that
742 checks whether the target has any registers and whether there is a
743 selected frame up, such that it is also used if a target provides
744 multi-arch definitions of these functions.
745
c525330d
AC
7462002-11-08 Andrew Cagney <ac131313@redhat.com>
747
72bdd927
AC
748 * Makefile.in (DESTDIR): Define.
749 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
750 prefix.
751
c525330d
AC
752 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
753 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
754
38c968cf
AC
7552002-11-08 Andrew Cagney <ac131313@redhat.com>
756
757 * i386-linux-tdep.c: Include "reggroups.h".
758 (i386_linux_register_reggroup_p): New function.
759 (i386_linux_init_abi): Set register_reggroup_p to
760 i386_linux_register_reggroup_p.
761 * i386-tdep.h (i386_register_reggroup_p): Declare.
762 * i386-tdep.c: Include "reggroups.h".
763 (i386_init_reggroups): New function.
764 (i386_add_reggroups): New function.
765 (i386_register_reggroup_p): New function.
766 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
767 (_initialize_i386_tdep): Call i386_init_reggroups.
768 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
769 specific reggroups.
770
19e33363
MK
7712002-11-09 Mark Kettenis <kettenis@gnu.org>
772
371a6e84
MK
773 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
774 request that's available in *BSD.
775
94ba925a
MK
776 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
777
19e33363
MK
778 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
779 FDOFF_REGNUM.
780
8779790c
AC
7812002-11-08 Andrew Cagney <ac131313@redhat.com>
782
783 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
784 * dummy-frame.c (find_dummy_frame): Rename
785 generic_find_dummy_frame, make static. Return the dummy frame
786 instead of the regcache.
787 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
788 (cached_find_dummy_frame): New function. Use find_dummy_frame.
789 (dummy_frame_register_unwind): Rename
790 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
791 * dummy-frame.h (dummy_frame_register_unwind): Rename
792 generic_call_dummy_register_unwind.
793
8674b74f
MK
7942002-11-08 Mark Kettenis <kettenis@gnu.org>
795
796 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
797 except the inclusion of "i386/tm-i386.h", to...
798 * config/i386/nm-i386v42mp.h: ...here.
799 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
800
4c1e7e9d
AC
8012002-11-08 Andrew Cagney <ac131313@redhat.com>
802
803 * Makefile.in (frame.o): Update dependencies.
804 * blockframe.c (current_frame, frame_obstack_alloc)
805 (frame_saved_regs_zalloc, get_current_frame)
806 (set_current_frame, create_new_frame)
807 (set_unwind_by_pc, get_next_frame)
808 (flush_cached_frames, reinit_frame_cache)
809 (frame_saved_regs_register_unwind)
810 (deprecated_generic_get_saved_register)
811 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
812 (_initialize_blockframe): Move frame code from here...
813 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
814 "annotate.h" and "dummy-frame.h".
815 (_initialize_frame): New function.
816
921e78cf
JB
8172002-11-08 Jim Blandy <jimb@redhat.com>
818
819 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
820 when we finish a function a context.
821 * buildsym.h (outermost_context_p): New macro.
822 (Bug analyzed by David Edelsohn.)
823
9c1412c1
AC
8242002-11-08 Andrew Cagney <ac131313@redhat.com>
825
826 * blockframe.c: Include "dummy-frame.h".
827 (struct dummy_frame, dummy_frame_stack)
828 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
829 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
830 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
831 (generic_save_call_dummy_addr, generic_pop_current_frame)
832 (generic_pop_dummy_frame, generic_fix_call_dummy)
833 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
834 dummy frame code from here...
835 * dummy-frame.c: ...to here. New file.
836 * dummy-frame.h: New file.
837 (generic_call_dummy_register_unwind): Declare.
838 (generic_find_dummy_frame): Declare.
839 * Makefile.in (SFILES): Add dummy-frame.c.
840 (dummy-frame.o): Specify dependencies.
841 (dummy_frame_h): Define.
842 (COMMON_OBS): Add dummy-frame.o.
843 (blockframe.o): Update dependencies.
844
208d8187
JB
8452002-11-08 Jim Blandy <jimb@redhat.com>
846
847 * dwarf2read.c (read_func_scope): Restore local_symbols and
848 param_symbols after we finish the function context. (Based on a
849 patch from David Edelsohn.)
850
413dad4d
DC
8512002-11-08 David Carlton <carlton@math.stanford.edu>
852
853 * linespec.c (symbol_found): New function.
854 (minsym_found): New function.
855 (decode_line_1): Separate out some code into separate functions.
856
5512c44a
JB
8572002-11-08 Joel Brobecker <brobecker@gnat.com>
858
859 * i386-tdep.c (i386_frameless_signal_p): Make non static for
860 the benefit of the interix target.
861 * i386-tdep.h (i386_frameless_signal_p): Declare.
862
1b33ef47
AC
8632002-11-08 Andrew Cagney <ac131313@redhat.com>
864
865 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
866 declaration that snuck in from change below.
867
23a34459
AC
8682002-11-06 Andrew Cagney <cagney@redhat.com>
869
870 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
871 all callers.
872 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
873 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
874 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
875 (i386_mxcsr_regnum_p): new function. Use instead of
876 MXCSR_REGNUM_P.
877 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
878 (i386_sse_regnum_p): Declare.
879 (i386_mxcsr_regnum_p): Declare.
880 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
881 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
882 (IS_FP_REGNUM): Update definition.
883 (IS_FPU_CTRL_REGNUM): Update definition..
884 (IS_SSE_REGNUM): Update definition..
885 * i386v-nat.c (register_u_addr): Update.
886 * go32-nat.c (fetch_register): Update.
887 (store_register): Update.
888
d709c020
JB
8892002-11-07 Joel Brobecker <brobecker@gnat.com>
890
891 Preparation work to convert the hppa targets to multiarch partial.
892
893 * hppa-tdep.c: Add new functions replacing macro bodies from
894 config/pa/tm-hppa.h. These function will be used to initialize
895 the gdbarch structure. Import some comments from tm-hppa.h,
896 and place them where appropriate, to avoid loosing them when
897 we cleanup this file.
898 (hppa_reg_struct_has_addr): New function.
899 (hppa_inner_than): New function.
900 (hppa_stack_align): New function.
901 (hppa_pc_requires_run_before_use): New function.
902 (hppa_instruction_nullified): New function.
903 (hppa_register_byte): New function.
904 (hppa_register_virtual_type): New function.
905 (hppa_store_struct_return): New function.
906 (hppa_cannot_store_register): New function.
907 (hppa_frame_args_address): New function.
908 (hppa_frame_locals_address): New function.
909 (hppa_smash_text_address): New function.
910 (hppa_coerce_float_to_double): New function. Requires the inclusion
911 of "language.h".
912
913 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
914
915 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
916 gdbarch-eligible macro to a call to the new associated function
917 created in hppa-tdep.c.
918 (INNER_THAN): Likewise.
919 (STACK_ALIGN): Likewise.
920 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
921 (INSTRUCTION_NULLIFIED): Likewise.
922 (REGISTER_BYTE): Likewise.
923 (REGISTER_VIRTUAL_TYPE): Likewise.
924 (STORE_STRUCT_RETURN): Likewise.
925 (CANNOT_STORE_REGISTER): Likewise.
926 (FRAME_ARGS_ADDRESS): Likewise.
927 (FRAME_LOCALS_ADDRESS): Likewise.
928 (SMASH_TEXT_ADDRESS): Likewise.
929 (COERCE_FLOAT_TO_DOUBLE): Likewise.
930 (ABOUT_TO_RETURN): Delete, as no longer used.
931
83c31e7d
FN
9322002-11-07 Fernando Nasser <fnasser@redhat.com>
933
934 * printcmd.c (disassemble_command): Remove obsolete function.
935 (_initialize_printcmd): Do not create disassemble command here.
936 * cli/cli-cmds.c (disassemble_command): New function. Implements
937 disassemble command.
938 (init_cli_cmds): Create disassemble command here instead.
939
0ec30a36
AC
9402002-11-07 Andrew Cagney <ac131313@redhat.com>
941
942 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
943
e600bd34
AC
9442002-11-07 Andrew Cagney <ac131313@redhat.com>
945
946 * regcache.h (regcache_cooked_read_using_offset_hack)
947 (regcache_cooked_write_using_offset_hack): Delete declarations.
948 (register_changed): Delete declaration.
949 * regcache.c (regcache_cooked_read_using_offset_hack)
950 (regcache_cooked_write_using_offset_hack): Delete functions.
951 (cooked_xfer_using_offset_hack): Delete function.
952 (register_changed): Delete function.
953
568f8739
JB
9542002-11-07 Jim Blandy <jimb@redhat.com>
955
956 * macroscope.c: #include "complaints.h".
957 (sal_macro_scope): Cope with filenames that appear in the symtabs,
958 but not in the macro table.
959 * Makefile.in (macroscope.o): Record dependency.
960
b0718b7b
JB
9612002-11-07 Joel Brobecker <brobecker@gnat.com>
962
963 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
964
2b9e5f3f
AC
9652002-11-07 Andrew Cagney <ac131313@redhat.com>
966
967 * regcache.c (deprecated_registers_fetched): Update.
968 * regcache.h (deprecated_registers_fetched): Rename
969 registers_fetched.
970 * remote-vxsparc.c (vx_read_register): Update.
971 * remote-vxmips.c (vx_read_register): Update.
972 * remote-vx68.c (vx_read_register): Update.
973 * irix5-nat.c (fetch_core_registers): Update.
974 * mipsm3-nat.c (fetch_inferior_registers): Update.
975 * sun3-nat.c (fetch_inferior_registers): Update.
976 * symm-nat.c (fetch_inferior_registers): Update.
977 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
978 (fetch_core_registers): Update.
979 (fetch_kcore_registers): Update.
980 * mips-nat.c (fetch_inferior_registers): Update.
981 * corelow.c (get_core_registers): Update.
982 * a68v-nat.c (fetch_inferior_registers): Update.
983
e6e68f1f
JB
9842002-11-06 Joel Brobecker <brobecker@gnat.com>
985
986 Put in place the framework necessary for multiarching the hppa targets.
987 * hppa-tdep.c (hppa_gdbarch_init): New function.
988 (hppa_dump_tdep): New function.
989 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
990 tdep structure dumper.
991 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
992 until the multi-arching conversion has partially been completed.
993
492254e9
AC
9942002-11-06 Andrew Cagney <ac131313@redhat.com>
995
996 * valops.c (value_assign): Merge lval_register case into
997 lval_reg_frame_relative. Use frame_register and
998 regcache_cooked_write instead of get_saved_register and
999 write_register_bytes. After flushing the register cache, try to
1000 re-select the selected frame.
1001
8262ee23
AC
10022002-11-06 Andrew Cagney <ac131313@redhat.com>
1003
1004 * regcache.h (deprecated_register_valid): Rename register_valid.
1005 * regcache.c: Update.
1006 * ia64-aix-nat.c: Update.
1007 * i386gnu-nat.c: Update.
1008 * alpha-nat.c: Update.
1009 * sparc-nat.c: Update.
1010 * lynx-nat.c: Update.
1011 * remote-mips.c: Update.
1012
4facf7e8
JB
10132002-11-06 Joel Brobecker <brobecker@gnat.com>
1014
1015 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1016 to end of file, to be more consistent with the pratice followed
1017 by other targets.
1018
f9418c0f
AC
10192002-11-06 Andrew Cagney <ac131313@redhat.com>
1020
1021 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1022 (print_float_info): Print registers in float_reggroup.
1023 (print_vector_info): Print registers in vector_reggroup.
1024 (default_print_registers_info): When all, print registers in
1025 all_reggroup. Otherwize, print registers in general_reggroup.
1026 (registers_info): Rewrite. Add support for register groups.
1027 Eliminate a goto.
1028
3fe235a7
EZ
10292002-11-06 Elena Zannoni <ezannoni@redhat.com>
1030
1031 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1032 ages.
1033 (symtab_symbol_info): Remove eons old ifdeffed out code.
1034 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1035 command.
1036
ef944135
TR
10372002-11-06 Theodore A. Roth <troth@openavr.org>
1038
1039 * c-exp.y: Add missing semi-colons.
1040 * f-exp.y: Add missing semi-colons.
1041 * m2-exp.y: Add missing semi-colons.
1042 * p-exp.y: Add missing semi-colons.
1043 Add empty action to start rule to avoid a type clash error when
1044 building with bison >= 1.50.
1045
f8302a57
JB
10462002-11-06 Jim Blandy <jimb@redhat.com>
1047
1048 * macrotab.h (struct macro_source_file): Doc fix.
1049
6e382aa3
JJ
10502002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1051
1052 * varobj.c (child_exists, cplus_number_of_children): Change
1053 STREQ macro references to strcmp.
1054 (cplus_name_of_child): Change code to handle the fact that
1055 fields are not necessarily contiguous with regards to their
1056 access control. This is a fix for PR gdb/792.
1057
a216a322
AC
10582002-11-05 Andrew Cagney <ac131313@redhat.com>
1059
1060 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1061 * gdbarch.h, gdbarch.c: Regnerate.
1062 * frame.h (frame_register): Declare.
1063 * frame.c (frame_register): New function.
1064 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1065 GET_SAVED_REGISTER, otherwize call
1066 generic_unwind_get_saved_register.
1067 (frame_register_read): Use frame_register instead of
1068 get_saved_register.
1069
7d5b6fdd
EZ
10702002-11-05 Elena Zannoni <ezannoni@redhat.com>
1071
1072 From Jim Ingham <jingham@apple.com>:
1073 * event-top.c (gdb_disable_readline): New function.
1074 (_initialize_event_loop): Move comment.
1075
b7c64260
EZ
10762002-11-05 Elena Zannoni <ezannoni@redhat.com>
1077
1078 * event-loop.c (start_event_loop): Add comment.
1079 Update copyright.
1080
c2e1b8f2
AC
10812002-11-05 Andrew Cagney <ac131313@redhat.com>
1082
1083 * infcmd.c (default_print_registers_info): Do not call
1084 PRINT_REGISTER_HOOK.
1085
87647bb0
AC
10862002-11-05 Andrew Cagney <ac131313@redhat.com>
1087
1088 * sparc-tdep.c (sparc_print_register_hook): Make static.
1089 (sparc_print_registers_info): New function.
1090 (sparc_do_registers_info): New function.
1091 (sparclet_print_registers_info): New function.
1092 (sparclet_do_registers_info): New function.
1093 (do_sparc_print_registers_info): New function.
1094 (sparc_print_registers): New static function, clone of infcmd.c's
1095 default_print_registers_info.
1096 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1097 (sparclet_do_registers_info): Declare.
1098 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1099 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1100 Re-define.
1101 (sparc_do_registers_info): Declare.
1102 (PRINT_REGISTER_HOOK): Delete macro.
1103 (sparc_print_register_hook): Delete declaration.
1104
8155455b
DC
11052002-11-05 David Carlton <carlton@math.stanford.edu>
1106
1107 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1108 functions.
1109 (lookup_symbol_aux_local): New function.
1110 (lookup_symbol_aux_symtabs): New function.
1111 (lookup_symbol_aux_psymtabs): New function.
1112
29924310
DC
11132002-11-05 David Carlton <carlton@math.stanford.edu>
1114
1115 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1116 previous values of 'objfile' and 'block'.
1117
cc303028
PM
11182002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1119
1120 * values.c (value_change_enclosing_type): Set
1121 enclosing_type field correctly also for the case where
1122 more memory needs to be allocated.
1123
1d70089a
MK
11242002-11-03 Mark Kettenis <kettenis@gnu.org>
1125
f16a25ae
MK
1126 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1127 of puts_filtered.
1128
1d70089a
MK
1129 * i387-tdep.c (i387_print_float_info): Replace calls to
1130 register_read and deprecated_read_register_gen with calls to
1131 frame_register_read, and make the necessary adjustments to the
1132 surrounding code.
1133
7e20f3fb
AC
11342002-11-02 Andrew Cagney <ac131313@redhat.com>
1135
1136 * gdbarch.sh (register_reggroup_p): Allow default value.
1137 * gdbarch.h, gdbarch.c: Regenerate.
1138
192dbe33
AC
11392002-11-02 Andrew Cagney <ac131313@redhat.com>
1140
1141 * regcache.h: Add coment indicating replacements for deprecated
1142 functions.
1143
b59ff9d5
AC
11442002-11-02 Andrew Cagney <cagney@redhat.com>
1145
1146 * reggroups.h, reggroups.c: New files.
1147 * regcache.c: Include "reggroups.h".
1148 (enum regcache_dump_what): Add `regcache_dump_groups'.
1149 (regcache_dump): Contract size of the "Type" column. When
1150 specified, dump the register's groups.
1151 (maintenance_print_register_groups): New function.
1152 (_initialize_regcache): Add command `maint print register-groups'.
1153 * Makefile.in (COMMON_OBS): Add reggroups.o
1154 (SFILES): Add reggroups.c.
1155 (reggroups_h): Define.
1156 (regcache.o, gdbarch.o): Update dependencies.
1157 (reggroups.o): Specify dependencies.
1158 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1159 Add opaque declaration for `struct reggroup' in generated .h file.
1160 Include "reggroups.h" in generated .c file.
1161 gdbarch.h, gdbarch.c: Re-generate.
1162
4caf0990
AC
11632002-11-02 Andrew Cagney <cagney@redhat.com>
1164
1165 * regcache.h (deprecated_read_register_gen): Rename
1166 read_register_gen.
1167 (deprecated_write_register_gen): Rename write_register_gen.
1168 * i387-tdep.c: Update.
1169 * x86-64-linux-nat.c: Update
1170 * wince.c: Update.
1171 * thread-db.c: Update.
1172 * win32-nat.c: Update.
1173 * mips-tdep.c: Update.
1174 * d10v-tdep.c: Update.
1175 * cris-tdep.c: Update.
1176 * remote-sim.c: Update.
1177 * remote-rdi.c: Update.
1178 * remote-rdp.c: Update.
1179 * frame.c: Update.
1180 * target.c: Update.
1181 * blockframe.c: Update.
1182 * x86-64-tdep.c: Update.
1183 * xstormy16-tdep.c: Update.
1184 * sh-tdep.c: Update.
1185 * s390-tdep.c: Update.
1186 * rs6000-tdep.c: Update.
1187 * sparc-tdep.c: Update.
1188 * i386-tdep.c: Update.
1189 * dwarf2cfi.c: Update.
1190 * regcache.c: Update.
1191
7a7adcdf
JB
11922002-11-01 Joel Brobecker <brobecker@gnat.com>
1193
1194 New interix-specific files:
1195 * config/i386/nm-interix.h: New file.
1196 * config/i386/interix.mh: New file.
1197 * config/i386/interix.mt: New file.
1198 * i386-interix-nat.c: New file.
1199 * i386-interix-tdep.c: New file.
1200
bdcdd535
AC
12012002-11-01 Andrew Cagney <cagney@redhat.com>
1202
1203 * frame.h (deprecated_generic_get_saved_register): Rename
1204 generic_get_saved_register.
1205 * blockframe.c (deprecated_generic_get_saved_register): Update.
1206 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1207 (xstormy16_frame_saved_register): Update.
1208 * sh-tdep.c (sh_gdbarch_init): Update.
1209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1210 * ia64-tdep.c (ia64_get_saved_register): Update.
1211 * cris-tdep.c (cris_gdbarch_init): Update.
1212 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1213 * arm-tdep.c (arm_gdbarch_init): Update.
1214
2a4b7c45
DJ
12152002-10-31 Daniel Jacobowitz <drow@mvista.com>
1216
1217 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1218
ef17e74b
DJ
12192002-10-31 Daniel Jacobowitz <drow@mvista.com>
1220
1221 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1222 trampolines in sigaction.
1223
4904ba5b
AC
12242002-10-31 Andrew Cagney <cagney@redhat.com>
1225
1226 * h8300-tdep.c: Include "gdb_assert.h".
1227 (h8300_print_register): Add gdbarch, file and frame parameters.
1228 Use frame_read_unsigned_register to read the register's value.
1229 Use fprintf_filtered to display output.
1230 (h8300_print_registers_info): Replace h8300_do_registers_info.
1231 (h8300_gdbarch_init): Set print_registers_info.
1232
f908a0eb
AC
12332002-10-31 Andrew Cagney <cagney@redhat.com>
1234
1235 * frame.c (frame_read_unsigned_register): New function.
1236 (frame_read_signed_register): New function.
1237 * frame.h (frame_read_unsigned_register): Declare.
1238 (frame_read_signed_register): Declare.
1239
c5646e11
AC
12402002-10-31 Andrew Cagney <cagney@redhat.com>
1241
1242 * h8500-tdep.c (h8500_print_registers_info): New static function,
1243 clone of infcmd.c's default_print_registers_info.
1244 (h8500_do_registers_info): New funtion.
1245 (h8500_print_register_hook): Rename print_register_hook, make
1246 static.
1247
1248 * config/h8500/tm-h8500.h: Update copyright.
1249 (DEPRECATED_DO_REGISTERS_INFO): Define.
1250 (h8500_do_registers_info: Declare.
1251 (PRINT_REGISTER_HOOK): Delete macro.
1252 (print_register_hook): Delete function.
1253
0bdd672b
AC
12542002-10-31 Andrew Cagney <cagney@redhat.com>
1255
1256 * z8k-tdep.c (z8k_print_register_hook): Make static.
1257 (z8k_print_registers_info): New static function, clone of
1258 infcmd.c's default_print_registers_info.
1259 (z8k_do_registers_info): New function. Wrap
1260 z8k_print_registers_info.
1261 * config/z8k/tm-z8k.h: Update copyright.
1262 (PRINT_REGISTER_HOOK): Delete macro.
1263 (z8k_print_register_hook): Delete declaration.
1264 (DEPRECATED_DO_REGISTERS_INFO): Define.
1265 (z8k_do_registers_info): Declare.
1266
bf9c25dc
JB
12672002-10-30 Joel Brobecker <brobecker@gnat.com>
1268
1269 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1270 as this is already provided by value.h, and was actually causing
1271 a compilation error because of a conflict in parameter type
1272 declaration due to a missing const keyword.
1273 (low_text_segment_addres): Fix a compilation warning.
1274
2c665b51
DJ
12752002-10-29 Daniel Jacobowitz <drow@mvista.com>
1276
1277 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1278 registers without a name.
1279 (mips_linux_cannot_store_register): Don't store registers without
1280 a name.
1281
e70ea697
DC
12822002-10-28 David Carlton <carlton@math.stanford.edu>
1283
1284 * symtab.c (find_addr_symbol): Delete. (It was already commented
1285 out.)
1286 * symtab.h: Delete prototype for find_addr_symbol.
1287
903ad3a6
AC
12882002-10-26 Andrew Cagney <cagney@redhat.com>
1289
1290 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1291 DO_REGISTERS_INFO.
1292 gdbarch.h, gdbarch.c: Re-generate.
1293 * infcmd.c (default_print_registers_info): Update reference.
1294 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1295 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1296 * sh-tdep.c (sh_gdbarch_init): Ditto.
1297 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1298 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1299
ab91194c
MK
13002002-10-26 Mark Kettenis <kettenis@gnu.org>
1301
e3033f15
MK
1302 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1303 cfi_init_extra_frame_info.
1304 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1305 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1306
b83b026c
MK
1307 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1308 target where necessary. Add more comments and remove the ones
1309 that don't provide any useful information.
1310
267bf4bb
MK
1311 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1312 deprecated_read_register_dummy with
1313 frame_unwind_unsigned_register.
1314
751f1375
MK
1315 * i386-tdep.c (i386_extract_struct_value_address): Use
1316 regcache_raw_read_unsigned instead of
1317 regcache_cooked_read_unsigned since we know that the register
1318 we're reading isn't a pseudo register. Rename variable 'val' into
1319 the more descriptive 'addr'.
1320
26abbdc4
MK
1321 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1322 (x86_64_push_return_address): Add comment.
1323 (x86_64_pop_frame): Make static.
1324 (examine_argument): Clarify comment.
1325 (x86_64_skip_prologue): Make prolog_expact variable static.
1326
9f1549cc
MK
1327 * dwarf2cfi.c: Fix some formatting problems.
1328 (context_cpy, read_encoded_pointer): Clarify comments.
1329
ab91194c
MK
1330 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1331 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1332 i386 target back into x86_64_gdbarch_init. Add some comments and
1333 remove meaningless ones.
1334
72367fb4
AC
13352002-10-25 Andrew Cagney <cagney@redhat.com>
1336
1337 * complaints.h (struct deprecated_complaint): Rename `struct
1338 complaint'.
1339 * complaints.c (complain): Update.
1340 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1341 incorrect comment indicating that "symfile.h" was being included
1342 for the `struct complaint' definition.
1343 * remote-vx.c: Update.
1344 * objc-lang.c: Update.
1345 * xcoffread.c: Update.
1346 * hpread.c: Update.
1347 * mdebugread.c: Update.
1348 * stabsread.c: Update.
1349 * dwarf2read.c: Update.
1350 * dwarfread.c: Update.
1351 * elfread.c: Update.
1352 * coffread.c: Update.
1353 * stabsread.h: Update.
1354 * dbxread.c: Update.
1355 * buildsym.c: Update.
1356 * gdbtypes.c: Update.
1357 * macrotab.c: Update.
1358
1f2baacc
MK
13592002-10-25 Mark Kettenis <kettenis@gnu.org>
1360
0c1a73d6
MK
1361 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1362 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1363 (x86_64_init_abi): ...new function.
1364
6aee4d54 1365 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1366 * i386v-nat.c: Include "i386-tdep.h".
1367
8f9cbe01
AC
13682002-10-25 Andrew Cagney <cagney@redhat.com>
1369
5f11f355
AC
1370 * gdbtypes.c (address_space_name_to_int): Update.
1371 (address_space_int_to_name): Update.
1372 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1373 multi-arch predicate.
1374 (address_class_name_to_type_flags): Ditto.
1375 * gdbarch.h, gdbarch.c: Re-generate.
1376
8f9cbe01
AC
1377 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1378
e8d96a5d
MH
13792002-10-24 Martin M. Hunt <hunt@redhat.com>
1380
1381 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1382
fe39c653
EZ
13832002-10-24 Elena Zannoni <ezannoni@redhat.com>
1384
1385 * symtab.h (INIT_SAL): Delete macro.
1386 (init_sal): Export.
1387 * symtab.c (init_sal): New function.
1388
1389 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1390 to init_sal function call.
1391 (find_sal_from_funcs_and_line): Ditto.
1392 (all_sals_for_line): Ditto.
1393 * breakpoint.c (create_internal_breakpoint): Ditto.
1394 (create_fork_vfork_event_catchpoint): Ditto.
1395 (create_exec_event_catchpoint): Ditto.
1396 (parse_breakpoint_sals): Ditto.
1397 (watch_command_1): Ditto.
1398 (handle_gnu_4_16_catch_command): Ditto.
1399 (clear_command): Ditto.
1400 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1401 * infcmd.c (run_stack_dummy): Ditto.
1402 * infrun.c (process_event_stop_test): Ditto.
1403 (check_sigtramp2): Ditto.
1404 (step_over_function): Ditto.
1405 * linespec.c (decode_line_2): Ditto.
1406 (decode_line_1): Ditto.
1407 * source.c (line_info): Ditto.
1408 * symtab.c (find_pc_sect_line): Ditto.
1409
baed091b
ML
14102002-10-24 Michal Ludvig <mludvig@suse.cz>
1411
1412 * dwarf2cfi.c (struct context)
1413 (struct context_reg): Moved to dwarf2cfi.h
1414 (context_alloc, frame_state_alloc, context_cpy):
1415 Made extern instead of static, removed prototypes.
1416 * dwarf2cfi.h (struct context)
1417 (struct context_reg): New, moved from dwarf2cfi.c
1418 (context_alloc, frame_state_alloc, context_cpy):
1419 New prototypes.
1420 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1421 Changed from static to extern.
1422 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1423 (LINUX_SIGCONTEXT_FP_OFFSET)
1424 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1425 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1426 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1427 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1428 set_gdbarch_*() calls now use x86-64 specific functions
1429 instead of DWARF2 CFI ones.
1430 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1431 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1432 (x86_64_init_extra_frame_info): New prototypes.
1433
c38da1af
DC
14342002-10-23 David Carlton <carlton@math.stanford.edu>
1435
1436 * linespec.c: #include "parser-defs.h".
1437 Delete prototype for find_template_name_end.
1438 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1439
fb9b6b35
JJ
14402002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1441
1442 * NEWS: add recent mi fixes.
1443 * varobj.c (struct varobj): Add new "updated" flag.
1444 (new_variable): Default "updated" flag to 0.
1445 (varobj_set_value): Set "updated" flag to 1 if value
1446 changes.
1447 (varobj_update): Check varobj "updated" flag before
1448 comparing old and refreshed values. Fix for
1449 PR gdb/702.
1450
8da065d5
DC
14512002-10-23 David Carlton <carlton@math.stanford.edu>
1452
1453 * parse.c (parse_exp_1): Use BLOCK_START.
1454 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1455 SYMBOL_BLOCK_VALUE.
1456 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1457
87f2f08c
DC
14582002-10-23 David Carlton <carlton@math.stanford.edu>
1459
1460 * symtab.c: Delete cplusplus_hint.
1461 Delete prototype for find_template_name_end.
1462
88cda038
EZ
14632002-10-23 Elena Zannoni <ezannoni@redhat.com>
1464
1465 * symtab.h: Update comment.
1466
2625d86c
MS
14672002-10-23 Michael Snyder <msnyder@redhat.com>
1468
1469 * printcmd.c (address_info): Restore quotes in output.
1470 * valops.c (value_of_local): Restore quotes in error message.
1471
9cc0d196
EZ
14722002-10-23 Elena Zannoni <ezannoni@redhat.com>
1473
1474 * symtab.c (symbol_demangled_name): New function.
1475 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1476 turning most of it into a function.
1477 (symbol_demangled_name): Export.
1478
19de93d0
MS
14792002-10-23 Michael Snyder <msnyder@redhat.com>
1480
1481 * valops.c (value_of_local): Restore quotes in error message.
1482
89aad1f9
EZ
14832002-10-23 Elena Zannoni <ezannoni@redhat.com>
1484
1485 * symtab.c (symbol_init_language_specific): New function.
1486 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1487 turning most of it into a function.
1488 (symbol_init_language_specific): Export.
1489
d9fa45fe
DC
14902002-10-23 David Carlton <carlton@math.stanford.edu>
1491
1492 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1493 (dwarf_attr_name): Ditto.
1494 (dwarf_type_encoding_name): Ditto.
1495 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1496 (process_die): Handle DW_TAG_namespace,
1497 DW_TAG_imported_declaration, DW_TAG_imported_module.
1498 (read_namespace): New function.
1499
1045b512
JB
15002002-10-22 Joel Brobecker <brobecker@gnat.com>
1501
1502 * configure.in: Define NEW_PROC_API on Interix too.
1503 * configure: Regenerate.
1504
15052002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1506
1507 * configure: Regenerate using the proper version of autoconf.
1508
3987b9d4
EZ
15092002-10-21 Elena Zannoni <ezannoni@redhat.com>
1510
1511 * findvar.c (read_var_value): Temporarily disable TLS code, until
1512 complete TLS support is added.
1513
9d774e44
EZ
15142002-10-21 Jim Blandy <jimb@redhat.com>
1515 Elena Zannoni <ezannoni@redhat.com>
1516
1517 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1518 for thread local storage locations.
1519 (struct symbol): Add objfile field.
1520 (SYMBOL_OBJFILE): Define.
1521 * dwarf2read.c (is_thread_local): New static variable.
1522 (new_symbol): If variable is in thread local fill in address class
1523 and objfile appropriately.
1524 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1525 stack operation.
1526 * printcmd.c (address_info): Print the information for thread
1527 local storage variable.
1528 * findvar.c (read_var_value): In case of thread local variable,
1529 defer to the target vector code to compute address.
1530
bc4a16ae
EZ
15312002-10-21 Elena Zannoni <ezannoni@redhat.com>
1532
1533 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1534 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1535
407caf07
EZ
15362002-10-21 Elena Zannoni <ezannoni@redhat.com>
1537
1538 * symtab.h (address_class): Rename
1539 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1540 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1541 * printcmd.c (address_info): Ditto.
1542 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1543
005328e3
MK
15442002-10-20 Mark Kettenis <kettenis@gnu.org>
1545
afdb036a
MK
1546 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1547 DBREG_DRX macro to acces debug registers.
1548
ca02e098
MK
1549 * Makefile.in (i386obsd-tdep.o): New target.
1550
03cc47f7
MK
1551 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1552 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1553
005328e3
MK
1554 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1555 * config/i386/obsd.mt: New file.
1556 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1557 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1558 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1559 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1560 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1561 * i386obsd-tdep.c: New file.
1562
9c96f9f2
AF
15632002-10-19 Adam Fedor <fedor@gnu.org>
1564
1565 * objc-exp.y (name_not_typename): Fix invalid comment.
1566
ce1ed485
MK
15672002-10-20 Mark Kettenis <kettenis@gnu.org>
1568
1569 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1570 to allocate partial syms and macro byte caches.
1571
1efc7aaa
DC
15722002-10-18 David Carlton <carlton@math.stanford.edu>
1573
1574 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1575
7e1d63ec
AF
15762002-10-18 Adam Fedor <fedor@gnu.org>
1577
1578 * stabsread.c (find_name_end): New function.
1579 (define_symbol): Use it.
1580
6e8d29a9
DJ
15812002-10-18 Daniel Jacobowitz <drow@mvista.com>
1582
1583 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1584 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1585 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1586 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1587
1efc7aaa 15882002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1589
1590 * symfile.h: Add opaque declaration for struct obstack.
1591 Declare obsavestring to take a const char *.
1592 * symfile.c (obsavestring): Make first argument a const char *.
1593
1aeae86e
AF
15942002-10-16 Adam Fedor <fedor@gnu.org>
1595
1596 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1597 names when matching breakpoints in current file.
1598
8b2dbe47
KB
15992002-10-16 Kevin Buettner <kevinb@redhat.com>
1600
1601 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1602 (read_tag_pointer_type): Add address class support.
1603 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1604 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1605 New methods.
1606 * gdbarch.h, gdbarch.c: Regenerate.
1607 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1608 (make_type_with_address_space, recursive_type_dump): Add address
1609 class support.
1610 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1611 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1612 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1613
74451869
KD
16142002-10-16 Klee Dienes <kdienes@apple.com>
1615
1616 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1617 to get the last character of a char[] buffer, not
1618 name[sizeof(vptr_name)-1].
1619
ff4cb3e8
AF
16202002-10-14 Adam Fedor <fedor@gnu.org>
1621
1622 * symtab.h: New objc_specific struct.
1623 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1624 (SYMBOL_DEMANGLED_NAME): Likewise.
1625
da2cf7e0
AF
16262002-10-14 Adam Fedor <fedor@gnu.org>
1627
1628 * symfile.c (init_filename_language_table): Add ObjC file extension.
1629
4a351cef
AF
16302002-10-14 Adam Fedor <fedor@gnu.org>
1631
1632 * utils.c (puts_filtered_tabular): New function.
1633 (fprintf_symbol_filtered): Get ObjC demangled name.
1634 * defs.h (puts_filtered_tabular): Declared.
1635
9750e763
KB
16362002-10-14 Kevin Buettner <kevinb@redhat.com>
1637
1638 * c-lang.h (c_type_print_varspec_prefix): Delete.
1639 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1640 ``need_post_space'' parameter. Adjust all callers.
1641
eee771c1
DJ
16422002-10-14 Daniel Jacobowitz <drow@mvista.com>
1643
1644 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1645 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1646 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1647 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1648
46c82446
AF
16492002-10-13 Adam Fedor <fedor@gnu.org>
1650
1651 * source.c (print_source_lines): Update comments.
1652
d069f99d
AF
16532002-10-13 Adam Fedor <fedor@gnu.org>
1654
1655 * valops.c (value_of_local): New function.
1656 (value_of_this): Use it.
1657 * value.h (value_of_local): Declared.
1658
53c551b7
AF
16592002-10-13 Adam Fedor <fedor@gnu.org>
1660
1661 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1662 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1663
eb392fbf
AF
16642002-10-12 Adam Fedor <fedor@gnu.org>
1665
1666 * language.c (binop_result_type): Add language_objc to case.
1667 (integral_type): Likewise.
1668 (character_type): Likewise.
1669 (string_type): Likewise.
1670 (boolean_type): Likewise.
1671 (structured_type): Likewise.
1672 (binop_type_check): Likewise.
1673
e2b23ee9
AF
16742002-10-11 Adam Fedor <fedor@gnu.org>
1675
1676 * printcmd.c (address_info): Print 'self' for ObjC.
1677
b01ab485
AF
16782002-10-11 Adam Fedor <fedor@gnu.org>
1679
1680 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1681 OP_SELF.
1682
806e6073
AF
16832002-10-11 Adam Fedor <fedor@gnu.org>
1684
1685 * language.h (CAST_IS_CONVERSION): Add language_objc.
1686
50f85cdf
AF
16872002-10-11 Adam Fedor <fedor@gnu.org>
1688
1689 * defs.h (enum language): Add language_objc.
1690
0d540cdf
KD
16912002-10-11 Klee Dienes <kdienes@apple.com>
1692
69266111 1693 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1694 * gdbcore.h (read_memory_typed_address): Add prototype.
1695 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1696 to read a value destined for a CORE_ADDR, not read_memory_integer.
1697 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1698 (f77_get_dynamic_lowerbound): Ditto.
1699
d5dc7960
MH
17002002-10-11 Martin M. Hunt <hunt@redhat.com>
1701
1702 * utils.c (string_to_core_addr): After turning string into
1703 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1704 which will do necessary sign-extension, etc.
1705
8343f86c
DJ
17062002-10-11 Daniel Jacobowitz <drow@mvista.com>
1707
1708 * c-exp.y (THIS): Delete token and grammar rule.
1709 (yylex): Don't return THIS.
1710 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1711 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1712 * demangle.c (cplus_markers): Update comment. Put '$'
1713 first. Remove CPLUS_MARKER.
1714 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1715 * jv-exp.y (THIS): Delete token and grammar rule.
1716 (yylex): Don't return THIS.
1717 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1718 * objc-exp.y (THIS): Delete token and grammar rule.
1719 (yylex): Don't return THIS.
1720 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1721 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1722 (read_member_functions): Likewise for opname.
1723 (read_tilde_fields): Use is_cplus_marker.
1724
1725 * defs.h (CPLUS_MARKER): Don't define.
1726 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1727 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1728 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1729 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1730 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1731
1732 * config/i386/tm-i386v4.h: Delete file.
1733 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1734 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1735 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1736 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1737 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1738 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1739 * config/i386/i386v4.mt (TM_FILE): Likewise.
1740 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1741
967c0d83
MM
17422002-10-10 Marko Mlinar <markom@opencores.org>
1743
1744 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1745 accidentially not commited 2002-10-09
1746 * gdbarch.h, gdbarch.c: Re-generate.
1747
f74fa174
MM
17482002-10-09 Marko Mlinar <markom@opencores.org>
1749
1750 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1751 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1752 * gdbarch.h, gdbarch.c: Re-generate.
1753
57349743
JB
17542002-10-08 Petr Sorfa <petrs@caldera.com>
1755
1756 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1757
1758 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1759 so we can work on more than one compilation unit at a time. This
1760 helps prepare GDB to handle inter-CU die references.
1761 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1762 the code to be defined before struct comp_unit_head.
1763 (comp_unit_head): Added new members - offset, cu_head,
1764 begin_die, next and dwarf2_abbrevs.
1765 (dwarf2_abbrevs): Removed single static var; now member of
1766 struct comp_unit_head.
1767 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1768 members.
1769 (psymtab_to_symtab_1): Changed to work with the new
1770 struct comp_unit_head.
1771 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1772 constructs the dwarf2_abbrevs[] inside the cu_header.
1773 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1774 dwarf2_abbrev table to clean up.
1775 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1776 handling of dwarf2_abbrevs inside the cu_header.
1777 (read_partial_die): Now supports the call to the new
1778 dwarf2_lookup_abbrev.
1779 (read_full_die): Now supports the call to the new
1780 dwarf2_lookup_abbrev.
1781
4092aadb
CF
17822002-10-06 Christopher Faylor <cgf@redhat.com>
1783
1784 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1785 insure that shell variables, such as "transformed_name" are propagated
1786 to later shell statements in rule.
1787
af0b2512
MK
17882002-10-06 Mark Kettenis <kettenis@gnu.org>
1789
1790 * config/i386/nm-i386sco.h: Add protection against
1791 multiple-inclusion. Include "i386/nm-i386v.h".
1792 (REGISTER_U_ADDR): Remove define.
1793 (i386_register_u_addr): Remove prototype.
1794
d6020d45
MS
17952002-10-04 Michael Snyder <msnyder@redhat.com>
1796
1797 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1798 before treating it as a single-step event.
1799
7248f48e
AF
18002002-10-03 Adam Fedor <fedor@gnu.org>
1801
1802 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1803 (objc_demangle): Remove assignment in if statements, Replace
1804 free with xfree.
1805 (add_msglist): Likewise.
1806 (end_msglist): Likewise.
1807 (complare_selectors): Likewise.
1808 (selectors_info): Likewise.
1809 (compare_classes): Likewise.
1810 (classes_info): Likewise.
1811 (print_object_command): Likewise.
1812 (find_objc_msgcall_submethod): Replace PTR with void *.
1813 * objc-lang.h: Remove check for __STDC__.
1814
52c6a6ac
JJ
18152002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1816
1817 * ui-out.h (ui_out_field_fmt_int): New prototype.
1818 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1819 of field width and alignment.
1820 * stack.c (print_frame_info_base): When printing frame level, use
1821 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1822 PR gdb/192
1823
7e3cec17
JJ
18242002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1825
1826 * MAINTAINERS: Add self to Write After Approval list.
1827
a58dd373
EZ
18282002-10-02 Elena Zannoni <ezannoni@redhat.com>
1829
1830 * infcmd.c (interrupt_target_command_wrapper): Delete.
1831 (interrupt_target_command): Make non static.
1832 (nofp_registers_info): Make static.
1833 * stack.c (return_command_wrapper): Delete.
1834 (return_command): Make non static.
1835
cee6ddeb
EZ
18362002-10-02 Elena Zannoni <ezannoni@redhat.com>
1837
1838 * event-top.c (gdb_setup_readline): New function. Code moved from
1839 _initialize_event_loop().
1840 (_initialize_event_loop): Call gdb_setup_readline().
1841
c4ed33b9
AC
18422002-10-02 Andrew Cagney <ac131313@redhat.com>
1843
1844 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1845 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1846 * gdbarch.h, gdbarch.c: Re-generate.
1847
cef4f5dd
DJ
18482002-10-02 Daniel Jacobowitz <drow@mvista.com>
1849
1850 Fix PR gdb/778
1851 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1852 before recursing.
1853 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1854 of fill_in_vptr_fieldno.
1855
36dc181b 18562002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 1857
36dc181b
EZ
1858 * inferior.h (registers_info, stepi_command, nexti_command,
1859 continue_command, interrupt_target_command): Export from infcmd.c.
1860 * frame.h (args_info, selected_frame_level_changed_hook,
1861 return_command): Export from stack.c.
1862 * v850ice.c (stepi_command, nexti_command, continue_command): use
1863 prototypes from inferior.h.
1864 * tracepoint.c (registers_info, args_info, locals_info): Use
1865 prototypes from frame.h and inferior.h.
1866 * Makefile.in (mi-main.o): Add dependency on frame.h.
1867
6f99cb26
AC
18682002-10-02 Andrew Cagney <ac131313@redhat.com>
1869
da3eff49
AC
1870 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1871 value in register 3 adjusted by ppc_gp0_regnum.
1872
6f99cb26
AC
1873 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1874
da615bee
MM
18752002-10-02 Marko Mlinar <markom@opencores.org>
1876
1877 * MAINTAINERS: Add myself to the Write After Approval list.
1878
d154bee2
AO
18792002-10-01 Alexandre Oliva <aoliva@redhat.com>
1880
62a49b2c
AO
1881 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1882 of the section for the N64 ABI, fixed.
1883
d154bee2
AO
1884 * config/mips/tm-irix6.h: Include solib.h.
1885
ed348acc
EZ
18862002-10-01 Elena Zannoni <ezannoni@redhat.com>
1887
1888 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1889 GNU operators.
1890
da0f9dcd
AC
18912002-10-01 Andrew Cagney <ac131313@redhat.com>
1892
1893 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1894 and that "mi0" syntax has been removed.
1895
bdf64bac
DC
18962002-09-30 David Carlton <carlton@math.stanford.edu>
1897
1898 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1899 * ppc-sysv-tdep.c: #include "gdb_string.h".
1900 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1901 pacify GCC.
1902
54c2a1e6
AC
19032002-10-01 Andrew Cagney <ac131313@redhat.com>
1904
1905 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1906 "vrsave"'s register number.
1907
cedea778
AC
19082002-09-30 Andrew Cagney <ac131313@redhat.com>
1909
1910 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1911 use frame_unwind_signed_register to obtain the PC.
1912 (mips_frame_chain): Handle a generic dummy frame.
1913 (mips_init_extra_frame_info): When a generic dummy frame, don't
1914 re-compute the frame base.
1915 (mips_pop_frame): Handle generic dummy frames.
1916 (mips_gdbarch_init): When generic dummy frames, set
1917 use_generic_dummy_frames, push_dummy_frame to
1918 generic_push_dummy_frame, pc_in_call_dummy to
1919 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1920 generic_save_dummy_frame_tos.
1921
68315eb8
AC
19222002-09-30 Andrew Cagney <ac131313@redhat.com>
1923
1924 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1925 against TOP when TOP was explictly set.
1926 (generic_push_dummy_frame): Set TOP to zero.
1927
3b8630c3
EZ
19282002-09-30 Elena Zannoni <ezannoni@redhat.com>
1929
1930 * event-loop.c (start_event_loop): Rename variable 'result' to
1931 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1932
28ee05e9
KS
19332002-09-30 Keith Seitz <keiths@redhat.com>
1934
1935 * gdb-events.sh (selected_thread_changed): New event.
1936 * gdb-events.c: Regenerated.
1937 * gdb-events.h: Regenerated.
1938
6eecb1c8
HPN
19392002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1940
1941 * MAINTAINERS: Add self to Write After Approval list.
1942
92df71f0
FN
19432002-09-30 Fernando Nasser <fnasser@redhat.com>
1944
3b8630c3
EZ
1945 * disasm.c: New file.
1946 * disasm.h: New file.
92df71f0
FN
1947 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1948 (compare_lines): Ditto.
1949 (dump_insns): Ditto.
3b8630c3
EZ
1950 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1951 argument.
92df71f0 1952 (do_assembly_only): Ditto.
3b8630c3
EZ
1953 (do_disassembly): Renamed to gdb_disassembly and moved to
1954 disasm.c. Sdded uiout argument.
1955 * Makefile.in: Add new files. Reorder SFILES list. Update
1956 dependencies. Include libgdb.a later in the insight executable.
92df71f0 1957
0c22854d
AC
19582002-09-29 Andrew Cagney <ac131313@redhat.com>
1959
1960 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1961 bfd/elf64-alpha-fbsd.c.
1962
e67f2023
AC
19632002-09-29 Andrew Cagney <ac131313@redhat.com>
1964
1965 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1966 i386gnu-tdep.c.
1967
89396210
AC
19682002-09-29 Andrew Cagney <ac131313@redhat.com>
1969
1970 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1971 __FUNCTION__.
1972 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1973 function name.
1974 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1975 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1976 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1977 (S_msg_sig_post_reply): Ditto.
1978
7079c36c
CV
19792002-09-28 Corinna Vinschen <vinschen@redhat.com>
1980
89396210
AC
1981 * sh-tdep.c (sh_use_struct_convention): Use definition according
1982 to ABI.
7079c36c
CV
1983 (sh_push_arguments): Store in register with correct endianess.
1984 (sh_default_store_return_value): Ditto.
1985 (sh_gdbarch_init): Set sizeof long double to 8.
1986
975ac915
MK
19872002-09-27 Mark Kettenis <kettenis@gnu.org>
1988
1989 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1990 Fix some whitespace problems.
1991
9bbe19fb
DC
19922002-09-27 David Carlton <carlton@math.stanford.edu>
1993
1994 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1995 (mcore-tdep.o): Ditto.
1996 (ns32k-tdep.o): Ditto.
1997 (ns32knbsd-tdep.o): Ditto.
1998 (sh3-rom.o): Ditto.
1999 (vax-tdep.o): Ditto.
2000 * cris-tdep.c: #include "gdb_string.h"
2001 * mcore-tdep.c: Ditto.
2002 * ns32k-tdep.c: Ditto.
2003 * ns32knbsd-tdep.c: Ditto.
2004 * sh3-rom.c: Ditto.
2005 * vax-tdep.c: Ditto.
2006
43b2fdc7
DC
20072002-09-27 David Carlton <carlton@math.stanford.edu>
2008
2009 * config/djgpp/fnchange.lst: Add entries for
2010 gdb/testsuite/gdb.c++/m-static files.
2011
e8cfbbd9
JW
20122002-09-27 Jim Wilson <wilson@redhat.com>
2013
2014 * MAINTAINERS: Add myself to the Write After Approval list.
2015
43b2fdc7 20162002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2017
2018 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2019
2020
9f3b7f07
AC
20212002-09-26 Andrew Cagney <ac131313@redhat.com>
2022
2023 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2024 frame.
2025
11269d7e
AC
20262002-09-26 Andrew Cagney <ac131313@redhat.com>
2027
2028 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2029 (rs6000_struct_return_address): Delete variable.
2030 (rs6000_store_struct_return): Update.
2031 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2032 deprecated_extract_struct_value_address.
2033 (rs6000_frame_align): New function.
2034 (rs6000_gdbarch_init): Set frame_align.
2035
f15ab4a7
AC
20362002-09-26 Andrew Cagney <ac131313@redhat.com>
2037
2038 From Grace Sainsbury <graces@redhat.com>:
2039 * Makefile.in (gdbtk-main.o): New target.
2040 (gdb.o): New target.
2041 (main_h): Define.
2042 (main.o): Update dependencies.
2043 (gdb$(EXEEXT)): Add gdb.o.
2044 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2045 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2046 (SUBDIR_GDBTK_CLEAN): Set.
2047 (install-gdbtk): Install the insight binary.
2048 (uninstall-gdbtk): New target.
2049 (all-gdbtk, clean-gdbtk): New rule.
2050 * top.c (use_windows): Default to zero.
2051 * main.c: Include "main.h".
2052 (main): Delete.
2053 (struct captured_main_args): Delete.
2054 (gdb_main): New function.
2055 * main.h: New file.
2056 * gdb.c: New File.
2057
e36180d7
AC
20582002-09-25 Andrew Cagney <cagney@redhat.com>
2059
2060 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2061 (frame_map_regnum_to_name): New function.
2062 (frame_map_name_to_regnum): New function.
2063 * frame.h (frame_map_name_to_regnum): Declare.
2064 (frame_map_regnum_to_name): Declare.
2065 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2066 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2067 * parse.c: Do not include "builtin-regs.h".
2068 (target_map_name_to_register): Delete function.
2069 (write_dollar_variable): Use frame_map_name_to_regnum.
2070 * parser-defs.h (target_map_name_to_register): Delete declaration.
2071 * expprint.c: Include "frame.h".
2072 (print_subexp): Use frame_map_regnum_to_name.
2073 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2074 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2075
8b69000d
AC
20762002-09-25 Andrew Cagney <ac131313@redhat.com>
2077
2078 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2079 wasn't saved, and the next innermost frame is a dummy, return the
2080 dummy frame's link register.
2081
046ca86a
JB
20822002-09-24 Jim Blandy <jimb@redhat.com>
2083
2084 Fix from Paul Breed:
2085 * main.c (captured_main): Add a `break' after the case for 'b'.
2086
94b66fa7
KS
20872002-09-24 Keith Seitz <keiths@redhat.com>
2088
2089 * varobj.c (c_type_of_child): Use get_target_type instead
2090 of TYPE_TARGET_TYPE.
2091
c214a6fd
FN
20922002-09-22 Fernando Nasser <fnasser@redhat.com>
2093
53cb0458
FN
2094 * source.c (get_current_or_default_source_symtab_and_line): Remove
2095 function.
2096 (set_default_source_symtab_and_line): New function. Attempts to
2097 determine a source file to list lines from if one is not currently
2098 defined.
2099 (get_current_source_symtab_and_line): Initialize sal.pc and
2100 sal.end fields.
2101 (set_current_source_symtab_and_line): Mark argument as const.
2102 * source.h: Update declarations and comments.
2103 * linespec.c (decode_line_1): Replace call to removed routine above.
2104 * stack.c (print_frame_info_base): Ditto.
2105 * cli/cli-cmds.c (edit_command): Ditto.
2106 (list_command): Ditto.
2107
21082002-09-22 Fernando Nasser <fnasser@redhat.com>
2109
d6020d45 2110 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2111 sal.pc and sal.end fields.
c214a6fd
FN
2112 (get_current_or_default_source_symtab_and_line): Ditto.
2113 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2114 so we do not cause a new source symtab to be searched for (reverting an
2115 unintentional change from the 2002-09-20 patch).
2116 * scm-lang.c (scm_unpac): Ditto.
2117
cc3b68a5
AC
21182002-09-21 Andrew Cagney <cagney@redhat.com>
2119
2120 * complaints.c (symfile_explanations): Remove new-line from
2121 ``isolated_message''.
2122 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2123 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2124
5835abe7
NC
21252002-09-20 Nick Clifton <nickc@redhat.com>
2126
2127 * NEWS: Announce that V850EA ISA is no longer supported.
2128 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2129
a15ef5f5
DC
21302002-09-20 David Carlton <carlton@math.stanford.edu>
2131
06ba1b39
DC
2132 * Makefile.in (c-lang.o): Correct dependencies.
2133 (utils.o): Gather dependencies.
2134 (charset.o): Move.
a15ef5f5
DC
2135 * c-lang.c: #include "gdb_string.h"
2136
87885426
FN
21372002-09-20 Fernando Nasser <fnasser@redhat.com>
2138
2139 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2140 * cli/cli-cmds.c (list_command): New function. Implements the new
2141 cli edit command.
2142 (_init_cli_cmds): Add new command definition.
2143 * gdb.1: Document edit command.
2144 * doc/gdb.texinfo: Document edit command.
2145
21462002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2147
2148 * source.c: Make global variables current_source_symtab and
2149 current_source_line static.
2150 (list_command): Moved to cli/cli-cmds.c.
2151 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2152 (get_first_line_listed): New accessor function.
2153 (get_lines_to_list): New accessor function.
2154 (get_current_source_symtab_and_line): New function. Retrieves the
2155 position in the source code that we consider current.
2156 (get_current_or_default_source_symtab_and_line): New function.
2157 Like the above but attempts to determine a default position if one
2158 is not currently defined.
2159 (set_current_source_symtab_and_line): New function. Sets the source
2160 code position considered current and returns the previously set one.
2161 (clear_current_source_symtab_and_line): Reset stored information about
2162 a current source line.
2163 (_initialize_source): Remove registration for the "list" command and
2164 its alias.
2165 * source.h: Add declarations for the new functions above.
2166 * symtab.h: Remove declarations for the global variables mentioned
2167 above.
2168 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2169 obtain current source line.
2170 * linespec.c (decode_line_1): Ditto.
2171 * macroscope.c (default_macro_scope): Ditto.
2172 * scm-lang.c (scm_unpac): Ditto.
2173 * stack.c (print_frame_info_base): Ditto.
2174 * symfile.c (clear_symtab_users): Ditto.
2175 * symtab.c (decode_line_spec): Ditto.
2176 * cli/cli-cmds.c (list_command): Moved here from source.c.
2177 (ambiguous_line_spec): Moved here from source.c.
2178 (_init_cli_cmds): Add definition for "list" and its alias.
2179 * Makefile.in: Update dependencies.
2180
ddd216ea
CV
21812002-09-20 Corinna Vinschen <vinschen@redhat.com>
2182
2183 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2184 with what gcc thinks is correct.
2185
6d305052
CV
21862002-09-20 Corinna Vinschen <vinschen@redhat.com>
2187
2188 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2189 multiple register push instruction.
2190
234b45d4
KB
21912002-09-19 Jim Blandy <jimb@redhat.com>
2192
2193 Add support for distinct host and target character sets.
2194 * charset.c, charset.h: New files.
2195 * c-exp.y: #include "charset.h".
2196 (yylex): Convert character and string literals to the target
2197 character set, before returning them as the semantic value of the
2198 token.
2199 * c-lang.c: #include "charset.h".
2200 (c_emit_char): Use charset-specific methods to recognize
2201 characters with backslash escape forms, to decide which characters
2202 to print literally and which to print using numeric escape
2203 sequences, and to convert target characters to host characters
2204 before printing.
2205 * utils.c: #include "charset.h".
2206 (no_control_char_error): New function.
2207 (parse_escape): Use charset-specific methods to recognize
2208 backslash escapes, parse `control character' notation, and convert
2209 characters from the host character set to the target character set.
2210 * configure.in: Set the default host character set.
2211 Check where to find iconv, and what its argument types might be.
2212 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2213 * Makefile.in (SFILES): List charset.c.
2214 (COMMON_OBS): List charset.o.
2215 (charset.o): New rule.
2216 (charset_h): New header dependency variable.
2217 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2218 (LIBICONV): New variable, set by configure.
2219 (CLIBS): Include $(LIBICONV) here.
2220 * aclocal.m4, config.in, configure: Regenerated.
2221
525d6a61
JB
22222002-09-19 Joel Brobecker <brobecker@gnat.com>
2223
2224 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2225 bison 1.35 warning.
2226
3ed93867
RE
22272002-09-19 Richard Earnshaw <rearnsha@arm.com>
2228
2229 * gdb_mbuild.sh: New file.
2230
437666f8
AC
22312002-09-19 Andrew Cagney <ac131313@redhat.com>
2232
2233 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2234
389e51db
AC
22352002-09-18 Andrew Cagney <ac131313@redhat.com>
2236
2237 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2238 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2239 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2240 valops.c, value.h: Revert previous change.
2241
3b4efeaa
MS
22422002-09-18 Michael Snyder <msnyder@redhat.com>
2243
2244 Preliminary support for Objective-C:
2245 * defs.h (language_objc): New enum value.
2246 (puts_filtered_tabular): Declaration only, exported from utils.c.
2247 (skip_quoted): Delete, declared in completer.h.
2248 * c-exp.y: Include completer.h.
2249 * p-exp.y: Ditto.
2250 * jv-exp.y: Ditto.
2251 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2252 New operator enum values.
2253 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2254 * language.c (binop_result_type): Handle language_objc case.
2255 (integral_type, character_type, string_type, boolean_type,
2256 structured_type, binop_type_check): Ditto.
2257 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2258 (struct objc_specific): Add to general_symbol_info.
2259 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2260 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2261 * parser-defs.h (struct objc_class_str): New struct type.
2262 (start_msglist, end_msglist, add_msglist): Declaration only,
2263 exported from objc-lang.c.
2264 * value.h (value_of_local, value_nsstring,
2265 call_function_by_hand_expecting_type): Exported from valops.c.
2266 * valops.c (find_function_addr): Export.
2267 (call_function_by_hand_expecting_type): New function.
2268 (value_of_local): New function.
2269 * symfile.c (init_filename_language_table): Add ".m" extension
2270 for Objective-C.
2271 * utils.c (puts_filtered_tabular): New function.
2272 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2273 (set/show demangle): Extend help-string to refer to ObjC.
2274 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2275 * stabsread.c (symbol_reference_defined): Objective-C symbols
2276 may contain colons: make allowances when scanning stabs strings
2277 for colons.
2278 (objc_find_colon): New function.
2279 * printcmd.c (address_info): If language == objc then print
2280 "self" instead of "this".
2281 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2282 OP_NSSTRING, and OP_SELF.
2283 (prefixify_subexp): Ditto.
2284 * source.c (print_source_lines): Mention objc in comment.
2285 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2286 method names.
2287
b9caf505
AC
22882002-09-18 Andrew Cagney <ac131313@redhat.com>
2289
2290 * complaints.h: Update copyright.
2291 (struct complaints): Declare.
2292 (struct complaint): Make `message' constant.
2293 (internal_complaint): Declare.
2294 (complaint): Declare.
2295 (complaint_root): Delete declaration.
2296 (symfile_complaints): Delete declaration.
2297 (struct complaints): Add opaque declaration.
2298 (clear_complaints): Add a complaints parameter.
2299 * complaints.c: Update copyright.
2300 (enum complaint_series): Define.
2301 (complaint_root): Delete.
2302 (struct complaints): Define.
2303 (complaint_sentinel, symfile_complaint_book): New variables.
2304 (symfile_explanations, symfile_complaints): New variables.
2305 New variables.
2306 (get_complaints): New function.
2307 (vcomplaint): New function.
2308 (complaint): New function.
2309 (internal_complaint): New function.
2310 (complain): Call vcomplain with symfile_complaint.
2311 (clear_complaints): Rewrite.
2312 (_initialize_complaints): Use add_setshow_command.
2313 * Makefile.in (complaints.o): Update dependencies.
2314 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2315 to call to clear_complaints.
2316 (new_symfile_objfile, reread_symbols): Ditto.
2317 (oldsyms_complaint): Delete.
2318 (empty_symtab_complaint, unknown_option_complaint): Delete.
2319 (free_named_symtabs): Use complaint instead of complain.
2320
d2e6263c
MS
23212002-09-18 Michael Snyder <msnyder@redhat.com>
2322
5fb2031a
AC
2323 Contributed by Apple Computer, Inc. Merged with current sources
2324 by Adam Fedor <fedor@doc.com> [cagney].
2325
d2e6263c
MS
2326 * objc-lang.c: First clean-up round: comments, indentation.
2327 * objc-lang.h: Ditto.
2328 * objc-lang.y: Ditto.
2329
dec43320
AC
23302002-09-18 Andrew Cagney <ac131313@redhat.com>
2331
2332 * maint.c (maintenance_internal_error): Print the parameter as the
2333 error message.
2334 (maintenance_internal_warning): New function.
2335 (_initialize_maint_cmds): Add command `maint internal-warning'.
2336
2337 * defs.h (internal_warning, internal_vwarning): Declare.
2338 * utils.c (struct internal_problem): Define.
2339 (internal_vproblem): New function.
2340 (internal_warning): New function.
2341 (internal_vwarning): New function.
2342 (internal_warning_problem, internal_error_problem): New variables.
2343 (internal_verror): Just call internal_vproblem.
2344
b81654f1
MS
23452002-09-18 Michael Snyder <msnyder@redhat.com>
2346
2347 * objc-lang.c: New file, support for Objective-C.
2348 Preliminary check-in, not yet integrated into gdb.
2349 * objc-lang.h: New file.
2350 * objc-exp.y: New file.
2351
0542c381
AC
23522002-09-18 Andrew Cagney <ac131313@redhat.com>
2353
7bda5e4a
AC
2354 * infrun.c (signal_stop_update): Convert definition to ISO C.
2355 (signal_print_update): Ditto.
2356 (signal_pass_update): Ditto.
2357 * inflow.c (terminal_save_ours): Ditto.
2358
5247b418
AC
2359 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2360 comments.
2361
fc60962c
AC
2362 * config/djgpp/fnchange.lst: Handle name clashes between
2363 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2364 bfd/coff-tic80.c.
2365
0542c381
AC
2366 * i386-linux-tdep.h: Fix tipo.
2367
5b924b9b
AF
23682002-09-18 Adam Fedor <fedor@gnu.org>
2369
2370 * MAINTAINERS: Add myself to the Write After Approval list.
2371
5afc051b
JB
23722002-09-18 Jim Blandy <jimb@redhat.com>
2373
2374 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2375 texthigh and textlow to reader-specific structs caused
2376 objfile_relocate to miss them. This is fixable, but the work that
2377 the change was supposed to prepare GDB for never got done anyway.
2378
eb944380
DC
23792002-09-18 David Carlton <carlton@math.stanford.edu>
2380
2381 * MAINTAINERS: Alphabetize Write After Approval list.
2382
948e66d9
DJ
23832002-09-18 Daniel Jacobowitz <drow@mvista.com>
2384
2385 Fix PR gdb/709
2386 * values.c (value_static_field): Call read_var_value.
2387
dc604539
AC
23882002-09-18 Andrew Cagney <ac131313@redhat.com>
2389
2390 * valops.c (hand_function_call): Align the initial stack pointer
2391 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2392 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2393 return value.
2394 * mips-tdep.c (mips_frame_align): New function.
2395 (mips_gdbarch_init): Set frame_align.
2396 * gdbarch.sh (FRAME_ALIGN): New method.
2397 * gdbarch.h, gdbarch.c: Re-generate.
2398
cb7e422f
ML
23992002-09-18 Michal Ludvig <mludvig@suse.cz>
2400
2401 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2402 registers.
2403
a094c6fb
AC
24042002-09-17 Andrew Cagney <ac131313@redhat.com>
2405
2406 * NEWS: Mention that MIPS $fp behavior changed.
2407 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2408 reference to FP_REGNUM.
2409 (mipsnbsd_cannot_store_register): Ditto.
2410 * mips-linux-nat.c: Update copyright.
2411 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2412 (mips_linux_cannot_store_register): Ditto.
2413 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2414 * config/mips/tm-mips.h: Update copyright.
2415 (FP_REGNUM): Delete macro.
2416 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2417 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2418 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2419 (mips_r3041_reg_names, mips_r3051_reg_names)
2420 (mips_r3081_reg_names): Replace "fp" with "".
2421 Fix PR gdb/480.
2422
45cf40d1
TR
24232002-09-17 Theodore A. Roth <troth@verinet.com>
2424
2425 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2426 generic_read_register_dummy() (PR gdb/703).
2427 (avr_push_return_address): #if 0 out unused vars.
2428 (avr_gdbarch_init): Enable use of avr_push_return_address().
2429
c7e701b5
MS
24302002-09-17 Michael Snyder <msnyder@redhat.com>
2431
d76ba2a5 2432 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2433 RTE will take care of it.
2434
20bcf01c
AC
24352002-09-17 Andrew Cagney <ac131313@redhat.com>
2436
2437 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2438 invalid, return SP_REGNUM.
2439
009a9971 24402002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2441
2442 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2443 point registers without sign extension.
2444
135c175f
AC
24452002-09-17 Andrew Cagney <cagney@redhat.com>
2446
2447 * blockframe.c (deprecated_read_register_dummy): Rename
2448 generic_read_register_dummy.
2449 * frame.c (frame_unwind_signed_register): New function.
2450 (frame_unwind_unsigned_register): New function.
2451 * frame.h (frame_unwind_signed_register): Declare.
2452 (frame_unwind_unsigned_register): Declare.
2453 (deprecated_read_register_dummy): Rename
2454 generic_read_register_dummy.
2455
2456 * h8300-tdep.c (h8300_frame_chain): Update.
2457 (h8300_frame_saved_pc): Update.
2458 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2459 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2460 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2461 (s390_frame_chain): Update.
2462 * v850-tdep.c (v850_find_callers_reg): Update.
2463 (v850_frame_saved_pc): Update.
2464 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2465 (m32r_find_callers_reg): Update.
2466 (m32r_frame_saved_pc): Update.
2467 * sh-tdep.c (sh_find_callers_reg): Update.
2468 (sh64_get_saved_pr): Update.
2469 (sh_init_extra_frame_info): Update.
2470 (sh_init_extra_frame_info): Update.
2471 (sh64_init_extra_frame_info): Update.
2472 (sh64_init_extra_frame_info): Update.
2473 * mcore-tdep.c (mcore_find_callers_reg): Update.
2474 (mcore_frame_saved_pc): Update.
2475 (mcore_init_extra_frame_info): Update.
2476 * i386-tdep.c (i386_frame_saved_pc): Update.
2477 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2478 (ia64_init_extra_frame_info): Update.
2479 (ia64_init_extra_frame_info): Update.
2480 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2481 * cris-tdep.c (cris_init_extra_frame_info): Update.
2482 * avr-tdep.c (avr_frame_chain): Update.
2483 (avr_init_extra_frame_info): Update.
2484 (avr_frame_saved_pc): Update.
2485 * arm-tdep.c (arm_find_callers_reg): Update.
2486 (arm_init_extra_frame_info): Update.
2487 (arm_frame_saved_pc): Update.
2488
a741e514
TT
24892002-09-17 Tom Tromey <tromey@redhat.com>
2490
2491 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2492 is "'".
2493
d1a8e808
CV
24942002-09-17 Corinna Vinschen <vinschen@redhat.com>
2495
2496 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2497 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2498 NEXT_PROLOGUE_INSN.
2499 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2500 NEXT_PROLOGUE_INSN.
2501
d9025a18
JB
25022002-09-16 Joel Brobecker <brobecker@gnat.com>
2503
2504 * osfsolib.c: Remove file, replaced by solib-osf.c.
2505 * Makefile.in: Remove compilation rules for osfsolib.c.
2506
1b2ef1b6
DC
25072002-09-16 David Carlton <carlton@math.stanford.edu>
2508
2509 * cp-valprint.c (cp_print_class_method): Correct args to
2510 check_stub_method_group.
2511
928e48af
CV
25122002-09-16 Corinna Vinschen <vinschen@redhat.com>
2513
2514 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2515 `set architecture'. Unify naming convention of functions.
2516 (h8300_skip_prologue): Improve prologue analysis.
2517 (h8300_push_arguments): Rewritten to more closely match GCC's
2518 bizarre argument-passing behavior, along with the comment describing
2519 said behavior.
2520 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2521 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2522 sim, remote-e7000.c, remote-hms.c and remote.c
2523
5e3397bb
MK
25242002-09-15 Mark Kettenis <kettenis@gnu.org>
2525
2526 * i386-tdep.c (gdb_print_insn_i386): Removed.
2527 (i386_print_insn): New function.
2528 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2529 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2530 tm_print_insn_info.
2531
f710f4fc
MK
25322002-09-14 Mark Kettenis <kettenis@gnu.org>
2533
2534 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2535 zero.
2536
db54fef4
CV
25372002-09-14 Corinna Vinschen <vinschen@redhat.com>
2538
2539 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2540 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2541 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2542
2becadee
CF
25432002-09-13 Christopher Faylor <cgf@redhat.com>
2544
2545 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2546
de17c821
DJ
25472002-09-13 Daniel Jacobowitz <drow@mvista.com>
2548
2549 * gdbtypes.c (check_stub_method): Make static.
2550 (check_stub_method_group): New function.
2551 * gdbtypes.h: Update prototypes.
2552 * cp-support.c: New file.
2553 * cp-support.h: New file.
2554
2555 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2556 (update_method_name_from_physname): New function.
2557 (read_member_functions): Correct method names for operators
2558 and v3 constructors/destructors. Separate v2 constructors and
2559 destructors.
2560 * Makefile.in (stabsread.o): Update dependencies.
2561 (SFILES): Add cp-support.c.
2562 (COMMON_OBS): Add cp-support.o.
2563 (cp_support_h, cp-support.o): Add.
2564
2565 * cp-valprint.c (cp_print_class_method): Call
2566 check_stub_method_group instead of check_stub_method. Remove
2567 extraneous QUITs.
2568 * p-valprint.c (pascal_object_print_class_method): Likewise.
2569 * valops.c (search_struct_method): Likewise.
2570 (find_method_list, value_struct_elt_for_reference): Likewise.
2571
e76cff22
AC
25722002-09-13 Andrew Cagney <cagney@redhat.com>
2573
2574 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2575 * gdbarch.h, gdbarch.c: Regenerate.
2576
905abb3f
AC
25772002-09-13 Andrew Cagney <ac131313@redhat.com>
2578
2579 * frame.c (find_saved_register): Delete function.
2580 * frame.h (find_saved_register): Delete declaration.
2581 Fix PR gdb/631.
2582
64159455
AC
2583Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2584
2585 * mips-tdep.c (read_next_frame_reg): Re-hack using
2586 frame_register_unwind.
2587
795e1e11
AC
2588Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2589
2590 * mips-tdep.c (mips_get_saved_register): Re-hack using
2591 frame_register_unwind.
2592
5720643c
JB
25932002-09-12 Joel Brobecker <brobecker@gnat.com>
2594
2595 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2596 vector. Will be useful for Interix.
2597 * gdbarch.h, gdbarch.c: Regenerate.
2598
2599 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2600 name of the malloc function by NAME_OF_MALLOC.
2601
3bada2a2
JB
26022002-09-12 Joel Brobecker <brobecker@gnat.com>
2603
2604 * value.h (find_function_in_inferior): Add const keyword to
2605 one of the parameters. Allows us to invoke this function with
2606 a const char *.
2607 * valops.c (find_function_in_inferior): Likewise.
2608
3db26b01
JB
26092002-09-12 Joel Brobecker <brobecker@gnat.com>
2610
2611 * exec.c (xfer_memory): Fix compilation warning with old versions
2612 of GCC.
2613 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2614
17c5ed2c
DC
26152002-09-12 David Carlton <carlton@math.stanford.edu>
2616
2617 * symtab.h: Run through gdb_indent.h.
2618 Add 2002 to Copyright year list.
2619
ecd1107e
AM
26202002-09-12 Alan Modra <amodra@bigpond.net.au>
2621
2622 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2623 mach constants.
2624 * MAINTAINERS: Add myself to write after approval list.
2625
e64f66d1
JB
26262002-09-11 J. Brobecker <brobecker@gnat.com>
2627
2628 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2629
f9395794
JB
26302002-09-11 J. Brobecker <brobecker@gnat.com>
2631
2632 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2633 Interix.
2634
1a303dec
MS
26352002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2636
2637 * procfs.c (do_detach): Clear current signal, not just fault.
2638 Corrects problem with breakpoint trap signal leaking to detached
2639 process on Tru64.
2640
c0219d42
MS
26412002-09-10 Michael Snyder <msnyder@redhat.com>
2642
2643 * buildsym.c (finish_block): Protect against null pointer.
2644
9d84ac84
AC
26452002-09-10 Andrew Cagney <cagney@redhat.com>
2646
2647 * infcmd.c (default_print_registers_info): Send all output to
2648 ``file'' instead of ``gdb_stdout''.
2649
77d8f2b4
MS
26502002-09-10 Michael Snyder <msnyder@redhat.com>
2651
2652 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2653 LONGEST, and use signed register read (addresses are sign-
2654 extended for mips).
2655
99656a61
SC
26562002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2657
2658 * event-loop.c (gdb_do_one_event): Make public.
2659 * event-loop.h (gdb_do_one_event): Declare.
2660
da12f4d8
JL
26612002-09-10 Jeff Law <law@redhat.com>
2662
2663 * infttrace.c (child_resume): Simplify and rework to avoid
2664 TT_PROC_CONTINUE.
2665
d0aee0c4
FF
26662002-09-09 Fred Fish <fnf@intrinsity.com>
2667
2668 * printcmd.c (print_scalar_formatted): "len" is the number of
2669 target bytes, NOT the number of target bits.
2670
7cb3ec5e
EZ
26712002-09-09 Elena Zannoni <ezannoni@redhat.com>
2672
2673 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2674 * top.c (init_main): Set rl_terminal_name.
2675
4dc81987
AS
26762002-09-08 Aidan Skinner <aidan@velvet.net>
2677
2678 * ada-lang.c (ada_array_bound, ada_type_match,
2679 _initialize_ada_language): Fix K&R definitions.
2680 * ada-tasks.c (get_current_task): Fix K&R definitions.
2681 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2682
842330b4
CF
26832002-09-07 Christopher Faylor <cgf@redhat.com>
2684
2685 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2686 Add XP.
2687
43156d82
MK
26882002-09-06 Mark Kettenis <kettenis@gnu.org>
2689
66da5fd8
MK
2690 * i386-tdep.c (i386_register_virtual_type,
2691 i386_register_convertible, i386_register_convert_to_virtual,
2692 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2693 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2694 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2695 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2696 Don't set push_arguments twice.
2697
4b218c18
MK
2698 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2699 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2700 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2701 sigtramp_end to NULL.
2702 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2703 defines.
2704 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2705
4cc314d5
MK
2706 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2707 whitespace.
2708
43156d82
MK
2709 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2710 * gdbarch.h, gdbarch.c: Re-generate.
2711 * blockframe.c (find_pc_sect_partial_function): Convert to use
2712 SIGTRAMP_START_P predicate.
2713
6672060b
MS
27142002-09-05 Michael Snyder <msnyder@redhat.com>
2715
a90c3637
MS
2716 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2717 generic_dummy_frame method and old method. Also distinguish
2718 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2719 (arm_extract_return_value): Use new regcache method.
a90c3637 2720
6672060b
MS
2721 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2722 adjustment that doesn't conform to the ABI.
2723 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2724 saved regcache, not from current regcache.
2725
299ffc64
AC
27262002-09-05 Andrew Cagney <ac131313@redhat.com>
2727
2728 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2729 * README: Update.
2730
a3a2ee65
JT
27312002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2732
2733 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2734 if arm_apcs_32 is false.
2735
2bc7eea9
AC
27362002-09-04 Andrew Cagney <ac131313@redhat.com>
2737
2738 GDB 5.3 branch created.
2739
8a55a7c5
TR
27402002-09-03 Theodore A. Roth <troth@verinet.com>
2741
2742 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2743 generic_unwind_get_saved_register.
2744
e26fb1d7
DC
27452002-09-03 David Carlton <carlton@math.stanford.edu>
2746
2747 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2748 argument (PR gdb/653). Update call to smash_to_method_type.
2749 (read_structure_scope): Update call to dwarf2_add_member_fn.
2750
30d52491
ML
27512002-09-03 Michal Ludvig <mludvig@suse.cz>
2752
2753 * x86-64-linux-tdep.c: Include gdb_string.h
2754 * x86-64-linux-nat.c: Ditto.
2755
06891d83
JT
27562002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2757
2758 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2759 when YYDEBUG is set to 1.
2760 * c-exp.y: Likewise.
2761 * f-exp.y: Likewise.
2762 * jv-exp.y: Likewise.
2763 * m2-exp.y: Likewise.
2764 * p-exp.y: Likewise.
2765
7d400e77
JT
27662002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2767
2768 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2769 dependency list.
2770 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2771 solib_svr4_fetch_link_map_offsets to
2772 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2773 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2774 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2775 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2776 solib-svr4.o, and solib-legacy.o.
2777 * config/i386/tm-nbsd.h: Include solib.h.
2778
704a27c4
JT
27792002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2780
2781 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2782 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2783 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2784 comment noting that this needs its own target configuration.
2785 * config/i386/nbsd.mt: New file.
2786 * config/i386/nbsdaout.mt: Remove.
2787 * config/i386/nbsdelf.mt: Ditto.
2788 * config/i386/tm-nbsdaout.h: Ditto.
2789
d66198e1
JT
27902002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2791
2792 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2793 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2794 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2795 tdep->sigtramp_end.
2796 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2797 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2798 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2799
3cac699e
JT
28002002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2801
2802 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2803 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2804 * i386-tdep.h (i386bsd_init_abi): New prototype.
2805 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2806 function declaration.
2807 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2808 for NetBSD-a.out or NetBSD-ELF.
2809 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2810 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2811 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2812 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2813 and nbsd-tdep.h.
2814 (i386nbsd_pc_in_sigtramp): New function.
2815 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2816 i386nbsd_pc_in_sigtramp.
2817 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2818 and i386nbsdelf_init_abi OS ABI handlers.
2819 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2820 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2821
7010ca0a
MK
28222002-09-02 Mark Kettenis <kettenis@gnu.org>
2823
2824 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2825 registers if the target really has them.
2826
6dd93b72
JT
28272002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2828
2829 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2830 than nbsd-tdep.h.
2831
2ca8ae21
JT
28322002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2833
2834 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2835 list.
2836 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2837 (alphanbsd_skip_sigtramp_frame): New functions.
2838 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2839 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2840 to alphanbsd_sigcontext_addr.
2841
3d9b49b0
JT
28422002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2843
2844 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2845 list.
2846 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2847 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2848 nbsd_pc_in_sigtramp.
2849 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2850 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2851 * nbsd-tdep.c: Include gdb_string.h.
2852 (nbsd_pc_in_sigtramp): New function.
2853 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2854 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2855 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2856 ppcnbsd_pc_in_sigtramp.
2857 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2858 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2859 shnbsd_pc_in_sigtramp.
2860 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2861 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2862 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2863
c860120c
PM
28642002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2865
2866 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2867 watchpoints to NULL.
2868 (insert_breakpoints): set val field of watchpoints if NULL.
2869
2870
c7612d53
JB
28712002-08-29 Jim Blandy <jimb@redhat.com>
2872
2873 * symtab.c (lookup_symbol_aux): In the cases where we find a
2874 minimal symbol of an appropriate name and use its address to
2875 select a symtab to read and search, use `name' (as passed to us)
2876 as the demangled name when searching the symtab's global and
2877 static blocks, not the minsym's name.
2878
66609862
KS
28792002-08-29 Keith Seitz <keiths@redhat.com>
2880
2881 * stack.c (print_frame_info_base): Always set current_source_symtab
2882 and current_source_line.
2883
151fefe2
JB
28842002-08-29 Donn Terry <donnte@microsoft.com>
2885
2886 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2887
bfb3754e
KS
28882002-08-28 Keith Seitz <keiths@redhat.com>
2889
2890 * stack.c (select_frame): Add FIXME concerning selected-frame
2891 events.
2892 (select_frame_command): Send selected-frame-level-changed
2893 event notification, but only if the level actually changed.
2894 (up_silently_base): Add selected-frame-level-changed event
2895 notification.
2896 (down_silently_base): Likewise.
2897
e822a2a0
AC
28982002-08-28 Andrew Cagney <ac131313@redhat.com>
2899
2900 * Makefile.in: Update dependencies for all gdb/*.c files.
2901
309367d4
TT
29022002-08-27 Tom Tromey <tromey@redhat.com>
2903
2904 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2905 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2906 Update dependencies.
2907 * i387-tdep.c: Include gdb_string.h.
2908 * osabi.c: Likewise.
2909 * i386-linux-nat.c: Likewise.
2910 * lin-lwp.c: Likewise.
2911 * ax-gdb.c: Likewise.
2912 * signals/signals.c: Likewise.
2913 * jv-valprint.c: Likewise.
2914 * p-lang.c: Likewise.
2915 * c-valprint.c: Likewise.
2916 * cp-abi.c: Likewise.
2917
e1507482
EZ
29182002-08-27 Elena Zannoni <ezannoni@redhat.com>
2919
2920 * cli/cli-script.h (copy_command_lines): Export.
2921 * breakpoint.c: Include cli/cli-script.h.
2922 * Makefile.in (breakpoint.o): Update dependencies.
2923
c6510018
MS
29242002-08-26 Michael Snyder <msnyder@redhat.com>
2925
2926 * breakpoint.c (insert_breakpoints): Protect all references
2927 to 'process_warning'. Shorten long lines.
2928
c2b8ed2c
MS
29292002-08-26 Joel Brobecker <brobecker@gnat.com>
2930
2931 * cli/cli-script.c (copy_command_lines): New function.
2932 * defs.h (copy_command_lines): Export.
2933 * testsuite/gdb.base/commands.exp: New tests for commands
2934 attached to a temporary breakpoint, and for commands that
2935 delete the breakpoint they are attached to.
2936
29372002-08-26 Michael Snyder <msnyder@redhat.com>
2938
2939 * breakpoint.c (bpstat_stop_status): Instead of copying the
2940 pointer to the breakpoint commands struct, make a new copy
2941 of the struct and point to that.
2942 (bpstat_clear): Free the commands struct.
2943 (bpstat_clear_actions): Free the commands struct.
2944 (bpstat_do_actions): Free the command actions. Also execute
2945 the local cleanups, instead of deleting them.
2946 (delete_breakpoint): Leave the commands field of the bpstat
2947 chain alone -- it will be freed later.
2948
64b84175
KB
29492002-08-26 Kevin Buettner <kevinb@redhat.com>
2950
2951 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2952 deleted in 2002-08-20 commit. This function is still used by
2953 ppc-linux-nat.c.
2954
55970da6
KS
29552002-08-26 Keith Seitz <keiths@redhat.com>
2956
2957 * gdb-events.sh: Add selected-frame-level-changed event.
2958 * gdb-events.c: Regenerated.
2959 * gdb-events.h: Regenerated.
2960
a790ad35
SC
29612002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2962
2963 Fix PR gdb/393:
2964 * inflow.c (terminal_save_ours): New function to save terminal
2965 settings.
2966 * inferior.h (terminal_save_ours): Declare.
2967 * target.c (debug_to_terminal_save_ours): New function.
2968 (cleanup_target): Defaults to_terminal_save_ours.
2969 (update_current_target): Inherit to_terminal_save_ours.
2970 (setup_target_debug): Set to_terminal_save_ours.
2971 * target.h (target_terminal_save_ours): New to save terminal settings.
2972 (target_ops): New member to_terminal_save_ours.
2973 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2974 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2975 * inftarg.c (init_child_ops): Likewise.
2976 * m3-nat.c (init_m3_ops): Likewise.
2977 * procfs.c (init_procfs_ops): Likewise.
2978 * wince.c (init_child_ops): Likewise.
2979 * win32-nat.c (init_child_ops): Likewise.
2980 * sol-thread.c (init_sol_thread_ops): Likewise.
2981
c00dcbe9
MK
29822002-08-26 Mark Kettenis <kettenis@gnu.org>
2983
3d7f4f49
MK
2984 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2985 use regcache_* functions.
2986 (i386_gdbarch_init): Set store_return_value instead of
2987 deprecated_store_return_value.
2988
c00dcbe9
MK
2989 * regcache.c (regcache_raw_write_signed,
2990 regcache_raw_write_unsigned): New functions.
2991 * regcache.h (regcache_raw_write_signed,
2992 regcache_raw_write_unsigned): New prototypes.
2993
0e0d15ca
AC
29942002-08-25 Andrew Cagney <ac131313@redhat.com>
2995
2996 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2997 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2998 source file dependencies. Cleanup corresponding generator rules.
2999
d3b22ed5
AC
30002002-08-25 Andrew Cagney <ac131313@redhat.com>
3001
3002 * regcache.h (register_offset_hack): Declare.
3003 (regcache_cooked_read_using_offset_hack): Declare.
3004 (regcache_cooked_write_using_offset_hack): Declare.
3005
3006 * regcache.c (register_offset_hack): New function.
3007 (regcache_cooked_read_using_offset_hack): New function.
3008 (regcache_cooked_write_using_offset_hack): New function.
3009 (regcache_dump): Check that the registers, according to their
3010 offset, are packed hard against each other.
3011 (cooked_xfer_using_offset_hack): New function.
3012
bb425013
AC
30132002-08-25 Andrew Cagney <ac131313@redhat.com>
3014
3015 * regcache.c (struct regcache_descr): Add field register_type.
3016 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3017 in as a parameter
3018 (init_regcache_descr): Initialize register_type. Pass the descr
3019 to init_legacy_regcache_descr. Use register_type instead of
3020 REGISTER_VIRTUAL_TYPE.
3021 (register_type): New function.
3022 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3023 * regcache.h (register_type): Declare.
3024
d0403e00
AC
30252002-08-25 Andrew Cagney <ac131313@redhat.com>
3026
3027 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3028 instead of deprecated_store_return_value. Fix fallout from
3029 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3030
0ed04cce
AC
30312002-08-25 Andrew Cagney <ac131313@redhat.com>
3032
3033 * regcache.c (max_register_size): New function.
3034 (init_legacy_regcache_descr): Ensure that max_register_size is
3035 large enough for REGISTER_VIRTUAL_SIZE.
3036 * regcache.h (max_register_size): Declare.
3037
46d79c04
AC
30382002-08-24 Andrew Cagney <ac131313@redhat.com>
3039
3040 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3041 store_return_value.
3042 (e500_extract_return_value): Change type of valbuf pointer to
3043 void.
3044
853c7bd0
MK
30452002-08-24 Mark Kettenis <kettenis@gnu.org>
3046
cd87e769
MK
3047 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3048 workaround.
3049
853c7bd0
MK
3050 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3051 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3052 long long) to prevent compiler warning on 64-bit systems.
3053
ebba8386
AC
30542002-08-23 Andrew Cagney <cagney@redhat.com>
3055
3056 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3057 (DEPRECATED_STORE_RETURN_VALUE): New method.
3058 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3059 * gdbarch.h, gdbarch.c: Re-generate.
3060
3061 * values.c (set_return_value): Pass current_regcache to
3062 STORE_RETURN_VALUE.
3063 * arch-utils.h (legacy_store_return_value): Declare.
3064 * arch-utils.c (legacy_store_return_value): New function.
3065 (legacy_extract_return_value): Update parameters.
3066
3067 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3068 STORE_RETURN_VALUE.
3069 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3070 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3071 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3072 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3073 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3074 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3075 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3076 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3077 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3078 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3079
3080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3081 * i386-tdep.c (i386_extract_return_value): Update.
3082 * arch-utils.c (legacy_extract_return_value): Update.
3083 * frv-tdep.c (frv_gdbarch_init): Update.
3084 * cris-tdep.c (cris_gdbarch_init): Update.
3085 * d10v-tdep.c (d10v_gdbarch_init): Update.
3086 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3087 * m68k-tdep.c (m68k_gdbarch_init): Update.
3088 * mcore-tdep.c (mcore_gdbarch_init): Update.
3089 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3090 * s390-tdep.c (s390_gdbarch_init): Update.
3091 * sparc-tdep.c (sparc_gdbarch_init): Update.
3092 * sh-tdep.c (sh_gdbarch_init): Update.
3093 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3094 * v850-tdep.c (v850_gdbarch_init): Update.
3095 * avr-tdep.c (avr_gdbarch_init): Update.
3096 * ia64-tdep.c (ia64_gdbarch_init): Update.
3097 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3098 * vax-tdep.c (vax_gdbarch_init): Update.
3099 * alpha-tdep.c (alpha_gdbarch_init): Update.
3100 * arm-tdep.c (arm_gdbarch_init): Update.
3101 * mips-tdep.c (mips_gdbarch_init): Update.
3102 * i386-tdep.c (i386_gdbarch_init): Update.
3103
5bd8c6d0
AC
31042002-08-23 Andrew Cagney <ac131313@redhat.com>
3105
3106 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3107 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3108
e73e1724
MK
31092002-08-24 Mark Kettenis <kettenis@gnu.org>
3110
3111 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3112 problems.
3113
3e6564e1
JB
31142002-08-23 Joel Brobecker <brobecker@gnat.com>
3115
3116 * infrun.c (handle_inferior_event): Move a comment outside of a
3117 function call, in order to avoid indent reformatting this part
3118 of the code in an unreadable way.
3119
81d0cc19
GS
31202002-08-23 Grace Sainsbury <graces@redhat.com>
3121
3122 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3123 when breakpoints fail. Move general breakpoint error messages to
3124 insert_breakpoints.
3125 * breakpoint.c (insert_breakpoints): Change warnings when
3126 breakpoints are nto inserted to specify the type. Remove call to
3127 memory_error when hardware breakpoints can't be inserted. Remove
3128 multiple calls to warning so all messages are sent to the user at
3129 once.
3130 (delete_breakpoints): Make insert error messsages more explicit.
3131
17574093
DJ
31322002-08-23 Daniel Jacobowitz <drow@mvista.com>
3133
3134 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3135 gdbserver/ChangeLog.
3136
8acc2935
MK
31372002-08-23 Mark Kettenis <kettenis@gnu.org>
3138
dfe01d39
MK
3139 * i386-tdep.c: Include "objfiles.h".
3140 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3141 skip_trampoline_code.
3142 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3143 (CPLUS_MARKER): Define to '.'.
3144
8acc2935
MK
3145 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3146 member.
3147 (linux_corefile_thread_callback): Increase args->num_notes.
3148 (linux_make_note_section): Initialize thread_args.num_notes, and
3149 use it to determine whether notes for any threads were created.
3150
151fefe2 31512002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3152
3153 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3154 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3155 and PCUNKILL.
3156 (write_with_trace): Conditionalize out the switch branch handling
3157 PCSHOLD if the corresponding macro is not defined. Likewise for
3158 PRSABORT and PRSTOP.
3159 This change will be needed by the Interix port.
3160
e1507482
EZ
31612002-08-22 Elena Zannoni <ezannoni@redhat.com>
3162
3163 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3164 write_register wherever possible instead of manipulating the
3165 register bytes directly.
3166 Assign VALUE_CONTENTS to a variable and use that.
3167 The GPR numbers are now dependent on the architecture.
3168
96ff0de4
EZ
31692002-08-22 Elena Zannoni <ezannoni@redhat.com>
3170
3171 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3172 ev_offset fields.
3173 (skip_prologue): Add support for BookE/e500 instructions.
3174 (e500_extract_return_value): New function.
3175 (frame_get_saved_regs): Add support for saving ev registers and
3176 pseudo gpr's.
3177 (e500_store_return_value): New function.
3178 (rs6000_gdbarch_init): Move up default intializations of
3179 deprecated_extract_return_value and store_return_value. Overwrite
3180 init of store_return_value with e500 specific version.
3181 Set extract_return_value for e500.
3182
fbefca5b
EZ
31832002-08-22 Elena Zannoni <ezannoni@redhat.com>
3184
3185 * blockframe.c (generic_call_dummy_register_unwind): Use
3186 regcache_cooked_read to catch cases in which the variable is
3187 stored in a pseudo register.
3188
4d210288
AC
31892002-08-22 Andrew Cagney <cagney@redhat.com>
3190
3191 * NEWS: Mention that the i960 has been made obsolete.
3192 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3193 i960-tdep.c
3194 (remote-nrom.o): Obsolete target.
3195 (remote-nindy.o, i960-tdep.o): Ditto.
3196 * remote-nrom.c: Make file obsolete.
3197 * remote-nindy.c, remote-vx960.c: Ditto.
3198 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3199 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3200 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3201 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3202 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3203 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3204 i960-*-vxworks* obsolete.
3205 * MAINTAINERS: Note that the i960 is obsolete.
3206
6c0c456d
CV
32072002-08-21 Corinna Vinschen <vinschen@redhat.com
3208
3209 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3210 detach to allow reinitialization.
3211
9f9d12b3
AC
32122002-08-22 Andrew Cagney <ac131313@redhat.com>
3213
3214 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3215 attempt).
3216
ebeb39fe
JB
32172002-08-22 Jim Blandy <jimb@redhat.com>
3218
3219 * coffread.c (coff_symfile_read): Don't try to read the line
3220 number table from disk if the image file doesn't have a symbol
3221 table; we'll never actually look at the info anyway, and Windows
3222 ships DLL's with bogus file offsets for the line number data.
3223
5bf1c677
EZ
32242002-08-21 Elena Zannoni <ezannoni@redhat.com>
3225
3226 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3227 an e500 executable.
3228
71b8ef93
MS
32292002-08-21 Michael Snyder <msnyder@redhat.com>
3230
3231 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3232 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3233 (DEFAULT_MIPS_TYPE): Delete unused macro.
3234 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3235 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3236
d174216d
JB
32372002-08-21 Jim Blandy <jimb@redhat.com>
3238
3239 * valops.c (value_cast): Simplify and correct logic for doing a
3240 static cast from a pointer to a base class to a pointer to a
3241 derived class.
3242
0ab7a791
AC
32432002-08-21 Andrew Cagney <ac131313@redhat.com>
3244
3245 * infcmd.c (default_print_registers_info): Replace
3246 do_registers_info.
3247 (registers_info): Use gdbarch_print_registers_info instead of
3248 DO_REGISTERS_INFO.
3249 * inferior.h (default_print_registers_info): Replace
3250 do_registers_info.
3251 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3252 (DO_REGISTERS_INFO): Change to a predicate function.
3253 * gdbarch.h, gdbarch.c: Regenerate.
3254
e23792cc
KS
32552002-08-21 Keith Seitz <keiths@redhat.com>
3256
3257 * gdb-events.sh: Add target-changed event.
3258 * gdb-events.c: Regenerated.
3259 * gdb-events.c: Regenerated.
3260 * valops.c (value_assign): Add target-changed event notification
3261 to inlval_register, lval_memory, and lval_reg_frame_relative.
3262
9fb14e79
JB
32632002-08-21 Joel Brobecker <brobecker@gnat.com>
3264
3265 * NEWS: Add an entry regarding the improvement of the next/step
3266 operation on Alpha Tru64 multi-processor machines.
3267
6d39a69f
AC
32682002-08-21 Andrew Cagney <ac131313@redhat.com>
3269
72acd513
AC
3270 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3271 directores.
342af04b 3272 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3273 * Makefile.in (install-gdbtk): Move to install section.
3274 (rdi-share/libangsd.a): Move to end of file.
3275
fa5f27c7
AC
32762002-08-19 Andrew Cagney <ac131313@redhat.com>
3277
3278 * frame.c (frame_register_unwind): When a register, set addrp to
3279 the register's byte.
3280
5a89d8aa
MS
32812002-08-20 Michael Snyder <msnyder@redhat.com>
3282
3283 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3284 used locally, so move them from the target machine header to here.
3285 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3286 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3287 Make static.
3288 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3289
822e978b
AC
32902002-08-20 Andrew Cagney <cagney@redhat.com>
3291
3292 * NEWS: Mention that the Apollo line was made obsolete.
3293 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3294 m68*-hp-hpux* obsolete.
3295 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3296 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3297 * buildsym.c (make_blockvector): Make static.
3298 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3299 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3300 (ALLDEPFILES): Remove dstread.c.
3301 (dstread.o): Obsolete make rule.
3302 * dstread.c: Makefile obsolete.
3303 * dst.h: Ditto.
3304 * config/m68k/hp300hpux.mt: Ditto.
3305 * config/m68k/hp300hpux.mh: Ditto.
3306 * config/m68k/hp300bsd.mt: Ditto.
3307 * config/m68k/hp300bsd.mh: Ditto.
3308 * config/m68k/apollo68b.mt: Ditto.
3309 * config/m68k/apollo68v.mh: Ditto.
3310 * config/m68k/apollo68b.mh: Ditto.
3311
e41b17f0
MS
33122002-08-20 Michael Snyder <msnyder@redhat.com>
3313
3314 * mips-tdep.c (mips_in_return_stub): Make static.
3315 (mips_gdbarch_init): Set in_solib_return_trampoline.
3316 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3317
d50355b6
MS
33182002-08-20 Michael Snyder <msnyder@redhat.com>
3319
3320 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3321 * gdbarch.c, gdbarch.h: Regenerate.
3322 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3323 Add.
3324 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3325
757a7cc6
MS
33262002-08-20 Michael Snyder <msnyder@redhat.com>
3327
3328 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3329 (mips_gdbarch_init): Set skip_trampoline_code,
3330 in_solib_call_trampoline.
3331 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3332 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3333
c8001721
EZ
33342002-08-20 Elena Zannoni <ezannoni@redhat.com>
3335
3336 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3337
3338 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3339 vector type for ev registers.
3340 (e500_pseudo_register_read): New function.
3341 (e500_pseudo_register_write): New function.
3342 (e500_dwarf2_reg_to_regnum): New function.
3343 (PPC_UISA_NOFP_SPRS): New macro.
3344 (PPC_EV_REGS): New macro.
3345 (PPC_GPRS_PSEUDO_REGS): New macro.
3346 (registers_e500): New register set for e500.
3347 (variants): Add e500 variant.
3348 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3349 before setting architectural dependent variations. Initialize ev
3350 registers numbers. Add case for e500 architecture. Set the
3351 number of pseudo registers.
3352
64366f1c
EZ
33532002-08-20 Elena Zannoni <ezannoni@redhat.com>
3354
3355 * rs6000-tdep.c: Clean up comments.
3356
7e78f0ca
AC
33572002-08-20 Andrew Cagney <cagney@redhat.com>
3358
3359 * h8300-tdep.c: Re-indent file.
3360
697f7479
JB
33612002-08-20 Jim Blandy <jimb@redhat.com>
3362
3363 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3364 default for this.
697f7479 3365
e86ae29f
KS
33662002-08-20 Keith Seitz <keiths@redhat.com>
3367
3368 * breakpoints.c (watch_command_1): Use internal breakpoint
3369 when setting a watchpoint_scope breakpoint.
3370
216b504f
EZ
33712002-08-20 Elena Zannoni <ezannoni@redhat.com>
3372
3373 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3374 (build_builtin_type_vec64i): Ditto.
3375 (build_builtin_type_vec128): Ditto.
3376 (build_builtin_type_vec128i): Ditto.
3377
f7ab6ec6
MS
33782002-08-19 Michael Snyder <msnyder@redhat.com>
3379
3380 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3381 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3382 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3383 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3384 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3385 CALL_DUMMY_ADDRESS): Delete.
3386 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3387 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3388 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3389 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3390 push_return_address.
3391 (mips_register_raw_size, mips_eabi_use_struct_convention,
3392 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3393 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3394 mips_init_extra_frame_info, mips_eabi_push_arguments,
3395 mips_n32n64_push_arguments, mips_push_return_address,
3396 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3397 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3398
b5d1566e
MS
33992002-08-19 Michael Snyder <msnyder@redhat.com>
3400
3401 * mips-tdep.c (mips_frame_num_args): New function.
3402 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3403 frame_saved_pc, frame_args_address, frame_locals_address,
3404 frame_num_args, and frame_args_skip.
3405 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3406 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3407 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3408 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3409
2f1488ce
MS
34102002-08-20 Michael Snyder <msnyder@redhat.com>
3411
3412 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3413 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3414 * mips-tdep.c (mips_store_struct_return): New function.
3415 (mips_extract_struct_value_address): New function.
3416 (mips_gdbarch_init): Set store_struct_return and
3417 extract_struct_value_address.
3418
41ff2da1
DC
34192002-08-20 David Carlton <carlton@math.stanford.edu>
3420
3421 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3422 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3423 (read_file_scope): Check that line_header is nonzero before
3424 decoding macro information.
3425
e5451d58
MK
34262002-08-20 Mark Kettenis <kettenis@gnu.org>
3427
3428 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3429 flag the general-purpose registers as floating-point on targets
3430 that don't support the floating-point registers.
3431
4a6daafa
EZ
34322002-08-20 Elena Zannoni <ezannoni@redhat.com>
3433
3434 * rs6000-tdep.c (altivec_register_p): Delete.
3435 (rs6000_do_altivec_registers): Delete.
3436 (rs6000_altivec_registers_info): Delete.
3437 (rs6000_do_registers_info): Delete.
3438 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3439 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3440
ab4327e0
EZ
34412002-08-20 Elena Zannoni <ezannoni@redhat.com>
3442
3443 * infcmd.c (do_registers_info): Print vector registers in hex
3444 format only.
3445 (print_vector_info): Check that printing registers
3446 makes sense.
3447 (print_float_info): Ditto.
3448
cb1d2653
AC
34492002-08-20 Andrew Cagney <ac131313@redhat.com>
3450
3451 * mips-tdep.c (mips_gdbarch_init): Update.
3452 (mips_o32_extract_return_value): Rewrite.
3453 (mips_o32_store_return_value): Rewrite.
3454 (mips_o32_xfer_return_value): New function.
3455 (mips_xfer_register): Tweak debug print message. Allow for
3456 buf_offset when dumping the value transfered.
3457
dfc3d9b2
AC
34582002-08-20 Andrew Cagney <ac131313@redhat.com>
3459
3460 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3461 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3462 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3463 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3464 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3465
7807aa61
MS
34662002-08-14 Michael Snyder <msnyder@redhat.com>
3467
3468 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3469
489461e2
EZ
34702002-08-19 Elena Zannoni <ezannoni@redhat.com>
3471
3472 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3473 register.
3474 (P): New macro to define a register as a pseudo register.
3475 (R, R4, R8, R16, FR32, R64, R0): Updated.
3476 (struct variant): Add new fields for number of pseudo registers
3477 and number of total registers.
3478 (tot_num_registers): New macro replacing....
3479 (num_registers): ...deleted macro.
3480 (num_registers): New function.
3481 (num_pseudo_registers): New function.
3482 (variants): Update all variants to intialize new fields correctly.
3483 Postpone initialization of number of pseudo regs and real regs.
3484 (init_variants): New function.
3485 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3486 registers offsets.
3487
fcaffe4c
DC
34882002-08-19 David Carlton <carlton@math.stanford.edu>
3489
2c2738a0
DC
3490 * valops.c (search_struct_field): Change error message to treat
3491 return value of 0 from value_static_field as meaning that field is
3492 optimized out.
3493 (value_struct_elt_for_reference): Ditto.
3494 * values.c (value_static_field): Treat an unresolved location the
3495 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3496 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3497 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3498 * MAINTAINERS: Add self to Write After Approval list.
3499
88658117
AC
35002002-08-19 Andrew Cagney <ac131313@redhat.com>
3501
3502 * mips-tdep.c (mips_xfer_register): New function.
3503 (mips_n32n64_extract_return_value): Rewrite.
3504 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3505 instead of deprecated_extract_return_value.
3506
21283beb
EZ
35072002-08-19 Elena Zannoni <ezannoni@redhat.com>
3508
3509 * rs6000-tdep.c (TDEP): Delete macro.
3510 (branch_dest): Replace use of TDEP macro with its body.
3511 (rs6000_pop_frame): Ditto.
3512 (rs6000_push_arguments): Ditto.
3513 (rs6000_skip_trampoline_code): Ditto.
3514 (rs6000_frame_saved_pc): Ditto.
3515 (rs6000_frame_chain): Ditto.
3516 (rs6000_register_name): Ditto.
3517 (rs6000_register_byte): Ditto.
3518 (rs6000_register_raw_size): Ditto.
3519 (rs6000_register_virtual_type): Ditto.
3520 (rs6000_register_convertible): Ditto.
3521 (rs6000_convert_from_func_ptr_addr): Ditto.
3522
bf072999
DJ
35232002-08-19 Daniel Jacobowitz <drow@mvista.com>
3524
3525 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3526 conditionally.
3527 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3528 MIPS_LINUX_JB_ELEMENT_SIZE.
3529 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3530 for MAX_REGISTER_RAW_SIZE arrays.
3531 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3532 MIPS_LINUX_JB_ELEMENT_SIZE.
3533
9b949a49
PM
35342002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3535
3536 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3537
6d3e79c6
AS
35382002-08-19 Aidan Skinner <aidan@velvet.net>
3539
3540 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3541 ada-valprint.c ada-tasks.c.
3542 (YYFILES): Add ada-exp.y.
3543 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3544 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3545 (ada-exp.tab.o): New target.
3546
06c0b04e
AC
35472002-08-18 Andrew Cagney <ac131313@redhat.com>
3548
3549 * regcache.c (regcache_xfer_part): New function.
3550 (regcache_raw_read_part): New function.
3551 (regcache_raw_write_part): New function.
3552 (regcache_cooked_read_part): New function.
3553 (regcache_cooked_write_part): New function.
3554 * regcache.h (regcache_raw_read_part): Declare.
3555 (regcache_raw_write_part): Declare.
3556 (regcache_cooked_read_part): Declare.
3557 (regcache_cooked_write_part): Declare.
3558
92d1e331
DJ
35592002-08-18 Daniel Jacobowitz <drow@mvista.com>
3560
3561 * remote.c (remote_open_1): Add async_p.
3562 (remote_async_open_1): Delete.
3563 (open_remote_target): Delete.
3564 (remote_open, extended_remote_open): Update calls to remote_open_1.
3565 (remote_async_open, extended_remote_async_open): Call
3566 remote_open_1 instead of remote_async_open_1.
3567
247055de
MK
35682002-08-19 Mark Kettenis <kettenis@gnu.org>
3569
3570 * blockframe.c: Fix a few coding standard violations.
3571
641eda39
MK
35722002-08-19 Mark Kettenis <kettenis@gnu.org>
3573
0b717710
MK
3574 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3575 here from ...
3576 * config/i386/tm-i386sco5.h: ... here. File removed.
3577 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3578
26d28e12 3579 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3580 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3581 (TM_FILE): Set to tm-i386.h.
3582 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3583 * config/i386/tm-i386v.h: Remove file.
3584 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3585 instead of "i386/tm-i386v.h".
3586 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3587 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3588 "i386/tm-i386v.h".
3589 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3590 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3591 "i386/tm-i386.h".
3592
d4e0bab4
MK
35932002-08-18 Mark Kettenis <kettenis@gnu.org>
3594
3595 * config/i386/nm-i386v.h: Add protection against
3596 multiple-inclusion.
3597 (i386_register_u_addr): Remove prototype.
3598 (register_u_addr): New prototype.
3599 (REGISTER_U_ADDR): Redefine accordingly.
3600 * i386v-nat.c: Improve several comments.
3601 (i386_register_u_addr): Change signature and rename to
3602 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3603 ubase variable.
3604
46cac009
AC
36052002-08-18 Andrew Cagney <ac131313@redhat.com>
3606
3607 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3608 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3609 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3610 deprecated_extract_return_value.
3611 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3612 rename mips_o32o64_push_arguments.
3613 (mips_gdbarch_init): Update.
3614 (mips_extract_return_value): Delete.
3615 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3616 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3617 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3618 (mips_n32n64_extract_return_value): Clone
3619 mips_extract_return_value.
3620 (mips_store_return_value): Delete.
3621 (mips_o32_store_return_value): Clone mips_store_return_value.
3622 (mips_o64_store_return_value): Clone mips_store_return_value.
3623 (mips_eabi_store_return_value): Clone mips_store_return_value.
3624 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3625
d2e4a39e
AS
36262002-08-18 Aidan Skinner <aidan@velvet.net>
3627
0c30c098
AS
3628 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3629 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3630
36312002-08-18 Aidan Skinner <aidan@velvet.net>
3632
3633 * ada-lang.c: Run through gdb_indent.sh.
3634 * ada-lang.h: Run through gdb_indent.sh.
3635 * ada-tasks.c: Run through gdb_indent.sh.
3636 * ada-typeprint.c: Run through gdb_indent.sh.
3637 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3638
01fc4e33
AC
36392002-08-18 Andrew Cagney <ac131313@redhat.com>
3640
3641 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3642 ABI.
3643
d8ee244c
MK
36442002-08-18 Mark Kettenis <kettenis@gnu.org>
3645
c38d8261
MK
3646 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3647
222db64c
MK
3648 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3649 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3650
c2848c82
MK
3651 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3652 write_register_gen instead of write_register_bytes.
3653
d8ee244c
MK
3654 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3655 i[3456]-*-osf1mk* configurations have been made obsolete.
3656 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3657 i[3456]86-*-osf1mk* hosts obsolete.
3658 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3659 targets obsolete.
3660 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3661 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3662 config/i386/i386m3.mt, config/i386/nm-m3.h,
3663 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3664 config/i386/i386mk.mh, config/i386/i386mk.mt,
3665 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3666 obsolete.
3667 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3668 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3669 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3670
61d8d407
AC
36712002-08-18 Andrew Cagney <ac131313@redhat.com>
3672
3673 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3674 (hppa_value_returned_from_stack): Declare.
3675 (hppa_extract_return_value): Declare.
3676 * config/pa/hppa.mt: New file.
3677 * configure.tgt: Recognize hppa*-*-*.
3678 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3679
0c52bd59
MK
36802002-08-18 Mark Kettenis <kettenis@gnu.org>
3681
3682 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3683 comment.
3684
b5686e99
MK
36852002-08-17 Mark Kettenis <kettenis@gnu.org>
3686
3687 * top.c (gdb_rl_operate_and_get_next): Make sure
3688 operate-and-get-next functions correctly even when the history
3689 list is completely filled.
3690
c1bab85b
AC
36912002-08-18 Andrew Cagney <ac131313@redhat.com>
3692
3693 * MAINTAINERS (Target Instruction Set Architectures): Rename
3694 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3695 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3696 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3697 already listed under Host/Native.
3698
3699 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3700 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3701 mips*-*-*.
3702
32089c7c
AC
37032002-08-17 Andrew Cagney <ac131313@redhat.com>
3704
3705 * config/ia64/ia64.mt: New file.
3706 * config/alpha/alpha.mt: New file.
3707 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3708 ia64-linux-gnu. Mention that ia64-elf is broken.
3709 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3710
b4671f85
MK
37112002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3712
3713 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3714 generic_func_frame_valid instead of func_frame_valid.
3715
c8edd8b4
JB
37162002-08-16 Joel Brobecker <brobecker@gnat.com>
3717
3718 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3719 procfs appears to be broken when debugging on multi-processor
3720 machines. So enable software single stepping in order to avoid
3721 using the procfs interface to do next/step operations, using
3722 internal breakpoints instead.
3723
3724 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3725 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3726 make this pc address equal to the value it would have if the
3727 system stepping capability was used. Also set a new flag used
3728 to ensure that we don't readjust the PC one more time later.
3729
3730 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3731 address by DECR_PC_AFTER_BREAK when software single step is
3732 in use for this architecture, as this has already been taken
3733 care of in handle_inferior_event().
3734
238617f6
JB
37352002-08-16 Joel Brobecker <brobecker@gnat.com>
3736
3737 * infrun.c (handle_inferior_event): Minor reformatting, to make
3738 a rather long condition expression easier to read.
3739
541a7aac
AC
37402002-08-16 Andrew Cagney <ac131313@redhat.com>
3741
3742 * Makefile.in (gdbtk.o): Move to end of file.
3743 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3744 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3745 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3746 (gdbtk-wrapper.o, gdbres.o): Ditto.
3747
f92d4a7b
AC
37482002-08-16 Andrew Cagney <ac131313@redhat.com>
3749
3750 * Makefile.in (copying.o): Separate out compile rule.
3751 (hpux-thread.o, procfs.o, signals.o): Ditto.
3752 (v850ice.o, z8k-tdep.o): Ditto.
3753 (tui-file.o): Move to TUI section.
3754 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3755 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3756
1cce71eb
JB
37572002-08-16 Joel Brobecker <brobecker@gnat.com>
3758
3759 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3760 skip_trampoline_code, for better namespace-proofing.
3761
3762 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3763
0851f23d
JB
37642002-08-16 Joel Brobecker <brobecker@gnat.com>
3765
3766 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3767
f8d40ec8
JB
37682002-08-16 Joel Brobecker <brobecker@gnat.com>
3769
3770 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3771 signal, check whether we hit a breakpoint before checking for a
3772 single step breakpoint. Otherwise, GDB fails to notice that a
3773 breakpoint has been hit when stepping onto a breakpoint.
3774
63d022e0
KS
37752002-08-16 Keith Seitz <keiths@redhat.com>
3776
3777 * gdb-events.sh (clear_gdb_event_hooks): New function.
3778 * gdb-events.c: Regenerate.
3779 * gdb-events.h: Regenerate.
3780
6e31adb3
AC
37812002-08-16 Andrew Cagney <ac131313@redhat.com>
3782
3783 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3784 not_a_sw_breakpoint.
3785 * breakpoint.h (bpstat_stop_status): Add parameter names.
3786
c8189ed1
GS
37872002-08-16 Grace Sainsbury <graces@redhat.com>
3788
3789 * remote.c (remote_insert_hw_breakpoint)
3790 (remote_remove_hw_breakpoint): Fix calculation of length field
3791 for Z-packet.
3792
d05285fa
MS
37932002-08-15 Michael Snyder <msnyder@redhat.com>
3794
466d7106
MS
3795 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3796 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3797 (supply_fpregset): Ditto.
3798
d05285fa
MS
3799 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3800 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3801 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 3802 (TARGET_READ_SP): Delete.
bf1f5b4c 3803 (DO_REGISTERS_INFO): Delete.
102182a9
MS
3804 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3805 Delete.
3806 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3807 from macros to functions.
bf1f5b4c 3808
d05285fa
MS
3809 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3810 (mips_register_convertible, mips_register_convert_to_virtual,
3811 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
3812 (mips_read_sp): New function.
3813 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
3814 (mips_do_registers_info): Make static.
3815 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
3816 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3817 (mips_register_convert_from_type, mips_register_convert_to_type):
3818 New functions.
3819 (mips_gdbarch_init): Set up function_start_offset,
3820 register_virtual_size, pc_in_sigtramp.
d05285fa 3821
e76f1f2e
AC
38222002-08-15 Andrew Cagney <ac131313@redhat.com>
3823
3824 * infcmd.c (vector_info): New function.
3825 (_initialize_infcmd): Add command "info vector".
3826 (print_vector_info): New function.
3827
3828 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3829 * gdbarch.h, gdbarch.c: Regenerate.
3830
4782dc19
AC
38312002-08-15 Andrew Cagney <ac131313@redhat.com>
3832
3833 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3834 ``print_all''. Only print vector registers when ``print_all''.
3835
23e3a7ac
AC
38362002-08-15 Andrew Cagney <ac131313@redhat.com>
3837
8e186fd6
AC
3838 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3839 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3840
23e3a7ac
AC
3841 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3842 Add `args' parameter.
3843 * gdbarch.h, gdbarch.c: Regenerate.
3844
3845 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3846
3847 * infcmd.c (float_info): Call print_float_info.
3848 (print_float_info): New function. By default, print the
3849 floating-point registers.
3850
3851 * arch-utils.h (default_print_float_info): Delete declaration.
3852 * arch-utils.c (default_print_float_info): Delete function.
3853
e0ca2bb9
MK
38542002-08-16 Mark Kettenis <kettenis@gnu.org>
3855
3f733acc
MK
3856 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3857 out define.
3858
7d8d2918
MK
3859 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3860 FRAME.
3861
1c7cc583
MK
3862 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3863 * configure.host: Make i[3456]86-*-aix host obsolete.
3864 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3865 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3866 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3867 config/i386/xm-i386aix.h: Make files obsolete.
3868 * i386aix-nat.c: Make file obsolete.
3869 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3870 (i386aix-nat.o): Make target obsolete.
3871
e0ca2bb9
MK
3872 * config/i386/nm-gnu.h: Removed.
3873 * config/i386/nm-i386gnu.h: New file.
3874 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3875 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3876 Moved here from ...
3877 * config/i386/tm-i386gnu.h: ... here. Removed.
3878 * config/i386/xm-i386gnu.h: Removed.
3879 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3880 (NAT_FILE): Set to nm-i386gnu.h.
3881 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3882 * i386-tdep.c: New file.
3883 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3884 (i386gnu-tdep.o): Specify dependencies.
3885
16057ec7 38862002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 3887
6b99ee2e
MK
3888 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3889 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3890 Adjust a few comments to reflect reality a bit closer.
3891 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3892 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3893 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3894 target_insert_watchpoint, target_remove_watchpoint):
3895 Move defines to ...
3896 * config/i386/nm-i386sco5.h: ... here.
3897 (kernel_u_size): Add prototype. Improve a few comments and add
3898 protection against multiple inclusion.
3899
d9a6f65c
MK
3900 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3901 out define.
3902
047eff6a
MK
3903 * uw-thread.c (SP_ARG0): Define if not already defined.
3904 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3905
dcdb1290
MK
3906 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3907
5d2d0b2a
MK
3908 * config/i386/tm-i386.h: Don't include "regcache.h".
3909
61113f8b
MK
3910 * i387-tdep.h (i387_print_float_info): New prototype.
3911 * i387-tdep.c (print_i387_value, print_i387_ext,
3912 print_i387_status_word, print_i387_control_word): Add `struct
3913 ui_file *' argument and use it for output.
3914 (i387_print_float_info): Renamed from i387_float_info. Add
3915 `struct gdbarch *' and `struct ui_file *' arguments and use the
3916 latter for output.
3917 * i386-tdep.c: Include "i387-tdep.h".
3918 (i386_gdbarch_init): Set print_float_info.
3919 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3920 (FLOAT_INFO): Remove define.
3921
46e0f506
MS
39222002-08-13 Michael Snyder <msnyder@redhat.com>
3923
3924 * mips-tdep.c (mips_push_arguments): Rename to
3925 mips_eabi_push_arguments, and tune for EABI.
3926 (MIPS_REGS_HAVE_HOME_P): Delete.
3927 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3928 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3929 Delete references to mips_regs_have_home_p.
3930
409268de
KS
39312002-08-14 Keith Seitz <keiths@redhat.com>
3932
3933 * Makefile.in (install-gdbtk): Create insight plugin directory.
3934 Install plugins.tcl file.
3935
ffc6a242
KS
39362002-08-14 Keith Seitz <keiths@redhat.com>
3937
3938 * configure.in: Move SUBDIRS to near top of the file so that
3939 --enable options may add things to it.
3940 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3941 * configure: Regenerate.
3942
ebafbe83
MS
39432002-08-13 Michael Snyder <msnyder@redhat.com>
3944
3945 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3946 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3947 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3948
32f6f25d
AC
39492002-08-13 Andrew Cagney <ac131313@redhat.com>
3950
3951 * vax-tdep.c (vax_get_saved_register): Delete function.
3952 (vax_gdbarch_init): Update.
3953 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3954 (ns32k_gdbarch_init): Update.
3955 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3956 (alpha_gdbarch_init): Update.
3957
53826de9
AC
39582002-08-13 Andrew Cagney <cagney@redhat.com>
3959
3960 * regcache.c (init_regcache_descr): Overallocate the
3961 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3962 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3963 nr_raw_registers.
3964 (set_register_cached): Add range checking assertions. Use
3965 current_regcache.
3966
16057ec7 39672002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
3968
3969 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3970 numbers for MMX registers.
3971
7b4c2dce
AC
39722002-08-13 Andrew Cagney <cagney@redhat.com>
3973
3974 * i386-tdep.c (i386_gdbarch_init): Use
3975 generic_unwind_get_saved_register.
3976
1e03ad20
KB
39772002-08-13 Kevin Buettner <kevinb@redhat.com>
3978
3979 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3980 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3981 target vector.
3982 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3983 Delete. Add comment regarding this now-deleted target method.
3984
548bcbec
SC
39852002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3986
3987 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3988 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3989 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3990 real PC and the page number (if it's within the memory bank window).
3991 (m68hc11_pseudo_register_write): Likewise when saving.
3992 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3993 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3994 (m68hc11_register_raw_size): And use 32-bit for it.
3995 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3996 16K memory bank is used by the prog; also use the virtual pc.
3997
7df11f59
SC
39982002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3999
4000 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4001 (m68hc11_gdbarch_init): Install it in gdbarch.
4002 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4003 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4004 (MSYMBOL_SIZE): New for documentation.
4005 (insn_return_kind): Enum to specify how a function returns.
4006 (frame_extra_info): Cleanup and record the return mode.
4007 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4008 register in address computation.
4009 (m68hc11_get_return_insn): New to obtain the return instruction used
4010 by the function.
4011 (m68hc11_frame_init_saved_regs): Take into account the return
4012 instruction used by the function for far and interrupt functions.
4013 (m68hc11_init_extra_frame_info): Take into account page register.
4014 (m68hc11_frame_args_address): Adjust according to the return mode.
4015 (show_regs): Print page register only when it's used.
4016
5706502a
SC
40172002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4018
4019 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4020 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4021 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4022 registers.
4023 (m68hc11_register_raw_size): Likewise.
4024
28fc6740
AC
40252002-08-13 Andrew Cagney <cagney@redhat.com>
4026
4027 * i386-tdep.c (i386_register_name): Handle mmx registers.
4028 (mmx_regnum_p): New function.
4029 (i386_mmx_names): New array.
4030 (mmx_num_regs): New variable.
4031 (i386_pseudo_register_read): New function.
4032 (i386_pseudo_register_write): New function.
4033 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4034
4035 * regcache.c (regcache_raw_read_unsigned): New function.
4036 (regcache_raw_read_signed): New function.
4037 * regcache.h (regcache_raw_read_unsigned): Declare.
4038 (regcache_raw_read_signed): Declare.
4039
a378f419
AC
40402002-08-13 Andrew Cagney <cagney@redhat.com>
4041
4042 * regcache.c (regcache_raw_read_as_address): Delete function.
4043 (regcache_cooked_read_signed): New function.
4044 (regcache_cooked_read_unsigned): New function.
4045 * regcache.h (regcache_cooked_read_signed): Declare.
4046 (regcache_cooked_read_unsigned): Declare.
4047 (regcache_raw_read_as_address): Delete declaration.
4048
4049 * blockframe.c (generic_read_register_dummy): Use
4050 regcache_cooked_read_unsigned.
4051 * i386-tdep.c (i386_extract_struct_value_address): Use
4052 regcache_cooked_read_unsigned.
4053
81967506
SC
40542002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4055
4056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4057 double sizes according to ELF ABI flags.
4058 (gdbarch_tdep): Record elf_flags.
4059
ffe1f3ee
SC
40602002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4061
4062 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4063 (m6812_prolog): They can appear in 68HC12 function prologue.
4064 (m68hc11_frame_chain): Cleanup.
4065
98216c5d
AC
40662002-08-12 Andrew Cagney <cagney@redhat.com>
4067
4068 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4069 declarations.
4070 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4071 (i386_linux_register_raw_size): Delete function.
4072 (i386_linux_init_abi): Update.
4073 * i386-tdep.c (i386_register_raw_size): Delete function.
4074 (i386_register_byte): Delete function.
4075 (i386_gdbarch_init): Update.
4076 (i386_register_size): Delete array.
4077 (i386_register_offset): Delete array.
4078
4079 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4080 (REGISTER_RAW_SIZE): Delete macro.
4081 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4082 (REGISTER_BYTE): Delete macro.
4083
3b19021e
AS
40842002-08-11 Aidan Skinner <aidan@velvet.net>
4085
4086 * ada-lang.c (ada_lookup_partial_symbol)
4087 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4088 prototype names so that grep ^func works properly.
4089
4090 * ada-lang.c (ada_array_element_type)
4091 (ada_lookup_partial_symbol): Fix typos in parameter list.
4092
4093 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4094 Fix prototype names so that grep ^func works properly.
4095
b063e7a2
AC
40962002-08-10 Andrew Cagney <cagney@redhat.com>
4097 Elena Zannoni <ezannoni@redhat.com>
4098 Martin M. Hunt <hunt@redhat.com>
4099
4100 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4101 (build_builtin_type_vec128i): Set the vector bit.
4102 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4103 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4104 (build_builtin_type_vec64): New function.
4105 (build_builtin_type_vec64i): New function.
4106 (build_gdbtypes): Initialize builtin_type_vec64 and
4107 builtin_type_vec64i.
4108
a7e3c2ad
AC
41092002-08-09 Andrew Cagney <cagney@redhat.com>
4110
4111 * regcache.c (regcache_dump): Compare the register offset
4112 with REGISTER_BYTE.
4113 * arch-utils.c (generic_register_byte): New function.
4114 * arch-utils.h (generic_register_byte): Declare.
4115 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4116 * gdbarch.h, gdbarch.c: Regenerate.
4117
af030b9a
AC
41182002-08-09 Andrew Cagney <cagney@redhat.com>
4119
4120 * regcache.c: Include "gdbcmd.h"
4121 (_initialize_regcache): Add commands "maintenance print
4122 registers", "maintenance print raw-registers" and "maintenance
4123 print cooked-registers".
4124 (enum regcache_dump_what): Define.
4125 (dump_endian_bytes): New function.
4126 (regcache_dump): New function.
4127 (regcache_print): New function.
4128 (maintenance_print_registers): New function.
4129 (maintenance_print_raw_registers): New function.
4130 (maintenance_print_cooked_registers): New function.
4131 * Makefile.in (regcache.o): Update dependencies.
4132
cb3d25d1
MS
41332002-08-09 Michael Snyder <msnyder@redhat.com>
4134
4135 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4136 (mips_push_arguments): Correct some comments. Use paddr_nz
4137 for printing addresses in debug output. Replace static
4138 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4139 (mips_n32n64_push_arguments): New function, cloned from
4140 mips_push_arguments and tuned for the n32/n64 ABI.
4141 (mips_push_register): Buffer needs dynamic allocation.
4142 (mips_print_register): Ditto.
4143 (do_gp_register_row): Ditto.
4144 (mips_store_return_value): Ditto.
4145 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4146
2163ab9d
DH
41472002-08-09 Don Howard <dhoward@redhat.com>
4148
4149 * memattr.c (mem_info_command): Print special case of upper bound
4150 as max CORE_ADDR + 1.
4151
b78bcb18
MS
41522002-08-08 Michael Snyder <msnyder@redhat.com>
4153
4154 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4155 returns structs by ref if they're too big to fit in two registers.
4156
ffabd70d
KB
41572002-08-09 Kevin Buettner <kevinb@redhat.com>
4158
4159 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4160 saved regs value.
4161 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4162 mips_find_saved_regs().
4163 (mips_pop_frame): Likewise.
4164
fbcdb4a3
KB
41652002-08-09 Kevin Buettner <kevinb@redhat.com>
4166
4167 * blockframe.c (frame_saved_regs_register_unwind): Revise
4168 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4169 frames are in use.
4170
3c3bea1c
GS
41712002-08-09 Grace Sainsbury <graces@redhat.com>
4172
4173 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4174 T-packets; the 'a' is not taken as a register number.
4175 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4176 (remote_stopped_data_address): New functions; add to target
4177 vector.
4178 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4179 prototypes to match other implementations of this
4180 function. replace integer argument with pointer -- the length
4181 field in the Z-packet is the length of what is pointed to or 1 if
4182 pointer is null. Add to target vector.
4183 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4184 target vector.
4185
4186 From Mark Salter:
4187 * remote.c (remote_wait): Add support to extract optional
4188 watchpoint information from T-packet. Ignore unrecognized
4189 optional info in T-packet.
4190 (remote_async_wait): Ditto.
4191
5d1d95de
CV
41922002-08-09 Corinna Vinschen <vinschen@redhat.com>
4193
4194 * cli/cli-dump.c: Change fopen modes to use binary open modes
4195 as defined in include/fopen-bin.h throughout.
4196
c86b5b38
MS
41972002-08-08 Michael Snyder <msnyder@redhat.com>
4198
4199 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4200
b30590dc
KB
42012002-08-08 Kevin Buettner <kevinb@redhat.com>
4202
4203 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4204 assertion failure by returning early after a warning.
4205
498868ed
KB
42062002-08-08 Kevin Buettner <kevinb@redhat.com>
4207
4208 * mips-tdep.c (mips_find_saved_regs): Make static.
4209 (mips_frame_init_saved_regs): New function.
4210 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4211 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4212 (mips_find_saved_regs): Delete declaration.
4213
b2dd6311
GS
42142002-08-08 Grace Sainsbury <graces@redhat.com>
4215
3c3bea1c
GS
4216 * remote.c (remote_wait, remote_async_wait): Change
4217 thread_num from int to ULONGEST.
4218 (unpack_varlen_hex): Change result parameter from
4219 int * to ULONGEST *.
b2dd6311 4220
ea47855f
AC
42212002-08-08 Andrew Cagney <ac131313@redhat.com>
4222
4223 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4224 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4225 powerpc*-*-*.
4226 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4227
69db8bae
AC
42282002-08-08 Andrew Cagney <cagney@redhat.com>
4229
4230 * gcore.c (override_derive_stack_segment): Delete variable.
4231 (preempt_derive_stack_segment): Delete function.
4232 (derive_stack_segment): Delete function.
4233 (default_derive_stack_segment): Renamed to derive_stack_segment.
4234 (override_derive_heap_segment): Delete variable.
4235 (preempt_derive_heap_segment): Delete function.
4236 (derive_heap_segment): Delete function.
4237 (default_derive_heap_segment): Rename to derive_heap_segment.
4238
cb811fe7
MS
42392002-08-06 Michael Snyder <msnyder@redhat.com>
4240
4241 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4242 * mips-tdep.c (mips_EABI_use_struct_convention,
4243 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4244 New functions. (mips_use_struct_convention): Delete.
4245 (mips_gdbarch_init): set use_gdbarch_convention.
4246
8b389c40
MS
42472002-08-06 Michael Snyder <msnyder@redhat.com>
4248
4249 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4250 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4251 mips_o32_reg_struct_has_addr): New functions.
4252 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4253
5c27f28a
AC
42542002-08-07 Andrew Cagney <ac131313@redhat.com>
4255
4256 * regcache.c (pseudo_register): Delete function.
4257 (fetch_register): Delete function.
4258 (store_register): Delete function.
4259 (regcache_raw_read, legacy_read_register_gen): Use
4260 target_fetch_registers instead of fetch_register.
4261 (legacy_write_register_gen, regcache_raw_write): Use
4262 target_store_register instead of store_register.
4263 (write_register_bytes): Ditto.
4264
4265 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4266 (STORE_PSEUDO_REGISTER): Delete.
4267 * gdbarch.h, gdbarch.c: Regenerate.
4268
5b331675
CV
42692002-08-06 Corinna Vinschen <vinschen@redhat.com>
4270
4271 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4272 write dump file binary.
4273
6acdf5c7
MS
42742002-08-05 Michael Snyder <msnyder@redhat.com>
4275
4276 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4277 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4278 (mips_gdbarch_init): Set N32 target to be mips64.
4279
b2f01c35
KB
42802002-08-06 Kevin Buettner <kevinb@redhat.com>
4281
4282 * frame.c (find_saved_register): Break out of loop once saved
4283 register address is found. Don't mention sparc in loop comment
4284 anymore.
4285
63db5580
KB
42862002-08-06 Kevin Buettner <kevinb@redhat.com>
4287
4288 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4289 mips_default_saved_regsize to 8.
4290
5e34e75e
AC
42912002-08-06 Andrew Cagney <ac131313@redhat.com>
4292
4293 * gcore.c: Do not include <sys/procfs.h>.
4294 * Makefile.in (gcore.o): Update dependencies.
4295
eb4c54a2
AC
42962002-08-06 Andrew Cagney <cagney@redhat.com>
4297
4298 * configure.tgt: Make arc-*-* obsolete.
4299 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4300 * MAINTAINERS: Make arc-elf obsolete.
4301 * arc-tdep.c: Make file obsolete.
4302 * config/arc/arc.mt: Ditto.
4303 * config/arc/tm-arc.h: Ditto.
4304
ced15480
TR
43052002-08-05 Theodore A. Roth <troth@verinet.com>
4306
c1bab85b 4307 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4308
b4743822
AC
43092002-08-05 Andrew Cagney <ac131313@redhat.com>
4310
4311 * mcore-tdep.c (mcore_gdbarch_init): Use
4312 generic_unwind_get_saved_register instead of
4313 generic_get_saved_register.
4314 * v850-tdep.c (v850_gdbarch_init): Ditto.
4315 * frv-tdep.c (frv_gdbarch_init): Ditto.
4316 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4317 * s390-tdep.c (s390_gdbarch_init): Ditto.
4318 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4319 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4320 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4321
3956d554
JB
43222002-08-05 Joel Brobecker <brobecker@gnat.com>
4323
4324 * objfiles.h: Add missing #include "symfile.h"
4325
4326 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4327
8249c0d6
AC
43282002-08-04 Andrew Cagney <ac131313@redhat.com>
4329
4330 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4331 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4332 of FIELD_BITSIZE.
4333
b9d14705
DJ
43342002-08-04 Daniel Jacobowitz <drow@mvista.com>
4335
4336 * NEWS: Cleanup and nitpick.
4337
dd73b9bb
AC
43382002-08-03 Andrew Cagney <ac131313@redhat.com>
4339
4340 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4341
043a27f8
AC
43422002-08-03 Andrew Cagney <ac131313@redhat.com>
4343
4344 * Makefile.in (gdbtk-bp.o): Update dependencies.
4345 (gdbtk-register.o): Ditto.
4346 (gdbtk-varobj.o): Ditto.
4347
46ce284d
AC
43482002-08-03 Andrew Cagney <cagney@redhat.com>
4349
4350 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4351 m68hc11_fetch_pseudo_register.
4352 (m68hc11_pseudo_register_write): Replace
4353 m68hc11_store_pseudo_register.
4354 (m68hc11_gdbarch_init): Update.
4355
b66d6d2e
AC
4356Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4357
4358 * gdbarch.sh: Include "gdb_string.h".
4359 * gdbarch.c: Regenerate.
4360
4361 * regcache.c: Include "gdb_string.h".
4362 * ax-general.c: Ditto.
4363 * varobj.c: Ditto.
4364 * std-regs.c: Ditto.
4365 * fbsd-proc.c: Ditto.
4366 * thread.c: Ditto.
4367
4368 * Makefile.in (regcache.o): Update dependencies.
4369 (thread.o, gdbarch.o): Ditto.
4370 (ax-general.o, gdbarch.o): Ditto.
4371 (varobj.o, std-regs.o): Ditto.
4372 (fbsd-proc.o): Specify dependencies.
4373
29e1842b
AC
43742002-08-02 Andrew Cagney <cagney@redhat.com>
4375
4376 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4377 regnum.
4378 (regcache_cooked_write): Ditto.
4379
68365089
AC
43802002-08-02 Andrew Cagney <ac131313@redhat.com>
4381
4382 * regcache.c (regcache_cooked_read): New function.
4383 (regcache_cooked_write): New function.
4384 (read_register_gen): Rewrite using regcache_cooked_read.
4385 (write_register_gen): Rewrite using regcache_cooked_write.
4386
4387 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4388 Declare.
4389
d8124050
AC
43902002-08-02 Andrew Cagney <cagney@redhat.com>
4391
4392 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4393 Replace the architecture methods register_read and register_write.
4394 * gdbarch.h, gdbarch.c: Regenerate.
4395 * regcache.c (init_regcache_descr): Update.
4396 (read_register_gen): Update.
4397 (write_register_gen): Update.
4398 (supply_register): Update comment.
4399
4400 * sh-tdep.c (sh_gdbarch_init): Update.
4401 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4402 `regcache' and `gdbarch' parameters. Make `buffer' a void
4403 pointer. Update code.
4404 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4405 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4406 void pointer. Update code.
4407 (sh64_register_write): Delete.
4408 (sh4_register_read): Delete.
4409 (sh64_register_read): Delete.
4410 (sh4_register_write): Delete.
4411 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4412 void pointer, `to' parameter a void pointer.
4413 (sh_sh64_register_convert_to_raw): Ditto.
4414
a6425924
KB
44152002-08-01 Kevin Buettner <kevinb@redhat.com>
4416
4417 * mips-tdep.c (mips_register_virtual_type): Use architecture
4418 invariant return values.
4419
ff5922b5
AC
44202002-08-01 Andrew Cagney <cagney@redhat.com>
4421
4422 * linux-proc.c: Include "gdb_string.h".
4423 * Makefile.in (linux-proc.o): Update dependency list.
4424
32a6503c
KB
44252002-08-01 Kevin Buettner <kevinb@redhat.com>
4426
4427 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4428 comment.
4429
ccaa32c7
GS
44302002-08-01 Grace Sainsbury <graces@redhat.com>
4431
4432 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4433 to_insert_watchpoint, to_remove_watchpoint,
4434 to_stopped_by_watchpoint, to_stopped_data_address,
4435 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4436 target vecctor. Define their corresponding macros so they call
4437 them.
4438
4439 * target.c: Add default and debug versions of for
4440 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4441 to_insert_watchpoint, to_remove_watchpoint,
4442 to_stopped_by_watchpoint, to_stopped_data_address,
4443 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4444
78fde5f8
KB
44452002-08-01 Kevin Buettner <kevinb@redhat.com>
4446
4447 * mips-tdep.c (mips_register_virtual_type): New function.
4448 (mips_gdbarch_init): Register mips_register_virtual_type()
4449 with gdbarch machinery.
4450 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4451 this file instead of tm-bigmips.h.
4452 (MIPS_REGSIZE): Delete this macro.
4453 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4454 multiarch version in mips-tdep.c will be found.
4455
db034ac5
AC
44562002-08-01 Andrew Cagney <cagney@redhat.com>
4457
4458 * NEWS: Menion that CHILL has been made obsolete.
4459
4460 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4461 * stabsread.c (read_range_type): Ditto.
4462 * gdbtypes.h: Ditto.
4463 * language.c (binop_type_check): Ditto.
4464 (binop_result_type): Ditto.
4465 (integral_type): Ditto.
4466 (character_type): Ditto.
4467 (string_type): Ditto.
4468 (boolean_type): Ditto.
4469 (structured_type): Ditto.
4470 (lang_bool_type): Ditto.
4471 (binop_type_check): Ditto.
4472 * language.h (_LANG_chill): Ditto.
4473 * dwarfread.c (set_cu_language): Ditto.
4474 * dwarfread.c (CHILL_PRODUCER): Ditto.
4475 * dwarfread.c (handle_producer): Ditto.
4476 * expression.h (enum exp_opcode): Ditto.
4477 * eval.c: Ditto for comments.
4478 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4479 * expprint.c (print_subexp): Ditto.
4480 (print_subexp): Ditto.
4481 * valops.c (value_cast): Ditto.
4482 (search_struct_field): Ditto.
4483 * value.h (COERCE_VARYING_ARRAY): Ditto.
4484 * symfile.c (init_filename_language_table): Ditto.
4485 (add_psymbol_with_dem_name_to_list): Ditto.
4486 * valarith.c (value_binop): Ditto.
4487 (value_neg): Ditto.
4488 * valops.c (value_slice): Ditto.
4489 * symtab.h (union language_specific): Ditto.
4490 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4491 (SYMBOL_DEMANGLED_NAME): Ditto.
4492 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4493 * defs.h (enum language): Ditto.
4494 * symtab.c (got_symtab): Ditto.
4495 * utils.c (fprintf_symbol_filtered): Ditto.
4496
4497 * ch-typeprint.c: Make file obsolete.
4498 * ch-valprint.c: Make file obsolete.
4499 * ch-lang.h: Make file obsolete.
4500 * ch-exp.c: Make file obsolete.
4501 * ch-lang.c: Make file obsolete.
4502
4503 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4504 CHILL_LIB.
4505 (TARGET_FLAGS_TO_PASS): Ditto.
4506 (CHILLFLAGS): Obsolete.
4507 (CHILL): Obsolete.
4508 (CHILL_FOR_TARGET): Obsolete.
4509 (CHILL_LIB): Obsolete.
4510 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4511 ch-valprint.c.
4512 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4513 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4514 ch-lang.o.
4515 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4516 targets.
4517
8aaf0b47
JB
45182002-07-31 Joel Brobecker <brobecker@gnat.com>
4519
4520 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4521 This does not change anything at the moment, but will be helpful
4522 later when full Ada support is integrated.
4523
f3a7b3a5
KB
45242002-07-31 Kevin Buettner <kevinb@redhat.com>
4525
4526 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4527 help message.
4528
fb850278
KB
45292002-07-31 Kevin Buettner <kevinb@redhat.com>
4530
4531 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4532 and save it in a local variable. Use variable in later test.
4533
e3bddbfa
KB
45342002-07-31 Kevin Buettner <kevinb@redhat.com>
4535
4536 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4537 test. (Thanks to Daniel Jacobowitz.)
4538
28d169de
KB
45392002-07-31 Kevin Buettner <kevinb@redhat.com>
4540
4541 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4542 (mips_abi_strings): Add "n64".
4543 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4544
7fe7e44e
KB
45452002-07-31 Kevin Buettner <kevinb@redhat.com>
4546
4547 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4548 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4549
c6caf090
KB
45502002-07-31 Kevin Buettner <kevinb@redhat.com>
4551
4552 * utils.c (host_pointer_to_address, address_to_host_pointer):
4553 Use gdb_assert() instead of explicit call to internal_error().
4554
c41669e0
KB
45552002-07-30 Kevin Buettner <kevinb@redhat.com>
4556
4557 * Makefile.in (rs6000-nat.o): Update dependencies.
4558
4559 From Nicholas Duffek:
4560 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4561 (aix-thread.o): New rule.
4562 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4563 * config/powerpc/aix432.mh: New file.
4564
2fda4977
DJ
45652002-07-30 Daniel Jacobowitz <drow@mvista.com>
4566
4567 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4568 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4569 (fetch_core_registers, ppc_linux_supply_gregset)
4570 (ppc_linux_supply_fpregset): New functions.
4571 (ppc_linux_regset_core_fns): New.
4572 (_initialize_ppc_linux_tdep): Call add_core_fns.
4573 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4574 and ppc_linux_supply_gregset.
4575 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4576 (supply_fpregset): Call ppc_linux_supply_fpregset.
4577 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4578 corelow.o.
4579 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4580
729051e6
DJ
45812002-07-30 Daniel Jacobowitz <drow@mvista.com>
4582
4583 * symtab.c (lookup_symbol): Demangle before lowercasing.
4584
5f8a3188
AC
45852002-07-30 Andrew Cagney <ac131313@redhat.com>
4586
4587 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4588 declaration.
4589 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4590 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4591 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4592 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4593 "gdb_string.h".
4594 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4595 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4596 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4597 (avr-tdep.o, mon960-rom.o): Ditto.
4598 (aout_stabs_gnu_h): Define.
4599 (symtab_h): Remove $(gdb_obstack_h).
4600
67f07146
JB
46012002-07-30 Jim Blandy <jimb@redhat.com>
4602
4603 Patch from David Carlton <carlton@math.stanford.edu>:
4604 * gdbinit.in: Move the `dir' commands that add GDB's own source
4605 directory to the search path to the end, so that the `gdb' source
4606 directory will be searched first.
4607
04ea0df1
AC
46082002-07-29 Andrew Cagney <ac131313@redhat.com>
4609
4610 * gdb_obstack.h: New file.
4611 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4612 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4613 * objfiles.h: Include "gdb_obstack.h".
4614 * Makefile.in (gdb_obstack_h): Define.
4615 (symtab_h): Add $(gdb_obstack_h).
4616 (objfiles_h): Add $(gdb_obstack_h).
4617
4618 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4619 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4620 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4621 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4622 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4623 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4624 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4625 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4626
4627 * Makefile.in (bcache.o): Update dependencies.
4628 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4629 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4630 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4631 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4632 (stabsread.o, symfile.o, symmisc.o): Ditto.
4633 (symtab.o, typeprint.o, macroexp.o): Ditto.
4634 (macrotab.o, mdebugread.o): Ditto.
4635 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4636 (coff_ecoff_h, aout_aout64_h): Define.
4637 (aout_stabs_gnu_h, libaout_h): Define.
4638
d138e37a
AC
46392002-07-29 Andrew Cagney <cagney@redhat.com>
4640
4641 * regcache.c (struct regcache_descr): Rename nr_registers to
4642 nr_cooked_registers. Revise comments describing the structure
4643 member fields.
4644 (init_regcache_descr): Update.
4645 (init_legacy_regcache_descr): Update.
4646 (read_register_gen, write_register_gen): When a cooked register in
4647 the raw register range, directly access the value from the raw
4648 register cache.
4649
460e6ec3
AC
46502002-07-29 Andrew Cagney <ac131313@redhat.com>
4651
4652 * z8k-tdep.c: Do not include "obstack.h".
4653 * h8300-tdep.c, h8500-tdep.c: Ditto.
4654 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4655 * valprint.c, v850-tdep.c: Ditto.
4656 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4657 * mn10200-tdep.c: Ditto.
4658
4659 * Makefile.in (z8k-tdep.o): Update dependencies.
4660 (m68hc11-tdep.o, valprint.o): Ditto.
4661 (v850-tdep.o, d10v-tdep.o): Ditto.
4662 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4663 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4664 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4665 (sh_opc_h, gdb_sim_sh_h): Define.
4666 (elf_sh_h, elf_bfd_h): Define.
4667 (opcode_m68hc11_h): Define.
4668 (OPCODES_SRC, OPCODES_DIR): define.
4669 (OPCODES): Use $(OPCODES_DIR).
4670 (gdb_sim_d10v_h): Rename sim_d10v_h.
4671 (gdb_sim_arm_h): Rename sim_arm_h.
4672
790c9cf0
KB
46732002-07-26 Kevin Buettner <kevinb@redhat.com>
4674
4675 * utils.c (host_pointer_to_address, address_to_host_pointer):
4676 Change internal_error() message to indicate function responsible
4677 for the error.
4678
9647fa49
KB
46792002-07-26 Kevin Buettner <kevinb@redhat.com>
4680
4681 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4682 calls to local_hex_string_custom().
4683
dabbe2c0
KB
46842002-07-26 Kevin Buettner <kevinb@redhat.com>
4685
4686 * irix5-nat.c: Move IRIX shared library support from here...
4687 * solib-irix.c: ...to here. Revised substantially to work with
4688 generic solib framework.
4689
b96d0a4e
KB
4690 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4691 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4692 * mips-irix-tdep.c: New file.
4693
313fb2f6
KB
4694 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4695 (mips-irix-tdep.o, solib-irix.o): New rules.
4696 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4697 solib-irix.o.
4698 * config/mips/irix6.mt (TDEPFILES): Likewise.
4699 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4700
ab2eaf26
KB
47012002-07-26 Kevin Buettner <kevinb@redhat.com>
4702
177e4768 4703 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4704 disabled (via ``#if 0'') includes.
4705
7244546a
KB
47062002-07-26 Kevin Buettner <kevinb@redhat.com>
4707
4708 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4709 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4710 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4711 Add support for the fpscr register.
4712 * rs6000-nat.c (regmap, fetch_inferior_registers)
4713 (store_inferior_registers, fetch_core_registers): Likewise.
4714
dd7be90a
KB
47152002-07-26 Kevin Buettner <kevinb@redhat.com>
4716
4717 * rs6000-nat.c (language.h): Include.
4718 (special_regs): Delete this array.
4719 (regmap): New function.
4720 (fetch_register, store_register): Use regmap() to map gdb
4721 register numbers to ptrace register numbers. Also, use
4722 outputs from regmap() to make decisions regarding type of
4723 ptrace() call to make. In particular, don't compare against
4724 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4725 (fetch_inferior_registers, store_inferior_registers): Where
4726 possible, obtain register numbers from tdep struct. Don't
4727 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4728 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4729 (LAST_UISA_SP_REGNUM): Delete.
4730
11bf77db
KB
47312002-07-25 Kevin Buettner <kevinb@redhat.com>
4732
4733 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4734 (fetch_registers, store_register, fetch_core_registers): Don't
4735 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4736 regcache_collect() as appropriate.
4737 (find_toc_address): Format hex address with local_hex_string().
4738
06afebeb
AC
47392002-07-25 Andrew Cagney <ac131313@redhat.com>
4740
4741 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4742 bfd/elf32-frv.c.
4743
8c554d79
TT
47442002-07-24 Tom Tromey <tromey@redhat.com>
4745
4746 * jv-exp.y: Marked all strings with _().
4747 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4748 internal_error.
4749 (MethodInvocation, CastExpression, parse_number, yyerror,
4750 java_type_from_name, push_expression_name, yylex): Typo fixes.
4751
e4c242d9
DJ
47522002-07-24 Daniel Jacobowitz <drow@mvista.com>
4753
4754 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4755 (tee_file_flush, tee_file_write, tee_file_fputs)
4756 (tee_file_isatty): New.
4757 * ui-file.h (tee_file_new): Add prototype.
4758
ebf56fd3
AS
47592002-07-24 Aidan Skinner <aidan@velvet.net>
4760
4761 * ada-lang.c: Change k&r style function definitions to prototyped
4762 form.
4763 * ada-typeprint.c: Change k&r style function definitions to prototyped
4764 form.
4765 * ada-valprint.c: Change k&r style function definitions to prototyped
4766 form.
4767
7fb623f7
AC
47682002-07-24 Andrew Cagney <cagney@redhat.com>
4769
4770 * README: Remove reference to remote-bug.
4771 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4772 remote-bug.c.
4773 (m88k-nat.o): Delete rule.
4774 (m88k-tdep.o): Delete rule.
4775 (remote-bug.o): Delete rule.
4776 * MAINTAINERS: Mark as obsolete.
4777 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4778 * m88k-tdep.c: Make file obsolete.
4779 * config/m88k/m88k.mh: Ditto.
4780 * config/m88k/delta88v4.mh: Ditto.
4781 * config/m88k/delta88v4.mt: Ditto.
4782 * config/m88k/delta88.mt: Ditto.
4783 * config/m88k/delta88.mh: Ditto.
4784 * remote-bug.c: Ditto.
4785 * config/m88k/tm-delta88.h: Ditto.
4786 * config/m88k/nm-delta88v4.h: Ditto.
4787 * config/m88k/xm-delta88.h: Ditto.
4788 * config/m88k/xm-dgux.h: Ditto.
4789 * config/m88k/tm-m88k.h: Ditto.
4790 * config/m88k/nm-m88k.h: Ditto.
4791 * config/m88k/tm-delta88v4.h: Ditto.
4792 * m88k-nat.c: Ditto.
4793 * cxux-nat.c: Ditto.
4794 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4795 and m88*-*-* obsolete.
4796 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4797 m88*-*-* obsolete.
4798
37611a2b
AC
47992002-07-24 Andrew Cagney <cagney@redhat.com>
4800
4801 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4802 constant. Same for local pointer variables.
4803 (extract_signed_integer): Ditto.
4804 * defs.h (extract_unsigned_integer): Update.
4805 (extract_signed_integer): Update.
4806
1aaa5f99
AC
48072002-07-24 Andrew Cagney <cagney@redhat.com>
4808
4809 * regcache.c (regcache_raw_write): Change buf parameter to a
4810 constant void pointer.
4811 (regcache_raw_read): Change buf parameter to a void pointer.
4812 (legacy_write_register_gen): Change myaddr parameter a constant
4813 void pointer.
4814 (supply_register): Change val parameter to a const void pointer.
4815 * regcache.h (regcache_raw_write): Update declaration.
4816 (regcache_raw_read): Update declaration.
4817 (supply_register): Update declaration.
4818
b4f5539f
TT
48192002-07-24 Tom Tromey <tromey@redhat.com>
4820
4821 * defs.h (gdb_readline_wrapper): Declare.
4822 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4823 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4824 * top.c (gdb_readline_wrapper): New function.
4825 (command_line_input): Use it.
4826
0818c12a
AC
48272002-07-24 Andrew Cagney <cagney@redhat.com>
4828
4829 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4830 regcache_read and regcache_write.
4831 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4832 * regcache.c: Update.
4833 * sh-tdep.c (sh64_push_arguments): Update comment.
4834 (sh_pseudo_register_read): Update.
4835 (sh_pseudo_register_write): Update.
4836 (sh4_register_read): Update.
4837 (sh4_register_write): Update.
4838 (sh64_pseudo_register_read): Update.
4839 (sh64_pseudo_register_write): Update.
4840 (sh64_register_read): Update.
4841 (sh64_register_write): Update.
4842 * i386-tdep.c (i386_extract_return_value): Update.
4843 (i386_extract_struct_value_address): Update.
4844 (i386_extract_return_value): Update.
4845 * blockframe.c (generic_read_register_dummy): Update.
4846 (generic_call_dummy_register_unwind): Update
4847 * infrun.c (write_inferior_status_register): Update.
4848
f7321c06
JB
48492002-07-23 Jim Blandy <jimb@redhat.com>
4850
4851 * parser-defs.h (expression_context_pc): Make this extern.
4852 (Thanks to Michael Snyder.)
4853
2037aebb
AC
48542002-07-23 Andrew Cagney <ac131313@redhat.com>
4855
4856 GDB 5.2.1 released from 5.2 branch.
4857 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4858 * README: Update to mention 5.2.1.
4859
66504d44
MS
48602002-07-23 Mark Salter <msalter@redhat.com>
4861
4862 * remote.c (remote_read_bytes): Fix check for error.
4863
27bae383
KB
48642002-07-22 Kevin Buettner <kevinb@redhat.com>
4865
4866 * aix-thread.c (language.h): Include.
4867 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4868 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4869 Print newlines at end of debug messages.
4870 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4871 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4872
48732002-07-22 Kevin Buettner <kevinb@redhat.com>
4874
4875 * aix-thread.c (ppc-tdep.h): Include.
4876 (special_register_p): New function.
4877 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4878 (store_regs_user_thread): Use register number information from
4879 gdbarch_tdep struct instead of hardcoded offsets relative to
4880 FIRST_UISA_SP_REGNUM.
4881 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4882 special_register_p() instead of using FPLAST_REGNUM and
4883 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4884 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4885 will be MQ's register number.
4886
48872002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
4888
4889 * aix-thread.c (ops): Rename to aix_thread_ops.
4890 (base_ops): Rename to base_target.
4891 (ops_attach): Rename to aix_thread_attach.
4892 (ops_detach): Rename to aix_thread_detach.
4893 (ops_resume): Rename to aix_thread_detach.
4894 (ops_wait): Rename to aix_thread_wait.
4895 (ops_kill): Rename to aix_thread_kill.
4896 (init_ops): Rename to init_aix_thread_ops.
4897 (ops_fetch_register): Rename to aix_thread_fetch_register.
4898 (ops_store_register): Rename to aix_thread_store_register.
4899 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4900 (ops_thread_alive): Rename to aix_thread_thread_alive.
4901 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4902 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4903 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4904 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4905 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4906 (store_regs_lib): Rename to store_regs_user_thread.
4907 (store_regs_kern): Rename to store_regs_kernel_thread.
4908
27bae383 49092002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
4910
4911 * aix-thread.c (ops_prepare_to_store): Eliminate.
4912 (init_ops): Don't initialize ops.prepare_to_store.
4913 (store_regs_kern): Pre-fetch register buffers from child,
4914 because some registers may not be in the cache. Copy
4915 regs from register cache only if they are cached.
4916 (store_regs_lib): Copy regs from register cache only
4917 if they are cached.
4918 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4919 fill_gprs64): Ditto.
4920
61c5da0b
KB
49212002-07-22 Kevin Buettner <kevinb@redhat.com>
4922
4923 * aix-thread.c (gdb_assert.h): Include.
4924 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4925 register sizes (from register cache) match size of buffer holding
4926 register data.
4927 (fill_sprs32): Change parameter types to match those in the ptrace()
4928 buffer.
4929 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4930 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4931
49322002-07-22 Michael Snyder <msnyder@redhat.com>
4933
4934 * aix-thread.c (supply_sprs64): Cosmetic change.
4935 (supply_sprs32): Cosmetic change.
4936 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4937 (fill_sprs64): Use regcache_collect instead of read_register.
4938 (store_regs_lib): Use regcache_collect instead of
4939 read_register. Use fill_sprs32 instead of fill_sprs64,
4940 if debugging a 32-bit architecture.
4941 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4942 out of the register cache, instead of passing a pointer into
4943 the register cache directly to ptrace. Use regcache_collect
4944 insteaad of read_register.
4945 (ops_prepare_to_store): Use target_read_registers instead
4946 of read_register_bytes.
4947
36479eb1
AS
49482002-07-20 Aidan Skinner <aidan@velvet.net>
4949
4950 * MAINTAINERS: Add self under write after approval.
4951
80ae6ee2
AS
49522002-07-20 Aidan Skinner <aidan@velvet.net>
4953
4954 * ada-tasks.c: Change k&r style function definitions to prototyped
4955 form.
4956
8a8ab2b9
AC
49572002-07-19 Andrew Cagney <ac131313@redhat.com>
4958
4959 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4960 * x86-64-tdep.c: Include "objfiles.h".
4961 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4962 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4963
fb16b900
ML
49642002-07-17 Michal Ludvig <michal@suse.cz>
4965
4966 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4967 (update_context): Initialise cfa variable.
4968
0fe7bf7b
MS
49692002-07-17 Michael Snyder <msnyder@redhat.com>
4970
4971 * aix-thread.c: Shorten some long lines.
4972 Bring comments into line with code spec.
4973
488f131b
JB
49742002-07-18 Joel Brobecker <brobecker@gnat.com>
4975
4976 * infrun.c: Re-indent using gdb_indent.sh.
4977
46c415d2
JB
49782002-07-18 Joel Brobecker <brobecker@gnat.com>
4979
4980 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4981 Leave the indentation temporarily untouched, to minimize the diffs.
4982
cdecafbe
EZ
49832002-07-18 Elena Zannoni <ezannoni@redhat.com>
4984
4985 * stabsread.c: Make os9k sections of the code obsolete,
4986 for real this time.
4987 * stabsread.h: Make os9k sections of the code obsolete.
4988
7b6aa020
ML
49892002-07-18 Michal Ludvig <mludvig@suse.cz>
4990
09ec9b38
ML
4991 * linux-low.c (regsets_store_inferior_registers): Add free()
4992 at the end of a loop to prevent memory leak.
4993 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4994 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
4995 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4996 line a comment.
4894ac5d 4997 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 4998
233282cd
JB
49992002-07-17 Jim Blandy <jimb@redhat.com>
5000
5001 * macrocmd.c (info_macro_command): Remove newline from error
5002 message.
5003
7b6aa020 50042002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5005
5006 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5007 (sh_gdbarch_init): Use it for sh-dsp.
5008
f7ef9339
KB
50092002-07-16 Kevin Buettner <kevinb@redhat.com>
5010
5011 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5012 64-bit DWARF2 format.
5013
8dd72958
JB
50142002-07-16 Joel Brobecker <brobecker@gnat.com>
5015
5016 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5017 <sys/proc.h> when not available.
5018
a99a9e1b
AC
50192002-07-16 Andrew Cagney <ac131313@redhat.com>
5020
5021 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5022 * stabsread.c: Make os9k sections of the code obsolete.
5023 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5024 * config/i386/i386os9k.mt: Make file obsolete.
5025 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5026 (COMMON_OBS): Remove os9kread.o
5027 (SFILES): Remove os9kread.c.
5028 (os9kread.o, remote-os9k.o): Make target obsolete.
5029 * remote-os9k.c: Make file obsolete.
5030 * os9kread.c: Make file obsolete.
5031 * Makefile.in
5032
7a3085c1
AC
50332002-07-16 Andrew Cagney <ac131313@redhat.com>
5034
5035 * NEWS: Mention that the FR30 has been made obsolete.
5036 * fr30-tdep.c: Make file obsolete.
5037 * config/fr30/tm-fr30.h: Ditto.
5038 * config/fr30/fr30.mt: Ditto.
5039 * configure.tgt: Make fr30-*-elf obsolete.
5040 * MAINTAINERS: Make fr30-elf obsolete.
5041
28a93f5a
PM
50422002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5043
5044 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5045 found is not inside a section.
5046
be006b8b
KB
50472002-07-15 Kevin Buettner <kevinb@redhat.com>
5048
5049 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5050 strerror().
5051 (pdc_realloc): Use xrealloc() instead of realloc().
5052
14fa3751
KB
50532002-07-15 Kevin Buettner <kevinb@redhat.com>
5054
5055 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5056 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5057 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5058 macros.
5059
42cc437f
KB
50602002-07-15 Kevin Buettner <kevinb@redhat.com>
5061
5062 * aix-thread.c (ptrace_check): Eliminate goto.
5063 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5064 problem.
5065
8e2c28d4
KB
50662002-07-15 Kevin Buettner <kevinb@redhat.com>
5067
5068 * aix-thread.c (gdbcmd.h): Include.
5069 (DEBUG, DBG, DBG2, dbg): Eliminate.
5070 (debug_aix_thread): New static global.
5071 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5072 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5073 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5074 invocations to DBG and DBG2 macros to test against
5075 ``debug_aix_thread'' and call fprintf_unfiltered().
5076 (_initialize_aix_thread): Add new command "set debug aix-thread".
5077
30413464
AC
50782002-07-15 Andrew Cagney <ac131313@redhat.com>
5079
5080 From Gerhard Tonn <TON@de.ibm.com>:
5081 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5082 instead of supply_register.
5083
7c43edc1
AC
50842002-07-15 Andrew Cagney <ac131313@redhat.com>
5085
5086 * dwarf2cfi.c: Include "gdb_assert.h".
5087 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5088 non-NULL.
5089 (update_context): Do not use __func__. Add missing ``break''.
5090 (update_context): Do not use __func__.
5091
9364a0ef
EZ
50922002-07-15 Elena Zannoni <ezannoni@redhat.com>
5093
5094 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5095 and its setting. Set gdbarch instruction printing functions
5096 directly. For non-rs6000 case use new function
5097 gdb_print_insn_powerpc.
5098 (gdb_print_insn_powerpc): New function.
5099
3fbeef0b
AC
51002002-07-13 Andrew Cagney <ac131313@redhat.com>
5101
92eb23c5 5102 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5103 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5104 * configure.tgt: Mark d30v-*-* as obsolete.
5105 * d30v-tdep.c: Mark file as obsolete.
5106 * config/d30v/d30v.mt: Ditto.
5107 * config/d30v/tm-d30v.h: Ditto.
5108
aacb1f0a
AS
51092002-07-13 Aidan Skinner <aidan@velvet.net>
5110
5111 * ada-tasks.c (add_task_entry): replace calls to
5112 malloc() with xmalloc
5113 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5114
5115 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5116 ada_finish_decode_line_1, all_sals_for_line
5117 ada_breakpoint_rewrite): replace calls to free() with xfree()
5118
c11d79f2
KB
51192002-07-12 Kevin Buettner <kevinb@redhat.com>
5120
5121 From Nicholas Duffek (with minor changes by Martin Hunt,
5122 Louis Hamilton, and Kevin Buettner):
5123 * aix-thread.c: New file.
5124
8e19ed76
PS
51252002-07-12 Petr Sorfa <petrs@caldera.com>
5126
5127 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5128 complaint for invalid attribute class or form.
5129 (read_func_scope): DW_AT_frame_base
5130 better handling of DW_AT_block*.
5131 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5132 better handling of DW_AT_block*.
5133 (read_common_block): DW_AT_location
5134 better handling of DW_AT_block*.
5135 (read_partial_die): DW_AT_location better handling
5136 of DW_AT_block*.
5137 (new_symbol): DW_AT_external better handling of
5138 DW_AT_block*. Proper initialization of variable
5139 "addr".
5140 (attr_form_is_block): New function that returns true
5141 if the attribute's form is of DW_FORM_block*.
5142
295401f7
DJ
51432002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5144
5145 * valops.c (find_method_list): Remove comment about
5146 removed STATIC_MEMFUNCP argument.
5147 (value_find_oload_method_list): Likewise.
5148
e42dc924
KB
51492002-07-12 Kevin Buettner <kevinb@redhat.com>
5150
5151 From Nicholas Duffek:
5152 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5153 target_new_objfile_hook.
5154
6904b546
KB
51552002-07-12 Kevin Buettner <kevinb@redhat.com>
5156
5157 From Nicholas Duffek:
5158 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5159 csect.
5160
53fe9346
AC
51612002-07-12 Andrew Cagney <cagney@redhat.com>
5162
5163 * MAINTAINERS: Mention --enable-sim-build-warnings.
5164 (m68hc11-elf): Disable sim build warnings.
5165 (m32r-elf): Mark as broken obsolete candidate.
5166 (x86_64-linux-gnu): Mark as buildable with -Werror.
5167 (arm-elf): Change -w to ``,'' which enables warnings but not
5168 -Werror.
5169
af5f3db6
AC
51702002-07-12 Andrew Cagney <ac131313@redhat.com>
5171
5172 * bcache.h: Update copyright.
5173 (struct bstring, struct bcache): Move definition to "bcache.c".
5174 Replaced by opaque declaration.
5175 (bcache_xfree): Replace free_bcache.
5176 (bcache_xmalloc, bcache_memory_used): Declare.
5177
5178 * bcache.c: Update copyright.
5179 (struct bstring, struct bcache): Moved to here from "bcache.h".
5180 Update comments.
5181 (bcache_xmalloc, bcache_memory_used): New functions.
5182 (bcache_xfree): Replace function free_bcache.
5183
5184 * Makefile.in (objfiles.o): Add $(bcache_h).
5185 (objfiles_h): Remove $(bcache_h).
5186 (symfile.o): Add $(bcache_h).
5187
5188 * symmisc.c: Update copyright.
5189 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5190 (print_objfile_statistics): Use bcache_memory_used.
5191
5192 * symfile.c: Include "bcache.h".
5193 (reread_symbols): Use bcache_xfree.
5194 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5195 (add_psymbol_to_list): Pass psymbol_cache by value.
5196 (add_psymbol_with_dem_name_to_list): Ditto.
5197
5198 * objfiles.h: Update copyright.
5199 (struct bcache): Declare opaque. Do not include "bcache.h".
5200 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5201 bcache'' pointers.
5202 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5203
5204 * objfiles.c: Include "bcache.h". Update copyright.
5205 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5206 macro_cache.
5207 (free_objfile): Use bcache_xfree.
5208
444199e7
GS
52092002-07-11 Grace Sainsbury <graces@redhat.com>
5210
5211 * monitor.c (monitor_fetch_register): Make name a constant.
5212 (monitor_store_register): Same.
5213
261397f8
DJ
52142002-07-11 Daniel Jacobowitz <drow@mvista.com>
5215
5216 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5217 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5218 (finish_block) For non-function blocks, hash the symbol table. For
5219 function blocks, mark the symbol table as unhashed.
5220 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5221 (msymbol_hash_iw): Likewise.
5222 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5223 value.
5224 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5225 (lookup_minimal_symbol): Likewise for both.
5226 * symtab.h (struct block): Add `hashtable' flag. Comment the
5227 hashtable.
5228 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5229 (ALL_BLOCK_SYMBOLS): Update.
5230 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5231 (struct symbol): Add `hash_next' pointer.
5232 * symtab.c (lookup_block_symbol): Search using the hash table when
5233 possible.
5234 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5235 (search_symbols, find_addr_symbol): Likewise.
5236
5237 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5238 (read_dst_symtab): Likewise.
5239 * jv-lang.c (get_java_class_symtab): Likewise.
5240 * mdebugread.c: Include "gdb_assert.h".
5241 (shrink_block): Assert that the block being modified is not hashed.
5242 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5243 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5244 symbols.
5245 (dump_symtab): Recognize hashed blocks.
5246 * printcmd.c (print_frame_args): Assert that function blocks do not
5247 have hashed symbol tables.
5248 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5249 (fill_in_ada_prototype, debug_print_block): Likewise.
5250 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5251
6f0eaa01
CV
52522002-07-11 Corinna Vinschen <vinschen@redhat.com>
5253
5254 * stack.c (print_frame): Use result of frame_address_in_block()
5255 instead of fi->pc when evaluating symbols.
5256 (backtrace_command_1): Ditto.
5257
a208b0cb
AC
52582002-07-11 Andrew Cagney <cagney@redhat.com>
5259
5260 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5261 Make static.
5262
5263 * arm-tdep.c (arm_register_name): Make return type constant.
5264
a6b6b089
AC
52652002-07-10 Andrew Cagney <ac131313@redhat.com>
5266
5ae5f592
AC
5267 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5268 prototype.
5269 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5270 * s390-tdep.c (s390_fp_regnum): Ditto.
5271 (s390_read_fp): Ditto.
5272 (s390_pop_frame): Ditto.
5273 (_initialize_s390_tdep): Ditto.
5274 * remote.c (get_remote_state): Ditto.
5275 * procfs.c (mappingflags): Ditto.
5276 * memattr.c (_initialize_mem): Ditto.
5277 * mcore-tdep.c (mcore_pop_frame): Ditto.
5278 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5279 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5280 * language.c (set_case_str): Ditto.
5281 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5282 * frv-tdep.c (new_variant): Ditto.
5283 (frv_stopped_data_address): Ditto.
5284 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5285 (context_alloc): Ditto.
5286 (frame_state_alloc): Ditto.
5287 (unwind_tmp_obstack_init): Ditto.
5288 (unwind_tmp_obstack_free): Ditto.
5289 (cfi_read_fp): Ditto.
5290 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5291 (cris_pop_frame): Ditto.
5292 * c-lang.c (scanning_macro_expansion): Ditto.
5293 (finished_macro_expansion): Ditto.
5294 (c_preprocess_and_parse): Ditto.
5295 * gdbarch.sh: Ditto.
5296 * gdbarch.h, gdbarch.c: Regenerate.
5297 * config/mn10200/tm-mn10200.h: Adjust indentation.
5298 * target.c: Adjust indentation.
5299 * symtab.h: Adjust indentation.
5300 * stabsread.h: Adjust indentation.
5301 * remote-es.c: Adjust indentation.
5302 * os9kread.c: Adjust indentation.
5303
53042002-07-10 Andrew Cagney <ac131313@redhat.com>
5305
a6b6b089
AC
5306 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5307 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5308
a1789893
GS
53092002-07-10 Grace Sainsbury <graces@redhat.com>
5310
5311 * NEWS: Mention m68k, mcore multi-arching.
5312 * MAINTAINERS: Change status of m68k, mcore to reflect
5313 multi-arching.
5314
02f0d45d
DJ
53152002-07-10 Daniel Jacobowitz <drow@mvista.com>
5316
5317 * valops.c (find_overload_match): Free oload_syms.
5318
f15f768e
JB
53192002-07-09 Joel Brobecker <brobecker@gnat.com>
5320
5321 Define HAVE_SYS_PROC_H if sys/proc.h exists
5322 * configure.in: Add check for sys/proc.h
5323 * config.in: Regenerate.
5324 * configure: Regenerate.
5325
902a7139
GS
53262002-07-09 Grace Sainsbury <graces@redhat.com>
5327
5328 * config/m68k/tm-m68k.h: Remove macros wrapped in
5329 #if !GDB_MULTI_ARCH.
5330
a534e424
AC
53312002-07-08 Andrew Cagney <ac131313@redhat.com>
5332
5333 * config.in, configure: Regenerate.
5334
9b94f7bf
MK
53352002-07-08 Mark Kettenis <kettenis@gnu.org>
5336
5337 * dwarf2cfi.c: Include "gcore.h".
5338 (execute_stack_op): Fix implementation of the
5339 DW_OP_deref and DW_OP_deref_size operators by letting do their
5340 lookup in the target.
5341
1d34db41
MK
53422002-07-07 Mark Kettenis <kettenis@gnu.org>
5343
5344 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5345 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5346 tdep->sc_sp_offset.
5347
79d5b63a
DJ
53482002-07-05 Daniel Jacobowitz <drow@mvista.com>
5349
5350 Fix PR gdb/595, gdb/602
5351 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5352 Don't call value_cast, just read the vtable pointer; update comments
5353 to match.
5354
3bb912e8
GS
53552002-07-05 Grace Sainsbury <graces@redhat.com>
5356
5357 * config/mcore/tm-mcore.h: Remove file.
5358 * config/mcore/mcore.mt: Remove definition of TM_FILE
5359 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5360
ca39387d
MK
53612002-07-05 Mark Kettenis <kettenis@gnu.org>
5362
5363 * i386bsd-tdep.c: Include "gdb_string.h".
5364
efdc1108
GS
53652002-07-04 Grace Sainsbury <graces@redhat.com>
5366
5367 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5368 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5369 mcore-tdep.
5370 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5371 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5372 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5373 (RETVAL_REGNUM): Move macros from tm-mcore.h
5374 (mcore_reg_struct_has_addr): New function.
5375 (mcore_gdbarch_init): Added initializations for the macros removed
5376 from tm-mcore.h.
5377
bb21884d
MK
53782002-07-04 Mark Kettenis <kettenis@gnu.org>
5379
5380 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5381 traditonal string branding within the ELF header.
5382
228c6d41
DJ
53832002-07-04 Daniel Jacobowitz <drow@mvista.com>
5384
5385 * symtab.c (remove_params): New function.
5386 (make_symbol_overload_list): Use it instead of cplus_demangle.
5387 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5388
2404952e
MK
53892002-07-04 Mark Kettenis <kettenis@gnu.org>
5390
e5e4acad
MK
5391 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5392
baadce09
MK
5393 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5394 New variables.
5395 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5396 and tdep->sigtramp_end.
5397 * i386obsd-nat.c: New file.
5398 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5399
2404952e
MK
5400 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5401 Don't call get_current_frame().
5402
9b4f1ba7
PM
54032002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5404
5405 * i386-nat.c (child_post_startup_inferior): New function
5406 calling i386_cleanup_dregs if
5407 I386_USE_GENERIC_WATCHPOINTS is defined.
5408 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5409 conditional to acknowledge that i386-nat.c has its
5410 own child_post_startup_inferior function.
5411
c0d1d883
MK
54122002-07-04 Mark Kettenis <kettenis@gnu.org>
5413
00f8375e
MK
5414 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5415 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5416 instead of MAX_REGISTER_RAW_SIZE.
5417 (i386_extract_return_value, i386_extract_struct_value_address):
5418 Convert to use regcache.
5419 (i386_gdbarch_init): Set max_register_raw_size and
5420 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5421 Set extract_return_value and extract_struct_value_address instead
5422 of their deprecated variants.
5423
c0d1d883
MK
5424 Convert i386 target to generic dummy frames.
5425 * i386-tdep.c: Include "symfile.h".
5426 (i386_frameless_signal_p): Consider a function to be frameless if
5427 the pc points at the first instruction of the function.
5428 (i386_frame_chain): Handle (generic) call dummies.
5429 (i386_frame_saved_pc): Likewise.
5430 (i386_frame_init_saved_regs): Remove code dealing with call
5431 dummies on the stack.
5432 (i386_push_dummy_frame): Removed.
5433 (i386_call_dummy_words): Removed.
5434 (i386_fix_call_dummy): Removed.
5435 (i386_push_return_address): New function.
5436 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5437 parameter, and don't call get_current_frame.
5438 (i386_pop_frame): New function.
5439 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5440 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5441 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5442 call_dummy_length to 0, set call_dummy_words to NULL, set
5443 sizeof_call_dummy_words to 0, set fix_call_dummy to
5444 generic_fix_call_dummy, set pc_in_call_dummy to
5445 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5446 generic_push_dummy_frame, set push_return_address to
5447 i386_push_return_address and set frame_chain_valid to
5448 generic_file_frame_chain_valid.
5449
049ee0e4
AC
54502002-07-03 Andrew Cagney <ac131313@redhat.com>
5451
5452 * gdbarch.sh (struct regcache): Add opaque declaration.
5453 (EXTRACT_RETURN_VALUE): New architecture method.
5454 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5455 * gdbarch.h, gdbarch.c: Regenerate.
5456 * arch-utils.c (legacy_extract_return_value): New function.
5457 * arch-utils.h (legacy_extract_return_value): Declare.
5458 * values.c (value_being_returned): Re-enable code handling
5459 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5460 deprecated_grub_regcache_for_registers call to block handling
5461 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5462 (EXTRACT_RETURN_VALUE): Do not define.
5463
4e0d9804
GS
54642002-07-03 Grace Sainsbury <graces@redhat.com>
5465
5466 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5467 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5468 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5469 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5470 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5471 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5472 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5473 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5474 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5475 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5476 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5477 argument so the function fits the prototype in the architecture
5478 vector.
5479 (mcore_pop_frame): Remove argument so the function fits the
5480 prototype. Use get_current_frame instead of the argument.
5481 (mcore_push_arguments): Change type of struct_return so the
5482 function can be used in the architecture vector.
5483 (mcore_store_struct_return): Add.
5484 (mcore_frame_init_saved_regs): Add.
5485 (mcore_gdbarch_init): Add function calls to replace the macros
5486 removed from tm-mcore.h
5487
36160dc4
AC
54882002-07-03 Andrew Cagney <ac131313@redhat.com>
5489
5490 * infcmd.c (print_return_value): Remove compatibility code calling
5491 deprecated_grub_regcache_for_registers.
5492
5493 * values.c: Include "regcache.h".
5494 (value_being_returned): Update. Use
5495 deprecated_grub_regcache_for_registers to extract the register
5496 buffer address.
5497 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5498 ``struct regcache''.
5499 * Makefile.in (values.o): Add dependency on $(regcache_h).
5500
5501 * inferior.h (run_stack_dummy): Change type of second parameter to
5502 a ``struct regcache''.
5503 * valops.c (hand_function_call): Change type of retbuf to ``struct
5504 regcache''. Allocate using regcache_xmalloc, clean using
5505 make_cleanup_regcache_xfree.
5506 * infcmd.c (run_stack_dummy): Update. Use
5507 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5508
5509 * regcache.c (do_regcache_xfree): New function.
5510 (make_cleanup_regcache_xfree): New function.
5511 * regcache.h (make_cleanup_regcache_xfree): Declare.
5512
e64d9b3d
MH
55132002-07-03 Martin M. Hunt <hunt@redhat.com>
5514
4dd79c29
MH
5515 * event-top.c (command_line_handler): Don't read past
5516 beginning of buffer.
e64d9b3d 5517
4dd79c29
MH
55182002-07-03 Martin M. Hunt <hunt@redhat.com>
5519
e64d9b3d
MH
5520 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5521 struct frame_id.
5522 (varobj_create): Store frame_id for root.
5523 (varobj_gen_name): Use xasprintf.
5524 (varobj_update): Save and restore frame using get_frame_id() and
5525 frame_find_by_id().
5526 (create_child): Use xasprintf.
5527 (new_root_variable): Initialize frame_id.
5528 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5529 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5530 to prevent memory leak.
5531
26e6c56a
AC
55322002-07-03 Andrew Cagney <ac131313@redhat.com>
5533
5534 * valops.c (hand_function_call): Move declaration of retbuf to
5535 start of function, allocate using malloc, add a cleanup but before
5536 the inf_status cleanup, cleanup the buffer. Rename local variable
5537 old_chain to inf_status_cleanup.
5538
f436dd25
MH
55392002-07-03 Martin M. Hunt <hunt@redhat.com>
5540
5541 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5542
5543 * cli/cli-decode.c (cmd_func_p): New function.
5544 (cmd_func): New function.
5545
5546 * command.h: Add cmd_func() and cmd_func_p().
5547
4cfe2084
GS
55482002-07-03 Grace Sainsbury <graces@redhat.com>
5549
5550 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5551 (REGISTER_SIZE): Remove.
5552 (MAX_REGISTER_RAW_SIZE): Remove.
5553 (REGISTER_VIRTUAL_TYPE): Remove.
5554 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5555 (REGISTER_NAME): Remove.
5556 (USE_GENERIC_DUMMY_FRAMES): Remove.
5557 (CALL_DUMMY): Remove.
5558 (CALL_DUMMY_START_OFFSET): Remove.
5559 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5560 (CALL_DUMMY_LOCATION): Remove.
5561 (FIX_CALL_DUMMY): Remove.
5562 (CALL_DUMMY_ADDRESS): Remove.
5563 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5564 (SAVE_DUMMY_FRAME_TOS): Remove.
5565 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5566 (mcore_register_virtual_type): New function.
5567 (mcore_register_byte): New function.
5568 (mcore_register_size): New function.
5569 (mcore_register_name): New function.
5570 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5571 macros removed from tm-mcore.h.
5572 (mcore_dump_tdep): Add.
5573 (_initialize_mcore_tdep): Add gdbarch_register call.
5574
4fd667e9
MK
55752002-07-03 Mark Kettenis <kettenis@gnu.org>
5576
5577 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5578 frameless_look_for_prologue, such that we actually call this
5579 function.
5580
42f99ac2
JB
55812002-07-02 Joel Brobecker <brobecker@gnat.com>
5582
5583 * frame.h (frame_address_in_block): New function.
5584
5585 * blockframe.c (frame_address_in_block): New function extracted
5586 from get_frame_block().
5587 (get_frame_block): Use frame_address_in_block().
5588 (block_innermost_frame): Use frame_address_in_block() to match
5589 the frame pc address against the block boundaries rather than
5590 the frame pc directly. This prevents a failure when a frame pc
5591 is actually a return-address pointing immediately after the end
5592 of the given block.
5593
103a1597 55942002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5595
5596 * MAINTAINERS: Add self under write after approval.
5597
55982002-07-02 Grace Sainsbury <graces@redhat.com>
5599
103a1597
GS
5600 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5601 used in architecture vector. The default is
5602 m68k_local_breakpoint_from_pc.
5603 (m68k_local_breakpoint_from_pc): Add.
5604 (enum): Add register numbers from tm-m68k.h.
5605 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5606 vector.
5607 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5608 GDB_MULTI_ARCH_PARTIAL.
5609 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5610 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5611 m68k-tdep.c.
5612 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5613 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5614 to enum in m68k-tdep.c
5615
7a5a0534
JB
56162002-07-02 Joel Brobecker <brobecker@gnat.com>
5617
5618 * solib-osf.c (open_map): Compute the list of shared libraries
5619 loaded by the inferior, rather than the list of libraries loaded
5620 by GDB itself. Otherwise, GDB ends up reading the symbols from
5621 the wrong shared libraries...
5622
6f558d74
MK
56232002-07-02 Mark Kettenis <kettenis@gnu.org>
5624
b7d15bf7
MK
5625 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5626 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5627 macros.
5628 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5629 Remove functions.
5630 (FRAMELESS_SIGNAL): Remove function.
5631 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5632 i386_linux_saved_pc_after_call): Removed.
5633 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5634 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5635 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5636
6bff26de
MK
5637 * i386-tdep.c (i386_frameless_signal_p): New function.
5638 (i386_frame_chain): Deal with frameless signals.
5639 (i386_sigtramp_saved_sp): New function.
5640 (i386_frame_saved_pc): Deal with frameless signals.
5641 (i386_saved_pc_after_call): Make sure the correct value is
5642 returned just after entry into a sigtramp.
5643 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5644 i386fbsd4_sc_sp_offset): New variables.
5645 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5646 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5647 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5648 similiar to what we already did for sc_pc_offset.
5649 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5650 tdep->sc_sp_offset.
5651
6f558d74
MK
5652 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5653
145564b7
ML
56542002-07-02 Michal Ludvig <mludvig@suse.cz>
5655
5656 * config/i386/tm-x86-64linux.h: New.
5657 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5658 definitions.
5659 * config/i386/nm-x86-64.h: Rename to ...
5660 * config/i386/nm-x86-64linux.h: ... this one.
5661 * config/i386/x86-64linux.mh: Reflect the above change.
5662
3a1e71e3
MK
56632002-07-01 Mark Kettenis <kettenis@gnu.org>
5664
21d0e8a4
MK
5665 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5666 with sigcontext_addr. Add sc_sp_offset.
5667 (i386bsd_sigtramp_saved_pc): Remove prototype.
5668 (i386bsd_sicontext_addr): Add prototype.
5669 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5670 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5671 (i386_svr4_sigtramp_saved_pc): Removed.
5672 (i386_svr4_sigcontext_addr): New function.
5673 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5674 Initialize tdep->sigcontext_addr instead. Initialize
5675 tdep->sc_pc_offset and tdep->sc_sp_offset.
5676 (i386_gdbarch_init): Likewise.
5677 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5678 any more.
5679 (i386bsd_sigtramp_saved_pc): Remove function.
5680 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5681 Initialize tdep->sigcontext_addr instead. Initialize
5682 tdep->sc_pc_offset.
5683 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5684 of tdep->sigtramp_saved_pc.
5685 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5686 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5687 instead.
5688
3a1e71e3
MK
5689 * i386-tdep.c (i386_frameless_function_invocation,
5690 i386_frame_num_args, i386_frame_init_saved_regs,
5691 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5692 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5693 i386_extract_return_value, i386_store_return_value,
5694 i386_extract_struct_value_address, i386_register_virtual_type,
5695 i386_register_convertible, i386_register_convert_to_virtual,
5696 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5697 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5698 static.
5699
52e9098c
MK
57002002-07-01 Mark Kettenis <kettenis@gnu.org>
5701
77b13a25
MK
5702 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5703
52e9098c
MK
5704 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5705 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5706 this macro. Include "value.h".
5707
1b372fff
AS
57082002-06-30 Aidan Skinner <aidan@velvet.net>
5709
5710 * ada-exp.tab.c: remove as it's a generated file
5711 * ada-lex.c: remove as it's a generated file
5712
9c5045b5
MK
57132002-06-30 Mark Kettenis <kettenis@gnu.org>
5714
4a93c5bb
MK
5715 * config/i386/tm-i386.h (struct frame_info, struct
5716 frame_saved_regs, struct value, struct type): Remove forward
5717 declarations.
5718
322d4fe0
MK
5719 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5720 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5721 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5722 (FILL_FPXREGSET): Define.
5723
fdd8263d
MK
5724 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5725
482e577b
MK
5726 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5727 i[3456]86-*-netbsd* case.
5728 * config/i386/tm-obsd.h: Removed.
5729 * config/i386/obsd.mt: Removed.
5730 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5731 core-aout.o.
5732 (MH_CFLAGS): Add -DYYDEBUG=0.
5733
6916549a
MK
5734 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5735 i386nbsd_sc_pc_offset on OpenBSD too.
5736
9c5045b5
MK
5737 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5738 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5739 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5740 define.
5741 * i386bsd-tdep.c: Include "arch-utils.h".
5742 (i386bsd_aout_in_solib_call_trampoline): New function.
5743 (i386bsd_init_abi): Set in_solib_call_trampoline to
5744 i386bsd_aout_in_solib_call_trampoline.
5745 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5746 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5747
aa84d1bb
AC
57482002-06-28 Andrew Cagney <ac131313@redhat.com>
5749
5750 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5751 (struct obstack, struct bcache): Add opaque declarations.
5752 * Makefile.in (macrotab_h): Update
5753
b4d83933
AC
57542002-06-28 Andrew Cagney <ac131313@redhat.com>
5755
5756 * blockframe.c (generic_find_dummy_frame): Change return type to
5757 ``struct regcache''.
5758 (struct dummy_frame): Replace field ``registers'' with regcache, a
5759 struct regcache object.
5760 (generic_find_dummy_frame): Update.
5761 (generic_push_dummy_frame): Update. Use regcache_xfree,
5762 regcache_xmalloc and regcache_cpy.
5763 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5764 regcache_xfree.
5765 (deprecated_generic_find_dummy_frame): Update.
5766 (generic_read_register_dummy): Update. Use
5767 regcache_read_as_address.
5768 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5769 (generic_get_saved_register): Update. Use regcache_read.
5770
08c0b5bc
AC
57712002-06-28 Andrew Cagney <ac131313@redhat.com>
5772
5773 * Makefile.in (objfiles_h): Add $(bcache_h).
5774 * objfiles.h: Include "bcache.h".
5775
5776 * Makefile.in (symtab_h): Remove $(bcache_h).
5777 * symtab.h: Do not include "bcache.h".
5778
1f89801a
AC
57792002-06-28 Andrew Cagney <ac131313@redhat.com>
5780
5781 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5782 generic_func_frame_chain_valid.
5783
b9644b58
DB
57842002-06-28 David O'Brien <obrien@FreeBSD.org>
5785
5786 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5787 * config/i386/tm-fbsd.h: Likewise.
5788
dd486634
AC
57892002-06-28 Andrew Cagney <ac131313@redhat.com>
5790
5791 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5792 generic_unwind_get_saved_register.
5793
0b434a00
AC
57942002-06-27 Andrew Cagney <ac131313@redhat.com>
5795
5796 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5797 * regcache.c (supply_register): Add missing argument to
5798 register_buffer call.
5799
f30e5a77
AC
58002002-06-27 Andrew Cagney <ac131313@redhat.com>
5801
5802 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5803 Solaris /bin/grep does not not like it. From Peter Schauer.
5804
9f064c95
TT
58052002-06-26 Tom Tromey <tromey@redhat.com>
5806
5807 * command.h (add_setshow_cmd): Declare.
5808 (add_setshow_cmd_full): Declare.
5809 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5810 returns void. Use add_setshow_cmd_full.
5811 (add_setshow_cmd_full): New function.
5812 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5813 (add_setshow_boolean_cmd): Likewise.
5814
099c7589
JT
58152002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5816
5817 * config/vax/tm-vax.h: Protect from multiple inclusion.
5818 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5819 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5820 * config/vax/tm-vaxbsd.h: ...here. New file.
5821 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5822
1d049c5e
JT
58232002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5824
5825 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5826 (BELIEVE_PCC_PROMOTION): Remove.
5827 (AP_REGNUM): Move to...
5828 * config/vax/nm-vax.h: ...here.
5829 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5830 (vax_breakpoint_from_pc): New function.
5831 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5832 and gdbarch_believe_pcc_promotion.
5833
4791e091
JT
58342002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5835
5836 * Makefile.in (vax_tdep_h): Define.
5837 (vax-tdep.o): Use $(vax_tdep_h).
5838 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5839 (vax_dump_tdep): New function.
5840 (_initialize_vax_tdep): Register vax_dump_tdep.
5841 * vax-tdep.h: Include osabi.h.
5842 (struct gdbarch_tdep): New.
5843
da130f98
AC
58442002-06-26 Andrew Cagney <cagney@redhat.com>
5845
5846 * frame.h (deprecated_generic_find_dummy_frame): Rename
5847 generic_find_dummy_frame.
5848 * blockframe.c (generic_find_dummy_frame): Make static.
5849 (deprecated_generic_find_dummy_frame): New function.
5850 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5851 generic_find_dummy_frame with deprecated_find_dummy_frame.
5852 (sh64_nofp_frame_init_saved_regs): Ditto.
5853 (sh_fp_frame_init_saved_regs): Ditto.
5854 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5855 (s390_frame_chain): Ditto.
5856 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5857
6300c360
GS
58582002-06-26 Grace Sainsbury <graces@redhat.com>
5859
5860 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5861 gdbarch vector are at the top.
5862 (NUM_REGS): Remove.
5863 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5864 (FRAME_ARGS_ADDRESS): Remove.
5865 (FRAME_LOCALS_ADDRESS): Remove.
5866 (FRAME_NUM_ARGS): Remove.
5867 (FRAME_ARGS_SKIP): Remove.
5868 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5869 (m68k_gdbarch_init): Add gdbarch initializations for macros
5870 undefined in tm-m68k.h
5871
1c617db8
GS
58722002-06-26 Grace Sainsbury <graces@redhat.com>
5873
5874 * monitor.h: Add the function regname to monitor_ops
5875 structure. This way NUM_REGS does not have to be a constant.
5876 * monitor.c (monitor_fetch_register): Added support for regname
5877 function. The function is called if the array regnames is NULL.
5878 (monitor_store_register): Same.
da130f98
AC
5879 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5880 regnames array.
1c617db8
GS
5881 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5882 cpu32bug_cmds.regname to point to new function.
5883 * abug-rom.c (abug_regname): Same as above.
5884 (init_abug_cmds): Same.
5885 * dbug-rom.c (dbug_regname): Same as above.
5886 (init_dbug_cmds): Same.
5887 * remote-est.c (est_regname): Same.
5888 (init_est_cmds): Same.
5889 * rom68k-rom.c (rom68k_regname): Same.
5890 (init_rom68k_cmds): Same.
5891
ea9365bb
TT
58922002-06-25 Tom Tromey <tromey@redhat.com>
5893
5894 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5895
72cec141
AC
58962002-06-25 Andrew Cagney <cagney@redhat.com>
5897
5898 * infrun.c (stop_registers): Change variable's type to ``struct
5899 regcache'''.
5900 (xmalloc_inferior_status): Delete function.
5901 (free_inferior_status): Delete function.
5902 (normal_stop): Use regcache_cpy.
5903 (struct inferior_status): Change type of fields ``stop_registers''
5904 and ``registers'' to ``struct regcache''.
5905 (write_inferior_status_register): Use regcache_write.
5906 (save_inferior_status): Instead of calling
5907 xmalloc_inferior_status, allocate the inf_status buffer directly.
5908 Use regcache_dup_no_passthrough and regcache_dup to save the
5909 buffers.
5910 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5911 Replace the stop_registers regcache instead of overriding it. Use
5912 regcache_xfree. Instead of calling free_inferior_status, xfree
5913 the buffer directly.
5914 (discard_inferior_status): Use regcache_xfree. Instead of calling
5915 free_inferior_status, xfree the buffer directly.
5916 (build_infrun): Use regcache_xmalloc.
5917 (_initialize_infrun): Delete redundant call to build_infrun.
5918
5919 * Makefile.in (infcmd.o): Add $(regcache_h).
5920
5921 * infcmd.c: Include "regcache.h".
5922 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5923 obtain the address of `stop_registers' register buffer.
5924 (print_return_value): Ditto.
5925
5926 * inferior.h (struct regcache): Add opaque declaration.
5927 (stop_registers): Change variable's declared type to ``struct
5928 regcache''.
5929
defc6f8c
TT
59302002-06-24 Tom Tromey <tromey@redhat.com>
5931
c0e624e7
TT
5932 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5933 * target.c (initialize_targets): Fixed typo in
5934 trust-readonly-sections `show' documentation.
5935
defc6f8c
TT
5936 * main.c: Marked all strings with _().
5937
2b236d82
DH
59382002-06-24 Don Howard <dhoward@redhat.com>
5939
5940 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5941 that means max CORE_ADDR+1.
5942 (lookup_mem_region): Ditto.
5943 (mem_info_command): Ditto.
5944
942dc0e9
GS
59452002-06-24 Grace Sainsbury <graces@redhat.com>
5946
5947 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5948 (REGISTER_BYTES_OK): Remove.
5949 (REGISTER_BYTES): Remove.
5950 (STORE_STRUCT_RETURN): Remove.
5951 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5952 (STORE_RETURN_VALUE): Remove.
5953 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5954 (FRAME_CHAIN): Remove.
5955 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5956 (FRAME_SAVED_PC): Remove.
5957 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5958 (m68k_store_struct_return): Add.
5959 (m68k_deprecated_extract_return_value): Add.
5960 (m68k_deprecated_extract_struct_value_address): Add.
5961 (m68k_store_return_value): Add.
5962 (m68k_frame_chain): Add.
5963 (m68k_frameless_function_invocation): Add.
5964 (m68k_frame_saved_pc): Add.
5965 (m68k_gdbarch_init): added set_gdbarch calls for new
5966 functions and deleted macros.
5967
03c30d4d
TT
59682002-06-23 Tom Tromey <tromey@redhat.com>
5969
5970 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5971 (ALLDEPFILES): Likewise.
5972 (udiheaders): Removed.
5973 (udip2soc.o): Likewise.
5974 (udi2go32.o): Likewise.
5975 (udr.o): Likewise.
5976 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5977
37e71372
AC
59782002-06-22 Andrew Cagney <ac131313@redhat.com>
5979
06a6ac57
AC
5980 * infrun.c (_initialize_infrun): Delete unnecessary call to
5981 build_infrun.
5982
37e71372
AC
5983 * regcache.h: Update comments describing the regcache_cpy family
5984 of functions.
5985 (regcache_save, regcache_restore): Delete declaration.
5986 (regcache_save_no_passthrough): Delete declaration.
5987 (regcache_restore_no_passthrough): Delete declaration.
5988 * regcache.c (regcache_save): Delete function.
5989 (regcache_save_no_passthrough): Delete function.
5990 (regcache_restore): Delete function.
5991 (regcache_restore_no_passthrough): Delete function.
5992
78f6d055
AC
59932002-06-21 Andrew Cagney <ac131313@redhat.com>
5994
5995 * config/m68k/tm-m68k.h: Fix typo.
5996 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5997 (m68k_frame_init_saved_regs): Declare.
5998
78b119cb
JB
59992002-06-21 Jim Blandy <jimb@redhat.com>
6000
6001 Remove some vestiges of Harris 88k support.
6002 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6003 register numbering quirk.
6004 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6005 odd symbols occurring in Harris 88k ELF targets.
6006
0fbb3da7
TT
60072002-06-21 Tom Tromey <tromey@redhat.com>
6008
6009 * gdb_locale.h: New file.
6010 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6011 (defs_h): Added gdb_locale.h.
6012 * configure, config.in: Rebuilt.
6013 * configure.in (PACKAGE): Define.
6014 * defs.h: Include gdb_locale.h.
6015 * main.c (captured_main): Call setlocale, bindtextdomain,
6016 textdomain.
6017
456f8b9d
DB
60182002-06-21 Dave Brolley <brolley@redhat.com>
6019
6020 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6021 * config/frv/frv.mt: New file.
6022 * config/frv/tm-frv.h: New file.
6023 * configure.tgt: Support frv-*-*.
6024 * Makefile.in (frv-tdep.o): New target.
6025 * frv-tdep.c: New file.
6026 * NEWS: Mention frv.
6027
cdd463f9
DB
60282002-06-21 Dave Brolley <brolley@redhat.com>
6029
6030 * MAINTAINERS: Add self to "Write After Approval" list.
6031
5d3ed2e3
GS
60322002-06-21 Grace Sainsbury <graces@redhat.com>
6033
6034 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6035 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6036 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6037 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6038 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6039
6040 * m68k-tdep.c: Include arch-utils.h
6041 (m68k_register_raw_size): Add.
6042 (m68k_register_virtual_size): Add.
6043 (m68k_register_virtual_type): Add.
6044 (m68k_register_name): Add.
6045 (m68k_stack_align): Add.
6046 (m68k_register_byte): Add.
6047 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6048 tm-m68k.h.
6049
7f8e7424
GS
60502002-06-21 Grace Sainsbury <graces@redhat.com>
6051
a2c6a6d5 6052 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6053 m68k_find_saved_regs.
6054 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6055 references to it with frame->saved_regs.
7f8e7424
GS
6056 (m68k_gdbarch_init): Added function calls to initialize the
6057 gdbarch structure.
a2c6a6d5
GS
6058 (m68k_fix_call_dummy): Add.
6059 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6060 (CALL_DUMMY): Remove.
6061 (CALL_DUMMY_LENGTH): Remove.
6062 (CALL_DUMMY_START_OFFSET): Remove.
6063 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6064 (FIX_CALL_DUMMY): Remove.
6065 (PUSH_DUMMY_FRAME): Remove.
6066 (POP_FRAME): Remove.
7f8e7424 6067
f461f5cf
PM
60682002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6069
6070 * parse.c (parse_fprintf): New function used to avoid calls to
6071 fprintf in bison parser generated debug code.
6072 * parser-defs.h: Declaration of new parse_fprintf function.
6073 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6074 Set YYDEBUG to 1 by default.
6075 Set YYFPRINTF as parse_fprintf.
6076
7f0c12ed
ML
60772002-06-21 Michal Ludvig <mludvig@suse.cz>
6078
6079 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6080 encoding anymore.
6081 (pointer_encoding, enum ptr_encoding): New.
6082 (execute_cfa_program): Take care about pointer encoding.
6083 (dwarf2_build_frame_info): Only call parse_frame_info for
6084 .debug_frame and .eh_frame.
6085 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6086 fixed augmentation handling, added relative addressing,
6087 ignore duplicate FDEs. Added comments.
19d833a2 6088 * dwarf2cfi.c: Reindented.
7f0c12ed 6089
87c4a039
EZ
60902002-06-20 Elena Zannoni <ezannoni@redhat.com>
6091
6092 * event-top.c (command_handler): Don't use space_at_cmd_start
6093 unless there is sbrk() on the host. Assign time and space data
6094 to union fields of the appropriate length.
6095
1cf877ad
ML
60962002-06-20 Michal Ludvig <mludvig@suse.cz>
6097
6098 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6099 x86_64_register_name. Return type changed to 'const char *'.
6100 (x86_64_register_name2nr): Rename to x86_64_register_number.
6101 (x86_64_gdbarch_init): Update to reflect the change.
6102 * x86-64-tdep.h: Ditto.
6103 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6104 (supply_fpregset): Ditto.
6105
3fadccb3
AC
61062002-06-19 Andrew Cagney <cagney@redhat.com>
6107
6108 * regcache.h: Update copyright.
6109 (struct regcache, struct gdbarch): Add opaque declarations.
6110 (current_regcache): Declare global variable.
6111 (regcache_read, regcache_write): Add gdbarch parameter.
6112 (regcache_save, regcache_save_no_passthrough)
6113 (regcache_restore, regcache_restore_no_passthrough)
6114 (regcache_dup, regcache_dup_no_passthrough)
6115 (regcache_cpy, regcache_cpy_no_passthrough)
6116 (deprecated_grub_regcache_for_registers)
6117 (deprecated_grub_regcache_for_register_valid)
6118 (regcache_valid_p): Add function declarations.
6119
6120 * regcache.c: Update copyright.
6121 (regcache_descr_handle): New global variable.
6122 (struct regcache_descr): Define.
6123 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6124 (regcache_descr, xfree_regcache_descr): New functions.
6125 (struct regcache): Define.
6126 (regcache_xmalloc, regcache_xfree): New functions.
6127 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6128 (regcache_dup, regcache_dup_no_passthrough): New functions.
6129 (regcache_valid_p, regcache_read_as_address): New functions.
6130 (deprecated_grub_regcache_for_registers): New function.
6131 (deprecated_grub_regcache_for_register_valid): New function.
6132 (current_regcache): New global variable.
6133 (register_buffer): Add regcache parameter. Update calls.
6134 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6135 (read_register_gen, write_register_gen): Update register_buffer
6136 call. Test for legacy_p instead of gdbarch_register_read_p or
6137 gdbarch_register_write_p.
6138 (regcache_collect): Update register_buffer call.
6139 (build_regcache): Rewrite. Use deprecated grub functions.
6140 (regcache_save, regcache_save_no_passthrough): New functions.
6141 (regcache_restore, regcache_restore_no_passthrough): New
6142 functions.
6143 (_initialize_regcache): Create the regcache_data_handle. Swap
6144 current_regcache global variable.
6145
6146 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6147 parameter to regcache_read and regcache_write calls.
6148 (sh4_register_read): Ditto.
6149 (sh64_pseudo_register_read): Ditto.
6150 (sh64_register_read): Ditto.
6151 (sh_pseudo_register_write): Ditto.
6152 (sh4_register_write): Ditto.
6153 (sh64_pseudo_register_write): Ditto.
6154 (sh64_register_write): Ditto.
6155
6156 * defs.h (XCALLOC): Define.
6157
152d9db6
GS
61582002-06-19 Grace Sainsbury <graces@redhat.com>
6159
6160 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6161 * m68k-tdep.c (m68k_gdbarch_init): Added.
6162 (m68k_dump_tdep): Added.
6163
170911c7
DJ
61642002-06-19 Daniel Jacobowitz <drow@mvista.com>
6165
6166 * ada-lang.c (fill_in_ada_prototype): Update comment.
6167
2e4ebe70
DJ
61682002-06-19 Daniel Jacobowitz <drow@mvista.com>
6169
6170 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6171 MIPS_ABI_LAST.
6172 (mips_abi_string, mips_abi_strings): New.
6173 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6174 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6175 tdep->mips_abi_string. Honor mips_abi_string. Default to
6176 O32 if no ABI is found.
6177 (mips_dump_tdep): Use mips_abi_strings.
6178 (mips_abi_update): New function.
6179 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6180 ``set mips abi'' and ``show mips abi''. Check the size of
6181 mips_abi_strings.
6182
16775908
AC
61832002-06-19 Andrew Cagney <cagney@redhat.com>
6184
6185 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6186 constant.
6187
5051bfa4 61882002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6189
5051bfa4
JB
6190 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6191 current frame using only the first stack size adjustment. All
6192 subsequent size adjustments are not considered to be part of
6193 the "static" part of the current frame.
6194 Compute the address of the saved registers relative to the
6195 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6196 in use in this frame.
6197
56468235
DH
61982002-06-18 Don Howard <dhoward@redhat.com>
6199
6200 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6201 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6202 suggesting this solution.
6203
0b624158
AC
62042002-06-18 Andrew Cagney <ac131313@redhat.com>
6205
6206 * config/romp/xm-rtbsd.h: Delete file.
6207 * config/romp/rtbsd.mh: Delete file.
6208
221ea385
KS
62092002-06-18 Keith Seitz <keiths@redhat.com>
6210
6211 * breakpoint.c (condition_command): Post breakpoint_modify
6212 when a condition is added to an existing breakpoint.
6213 (commands_command): Likewise for commands.
6214 (set_ignore_count): Likewise for ignore counts.
6215 If no tty, do not simply return, still need to send event
6216 notification.
6217 (ignore_command): Only print a newline if the command came
6218 from a tty.
6219 Don't call breakpoints_changed, since this is now properly
6220 handled by set_ignore_count.
6221
5402eed1
AC
62222002-06-18 Andrew Cagney <cagney@redhat.com>
6223
6224 * MAINTAINERS: Note that cris-elf target can be compiled with
6225 -Werror.
6226 * cris-tdep.c (cris_register_name): Make return type constant.
6227 (cris_breakpoint_from_pc): Ditto.
6228
cc22880b
ML
62292002-06-18 Michal Ludvig <mludvig@suse.cz>
6230
6231 * frame.h (struct frame_info): Change type of context to
6232 'struct context'.
6233
fa88f677
AC
62342002-06-17 Andrew Cagney <cagney@redhat.com>
6235
6236 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6237 pointer.
6238 * gdbarch.h, gdbarch.c: Regenerate.
6239 * config/mips/tm-mips.h (mips_register_name): Update.
6240 * i386-tdep.h (i386_register_name): Update.
6241 * mips-tdep.c (mips_register_name): Update
6242 * alpha-tdep.c (alpha_register_name): Update.
6243 * arch-utils.c (legacy_register_name): Update.
6244 * arch-utils.h (legacy_register_name): Update.
6245 * avr-tdep.c (avr_register_name): Update.
6246 * ia64-tdep.c (ia64_register_name): Update.
6247 * i386-tdep.c (i386_register_name): Update.
6248 * sparc-tdep.c (sparc32_register_name): Update.
6249 (sparc64_register_name): Update.
6250 (sparclite_register_name): Update.
6251 (sparclet_register_name): Update.
6252 * sh-tdep.c (sh_generic_register_name): Update.
6253 (sh_sh_register_name): Update.
6254 (sh_sh3_register_name): Update.
6255 (sh_sh3e_register_name): Update.
6256 (sh_sh_dsp_register_name): Update.
6257 (sh_sh3_dsp_register_name): Update.
6258 (sh_sh4_register_name): Update.
6259 (sh_sh64_register_name): Update.
6260 * s390-tdep.c (s390_register_name): Update.
6261 * rs6000-tdep.c (rs6000_register_name): Update.
6262 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6263 (ns32k_register_name_32382): Update.
6264 * d10v-tdep.c (d10v_ts2_register_name): Update.
6265 (d10v_ts3_register_name): Update.
6266 * xstormy16-tdep.c (xstormy16_register_name): Update.
6267 * vax-tdep.c (vax_register_name): Update.
6268 * v850-tdep.c (v850_register_name): Update.
6269 * m68hc11-tdep.c (m68hc11_register_name): Update.
6270 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6271 (am33_register_name): Update.
6272
ea1e7ef6
GS
62732002-06-17 Grace Sainsbury <graces@redhat.com>
6274
6275 * m68k-tdep.c: Reindented.
6276
9b02dd1b
AC
62772002-06-17 Andrew Cagney <ac131313@redhat.com>
6278
6279 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6280 list of predefined types.
6281
8758dec1
MK
62822002-06-16 Mark Kettenis <kettenis@gnu.org>
6283
b6197528
MK
6284 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6285 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6286 REGISTER_CONVERT_TO_RAW): Remove defines.
6287 (i386_register_virtual_type, i386_register_convertible,
6288 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6289 Remove prototypes.
6290 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6291 macros mentioned above.
6292
82b47e62
MK
6293 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6294 (i386lynx_saved_pc_after_call): Remove prototype.
6295 * i386ly-tdep.c: Include "i386-tdep.h".
6296 (i386lynx_saved_pc_after_call): Make static. Use
6297 read_memory_nobpt instead of read_memory. Use
6298 read_memory_unsigned_integer instead of read_memory_integer.
6299 (i386lynx_init_abi): New function.
6300 (i386lynx_coff_osabi_sniffer): New function.
6301 (_initialize_i386bsd_tdep): New function.
6302
8758dec1
MK
6303 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6304 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6305 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6306 (i386_fix_call_dummy): Remove prototype.
6307 * i386-tdep.c (i386_call_dummy_words): New variable.
6308 (i386_gdbarch_init): Adjust for removal of the
6309 macros mentioned above.
6310
e9e68a56
AC
63112002-06-15 Andrew Cagney <ac131313@redhat.com>
6312
6313 * command.h (add_setshow_auto_boolean_cmd): Replace
6314 add_set_auto_boolean_cmd.
6315 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6316 add_set_auto_boolean_cmd.
6317 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6318 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6319 mask-address'' command.
6320 (show_mask_address): Add cmd parameter.
6321 * remote.c (add_packet_config_cmd): Update. Change type of
6322 set_func and show_func to cmd_sfunc_ftype.
6323 (_initialize_remote): Update `set remote Z-packet'
6324 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6325 (show_remote_protocol_e_packet_cmd): Ditto.
6326 (show_remote_protocol_E_packet_cmd): Ditto.
6327 (show_remote_protocol_P_packet_cmd): Ditto.
6328 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6329 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6330 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6331 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6332 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6333 (show_remote_protocol_Z_packet_cmd): Ditto.
6334 (show_remote_protocol_binary_download_cmd): Ditto.
6335 (show_remote_cmd): Pass NULL to all of above.
6336
fc08ec52
MK
63372002-06-15 Mark Kettenis <kettenis@gnu.org>
6338
6339 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6340 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6341 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6342 POP_FRAME): Remove defines.
6343 (i386_push_arguments, i386_store_struct_return,
6344 i386_extract_return_value, i386_store_return_value,
6345 i386_extract_struct_value_address, i386_push_dummy_frame,
6346 i386_pop_frame): Renove prototypes.
6347 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6348 macros mentioned above.
6349
e707bbc2
AC
63502002-06-15 Andrew Cagney <ac131313@redhat.com>
6351
6352 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6353 add_set_boolean_cmd.
6354 (add_setshow_cmd): New function.
6355 * command.h (add_setshow_boolean_cmd): Replace
6356 add_set_boolean_cmd.
6357 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6358 and ``set rdiromatzero''.
6359 * maint.c (_initialize_maint_cmds): Update commented out code.
6360 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6361 * target.c (initialize_targets): Update `set
6362 trust-readonly-sections'.
6363 * remote.c (_initialize_remote): Update `set remotebreak'.
6364
42fdc8df
MK
63652002-06-15 Mark Kettenis <kettenis@gnu.org>
6366
93924b6b
MK
6367 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6368 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6369 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6370 fit into multi-arch framework.
6371 (i386_breakpoint_from_pc): New function.
6372 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6373 above.
6374
42fdc8df
MK
6375 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6376 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6377 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6378 (i386_frameless_function_invocation, i386_frame_num_args,
6379 i386_frame_init_saved_regs): Remove prototypes.
6380 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6381 macros mentioned above.
6382
9773a94b
AC
63832002-06-15 Andrew Cagney <ac131313@redhat.com>
6384
6385 * cli/cli-decode.c (set_cmd_cfunc): Update.
6386 (set_cmd_sfunc): Update.
6387 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6388 (set_cmd_sfunc, set_cmd_cfunc): Update.
6389 * cli/cli-decode.h: Update.
6390
6e157172
MK
63912002-06-15 Mark Kettenis <kettenis@gnu.org>
6392
6393 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6394 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6395
7f19b9a2
AC
63962002-06-15 Andrew Cagney <ac131313@redhat.com>
6397
6398 * defs.h (auto_boolean): Declare enum.
6399 * command.h (cmd_auto_boolean): Delete enum.
6400 * mips-tdep.c (mask_address_var): Update.
6401 (mips_mask_address_p): Update.
6402 (show_mask_address): Update.
6403 * remote.c (struct packet_config): Update.
6404 (update_packet_config): Update.
6405 (show_packet_config_cmd): Update.
6406 (packet_ok): Update.
6407 (add_packet_config_cmd): Update.
6408 (_initialize_remote):
6409 * command.h: Update.
6410 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6411 (do_setshow_command): Update.
6412 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6413 * cli/cli-decode.h: Update.
6414
1cf88de5
MK
64152002-06-15 Mark Kettenis <kettenis@gnu.org>
6416
22ba8cf2
MK
6417 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6418 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6419 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6420 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6421 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6422 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6423
762c5349
MK
6424 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6425 list of DJGPP COFF targets.
6426
091198bb
MK
6427 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6428 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6429 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6430 (FP0_REGNUM): Remove define.
6431 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6432 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6433 (i386_register_virtual_size): Remove protoype.
6434 * i386-tdep.c (i386_register_virtual_size): Removed.
6435 (i386_extract_return_value, i386_store_return_value): Use
6436 FP0_REGNUM instead of NUM_FREGS to determine whether the
6437 floating-point registers are available.
6438 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6439 Adjust for removal of macros mentioned above.
6440
64412002-06-15 Mark Kettenis <kettenis@gnu.org>
6442
fcc9bf01
MK
6443 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6444 comments.
6445 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6446 Remove prototypes.
6447 (supply_gregset, fill_gregset): Remove use of register keyword and
6448 remove declaration for regmap. Use I386_NUM_GREGS instead of
6449 NUM_REGS and NUM_FREGS.
6450 (FPREGSET_FSAVE_OFFSET): Remove.
6451 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6452 NUM_FREGS to determine whether the floating-point registers are
6453 available.
6454
65e78234
MK
6455 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6456 gnu_store_registers): Replace usage of NUM_GREGS with
6457 I386_NUM_GREGS.
6458
98df6387
MK
6459 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6460 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6461 usage of NUM_GREGS with I386_NUM_GREGS.
6462
099a9414
MK
6463 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6464
57976e88
MK
6465 * i386bsd-nat.c: Include "i386-tdep.h".
6466 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6467 I386_NUM_GREGS.
6468
b335f4a6
MK
6469 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6470 and associated comment. They no longer make any sense, since we
6471 don't use this file anymore on Linux.
6472
1cf88de5
MK
6473 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6474 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6475 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6476 elements in these arrays.
6477 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6478 MAX_NUM_REGS.
6479
daa66587
MK
64802002-06-15 Mark Kettenis <kettenis@gnu.org>
6481
6482 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6483 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6484
26e9b323
AC
64852002-06-14 Andrew Cagney <cagney@redhat.com>
6486
6487 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6488 EXTRACT_RETURN_VALUE.
6489 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6490 EXTRACT_STRUCT_VALUE_ADDRESS.
6491 * gdbarch.h, gdbarch.c: Regenerate.
6492
6493 * values.c (value_being_returned): Handle
6494 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6495 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6496
6497 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6498 * arm-tdep.c (arm_gdbarch_init): Update.
6499 * avr-tdep.c (avr_gdbarch_init): Update.
6500 * cris-tdep.c (cris_gdbarch_init): Update.
6501 * d10v-tdep.c (d10v_gdbarch_init): Update.
6502 * ia64-tdep.c (ia64_gdbarch_init): Update.
6503 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6504 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6505 * s390-tdep.c (s390_gdbarch_init): Update.
6506 * sh-tdep.c (sh_gdbarch_init): Update.
6507 * s390-tdep.c (s390_gdbarch_init): Update.
6508 * sparc-tdep.c (sparc_gdbarch_init): Update.
6509 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6510 * v850-tdep.c (v850_gdbarch_init): Update.
6511 * vax-tdep.c (vax_gdbarch_init): Update.
6512 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6513 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6514
6515 * config/arc/tm-arc.h: Update.
6516 * config/d30v/tm-d30v.h: Update.
6517 * config/fr30/tm-fr30.h: Update.
6518 * config/h8300/tm-h8300.h: Update.
6519 * config/h8500/tm-h8500.h: Update.
6520 * config/i386/tm-i386.h: Update.
6521 * config/i386/tm-ptx.h: Update.
6522 * config/i386/tm-symmetry.h: Update.
6523 * config/i960/tm-i960.h: Update.
6524 * config/m32r/tm-m32r.h: Update.
6525 * config/m68k/tm-delta68.h: Update.
6526 * config/m68k/tm-linux.h: Update.
6527 * config/m68k/tm-m68k.h: Update.
6528 * config/m88k/tm-m88k.h: Update.
6529 * config/mcore/tm-mcore.h: Update.
6530 * config/mips/tm-mips.h: Update.
6531 * config/mn10200/tm-mn10200.h: Update.
6532 * config/pa/tm-hppa.h: Update.
6533 * config/pa/tm-hppa64.h: Update.
6534 * config/sparc/tm-sp64.h: Update.
6535 * config/sparc/tm-sparc.h: Update.
6536 * config/sparc/tm-sparclet.h: Update.
6537 * config/z8k/tm-z8k.h: Update.
6538
5179e78f
AC
65392002-06-14 Andrew Cagney <cagney@redhat.com>
6540
6541 * Makefile.in (i386_linux_tdep_h): Define.
6542 (i386_tdep_h, i387_tdep_h): Define.
6543 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6544 $(i386_tdep_h) and $(i387_tdep_h).
6545 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6546
8201327c
MK
65472002-06-14 Mark Kettenis <kettenis@gnu.org>
6548
edf393ac
MK
6549 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6550 Already covered by the default.
6551
896fb97d
MK
6552 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6553 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6554 (i386_gdbarch_init): Initialize long_double_format and long_double
6555 bit.
6556
8201327c
MK
6557 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6558 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6559 Move these to ...
6560 * config/i386/i386sol2.mh: ... here.
6561 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6562 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6563 (SIGCONTEXT_PC_OFFSET): Remove define.
6564 (IN_SIGTRAMP): Remove define.
6565 * i386-sol2-tdep.c: New file.
6566
6567 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6568 * config/i386/tm-i386nw.h: Removed.
6569
6570 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6571 USE_STRUCT_CONVENTION): Remove defines.
6572 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6573 (get_longjmp_target): Remove prototype.
6574 (IN_SIGTRAMP): Remove define.
6575 (i386bsd_in_sigtramp): Remove prototype.
6576 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6577 function. Update comment accordingly
6578 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6579 (FRAME_SAVED_PC): Remove define.
6580 (i386bsd_frame_saved_pc): Remove prototype.
6581 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6582 GET_LONGJMP_TARGET): Remove defines.
6583 (get_longjmp_target): Remove prototype.
6584 (IN_SIGTRAMP): Remove define.
6585 (i386bsd_in_sigtramp): Remove prototype.
6586 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6587 function. Update comment accordingly
6588 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6589 (FRAME_SAVED_PC): Remove define.
6590 (i386bsd_frame_saved_pc): Remove prototype.
6591 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6592 Remove prototype.
6593 (USE_STRUCT_CONVENTION): Remove prototype.
6594 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6595 declaration.
6596 (_initialize_i386bsd_nat): Revise logic to determine some
6597 constants at compile time when compiling a native GDB. Warn if
6598 things don't match up with what we expect.
6599 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6600 Remove variables.
6601 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6602 to use date stored in `struct gdbarch_tdep'.
6603 (i386bsd_sigcontext_offset): Remove varaible.
6604 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6605 stored in `struct gdbarch_tdep'.
6606 (i386bsd_frame_saved_pc): Make static.
6607 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6608 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6609 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6610 i386fbsd4_sc_pc_offset): New variables.
6611 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6612 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6613 functions.
6614 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6615 functions.
6616 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6617 Modify the value of i386fbsd_sigtramp_start and
6618 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6619 i386fbsd_sigtramp_end.
6620 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6621 function.
6622
6623 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6624 define to i386-linux-tdep.h.
6625 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6626 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6627 defines.
6628 (i386_linux_register_name, i386_linux_register_byte,
6629 i386_linux_register_raw_size): Remove prototypes.
6630 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6631 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6632 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6633 TARGET_WRITE_PC): Remove defines.
6634 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6635 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6636 i386_linux_write_pc): Remove prototypes.
6637 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6638 (get_longjmp_target): Remove prototype.
6639 * i386-linux-tdep.h: New file.
6640 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6641 * i386-linux-tdep.c: Include "i386-tdep.h" and
6642 "i386-linux-tdep.h".
6643 (i386_linux_register_name, i386_linux_register_byte,
6644 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6645 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6646 Make static.
6647 (i386_linux_init_abi): New function.
6648 (_initialize_i386_linux_tdep): New function.
6649
6650 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6651 (i386_saved_pc_after_call): Remove prototype.
6652 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6653 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6654 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6655 (i386_register_name, i386_stab_reg_to_regnum,
6656 i386_dwarf_reg_to_regnum): Remove prototypes.
6657 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6658 SIZEOF_SSE_REGS): Remove defines.
6659 (REGISTER_BYTES): Remove define.
6660 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6661 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6662 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6663 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6664 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6665 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6666 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6667 (get_longjmp_target): Remove prototype.
6668 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6669 (sigtramp_saved_pc): Remove define.
6670 (i386v4_sigtramp_saved_pc): Remove prototype.
6671 * config/i386/tm-go32.h (FRAME_CHAIN,
6672 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6673 (i386go32_frame_saved_pc): Remove prototype.
6674 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6675 (get_longjmp_target): Remove prototype.
6676 * i386-tdep.h: Include "osabi.h".
6677 (enum i386_abi): Removed.
6678 (enum struct_return): New enum.
6679 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6680 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6681 sc_pc_offset members.
6682 (i386_gdbarch_register_os_abi): Remove prototype.
6683 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6684 I386_SSE_NUM_REGS): New defines.
6685 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6686 I386_SSE_SIZEOF_REGS): New defines.
6687 (i386_register_name, i386_register_byte, i386_register_raw_size):
6688 New prototypes.
6689 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6690 (i386bsd_sigtramp_saved_pc): New prototype.
6691 * i386-tdep.c: Don't include "elf-bfd.h".
6692 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6693 i386_frame_chain, i386_saved_pc_after_call): Make static.
6694 (i386_frame_saved_pc): Rewrite to call architecture dependent
6695 function to deal with signal handlers. Make static.
6696 (i386go32_frame_saved_pc): Removed.
6697 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6698 Removed.
6699 (i386_get_longjmp_target): New function.
6700 (default_struct_convention, pcc_struct_convention,
6701 reg_struct_convention, valid_conventions, struct_convention): New
6702 variables.
6703 (i386_use_struct_convention): New function.
6704 (i386v4_sigtramp_saved_pc): Renamed to
6705 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6706 (i386_pc_in_sigtramp): New function.
6707 (i386_abi_names): Removed.
6708 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6709 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6710 Removed.
6711 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6712 i386_gdbarch_register_os_abi): Removed.
6713 (struct i386_abi_handler): Removed.
6714 (i386_abi_handler_list): Removed.
6715 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6716 functions.
6717 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6718 i386_nw_init_abi): New functions.
6719 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6720 Use set_gdbarch_xxx() calls instead of relying on macros for a
6721 number of calls.
6722 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6723 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6724 Register the various architecture variants defined in this file.
6725
ad2f7632
DJ
67262002-06-14 Daniel Jacobowitz <drow@mvista.com>
6727
6728 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6729 (struct main_type): Remove arg_types member. Update comments for
6730 struct field.
6731 (TYPE_ARG_TYPES): Remove.
6732 (TYPE_FN_FIELD_ARGS): Update.
6733 (smash_to_method_type): Update prototype.
6734
6735 * c-typeprint.c (cp_type_print_method_args): Take method type
6736 instead of argument list. Use new argument layout. Simplify.
6737 (c_type_print_args): Use new argument layout. Simplify.
6738 (c_type_print_base): Update call to cp_type_print_method_args.
6739 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6740 argument; use die->type instead. Update call to
6741 smash_to_method_type.
6742 (read_structure_scope): Update call to dwarf2_add_member_fn.
6743 * gdbtypes.c (allocate_stub_method): Update comment.
6744 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6745 Use new argument layout.
6746 (check_stub_method): Use new argument layout. Don't count
6747 void as an argument.
6748 (print_arg_types): Update comments. Use new argument layout.
6749 (recursive_dump_type): Don't print arg_types member.
6750 * hpread.c (hpread_read_struct_type): Use new argument layout.
6751 (fixup_class_method_type): Likewise.
6752 (hpread_type_lookup): Likewise.
6753 * stabsread.c (read_type): Update calls to read_args and
6754 smash_to_method_type.
6755 (read_args): Use new argument layout. Simplify.
6756 * valops.c (typecmp): Use new argument layout. Update parameters
6757 and comments. Simplify.
6758 (hand_function_call): Use new argument layout.
6759 (search_struct_method): Update call to typecmp.
6760 (find_overload_match): Use new argument layout.
6761
6da02953
DJ
67622002-06-13 Daniel Jacobowitz <drow@mvista.com>
6763
6764 * NEWS: Mention multithreaded debug support for gdbserver.
6765
519b2366
DJ
67662002-06-13 Daniel Jacobowitz <drow@mvista.com>
6767
6768 * MAINTAINERS: Mention NEWS.
6769
6c0d6680
DJ
67702002-06-13 Daniel Jacobowitz <drow@mvista.com>
6771
6772 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6773 (struct mips_objfile_private, compare_pdr_entries): New.
6774 (non_heuristic_proc_desc): Read the ".pdr" section if it
6775 is present.
6776
6529d2dd
AC
67772002-06-12 Andrew Cagney <ac131313@redhat.com>
6778
6779 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6780 (arm_debug): New static variable.
6781 (_initialize_arm_tdep): Add ``set debug arm'' command.
6782
26216b98
AC
67832002-06-12 Andrew Cagney <ac131313@redhat.com>
6784
6785 * Makefile.in (sim_arm_h): Define.
6786 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6787 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6788 (arm_register_sim_regno): New function, map an internal REGNUM
6789 onto a simulator register number.
6790 (arm_gdbarch_init): Set register_sim_regno.
6791
814b3ba0
AH
67922002-06-09 Aldy Hernandez <aldyh@redhat.com>
6793
6794 * MAINTAINERS: Add self.
6795
475b0867
JB
67962002-06-11 Jim Blandy <jimb@redhat.com>
6797
919d772c
JB
6798 * source.c (source_info): Mention whether the symtab has
6799 information about preprocessor macros.
6800
475b0867
JB
6801 Call the command `info macro', not `show macro'.
6802 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6803 Fix error message.
6804 (_initialize_macrocmd): Register `info_macro_command' in
6805 `infolist', not `showlist'.
6806
9e364162
DJ
68072002-06-11 Daniel Jacobowitz <drow@mvista.com>
6808
6809 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6810 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6811 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6812 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6813 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6814 unconditionally.
6815 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6816 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6817 (_initialize_mips_tdep): Remove dead code.
6818 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6819 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6820 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6821 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6822 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6823 MIPS_LAST_FP_ARG_REGNUM): Remove.
6824
23aa4c72
ML
68252002-06-11 Michal Ludvig <mludvig@suse.cz>
6826
6827 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6828 (unwind_tmp_obstack_free, parse_frame_info)
6829 (update_context, cfi_read_fp, cfi_write_fp)
6830 (cfi_frame_chain, cfi_init_extra_frame_info)
6831 (cfi_virtual_frame_pointer): Use the above function.
264d1763 6832 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 6833
70eb15a4
CV
68342002-06-11 Corinna Vinschen <vinschen@redhat.com>
6835
6836 * v850-tdep.c (v850_type_is_scalar): New function.
6837 (v850_use_struct_convention): Match current gcc implementation
6838 as close as possible.
6839 (v850_push_arguments): Fix stack_offset handling. Don't write
6840 struct_addr into register. This is done by v850_store_struct_return.
6841 (v850_extract_return_value): Care for structs.
6842 (v850_store_return_value): Ditto.
6843 (v850_store_struct_return): Actually write address.
6844
482a4d06
ML
68452002-06-11 Michal Ludvig <mludvig@suse.cz>
6846
6847 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6848 without debug information too.
6849
d855c300
AC
68502002-06-10 Andrew Cagney <ac131313@redhat.com>
6851
6852 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6853 Make multi-arch pure.
6854 * gdbarch.h, gdbarch.c: Re-generate.
6855 * arm-tdep.c (arm_print_float_info): Update.
6856 * arch-utils.h (default_print_float_info): Update.
6857 * arch-utils.c (default_print_float_info): Update.
6858 * infcmd.c (float_info): Update call.
6859
dd12a101
AC
68602002-06-10 Andrew Cagney <ac131313@redhat.com>
6861
6862 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6863 the front of the initialize list.
6864
101dcfbe
AC
68652002-06-10 Andrew Cagney <ac131313@redhat.com>
6866
6867 * infrun.c (struct inferior_status): Replace fields
6868 selected_frame_address and selected_level with field
6869 selected_frame_id.
6870 (save_inferior_status): Update. Use get_frame_id.
6871 (struct restore_selected_frame_args): Delete.
6872 (restore_selected_frame): Update. Use frame_find_by_id.
6873 (restore_inferior_status): Update.
6874
6875 * breakpoint.h (struct breakpoint): Change type of
6876 watchpoint_frame to frame_id.
6877 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6878 call to get_current_frame.
6879 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6880 get_current_frame.
6881 (watchpoint_check): Use frame_find_by_id.
6882
6883 * frame.h (record_selected_frame): Delete declaration.
6884 * stack.c (record_selected_frame): Delete function.
6885
6886 * frame.h (struct frame_id): Define.
6887 (get_frame_id): Declare.
6888 (frame_find_by_id): Declare.
6889 * frame.c (frame_find_by_id): New function.
6890 (get_frame_id): New function.
6891
304270b6
AV
68922002-06-10 Andrey Volkov <avolkov@transas.com>
6893
6894 * ser-e7kpc.c: Fix duplicated define and call of
6895 _initialize_ser_e7000pc
6896
2f2cf184
DJ
68972002-06-09 Daniel Jacobowitz <drow@mvista.com>
6898
6899 * signals/signals.c (target_signal_from_host): Fix #ifdef
6900 SIGRTMIN case.
6901 (do_target_signal_to_host): Likewise.
6902
caaa3122
DJ
69032002-06-09 Daniel Jacobowitz <drow@mvista.com>
6904
6905 * mips-tdep.c (mips_find_abi_section): New function.
6906 (mips_gdbarch_init): Call it.
6907
6ac5df3a
MK
69082002-06-09 Mark Kettenis <kettenis@gnu.org>
6909
6910 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6911 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6912 after Andrew's 2002-06-08 gdbarch change.
6913
82ea117a
MK
69142002-06-09 Mark Kettenis <kettenis@gnu.org>
6915
6916 * i386-linux-nat.c (suppy_gregset): Don't supply
6917 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6918 register cache.
6919 (fill_gregset): Don't fetch it under the same circumstances.
6920
3c25f8c7
AC
69212002-06-09 Andrew Cagney <cagney@redhat.com>
6922
6923 * Makefile.in (callback_h): Define.
6924 (remote_sim_h): Update path to remote-sim.h.
6925 (remote-rdp.o): Add $(callback_h).
6926 (remote-sim.o): Use $(callback_h).
6927 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6928 * remote-rdp.c: Include "gdb/callback.h".
6929
1029b7fa
MK
69302002-06-09 Mark Kettenis <kettenis@gnu.org>
6931
6932 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6933 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6934
616675d3
AC
69352002-06-08 Andrew Cagney <ac131313@redhat.com>
6936
a3efda28
AC
6937 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6938 * rdi-share/serpardr.c: Ditto.
6939 * rdi-share/unixcomm.c: Ditto.
6940 * rdi-share/serdrv.c: Ditto.
6941 * rdi-share/hostchan.h: Ditto.
6942 * rdi-share/hostchan.c: Ditto.
6943 * rdi-share/host.h: Ditto.
6944 * rdi-share/devsw.c: Ditto.
6945
c5f10366
AC
6946 * objfiles.h: Change type of obj_private to void pointer.
6947 * pa64solib.c: Update copyright. Don't include "assert.h", use
6948 strcmp instead of STREQ, use LONGEST, do not use PTR
6949 * somsolib.c: Ditto.
6950
616675d3
AC
6951 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6952 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6953 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6954
e4b415d9
AC
69552002-06-08 Andrew Cagney <ac131313@redhat.com>
6956
6957 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6958 (default_get_saved_register): Delete function.
6959 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6960 generic_unwind_get_saved_register.
6961 * gdbarch.h, gdbarch.c: Re-generate.
6962
ca0d0b52
AC
69632002-06-08 Andrew Cagney <ac131313@redhat.com>
6964
6965 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6966 generic_func_frame_chain_valid.
6967 * gdbarch.h, gdbarch.c: Re-generate.
6968 * blockframe.c (generic_func_frame_chain_valid): Only check
6969 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6970 passing FP to PC_IN_CALL_DUMMY.
6971 Fix PR gdb/360.
6972
76860b5f
AC
69732002-06-08 Andrew Cagney <ac131313@redhat.com>
6974
6975 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6976 (register_gdbarch_data): Initialize init_p.
6977 (gdbarch_data): Initialize data pointer using the init function.
6978 (init_gdbarch_data): Delete function.
6979 (gdbarch_update_p): Update.
6980 (initialize_non_multiarch): Update.
6981 (struct gdbarch): Add field initialized_p.
6982 * gdbarch.h, gdbarch.c: Re-generate.
6983
8dda9770
ML
69842002-06-07 Michal Ludvig <mludvig@suse.cz>
6985
6986 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6987 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6988 better do the things actually here.
6989 * x86-64-tdep.c (x86_64_register_name2nr): New.
6990 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6991 (x86_64_gdbarch_init): Respect the above change.
6992 * x86-64-tdep.h (x86_64_register_name2nr)
6993 (x86_64_register_nr2name): Add prototypes.
6994 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6995
3d79a47c
MS
69962002-06-06 Michael Snyder <msnyder@redhat.com>
6997
7bd91a28
MS
6998 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6999 Delete extra braces and re-indent.
7000 (d10v_store_return_value): Char return values
3d79a47c
MS
7001 must be shifted over by one byte in R0.
7002 (d10v_extract_return_value): Delete extra braces, re-indent.
7003
095a4c96
EZ
70042002-06-06 Elena Zannoni <ezannoni@redhat.com>
7005
7006 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7007 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7008 (d10v_integer_to_address): Rewrite.
7009 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7010 the d10v specific functions which take care of converting to the
7011 correct space.
7012
e8a77ca4
EZ
70132002-06-06 Elena Zannoni <ezannoni@redhat.com>
7014
7015 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7016 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7017
4f2e4a4f
AC
70182002-06-02 Andrew Cagney <ac131313@redhat.com>
7019
7020 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7021 includes.
7022 * config/tm-linux.h: Ditto.
7023 * config/alpha/tm-alphalinux.h: Ditto.
7024 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7025 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7026 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7027 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7028 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7029 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7030 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7031 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7032 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7033 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7034 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7035 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7036 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7037 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7038 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7039 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7040 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7041 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7042 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7043 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7044 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7045 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7046 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7047 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7048 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7049 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7050 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7051 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7052 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7053 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7054 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7055 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7056 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7057 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7058 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7059 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7060 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7061
ae2ab2ce
AS
70622002-05-04 Aidan Skinner <aidan@velvet.net>
7063
7064 * ada-exp.tab.c: New file
7065 * ada-exp.y: New file
7066 * ada-lang.c: New file
7067 * ada-lang.h: New file
7068 * ada-lex.c: New file
7069 * ada-lex.l: New file
7070 * ada-tasks.c: New file
7071 * ada-typeprint.c: New file
7072 * ada-valprint.c: New file
7073
0ddd0135
JT
70742002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7075
7076 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7077 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7078
750fbacc
JT
70792002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7080
7081 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7082 insetead of ppc-linux-tdep.o.
7083 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7084 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7085
df94e18a
AC
70862002-06-02 Andrew Cagney <ac131313@redhat.com>
7087
7088 2002-05-07 Christian Groessler <chris@groessler.org>
7089 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7090 bit register contents for little endian hosts.
7091
1a38ab75
AC
70922002-06-01 Andrew Cagney <ac131313@redhat.com>
7093
7094 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7095 any maintainer.
7096
8b1632ac
AC
70972002-06-01 Andrew Cagney <ac131313@redhat.com>
7098
7099 * gdbarch.h: Regenerate.
7100
627054c8
AC
71012002-06-01 Andrew Cagney <ac131313@redhat.com>
7102
7103 * MAINTAINERS: Add everyone to write-after-approval list.
7104
4f460812
AC
71052002-06-01 Andrew Cagney <ac131313@redhat.com>
7106
7107 * stack.c (frame_info): Use frame_register_unwind instead of
7108 saved_regs. Mention when the SP is on the stack or in a register.
7109
7110 * frame.h (frame_register_unwind_ftype): Define. Document.
7111 (struct frame_info): Add field register_unwind and
7112 register_unwind_cache.
7113 (frame_register_unwind): Declare.
7114 (generic_unwind_get_saved_register): Declare.
7115
7116 * frame.c (frame_register_unwind): New function.
7117 (generic_unwind_get_saved_register): New function.
7118
7119 * blockframe.c (generic_call_dummy_register_unwind): New function.
7120 (frame_saved_regs_register_unwind): New function.
7121 (set_unwind_by_pc): New function.
7122 (create_new_frame): New function.
7123 (get_prev_frame): New function.
7124
de888f76
AC
71252002-05-30 Andrew Cagney <ac131313@redhat.com>
7126
7127 * a29k-share/: Delete directory.
7128 * remote-vx29k.c: Delete file.
7129
2f2c3626
JT
71302002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7131
7132 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7133 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7134
9ce5c36a
JT
71352002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7136
7137 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7138 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7139 (sparc64nbsd-nat.o)
7140 (sparcnbsd-nat.o)
7141 (sparcnbsd-tdep.o): New dependency lists.
7142 * NEWS: Note new UltraSPARC NetBSD native configuration.
7143 * configure.host (sparc64-*-netbsd*): New host.
7144 * configure.tgt (sparc-*-netbsdelf*)
7145 (sparc-*-netbsd*): Set gdb_target to nbsd.
7146 (sparc64-*-netbsd*): New target.
7147 * sparc64nbsd-nat.c: New file.
7148 * sparcnbsd-nat.c: New file.
7149 * sparcnbsd-tdep.c: New file.
7150 * sparcnbsd-tdep.h: New file.
7151 * config/sparc/nbsd.mt: New file.
7152 * config/sparc/nbsd64.mh: New file.
7153 * config/sparc/nbsd64.mt: New file.
7154 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7155 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7156 (HOST_IPC): Remove.
7157 * config/sparc/nbsdaout.mt: Remove.
7158 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7159 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7160 (HOST_IPC): Remove.
7161 * config/sparc/nbsdelf.mt: Remove.
7162 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7163 sparc-nat.c compatiblity defines.
7164 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7165 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7166 * config/sparc/tm-nbsd64.h: New file.
7167 * config/sparc/tm-nbsdaout.h: Remove.
7168 * config/sparc/xm-nbsd.h: Remove.
7169
ef3cf062
JT
71702002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7171
7172 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7173 * sparc-tdep.c: Include osabi.h.
7174 (gdbarch_tdep): Add osabi member.
7175 (_initialize_sparc_tdep): Use gdbarch_register.
7176 (sparc_gdbarch_init): Use generic OS ABI framework.
7177 (sparc_dump_tdep): New function.
7178
ee8ff470
KB
71792002-05-30 Kevin Buettner <kevinb@redhat.com>
7180
7181 * corefile.c (do_captured_read_memory_integer): Return non-zero
7182 result.
7183 (safe_read_memory_integer): Copy result of memory read when
7184 status is non-zero. Also, add comments.
7185
7b112f9c
JT
71862002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7187
7188 * Makefile.in (ppc_tdep_h): Define.
7189 (ppc-linux-nat.o)
7190 (ppc-linux-tdep.o)
7191 (rs6000-tdep.o): Use $(ppc_tdep_h).
7192 (ppc-sysv-tdep.o)
7193 (ppcnbsd-nat.o)
7194 (ppcnbsd-tdep.o): New dependency lists.
7195 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7196 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7197 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7198 (ppc_sysv_abi_broken_use_struct_convention)
7199 (ppc_sysv_abi_use_struct_convention)
7200 (ppc_sysv_abi_push_arguments): Move to...
7201 * ppc-sysv-tdep.c: ...here.
7202 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7203 * rs6000-tdep.c (process_note_abi_tag_sections)
7204 (get_elfosabi): Remove.
7205 (rs6000_gdbarch_init): Use generic OS ABI framework.
7206 (rs6000_dump_tdep): New function.
7207 (_initialize_rs6000_tdep): Use gdbarch_register.
7208 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7209 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7210 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7211 of ppc-linux-tdep.o.
7212 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7213 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7214 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7215 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7216 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7217 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7218
480dd42a
JB
72192002-05-29 Jim Blandy <jimb@redhat.com>
7220
7221 * macroscope.c (default_macro_scope): Put `void' in empty argument
7222 list.
7223
4182591f
AC
72242002-05-29 Andrew Cagney <ac131313@redhat.com>
7225
7226 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7227 * arch-utils.c: Include "sim-regno.h".
7228 * gdbarch.sh: Don't include "sim-regno.h".
7229 * gdbarch.h, gdbarch.c: Regenerate.
7230 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7231 here.
7232 * arch-utils.h (legacy_register_sim_regno): To here.
7233 * remote-sim.c (legacy_register_sim_regno): Move function from
7234 here.
7235 * arch-utils.c (legacy_register_sim_regno): To here.
7236
8238d0bf
AC
72372002-05-28 Andrew Cagney <ac131313@redhat.com>
7238
7239 * sim-regno.h: New file.
7240 * Makefile.in (sim_regno_h): Define.
7241 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7242 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7243 (legacy_register_sim_regno): New function.
7244 (one2one_register_sim_regno): New function.
7245 (gdbsim_fetch_register): Rewrite.
7246 (gdbsim_store_register): Only store a register when
7247 REGISTER_SIM_REGNO is valid.
7248 * d10v-tdep.c: Include "sim-regno.h".
7249 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7250 (d10v_ts3_register_sim_regno): Ditto.
7251 * gdbarch.sh: Include "sim-regno.h".
7252 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7253 * gdbarch.h, gdbarch.c: Regenerate.
7254 * arch-utils.h (default_register_sim_regno): Delete declaration.
7255 * arch-utils.c (default_register_sim_regno): Delete function.
7256
485721b1
JT
72572002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7258
7259 * ppcnbsd-nat.c: Rewrite.
7260 * ppcnbsd-tdep.c: New file.
7261 * ppcnbsd-tdep.h: New file.
7262 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7263 solib.o, and solib-svr4.o.
7264 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7265 nbsd-tdep.o, and corelow.o.
7266
697f244d
AC
72672002-05-28 Andrew Cagney <ac131313@redhat.com>
7268
7269 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7270 `tr' and `sed'. Mention that `broken' targets are not expected to
7271 build.
7272
f08caad1 72732002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7274
7275 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7276 Let PC point right after the prologue before looking up symbols.
7277
3139facc
MH
72782002-05-27 Martin M. Hunt <hunt@redhat.com>
7279
7280 * i386-tdep.c (i386_register_virtual_type): Return
7281 builtin_type_vec128i for SSE registers.
7282
7283 * gdbtypes.h (builtin_type_vec128i): Declare.
7284
7285 * gdbtypes.c (build_builtin_type_vec128i): New function.
7286 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7287 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7288 (build_gdbtypes): Initialize new builtin vector types.
7289 (_initialize_gdbtypes): Register new vector types with gdbarch.
7290
6e3ba3b8
JT
72912002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7292
7293 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7294 since it has been multi-arch'd.
7295 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7296 Move Alpha and VAX multi-arch news entries to same section
7297 as other multi-arch news.
7298
93d5585d
JT
72992002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7300
7301 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7302 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7303 static. Rename some register numbers to put them in ns32k-tdep
7304 private namespace.
7305 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7306 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7307 functions.
7308 (_initialize_ns32k_tdep): Use gdbarch_register.
7309 * ns32k-tdep.h: New file.
7310 * ns32knbsd-tdep.c: New file.
7311 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7312 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7313 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7314 REGISTER_BYTES, REGISTER_BYTE): Remove.
7315 * config/ns32k/tm-ns32k.h: New file.
7316 * config/ns32k/tm-umax.h: Remove.
7317
efb2c70e
JT
73182002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7319
7320 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7321 ns32k_store_struct_return, ns32k_extract_return_value,
7322 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7323 functions.
7324 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7325 ns32k_saved_pc_after_call.
7326 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7327 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7328 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7329 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7330 ns32k_extract_struct_value_address.
7331
7bcc927b
JT
73322002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7333
7334 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7335 ns32k_fix_call_dummy): New.
7336 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7337 ns32k_call_dummy_words.
7338 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7339 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7340 CALL_DUMMY_NARGS): Remove.
7341 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7342
78f9d765
JT
73432002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7344
7345 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7346 ns32k_frame_saved_pc, ns32k_frame_args_address,
7347 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7348 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7349 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7350 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7351 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7352 (BREAKPOINT): Remove..
7353 (FRAME_CHAIN): Define as ns32k_frame_chain.
7354 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7355 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7356 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7357 (FRAME_FIND_SAVED_REGS): Remove.
7358 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7359 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7360 (POP_FRAME): Define as ns32k_pop_frame.
7361
f2c762e0
JT
73622002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7363
7364 * ns32k-tdep.c (ns32k_register_byte_32082,
7365 ns32k_register_byte_32382, ns32k_register_raw_size,
7366 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7367 functions.
7368 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7369 ns32k_register_byte_32382.
7370 * config/ns32k/tm-umax.h: Update copyright years.
7371 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7372 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7373 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7374 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7375 (ns32k_get_enter_addr): Fix prototype.
7376
af137673
JT
73772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7378
7379 * ns32k-tdep.c: Update copyright years.
7380 (ns32k_register_name_32082): New function.
7381 (ns32k_register_name_32382): Ditto.
7382 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7383 (REGISTER_NAME): Define as ns32k_register_name_32382.
7384 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7385 (REGISTER_NAME): Define as ns32k_register_name_32082.
7386
a8bc7b56
JB
73872002-05-24 Jim Blandy <jimb@redhat.com>
7388
7389 * dwarf2read.c (free_line_header): Use xfree, not free.
7390
83a45910
JT
73912002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7392
7393 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7394 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7395
0db71247
AC
73962002-05-23 Andrew Cagney <ac131313@redhat.com>
7397
7398 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7399
b9e5e4dd
AC
74002002-05-23 Andrew Cagney <ac131313@redhat.com>
7401
7402 From Ross Alexander at NEC Europe:
7403 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7404
de530e84
MS
74052002-05-23 Michael Snyder <msnyder@redhat.com>
7406
7407 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7408 for input, rather than parse_and_eval_address.
7409
b91b96f4
AC
74102002-05-23 Andrew Cagney <ac131313@redhat.com>
7411
7412 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7413 * Makefile.in (sim_d10v_h): Update definition.
7414
8b279e7a
AC
74152002-05-24 Andrew Cagney <cagney@redhat.com>
7416
7417 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7418 change `2002-05-22 Michael Snyder' below.
7419 (d10v_push_arguments): Ditto.
7420 (d10v_extract_return_value): Ditto.
7421
0a3d0425
JB
74222002-05-23 Jim Blandy <jimb@redhat.com>
7423
7424 * macrotab.c (check_for_redefinition): Don't complain if the new
7425 definition is the same as the previous one. Take more arguments
7426 to allow the comparison.
7427 (macro_define_object, macro_define_function): Pass more arguments
7428 to check_for_redefinition.
7429
78eac43e
MS
74302002-05-22 Michael Snyder <msnyder@redhat.com>
7431
7432 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7433 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7434 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7435 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7436 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7437 Add a temp variable to save a call (and a memory read).
7438 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7439 if possible (so that PC_IN_CALL_DUMMY will work).
7440
9bc1edb8
CV
74412002-05-22 Corinna Vinschen <vinschen@redhat.com>
7442
7443 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7444
005ef3d2
ML
74452002-05-22 Michal Ludvig <mludvig@suse.cz>
7446
7447 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7448 fde->cie_ptr.
7449 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7450 (dwarf2_build_frame_info): Add offset to fde->initial_location
7451 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7452 (execute_stack_op): Change type of 'result' from ULONGEST to
7453 CORE_ADDR.
005ef3d2 7454
fcf4f891
JT
74552002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7456
7457 * config/alpha/tm-nbsd.h: Include solib.h.
7458
cfef91e4
JT
74592002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7460
7461 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7462 assumptions about the host's byte order.
7463
9964235a
JT
74642002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7465
7466 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7467 to dependency list.
7468 * alphanbsd-tdep.c: Include solib-svr4.h.
7469 * shnbsd-tdep.c: Ditto.
7470
9eeef8ef
JT
74712002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7472
7473 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7474 nbsd-tdep.h to dependency list.
7475 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7476 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7477 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7478 nbsdaout.mh and nbsdelf.mh consistently.
7479 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7480 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7481 nbsdaout.mt and nbsdelf.mh consistently.
7482 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7483 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7484 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7485 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7486 a.out shared library stuff from here...
7487 * config/nm-nbsdaout.h: ...to here.
7488 * config/tm-nbsd.h: Remove.
7489 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7490 * config/arm/nbsd.mh: Remove.
7491 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7492 nbsd-tdep.o.
7493 * config/arm/nbsdaout.mh: New file.
7494 * config/arm/nbsdelf.mh: New file.
7495 * config/arm/nm-nbsdaout.h: New file.
7496 * config/i386/nbsd.mh: Remove.
7497 * config/i386/nbsd.mt: Remove.
7498 * config/i386/nbsdaout.mh: New file.
7499 * config/i386/nbsdaout.mt: New file.
7500 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7501 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7502 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7503 i386_register_u_addr): Remove.
7504 * config/i386/nm-nbsdaout.h: New file.
7505 * config/i386/nm-nbsdelf.h: Remove.
7506 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7507 (USE_STRUCT_CONVENTION): Remove.
7508 * config/i386/tm-nbsdaout.h: New file.
7509 * config/i386/tm-nbsdelf.h: Remove.
7510 * config/m68k/nbsd.mh: Remove.
7511 * config/m68k/nbsd.mt: Remove.
7512 * config/m68k/nbsdaout.mh: New file.
7513 * config/m68k/nbsdaout.mt: New file.
7514 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7515 * config/m68k/nm-nbsdaout.h: New file.
7516 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7517 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7518 * config/ns32k/nbsd.mh: Remove.
7519 * config/ns32k/nbsd.mt: Remove.
7520 * config/ns32k/nbsdaout.mh: New file.
7521 * config/ns32k/nbsdaout.mt: New file.
7522 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7523 * config/ns32k/nm-nbsdaout.h: New file.
7524 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7525 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7526 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7527 (SVR4_SHARED_LIBS): Remove.
7528 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7529 * config/sparc/nbsd.mh: Remove.
7530 * config/sparc/nbsd.mt: Remove.
7531 * config/sparc/nbsdaout.mh: New file.
7532 * config/sparc/nbsdaout.mt: New file.
7533 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7534 * config/sparc/nbsdelf.mt: New file.
7535 * config/sparc/nm-nbsdaout.h: New file.
7536 * config/sparc/nm-nbsdelf.h: Remove.
7537 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7538 * config/sparc/tm-nbsdaout.h: New file.
7539
257ce470
JT
75402002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7541
7542 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7543 mipsnbsd-tdep.c
7544 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7545
76a6d5fe
JT
75462002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7547
7548 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7549 shnbsd-nat.c.
7550 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7551
45888261
JT
75522002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7553
7554 * NEWS: Note new MIPS NetBSD native configuration.
7555 * configure.host (mips*-*-netbsd*): New host.
7556 * configure.tgt (mips*-*-netbsd*): New target.
7557 * mipsnbsd-nat.c: New file.
7558 * mipsnbsd-tdep.c: New file.
7559 * mipsnbsd-tdep.h: New file.
7560 * config/mips/nbsd.mh: New file.
7561 * config/mips/nbsd.mt: New file.
7562 * config/mips/nm-nbsd.h: New file.
7563 * config/mips/tm-nbsd.h: New file.
7564
70f80edf
JT
75652002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7566
7567 * Makefile.in (SFILES): Add osabi.c.
7568 (COMMON_OBS): Add osabi.o.
7569 (osabi.o): New dependency list.
7570 * osabi.c: New file.
7571 * osabi.h: New file.
7572 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7573
7574 * Makefile.in (alpha_tdep_h): Define and use instead of
7575 alpha-tdep.h.
7576 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7577 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7578 Remove.
7579 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7580 * alpha-tdep.h: Include osabi.h.
7581 (alpha_abi): Remove.
7582 (gdbarch_tdep): Use generic OS ABI framework.
7583 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7584 gdbarch_register_osabi.
7585 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7586 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7587 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7588
7589 * Makefile.in (sh_tdep_h): Add osabi.h.
7590 * sh-tdep.h (sh_osabi): Remove.
7591 (gdbarch_tdep): Use generic OS ABI framework.
7592 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7593 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7594 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7595 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7596
7597 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7598 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7599 gdbarch_register_osabi.
7600 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7601 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7602 (get_elfosabi): Rename to...
7603 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7604 ABI framework support routines.
7605 (arm_gdbarch_init): Use generic OS ABI framework.
7606 (arm_dump_tdep): Likewise.
7607 (_initialize_arm_tdep): Likewise.
7608 * arm-tdep.h: Include osabi.h.
7609 (arm_abi): Remove.
7610 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7611 osabi member.
7612 (arm_gdbarch_register_os_abi): Remove prototype.
7613 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7614 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7615
7616 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7617 * mips-tdep.c: Include osabi.h.
7618 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7619 OS ABI framework.
7620
d194345b
KH
76212002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7622
7623 * h8300-tdep.c: Fix formatting.
7624
70c6b0d1
EZ
76252002-05-20 Elena Zannoni <ezannoni@redhat.com>
7626
7627 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7628 printing vector registers.
7629
165b8e33
AC
76302002-05-19 Andrew Cagney <ac131313@redhat.com>
7631
7632 From Fernando Nasser:
7633 * remote.c (remote_async_open_1): Re-throw the exception when the
7634 connection fails.
7635 (remote_cisco_open): Ditto.
7636 (remote_open_1): Ditto.
7637
36918e70
AC
76382002-05-19 Andrew Cagney <ac131313@redhat.com>
7639
7640 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7641 (remote_start_remote): Add uiout parameter. Pass through to
7642 remote_start_remote_dummy.
7643 (remote_open_1): Use catch_exception instead of catch_errors.
7644 (remote_async_open_1): Ditto.
7645 (remote_cisco_open): Ditto.
7646
ae44c0c4
AC
76472002-05-19 Andrew Cagney <ac131313@redhat.com>
7648
7649 * remote.c (remote_start_remote): Replace PTR with void pointer.
7650 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7651 static.
7652
8efe637d
AC
76532002-05-18 Andrew Cagney <ac131313@redhat.com>
7654
7655 * gdb_indent.sh: Allow the script to be run in the sim directory.
7656
2f1b5984
MK
76572002-05-18 Mark Kettenis <kettenis@gnu.org>
7658
f0f625e2
MK
7659 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7660 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7661
2f1b5984
MK
7662 * corelow.c (core_open): Only call set_gdbarch_from_file if
7663 exec_bfd is NULL.
7664
fc974602
AV
76652002-05-17 Andrey Volkov <avolkov@transas.com>
7666
7667 * h8300-tdep.c: Add support of EXR register
7668 * config/h8300/tm-h8300.h: Ditto.
7669
906709f4
AV
76702002-05-17 Andrey Volkov <avolkov@transas.com>
7671
7672 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7673
6e591d68
AV
76742002-05-17 Andrey Volkov <avolkov@transas.com>
7675
7676 * h8300-tdep.c: Change literal regnums to REGNO.
7677
84f0252a
JB
76782002-05-17 Jim Blandy <jimb@redhat.com>
7679
e0e9281e
JB
7680 * NEWS: Note addition of macro support.
7681
84f0252a
JB
7682 Expand preprocessor macros in C expressions.
7683 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7684 (scan_macro_expansion, scanning_macro_expansion,
7685 finished_macro_expansion): New function declarations.
7686 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7687 variable declarations.
7688 * parser-defs.h (expression_context_pc): New declaration.
7689 * parse.c (expression_context_pc): New variable.
7690 (parse_exp_1): Set expression_context_pc, as well as
7691 expression_context_block.
7692 * c-exp.y (yylex): If we're not already reading the result of a
7693 macro expansion, try to macro-expand the next token. When we're
7694 done scanning a macro expansion, switch back to the mainline text.
7695 Commas and `if's in a macro's expansion don't terminate the input.
7696 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7697 (macro_original_text, macro_expanded_text,
7698 expression_macro_lookup_func, expression_macro_lookup_baton): New
7699 variables.
7700 (scan_macro_expansion, scanning_macro_expansion,
7701 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7702 c_preprocess_and_parse): New functions.
7703 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7704 c_preprocess_and_parse, instead of c_parse.
7705 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7706 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7707
1c509ca8
JR
7708Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7709
7710 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7711 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7712 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7713
2250ee0c
CV
77142002-05-17 Corinna Vinschen <vinschen@redhat.com>
7715
7716 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7717
ab3b8126
JT
77182002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7719
7720 * Makefile.in (sh_tdep_h): Define and use.
7721 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7722 register enum): Move to...
7723 * * sh-tdep.h: ...here.
7724 * sh-tdep.c: Include sh-tdep.h.
7725 * sh3-rom.c: Likewise.
7726 * shnbsd-tdep.c: Likewise.
7727
ed9d4749
MS
77282002-05-16 Michael Snyder <msnyder@redhat.com>
7729
7730 * arm-tdep.c: Spelling fix in comment.
7731
2e276125
JB
77322002-05-16 Jim Blandy <jimb@redhat.com>
7733
6821892e
JB
7734 Add commands for manually expanding macros and showing their
7735 definitions.
7736 * macrocmd.c, macroscope.c, macroscope.h: New files.
7737 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7738 (macroscope_h): New variable.
7739 (HFILES_NO_SRCDIR): Add macroscope.h.
7740 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7741 (macroscope.o, macrocmd.o): New rules.
7742
2e276125
JB
7743 Teach the Dwarf 2 reader to read macro information.
7744 * dwarf2read.c: #include "macrotab.h".
7745 (dwarf_macinfo_buffer): New variable.
7746 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7747 dwarf_macinfo_size.
7748 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7749 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7750 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7751 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7752 dwarf2_macro_spaces_in_definition): New complaints.
7753 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7754 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7755 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7756 the partial symbol table.
7757 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7758 from what's recorded in the partial symbol table.
7759 (read_file_scope): If the compilation unit has a
7760 `DW_AT_macro_info' attribute, read its macro information.
7761 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7762
2f53fe6c
DJ
77632002-05-16 Daniel Jacobowitz <drow@mvista.com>
7764
7765 Fix PR gdb/546
7766 * ser-tcp.c: Don't include <netinet/udp.h>.
7767
2be99286
SC
77682002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7769
7770 * MAINTAINERS: Update my email address.
7771
c9af212b 77722002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
7773
7774 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7775 include file of the same name.
7776
bf5f1a52
CV
77772002-05-16 Corinna Vinschen <vinschen@redhat.com>
7778
7779 * configure.tgt: Mark v850 as multi-arched.
7780 * config/v850/tm-v850.h: Remove file.
7781 * config/v850/v850.mt: Eliminate TM_FILE.
7782
435e042a
CV
77832002-05-16 Corinna Vinschen <vinschen@redhat.com>
7784
7785 * v850-tdep.c: Full multi-arch.
7786 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7787 Define GDB_MULTI_ARCH to 2.
7788
9819c6c8
PM
77892002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7790
7791 * p-exp.y (current_type): New static variable.
7792 Carries the type of the expression at the position that is parsed.
7793 (push_current_type, pop_current_type): Two new functions. Used
7794 to store/restore current_type in expression on specific tokens.
c9af212b
RE
7795 (search_field): New static variable. Set to one after parsing a point
7796 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
7797 (FIELDNAME): New token. After a point only a token belonging to
7798 current_type type definition is allowed.
7799 (all over token rules): reset and change current_type according
7800 to rules.
7801 (exp '[' rule): insert implicit array index field if
7802 exp is a pascal string type.
7803
3a06899a
CV
78042002-05-16 Corinna Vinschen <vinschen@redhat.com>
7805
7806 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7807 frame info. Use frame_info's saved_regs instead of matching member
7808 in extra_frame_info throughout.
7809 (v850_frame_init_saved_regs): New function.
7810 (v850_init_extra_frame_info): Move most functionality into
7811 v850_frame_init_saved_regs().
7812 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7813 (v850_frame_find_saved_regs): Remove declaration.
7814 (FRAME_FIND_SAVED_REGS): Remove definition.
7815 (v850_frame_init_saved_regs): Add declaration.
7816 (FRAME_INIT_SAVED_REGS): Add definition.
7817
6ed14b0e
CV
78182002-05-16 Corinna Vinschen <vinschen@redhat.com>
7819
7820 * v850-tdep.c: Begin multi-arch'ing v850.
7821 (v850_target_architecture_hook): Remove function.
7822 (v850_gdbarch_init): New function. Add code previously in
7823 v850_target_architecture_hook().
7824 (_initialize_v850_tdep): Don't set target_architecture_hook.
7825 Call register_gdbarch_init() instead.
7826
42725910
DJ
78272002-05-16 Daniel Jacobowitz <drow@mvista.com>
7828
7829 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7830 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7831 (fixup_class_method_type): Likewise.
7832
99d9066e
JB
78332002-05-15 Jim Blandy <jimb@redhat.com>
7834
7835 Add macro structures to GDB's symbol tables. Nobody puts anything
7836 in them yet.
7837 * symtab.h (struct symtab): New member: `macro_table'.
7838 * buildsym.h (pending_macros): New global variable.
7839 * buildsym.c: #include "macrotab.h".
7840 (buildsym_init): Initialize `pending_macros'.
7841 (end_symtab): If we found macro information while reading a CU's
7842 debugging info, do build a symtab structure for it. Make the
7843 symtab point to the macro information, and clear the
7844 `pending_macros' pointer which held it while we were reading the
7845 debug info.
7846 (really_free_pendings): Free any pending macro table.
7847 * objfiles.h (struct objfile): New member: `macro_cache'.
7848 * objfiles.c (allocate_objfile): Set allocate and free functions
7849 for the macro cache's objstack.
7850 (free_objfile): Empty the macro cache's obstack.
7851 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7852 set new allocate and free functions for it.
7853 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7854 free functions for the macro cache's objstack. (Why is this
7855 function building its own objfile?)
7856 * symmisc.c (print_objfile_statistics): Print statistics on the
7857 macro bcache.
7858 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7859
c899585b
RE
78602002-05-15 Richard Earnshaw <rearnsha@arm.com>
7861
7862 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7863 (REGISTER_U_ADDR): Delete definition.
7864 (arm_register_u_addr): Delete declaration.
7865
a6cdd8c5
RE
78662002-05-15 Richard Earnshaw <rearnsha@arm.com>
7867
7868 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7869 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7870
c97dcfc7
AC
78712002-05-14 Andrew Cagney <ac131313@redhat.com>
7872
7873 * regcache.c (register_valid): Revise comments refering to "Not
7874 available" and "unavailable".
7875 * frame.c (frame_register_read): Ditto.
7876 * findvar.c (value_of_register): Ditto.
7877
93021b7d
AC
78782002-05-15 Andrew Cagney <cagney@redhat.com>
7879
7880 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7881 (remote-sim.o): Update dependencies.
7882 (d10v-tdep.o): Specify dependencies.
7883 (sim_d10v_h): Define.
7884
a86bc61c
JB
78852002-05-14 Jim Blandy <jimb@redhat.com>
7886
7887 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7888 * macrotab.c (macro_lookup_inclusion, find_definition,
7889 new_macro_table): Same.
7890
7891 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7892 not `! strcmp ()'. This is a dubious improvement.
7893 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7894
7895 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7896 although it's not necessary, to avoid a warning.
7897
2fdde8f8
DJ
78982002-05-14 Daniel Jacobowitz <drow@mvista.com>
7899
7900 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7901 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7902 TYPE_INSTANCE_FLAGS.
7903 (struct main_type): New.
7904 (struct type): Move most members to struct main_type. Change
7905 cv_type and as_type to new type_chain member. Add instance_flags.
7906 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7907 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7908 (finish_cv_type): Remove prototype.
7909 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7910 Set TYPE_CHAIN.
7911 (alloc_type_instance): New function.
7912 (smash_type): New function.
7913 (make_pointer_type, make_reference_type, make_function_type)
7914 (smash_to_member_type, smash_to_method_type): Call smash_type.
7915 (make_qualified_type): New function.
7916 (make_type_with_address_space): Call make_qualified_type.
7917 (make_cv_type): Likewise.
7918 (finish_cv_type): Remove unnecessary function.
7919 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7920 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7921 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7922 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7923 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7924 * hpread.c (hpread_read_struct_type): Likewise.
7925 * stabsread.c (read_struct_type): Likewise.
7926
843fedf4
EZ
79272002-05-14 Elena Zannoni <ezannoni@redhat.com>
7928
7929 * configure.tgt: Add a catch all sh* target, for cases like
7930 sh[2,3,4]-elf and sh-hms.
7931
05a6c72c
KS
79322002-05-14 Keith Seitz <keiths@redhat.com>
7933
7934 * event-loop.c (create_file_handler): Don't do anything but
7935 update data when we are given a fd which we are already
7936 monitoring.
7937
5d085aaf
ML
79382002-05-14 Michal Ludvig <mludvig@suse.cz>
7939
7940 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7941 (update_context): Use __func__ in warnings.
7942
9db8d71f
DJ
79432002-05-14 Daniel Jacobowitz <drow@mvista.com>
7944
7945 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7946 and tcp_close to net_open and net_close.
7947 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7948 using UDP if requested. Don't try to disable Nagle on UDP
7949 sockets.
7950 * remote.c (remote_serial_open): New function. Warn about UDP.
7951 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7952
5dbc6baa
EZ
79532002-05-13 Elena Zannoni <ezannoni@redhat.com>
7954
7955 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7956
cc3023f7
EZ
79572002-05-13 Elena Zannoni <ezannoni@redhat.com>
7958
7959 * configure.tgt: Remove sh-hms target.
7960 * MAINTAINERS: Don't list sh-hms as a separate target.
7961
ec2bcbe7
JB
79622002-05-13 Jim Blandy <jimb@redhat.com>
7963
7964 Add first preprocessor macro-expansion files.
7965 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7966 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7967 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7968 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7969 (COMMON_OBS): Add macrotab.o, macroexp.o.
7970 (macroexp.o, macrotab.o): New rules.
7971
6d531722
AC
79722002-05-13 Andrew Cagney <ac131313@redhat.com>
7973
7974 * config/m88k/tm-m88k.h: Update copyright.
7975 (m88k_target_write_pc): Declare
7976 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7977 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7978 (SHIFT_INST_REGS): Update definition.
7979 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7980 using old definition of TARGET_WRITE_PC.
7981 * regcache.c (generic_target_write_pc): Delete code handling
7982 NNPC_REGNUM.
7983 * gdbarch.sh (NNPC_REGNUM): Delete.
7984 * gdbarch.h, gdbarch.c: Regenerate.
7985
3e3f2739
RE
79862002-05-13 Richard Earnshaw <rearnsha@arm.com>
7987
7988 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7989 builtin reg number.
7990
0004e5a2
DJ
79912002-05-13 Daniel Jacobowitz <drow@mvista.com>
7992
7993 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7994 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7995 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7996 access macros.
7997 * c-typeprint.c (cp_type_print_method_args): Likewise.
7998 (c_type_print_args): Likewise.
7999 * d10v-tdep.c (d10v_push_arguments): Likewise.
8000 (d10v_extract_return_value): Likewise.
8001 * expprint.c (print_subexp): Likewise.
8002 * gdbtypes.c (lookup_primitive_typename): Likewise.
8003 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8004 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8005 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8006 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8007 (TYPE_VECTOR): Likewise.
8008 * hpread.c (hpread_read_struct_type)
8009 (fix_static_member_physnames, fixup_class_method_type)
8010 (hpread_type_lookup): Likewise.
8011 * mdebugread.c (parse_symbol, parse_type): Likewise.
8012 * p-lang.c (is_pascal_string_type): Likewise.
8013 * valops.c (hand_function_call): Likewise.
8014 * x86-64-tdep.c (classify_argument): Likewise.
8015
8016 * hpread.c (hpread_read_function_type)
8017 (hpread_read_doc_function_type): Call replace_type.
8018 * dstread.c (create_new_type): Delete.
8019 (decode_dst_structure, process_dst_function): Call alloc_type.
8020 Use type access macros.
8021
dff95cc7
MK
80222002-05-12 Mark Kettenis <kettenis@gnu.org>
8023
8024 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8025 the're not supported by the current architecture.
8026 (i387_fill_fxsave): Likewise.
8027
bbcd32ad
FF
80282002-05-12 Fred Fish <fnf@redhat.com>
8029
8030 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8031 sect_index_xxx members to index the first slot in section_offsets
8032 if all of the section_offsets are zero.
8033
89cf4787
MK
80342002-05-12 Mark Kettenis <kettenis@gnu.org>
8035
8036 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8037 checked in with last change.
8038
1f77ffc5
MK
80392002-05-12 Mark Kettenis <kettenis@gnu.org>
8040
8041 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8042 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8043 config.sub.
8044
89b8b4a9
DJ
80452002-05-12 Daniel Jacobowitz <drow@mvista.com>
8046
8047 * Makefile.in: Update dependencies.
8048
14a5e767
AC
80492002-05-11 Andrew Cagney <ac131313@redhat.com>
8050
8051 * language.c (local_hex_string_custom): Simplify. Do not depend
8052 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8053
8054 * memattr.c (mem_info_command): Replace calls to
8055 longest_local_hex_string and longest_local_hex_string_custom.
8056 * buildsym.c (make_blockvector): Ditto.
8057 * solib.c (info_sharedlibrary_command): Ditto.
8058 * tracepoint.c (tracepoints_info): Ditto.
8059 * symtab.c (print_msymbol_info): Ditto.
8060
8061 * language.c (local_hex_string): Delete.
8062 (local_hex_string_custom): Delete.
8063 (longest_local_hex_string): Rename to local_hex_string.
8064 (longest_local_hex_string_custom): Rename to
8065 local_hex_string_custom.
8066 * language.h (local_hex_string): Change parameter type to LONGEST.
8067 (local_hex_string_custom): Ditto.
8068 (longest_local_hex_string): Delete declaration.
8069 (longest_local_hex_string_custom): Ditto.
8070
8071 * solib.c: Update copyright.
8072 * memattr.c: Update copyright.
8073
13d01224
AC
80742002-05-11 Andrew Cagney <ac131313@redhat.com>
8075
8076 * arch-utils.h (legacy_register_to_value): Declare.
8077 (legacy_value_to_register): Declare.
8078 (legacy_convert_register_p): Declare.
8079 * arch-utils.c (legacy_register_to_value): New function.
8080 (legacy_value_to_register): New function.
8081 (legacy_convert_register_p): New function.
8082
8083 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8084 (VALUE_TO_REGISTER): Define.
8085 (CONVERT_REGISTER_P): Define.
8086 * gdbarch.h, gdbarch.c: Regenerate.
8087
8088 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8089 VALUE_TO_REGISTER.
8090 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8091 CONVERT_REGISTER_P.
8092
4a1970e4
DJ
80932005-05-11 Daniel Jacobowitz <drow@mvista.com>
8094 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8095
8096 * Makefile.in: Update dependencies for valops.c.
8097 * valops.c: Include "gdb_assert.h".
8098 (typecmp): Skip THIS parameter to methods.
8099 (find_method_list): Remove static_memfuncp argument,
8100 update callers. Check for stub methods.
8101 (find_value_oload_method_list): Don't set *static_memfuncp.
8102 (find_overload_match): Don't check for stub methods. Assert
8103 that methods are not stubbed. Handle static methods.
8104 (value_find_oload_method_list): Remove static_memfuncp argument.
8105 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8106 to the argument list for static stub methods.
8107 * value.h (value_find_oload_method_list): Update prototype.
8108
b2e75d78
AC
81092002-05-11 Andrew Cagney <ac131313@redhat.com>
8110
8111 * arch-utils.h (generic_register_size): Declare.
8112 (generic_register_raw_size, generic_register_virtual_size): Delete
8113 declarations.
8114 * arch-utils.c (generic_register_raw_size): Delete.
8115 (generic_register_size): New function.
8116 (generic_register_virtual_size): Delete.
8117
8118 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8119 default generic_register_size.
8120 * gdbarch.h, gdbarch.c: Re-generate.
8121
8122 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8123 register_virtual_size.
8124 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8125 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8126
451fbdda
AC
81272002-05-11 Andrew Cagney <ac131313@redhat.com>
8128
8129 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8130 * gdbarch.h, gdbarch.c: Regenerate.
8131 * gnu-v3-abi.c: Update copyright.
8132 (vtable_address_point_offset): Update.
8133 (gnuv3_rtti_type): Update.
8134 (gnuv3_baseclass_offset): Update.
8135 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8136 (init_fetch_link_map_offsets): Update.
8137 * remote.c (get_remote_state): Update.
8138
6d2f5cea
DJ
81392002-05-11 Daniel Jacobowitz <drow@mvista.com>
8140
8141 * TODO: Remove value_headof/value_from_vtable_info comment.
8142 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8143 * values.c (value_headof, value_from_vtable_info): Delete.
8144 * value.h (value_from_vtable_info): Delete prototype.
8145
d2324da4
AC
81462002-05-11 Andrew Cagney <ac131313@redhat.com>
8147
8148 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8149 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8150 $(gdb_regex_h).
8151 (gdb_assert_h): Define.
8152 (gdb_wait_h): Define.
8153 (gdb_regex_h): Define.
8154
5c717440
DJ
81552002-05-11 Daniel Jacobowitz <drow@mvista.com>
8156
8157 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8158 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8159
6c7861b3
JT
81602002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8161
8162 * nbsd-tdep.c: Fix comment.
8163
ea5bc2a6
JT
81642002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8165
8166 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8167 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8168 (nbsd-tdep.o): New dependency list.
8169 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8170 nbsd-tdep.h.
8171 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8172 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8173 * nbsd-tdep.c: New file.
8174 * nbsd-tdep.h: New file.
8175 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8176 nbsd-tdep.h.
8177 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8178 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8179 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8180 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8181
b28da865
JT
81822002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8183
8184 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8185 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8186 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8187 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8188 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8189 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8190
4b8ff1fa
JT
81912002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8192
8193 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8194 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8195 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8196 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8197 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8198 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8199 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8200
dfe6eb1f
JT
82012002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8202
8203 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8204 fetch_elfcore_registers to...
8205 * i386nbsd-tdep.c: ...here.
8206 (i386nbsd_use_struct_convention): Rename to...
8207 (i386nbsd_aout_use_struct_convention): ...this.
8208 (i386nbsd_supply_reg): New function.
8209 (i386nbsd_fill_reg): New function.
8210 (fetch_core_registers): Use i386nbsd_supply_reg.
8211 (fetch_elfcore_registers): Likewise.
8212 (_initialize_i386nbsd_tdep): New function.
8213 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8214 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8215 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8216 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8217 (i386nbsd_aout_use_struct_convention): ...this.
8218
20cb8cda
JT
82192002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8220
8221 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8222 (store_inferior_registers): Use shnbsd_fill_reg.
8223 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8224 sh_nbsd_supply_register): Collapse into...
8225 (shnbsd_supply_reg): ...this.
8226 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8227 (shnbsd_fill_reg): ...this.
8228 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8229 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8230 (fetch_core_registers): Use shnbsd_supply_reg.
8231 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8232 (sh_nbsd_core_fns): Rename to...
8233 (shnbsd_core_fns): ...this.
8234 (sh_nbsd_elfcore_fns): Rename to...
8235 (shnbsd_elfcore_fns): ...this.
8236 (sh_nbsd_init_abi): Rename to...
8237 (shnbsd_init_abi): ...this.
8238 (_initialize_sh_nbsd_tdep): Rename to...
8239 (_initialize_shnbsd_tdep): ...this.
8240 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8241 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8242 sh_nbsd_fill_register): Remove prototypes.
8243 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8244
e750d25e
JT
82452002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8246
8247 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8248 (i387-nat.o): Delete dependency list.
8249 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8250 (x86-64-linux-nat.o): Likewise.
8251 * i387-nat.c: Delete file, moving contents to...
8252 * i387-tdep.c: ...here.
8253 * i387-nat.h: Rename...
8254 * i387-tdep.h: ...to this.
8255 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8256 * i386-linux-nat.c: Likewise.
8257 * i386bsd-nat.c: Likewise.
8258 * i386gnu-nat.c: Likewise.
8259 * i386nbsd-nat.c: Likewise.
8260 * i386v4-nat.c: Likewise.
8261 * x86-64-linux-nat.c: Likewise.
8262 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8263 * config/i386/go32.mh (NATDEPFILES): Likewise.
8264 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8265 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8266 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8267 * config/i386/linux.mh (NATDEPFILES): Likewise.
8268 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8269 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8270 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8271 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8272
1aee598a
JT
82732002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8274
8275 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8276 (alphanbsd-nat.o): Remove dependency list.
8277 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8278 * alphanbsd-nat.c: Delete. Contents moved to...
8279 * alphanbsd-tdep.c: ...here.
8280 (_initialize_alphanbsd_tdep): Register core functions.
8281 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8282
12bcb0fe
JT
82832002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8284
8285 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8286 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8287 (alphanbsd-nat.o): Likewise.
8288 (alphabsd-tdep.o): New dependency list.
8289 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8290 (fill_gregset): Use alphabsd_fill_reg.
8291 (supply_fpregset): Use alphabsd_supply_fpreg.
8292 (fill_fpregset): Use alphabsd_fill_fpreg.
8293 (fetch_inferior_registers): Use struct reg and struct fpreg
8294 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8295 and alphabsd_supply_fpreg.
8296 (store_inferior_registers): Use struct reg and struct fpreg
8297 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8298 and alphabsd_fill_fpreg.
8299 * alphabsd-tdep.c: New file.
8300 * alphabsd-tdep.h: New file.
8301 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8302 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8303 alphabsd_supply_fpreg.
8304 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8305 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8306
361d1df0
EC
83072002-05-11 Eric Christopher <echristo@redhat.com>
8308
8309 * mips-tdep.c (mips_double_register_type): Fix thinko.
8310 (mips_single_register_type): Ditto.
8311 * MAINTAINERS: Add self.
8312
92dd7cee
MK
83132002-05-11 Mark Kettenis <kettenis@gnu.org>
8314
8315 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8316 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8317 right thing on architectures with different endianness and/or
8318 integer sizes.
8319
e27da16d
JT
83202002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8321
8322 From Christian Limpach <chris@Pin.LU>
8323 * configure.in: Change sed expression which comments out
8324 NATDEPFILES to also comment out continuation lines.
8325 * configure: Regenerate.
8326
ddde02bd
EZ
83272002-05-10 Elena Zannoni <ezannoni@redhat.com>
8328
8329 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8330 big patch.
8331
1c922164
EZ
83322002-05-10 Elena Zannoni <ezannoni@redhat.com>
8333
8334 * sh-tdep.c: Include correct file.
8335
283150cd
EZ
83362002-05-10 Elena Zannoni <ezannoni@redhat.com>
8337
8338 New support for sh64-elf (sh5) target.
8339
8340 * configure.tgt: For sh64-elf target, default to sh-elf.
8341
8342 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8343 (struct gdbarch_tdep): Add new fields for new registers and ABI
8344 info.
361d1df0 8345
283150cd
EZ
8346 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8347 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8348 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8349 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8350 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8351 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8352 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8353 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8354 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8355 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8356 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8357 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8358 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8359 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8360 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8361 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8362 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8363 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8364 sign_extend, sh64_nofp_frame_init_saved_regs,
8365 sh64_init_extra_frame_info, sh64_get_saved_register,
8366 sh64_extract_struct_value_address, sh64_pop_frame,
8367 sh64_push_arguments, sh64_extract_return_value,
8368 sh64_store_return_value, sh64_show_media_regs,
8369 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8370 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8371 sh_sh64_register_virtual_type,
8372 sh_sh64_register_convert_to_virtual,
8373 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8374 sh64_register_read, sh64_pseudo_register_write,
8375 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8376 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8377 sh64_do_pseudo_register, sh_compact_do_registers_info,
8378 sh64_do_registers_info, sh_gdbarch_init): New functions.
8379
3117ed25
EZ
83802002-05-10 Elena Zannoni <ezannoni@redhat.com>
8381
8382 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8383
2654e6d4
DJ
83842002-05-10 Daniel Jacobowitz <drow@mvista.com>
8385
8386 * linespec.c (decode_line_1): Check for a double quote after
8387 a filename correctly.
8388
9ab3e532
JB
83892002-05-10 Jim Blandy <jimb@redhat.com>
8390
8391 Properly track the size of the current objfile's .debug_line section.
8392 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8393 (DWARF_LINE_SIZE): New macro.
8394 (dwarf2_build_psymtabs_hard): Record the line section's size in
8395 the partial symbol table.
8396 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8397 symbol table.
8398
126fa72d
PS
83992002-05-10 Petr Sorfa <petrs@caldera.com>
8400
8401 * ia64-tdep.c: Handle breakpoints on L instruction type
8402 in MLX instruction bundle by moving the breakpoint to
8403 the third slot (X instruction type) as L holds only data.
8404
1f077a3e
KB
84052002-05-10 Kevin Buettner <kevinb@redhat.com>
8406
8407 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8408 (process_one_symbol): Complain about discarding local symbols
8409 due to a misplaced N_LBRAC entry.
8410
8120c9d5 84112002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8412
8413 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8414 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8415 decrease the depth we are at, in the case of templates.
361d1df0 8416
67b2c998
DJ
84172002-05-09 Daniel Jacobowitz <drow@mvista.com>
8418
8419 * mips-tdep.c (mips_float_register_type): New function.
8420 (mips_double_register_type): New function.
8421 (mips_print_register): Use them.
8422 (do_fp_register_row): Likewise.
8423
fd326606
DJ
84242002-05-09 Daniel Jacobowitz <drow@mvista.com>
8425
6609d9af 8426 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8427 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8428 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8429
bef35864
MS
84302002-05-09 Michael Snyder <msnyder@redhat.com>
8431
8432 * remote-rdp.c (remote_rdp_can_run): Remove.
8433
c55a3f73
TT
84342002-05-09 Tom Tromey <tromey@redhat.com>
8435
8436 * jv-valprint.c (java_val_print): Handle `char' as a special case
8437 of TYPE_CODE_INT.
8438
b8d5e71d
MS
84392002-05-09 Michael Snyder <msnyder@redhat.com>
8440
8441 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8442 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8443 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8444 str r(0123),[sp,#nn].
361d1df0 8445 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8446 order-independent by placing it in a loop.
8447
e2cd42dd
MS
84482002-05-06 Michael Snyder <msnyder@redhat.com>
8449
8450 * stabsread.c (read_type): Add recognition for new attribute:
8451 "@V;" means that an array type is actually a vector.
8452 This is analogous to the vector flag that's been added to dwarf2.
8453
3ce1502b
MK
84542002-05-09 Mark Kettenis <kettenis@gnu.org>
8455
8456 * i386-tdep.h (i386_abi): New enum.
8457 (struct gdbarch_tdep): Replace os_ident member with abi.
8458 (i386_gdbarch_register_os_abi): New prototype.
8459 * i386-tdep.c (i386_abi_names): New array.
8460 (process_note_abi_tag_sections): Removed.
8461 (process_note_sections): New function.
8462 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8463 (struct i386_abi_handler): New struct.
8464 (i386_abi_handler_list): New variable.
8465 (i386_gdbarch_register_os_abi): New function.
8466 (i386_gdbarch_init): Adapt for the changes given above.
8467
084c156a
DJ
84682002-05-08 Daniel Jacobowitz <drow@mvista.com>
8469
8470 * gregset.h: Say "GNU/Linux".
8471
6599f021
EZ
84722002-05-08 Elena Zannoni <ezannoni@redhat.com>
8473
8474 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8475 (build_gdbtypes): Build builtin_type_v2_float.
8476 (_initialize_gdbtypes): Register new builtin type.
8477
40af4b0c
AC
84782002-05-08 Andrew Cagney <ac131313@redhat.com>
8479
8480 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8481 (clear_gdbarch_swap): New function.
8482 (initialize_non_multiarch): Call.
8483 (gdbarch_update_p): Before calling init(), swap out and clear the
8484 existing architecture.
8485 * gdbarch.c: Regenerate.
8486
4fe84f46
JT
84872002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8488
8489 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8490 alphanbsd-tdep.c.
8491
4015edd1
JT
84922002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8493
8494 * sh-nbsd-nat.c: Rename to...
8495 * shnbsd-nat.c: ...this.
8496 * sh-nbsd-tdep.c: Rename to...
8497 * shnbsd-tdep.c: ...this.
8498 * sh-nbsd-tdep.h: Rename to...
8499 * shnbsd-tdep.h: ...this.
8500 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8501 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8502
0e2bd219
RE
85032002-05-08 Richard Earnshaw <rearnsha@arm.com>
8504
8505 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8506 concatenation for command help messages.
8507
13a38d45
JT
85082002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8509
8510 * NEWS: Note new sh*-*-netbsdelf* configuration.
8511 * configure.host: Set gdb_host_cpu to sh for all sh*.
8512 (sh*-*-netbsdelf*): New host.
8513 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8514 (sh*-*-netbsdelf*): New target.
8515 * sh-nbsd-nat.c: New file.
8516 * sh-nbsd-tdep.c: New file.
8517 * sh-nbsd-tdep.h: New file.
8518 * config/sh/nbsd.mh: New file.
8519 * config/sh/nbsd.mt: New file.
8520 * config/sh/nm-nbsd.h: New file.
8521 * config/sh/tm-nbsd.h: New file.
8522
d658f924
JT
85232002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8524
8525 * sh-tdep.c (sh_osabi_names): Declare.
8526 (process_note_abi_tag_sections): New function.
8527 (get_elfosabi): Ditto.
8528 (sh_gdbarch_register_os_abi): Ditto.
8529 (sh_dump_tdep): Ditto.
8530 _initialize_sh_tdep): Use gdbarch_register to register
8531 sh_gdbarch_init and sh_dump_tdep.
8532 * config/sh/tm-sh.h (sh_osabi): Declare.
8533 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8534
848cfffb
AC
85352002-05-07 Andrew Cagney <ac131313@redhat.com>
8536
8537 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8538 (thumb_scan_prologue): Ditto.
8539 (arm_find_callers_reg): Ditto.
8540 (arm_frame_chain): Ditto.
8541 (arm_init_extra_frame_info): Ditto.
8542 (arm_frame_saved_pc): Ditto.
8543 (arm_pop_frame): Ditto.
8544 (arm_push_return_address): New function.
8545 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8546 call_dummy_location, call_dummy_breakpoint_offset_p,
8547 call_dummy_breakpoint_offset, call_dummy_p,
8548 call_dummy_stack_adjust_p, call_dummy_words,
8549 sizeof_call_dummy_words, call_dummy_start_offset,
8550 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8551 call_dummy_address, push_return_address and push_dummy_frame for
8552 generic dummy frames.
8553
e7d717c0
JT
85542002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8555
8556 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8557 size computation for alloca.
8558 (sh_fp_frame_init_saved_regs): Likewise.
8559
7bbcf283
RE
85602002-05-07 Richard Earnshaw <rearnsha@arm.com>
8561
8562 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8563 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8564 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8565 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8566 * remote-rdp.c (remote_rdp_fetch_register): Use
8567 ARM_MAX_REGISTER_RAW_SIZE.
8568 (remote_rdp_store_register): Likewise.
8569
4657573b
ML
85702002-05-07 Michal Ludvig <mludvig@suse.cz>
8571
361d1df0 8572 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8573 added default labels to switch {} statements.
8574 * x86-64-tdep.c: Ditto.
8575 * x86-64-linux-nat.c: Ditto.
8576
010f3b2f
JT
85772002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8578
8579 * solib.h: Protect against multiple inclusion.
8580
debd256d
JB
85812002-05-06 Jim Blandy <jimb@redhat.com>
8582
9ab3e532
JB
8583 Add first preprocessor macro-expansion files.
8584 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8585 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8586 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8587 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8588 (COMMON_OBS): Add macrotab.o, macroexp.o.
8589 (macroexp.o, macrotab.o): New rules.
8590
debd256d
JB
8591 Separate the job of reading the line number info statement program
8592 header (...expialidocious) out into its own function.
8593 * dwarf2read.c (struct line_head, struct filenames, struct
8594 directories): Replace with...
8595 (struct line_header): New structure, containing the full
8596 contents of the statement program header, including the
8597 include directory and file name tables.
8598 (read_file_scope): If we have line number info, instead of just
8599 calling dwarf_decode_lines to do all the work, call
8600 dwarf_decode_line_header first to get a `struct line_header'
8601 containing the data in the statement program header, and then
8602 pass that to dwarf_decode_lines, which will pick up where that
8603 left off. Be sure to clean up the `struct line_header' object.
8604 (dwarf_decode_line_header, free_line_header, add_include_dir,
8605 add_file_name): New functions.
8606 (dwarf_decode_lines): Move all the code to read the statement
8607 program header into dwarf_decode_line_header. Take the line
8608 header it built as the first argument, instead of the offset to
8609 the compilation unit's line number info. Use the new `struct
8610 line_header' type instead of the old structures. No need to do
8611 cleanups here now, since we don't allocate anything.
8612 (dwarf2_statement_list_fits_in_line_number_section,
8613 dwarf2_line_header_too_long): New complaints.
8614
ac3aafc7
EZ
86152002-05-06 Elena Zannoni <ezannoni@redhat.com>
8616
8617 * gdbtypes.c (init_vector_type): New function.
8618 (build_builtin_type_vec128): Simplify the representation of SIMD
8619 registers.
8620 (build_gdbtypes): Initialize new builtin vector types.
8621 (_initialize_gdbtypes): Register new vector types with gdbarch.
8622 (builtin_type_v4_float, builtin_type_v4_int32,
8623 builtin_type_v8_int16, builtin_type_v16_int8,
8624 builtin_type_v2_int32, builtin_type_v4_int16,
8625 builtin_type_v8_int8): New (renamed) SIMD types.
8626
13e49980
MK
86272002-05-06 Mark Kettenis <kettenis@gnu.org>
8628
8629 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8630 (i387_fill_fxsave): Likewise.
8631
997b20b8
AO
86322002-05-05 Alexandre Oliva <aoliva@redhat.com>
8633
8634 * alpha-tdep.c (alpha_extract_return_value): Don't use
8635 non-constant array size in prototype.
8636
535c96ce
AC
86372002-05-04 Andrew Cagney <ac131313@redhat.com>
8638
8639 From Brian Taylor <briant at model dot com>:
8640 * ui-out.c (ui_out_field_core_addr): Use the function
8641 longest_local_hex_string_custom'to format addresses > 32 bits
8642 wide.
8643
8644 * ui-out.c (ui_out_field_core_addr): Update comment.
8645
bedfa57b
AC
86462002-05-04 Andrew Cagney <ac131313@redhat.com>
8647
8648 * stack.c (select_and_print_frame): Make static. Delete the
8649 parameter `level'.
8650 (func_command): Update call.
8651 (select_frame_command): Delete code computing the frame level.
8652 * frame.h (select_and_print_frame): Delete declaration.
8653
f621c63e
AC
86542002-05-04 Andrew Cagney <ac131313@redhat.com>
8655
8656 * sparc-tdep.c (sparc_get_saved_register): Comment why
8657 get_prev_frame call is safe.
8658
0f7d239c
AC
86592002-05-04 Andrew Cagney <ac131313@redhat.com>
8660
8661 * frame.h (select_frame): Delete level parameter.
8662 * stack.c (select_frame): Update. Use frame_relative_level to
8663 obtain the frame's level.
8664 (select_and_print_frame): Update call.
8665 (select_frame_command): Ditto.
8666 (up_silently_base): Ditto.
8667 (down_silently_base): Ditto.
8668 * ocd.c (ocd_start_remote): Ditto.
8669 * remote-rdp.c (remote_rdp_open): Ditto.
8670 * remote-mips.c (mips_initialize): Ditto.
8671 (common_open): Ditto.
8672 * remote-e7000.c (e7000_start_remote): Ditto.
8673 * m3-nat.c (select_thread): Ditto.
8674 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8675 (child_get_current_exception_event): Ditto.
8676 * varobj.c (varobj_create): Ditto.
8677 (varobj_update): Ditto.
8678 (c_value_of_root): Ditto.
8679 * tracepoint.c (finish_tfind_command): Ditto.
8680 * corelow.c (core_open): Ditto.
8681 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8682 * thread.c (info_threads_command): Ditto.
8683 (switch_to_thread): Ditto.
8684 * infrun.c (normal_stop): Ditto.
8685 (restore_selected_frame): Ditto.
8686 (restore_inferior_status): Ditto.
8687 * breakpoint.c (insert_breakpoints): Ditto.
8688 (watchpoint_check): Ditto.
8689 (bpstat_stop_status): Ditto.
8690 (do_enable_breakpoint): Ditto.
8691 * blockframe.c (flush_cached_frames): Ditto.
8692 (reinit_frame_cache): Ditto.
8693
71d6c7b1
AC
86942002-05-04 Andrew Cagney <ac131313@redhat.com>
8695
8696 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8697 maintainer.
8698
cda6c68a
JB
86992002-05-04 Jim Blandy <jimb@redhat.com>
8700
8701 * gdbtypes.c (replace_type): Doc fix.
8702
5c1c87f0
AC
87032002-05-04 Andrew Cagney <ac131313@redhat.com>
8704
8705 * valprint.c (strcat_longest): Delete commented out function.
8706 Update copyright.
8707
cd9bfe15
AC
87082002-05-04 Andrew Cagney <ac131313@redhat.com>
8709
8710 * MAINTAINERS: Mark a29k as deleted.
8711 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8712 Move new configurations to the top.
8713 * configure.tgt: Remove a29k.
8714 * config/a29k/tm-vx29k.h: Delete.
8715 * config/a29k/vx29k.mt: Delete.
8716 * config/a29k/tm-a29k.h: Delete.
8717 * config/a29k/a29k-udi.mt: Delete.
8718 * config/a29k/a29k.mt: Delete.
8719 * a29k-tdep.c: Delete.
8720 * remote-udi.c: Delete.
8721 * remote-mm.c: Delete.
8722 * remote-eb.c: Delete.
8723 * remote-adapt.c: Delete.
8724 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8725 * config/s390/s390x.mt: Ditto.
8726 * config/s390/s390.mt: Ditto.
8727 * config/sparc/sparclynx.mh: Ditto.
8728 * config/sparc/linux.mh: Ditto.
8729 * config/pa/hppaosf.mh: Ditto.
8730 * config/pa/hppabsd.mh: Ditto.
8731 * config/ns32k/nbsd.mt: Ditto.
8732 * config/mips/vr5000.mt: Ditto.
8733 * config/m68k/sun3os4.mh: Ditto.
8734 * config/m68k/nbsd.mt: Ditto.
8735 * config/m68k/m68klynx.mh: Ditto.
8736 * config/m32r/m32r.mt: Ditto.
8737 * config/i386/x86-64linux.mt: Ditto.
8738 * config/i386/nbsdelf.mt: Ditto.
8739 * config/i386/nbsd.mt: Ditto.
8740 * config/i386/i386lynx.mh: Ditto.
8741
bf0c5130
AC
87422002-05-04 Andrew Cagney <ac131313@redhat.com>
8743
8744 * target.c (debug_print_register): New function. Handle oversize
8745 registers.
8746 (debug_to_fetch_registers): Call.
8747 (debug_to_store_registers): Call.
8748
2ae1c2d2
JB
87492002-05-03 Jim Blandy <jimb@redhat.com>
8750
13a393b0
JB
8751 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8752 (read_type): Doc fix.
8753 * gdbtypes.c (replace_type): Doc fix.
8754
2ae1c2d2
JB
8755 * stabsread.c (multiply_defined_struct): New complaint.
8756 (read_struct_type): If the type we were passed isn't empty, or
8757 incomplete, don't read the new struct type into it; complain,
8758 and return the original type unchanged. Take a new `type_code'
8759 argument, which is the type code for the new type.
8760 (read_type): Rather than storing the type's type code here, pass
8761 it as an argument to read_struct_type, and let that take care of
8762 storing it. That way, we don't overwrite the original type code,
8763 so read_struct_type can use it to decide whether we're overwriting
8764 something we shouldn't.
8765 (complain_about_struct_wipeout): New function.
8766
8de9bdc4
AC
87672002-05-03 Andrew Cagney <ac131313@redhat.com>
8768
8769 * gdbarch.sh: Assert that gdbarch is non-NULL.
8770 * gdbarch.c: Regenerate.
8771
f773fdbb
JM
87722002-05-03 Jason Merrill <jason@redhat.com>
8773
8774 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8775 and return NULL.
8776
0e04a514
ML
87772002-05-03 Michal Ludvig <mludvig@suse.cz>
8778
8779 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8780 (x86_64_dwarf2gdb_regno_map_length),
8781 (x86_64_dwarf2_reg_to_regnum): Added.
8782 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8783 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8784 (_initialize_x86_64_tdep): Synced with the change above.
8785 (x86_64_skip_prologue): Reformulated message.
8786
065432a8
PM
87872002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8788
8789 * f-exp.y: Also use new prev_lexptr variable
8790 to improve error reporting. Based on Michael Snyder
8791 2002-04-24 dated patch to c-exp.y.
8792 * jv-exp.y: Likewise.
8793 * m2-exp.y: Likewise.
8794
a3162708
EZ
87952002-05-02 Elena Zannoni <ezannoni@redhat.com>
8796
8797 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8798 we are dealing with vectors.
8799
03620c38
PM
88002002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8801
8802 * config/m68k/tm-nbsd.h: Obvious fix,
8803 correct machine name.
8804
6604db2e
PM
88052002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8806
8807 * p-typeprint.c (pascal_type_print_base): Add support
8808 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8809
0906b739
PM
88102002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8811
8812 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8813 for fondamental pascal 'char' type.
8814
e2625b33
PM
88152002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8816
8817 * p-lang.h (is_pascal_string_type): Declaration changed,
8818 new sixth argument of type char ** added.
361d1df0 8819 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
8820 changed. Args length_pos, length_size, string_pos, char_size
8821 can now be NULL. New argument arrayname set to the field
8822 name of the char array. Return value set to char array
8823 field index plus one.
361d1df0 8824 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
8825 is_pascal_string_type function.
8826
cf17c188
AC
88272002-05-02 Andrew Cagney <cagney@redhat.com>
8828
8829 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8830 <cagney@redhat.com> change.
8831 * gdbarch.c: Regenerate.
8832
52bca491
AC
88332002-05-02 Andrew Cagney <cagney@redhat.com>
8834
8835 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8836 before probing for a new one. Detect errorenous gdbarch_init
8837 functions.
8838 * gdbarch.c: Regenerate.
8839
d5e72505
AC
88402002-05-01 Andrew Cagney <cagney@redhat.com>
8841
8842 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8843 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8844 * config/v850/tm-v850.h: Ditto. Update copyright.
8845
af566d9f
AC
88462002-04-30 Andrew Cagney <ac131313@redhat.com>
8847
8848 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8849 current_gdbarch.
8850
880d85fa
MS
88512002-04-30 Michael Snyder <msnyder@redhat.com>
8852
94c30b78
MS
8853 * arm-tdep.c: Whitespace clean-ups.
8854 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
8855 should have been removed as part of 4/24 change.
8856
6f5987a6
KB
88572002-04-30 Kevin Buettner <kevinb@redhat.com>
8858
8859 * rs6000-tdep.c: Added comment describing how fpscr register
8860 numbers were chosen.
8861
1a113c93
MS
88622002-04-30 Michael Snyder <msnyder@redhat.com>
8863
8864 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8865
9a6f53fe
EZ
88662002-04-29 Elena Zannoni <ezannoni@redhat.com>
8867
8868 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8869 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8870 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8871
11ed25ac
KB
88722002-04-29 Kevin Buettner <kevinb@redhat.com>
8873
8874 From Louis Hamilton <hamilton@redhat.com>:
8875 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8876 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8877 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8878 not bfd-private xcoff data, to determine wordsize.
8879 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8880
ae232405
AC
88812002-04-29 Andrew Cagney <ac131313@redhat.com>
8882
8883 GDB 5.2 released from 5.2 branch.
8884
91fd20f7
ML
88852002-04-29 Michal Ludvig <mludvig@suse.cz>
8886
8887 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8888 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8889 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 8890
2dc5091b
EZ
88912002-04-29 Elena Zannoni <ezannoni@redhat.com>
8892
8893 * rs6000-tdep.c (rs6000_extract_return_value,
8894 rs6000_store_return_value): Handle returning vectors.
8895 (rs6000_gdbarch_init): Use
8896 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8897 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8898 New function.
8899 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8900 vectors.
8901 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8902 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 8903
2b9848d8
PM
89042002-04-24 Pierre Muller <ics.u-strasbg.fr>
8905
8906 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 8907 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
8908 with fprintf_unfiltered (gdb_stderr,...).
8909
f8d17dc5
PM
89102002-04-24 Pierre Muller <ics.u-strasbg.fr>
8911
8912 * remote-array.c (printf_monitor, write_monitor,
361d1df0 8913 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
8914 Replace fprintf (stderr,...
8915 with fprintf_unfiltered (gdb_stderr,....
8916 * remote-es.c: Likewise.
8917 * remote-os9k.c: Likewise.
8918 * remote-st.c: Likewise.
8919
2f2f1ad1
AS
89202002-04-28 Andreas Schwab <schwab@suse.de>
8921
8922 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8923 linux-proc.o and gcore.o.
8924
b6779aa2
AC
89252002-04-26 Michal Ludvig <mludvig@suse.cz>
8926
8927 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8928 code without frame pointers.
8929
7e57f5f4
AC
89302002-04-26 Andrew Cagney <ac131313@redhat.com>
8931
8932 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8933 ON_STACK is needed.
8934
2ceb85d0
BE
89352002-04-26 Ben Elliston <bje@redhat.com>
8936
8937 * target.c (do_xfer_memory): Correct reference to the new option
8938 "trust-readonly-sections".
8939
f5f8a009
EZ
89402002-04-26 Elena Zannoni <ezannoni@redhat.com>
8941
8942 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8943 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8944 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8945 vectors.
8946 (read_array_type): Record the fact that this array type is really a
8947 vector (i.e. are passed in by value).
8948
5868c862
JT
89492002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8950
8951 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8952 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8953 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8954 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8955 * alpha-linux-tdep.c: Include frame.h.
8956 (alpha_linux_sigcontext_addr): New function.
8957 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8958 alpha_linux_sigcontext_addr.
8959 * alpha-osf1-tdep.c: Include gdbcore.h.
8960 (alpha_osf1_sigcontext_addr): New function.
8961 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8962 alpha_osf1_sigcontext_addr.
8963 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8964 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8965
bfb01f37
AC
89662002-04-26 Andrew Cagney <ac131313@redhat.com>
8967
361d1df0 8968 * stack.c (selected_frame_level):
bfb01f37
AC
8969 (select_frame): Do not set selected_frame_level.
8970 * frame.h (selected_frame_level): Delete declaration.
8971
15813d3f
AC
89722002-04-26 Andrew Cagney <ac131313@redhat.com>
8973
8974 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8975 convert_from_func_ptr-addr when AIX / PowerOpen.
8976
6096c27a
AC
89772002-04-25 Andrew Cagney <ac131313@redhat.com>
8978
8979 * valops.c (hand_function_call): Call
8980 generic_save_call_dummy_addr.
8981 * frame.h (generic_save_call_dummy_addr): Declare.
8982 * blockframe.c (struct dummy_frame): Add fields call_lo and
8983 call_hi.
8984 (generic_find_dummy_frame): Check for PC in range call_lo to
8985 call_hi instead of entry_point_address.
8986 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8987 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8988 (generic_save_call_dummy_addr): New function.
8989
f510d44e
DM
89902002-04-24 David S. Miller <davem@redhat.com>
8991
8992 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8993 sparc_skip_prologue.
8994 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8995 information to find prologue when possible.
8996 (sparc_prologue_frameless_p): Call examine_prologue directly.
8997 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8998 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8999 second argument.
9000 (SKIP_PROLOGUE): Likewise.
9001
15d72a92
JT
90022002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9003
9004 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9005 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9006 indicate that the condition it was testing is always true.
9007 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9008 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9009 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9010
accc6d1f
JT
90112002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9012
9013 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9014 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9015 tdep->jb_pc and tdep->jb_elt_size.
9016 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9017 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9018 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9019 * alpha-nat.c (get_longjmp_target): Remove.
9020 (JB_ELEMENT_SIZE): Ditto.
9021 (JB_PC): Ditto.
9022 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9023 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9024 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9025 to alpha_get_longjmp_target.
9026 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9027 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9028 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9029
1bfdc549
AC
90302002-04-25 Andrew Cagney <ac131313@redhat.com>
9031
9032 * README: Update to GDB 5.2.
9033
1bd316f0
AC
90342002-04-25 Andrew Cagney <ac131313@redhat.com>
9035
9036 * gdbarch.sh (LC_ALL): Set to `c'.
9037
2e5ff58c
TR
90382002-04-25 Theodore A. Roth <troth@verinet.com>
9039
9040 * avr-tdep.c: Ran through gdb_indent.sh.
9041
e33ce519
TR
90422002-04-25 Theodore A. Roth <troth@verinet.com>
9043
9044 * MAINTAINERS: Add myself as AVR maintainer.
9045 * NEWS: Note new target avr.
9046
8818c391
TR
90472002-04-25 Theodore A. Roth <troth@verinet.com>
9048
9049 * Makefile.in: Add support for AVR target.
9050 * configure.tgt: Add support for AVR target.
9051 * avr-tdep.c: New file
9052 * config/avr/avr.mt: New file.
9053
79509c2d
TR
90542002-04-25 Theodore A. Roth <troth@verinet.com>
9055
9056 * MAINTAINERS: Add myself to write-after-approval.
9057
dac8068e
PM
90582002-04-24 Pierre Muller <ics.u-strasbg.fr>
9059
9060 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9061 with fprintf_unfiltered (gdb_stderr,....
9062
25bf3106
PM
90632002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9064
9065 Fix PR gdb/508.
9066 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9067
24467a86
PM
90682002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9069
9070 * p-exp.y: Also use new prev_lexptr variable
9071 to improve error reporting. Based on Michael Snyder
9072 2002-04-24 dated patch to c-exp.y.
9073
95b80706
JT
90742002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9075
9076 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9077 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9078 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9079 to 0.
9080 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9081 and struct value.
9082 (FUNCTION_START_OFFSET): Remove.
9083 (BREAKPOINT): Ditto.
9084
e90cc612
JT
90852002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9086
9087 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9088 * NEWS: Ditto.
9089
6c72f9f9
JT
90902002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9091
9092 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9093 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9094 alpha_linux_pc_in_sigtramp.
9095 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9096 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9097 alpha_osf1_pc_in_sigtramp.
9098 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9099 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9100 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9101 alphafbsd_pc_in_sigtramp.
9102 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9103 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9104 alphanbsd_pc_in_sigtramp.
9105 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9106 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9107
5e4f3379
JT
91082002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9109
9110 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9111
da8ca43d
JT
91122002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9113
9114 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9115 alphanbsd-tdep.c.
9116 (alphanbsd-nat.o): New dependency list.
9117 (alphanbsd-tdep.o): Ditto.
9118 * NEWS: Note new native NetBSD/alpha configuration.
9119 * alphanbsd-nat.c: New file.
9120 * alphanbsd-tdep.c: Ditto.
9121 * configure.host (alpha*-*-netbsd*): New host.
9122 * configure.tgt (alpha*-*-netbsd*): New target.
9123 * config/alpha/nbsd.mh: New file.
9124 * config/alpha/nbsd.mt: Ditto.
9125 * config/alpha/nm-nbsd.h: Ditto.
9126 * config/alpha/tm-nbsd.h: Ditto.
9127
36a6271d
JT
91282002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9129
9130 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9131 (alpha-osf1-tdep.o): New dependency list.
9132 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9133 and skip_sigtramp_frame members.
9134 * alpha-linux-tdep.c: Include gdbcore.h.
9135 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9136 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9137 * alpha-osf1-tdep.c: New file.
9138 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9139 alpha-osf1-dep.c.
9140 (alpha_frame_past_sigtramp_frame): New function.
9141 (alpha_dynamic_sigtramp_offset): Ditto.
9142 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9143 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9144 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9145 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9146 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9147 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9148 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9149 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9150 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9151 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9152 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9153 to find_solib_trampoline_target.
9154 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9155 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9156 (SKIP_TRAMPOLINE_CODE): Remove.
9157 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9158 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9159 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9160 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9161 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9162 (PROC_SIGTRAMP_MAGIC): Ditto.
9163 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9164 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9165 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9166 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9167 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9168
2f4bc57b
JT
91692002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9170
9171 * NEWS: Note that Alpha targets are now multi-arch.
9172
665132f9
MS
91732002-04-24 Michael Snyder <msnyder@redhat.com>
9174
9175 * parser-defs.h (prev_lexptr): New external variable.
9176 * parse.c (parse_exp_1): Set prev_lexptr to null before
9177 calling the language-specific parser.
9178 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9179 (yyerror): Use prev_lexptr in error reporting.
9180
32872fa7
DJ
91812002-04-24 Daniel Jacobowitz <drow@mvista.com>
9182
9183 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9184 * gregset.h: If FILL_FPXREGSET is defined, provide
9185 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9186 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9187 is defined, call fill_fpxregset.
9188
57e76fac
MS
91892002-04-24 Roland McGrath <roland@frob.com>
9190
9191 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9192 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9193 (supply_gregset, supply_fpregset): New functions.
9194
9195 * gnu-nat.c (gnu_find_memory_regions): New function.
9196 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9197 (gnu_xfer_memory): Add a cast.
9198
f43845b3
MS
91992002-04-24 Michael Snyder <msnyder@redhat.com>
9200
361d1df0 9201 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9202 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9203 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9204 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9205 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9206 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9207
a0abec03
AC
9208Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9209
9210 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9211 NUM_PSEUDO_REGS can be used.
9212
d7bd68ca
AC
92132002-04-24 Andrew Cagney <ac131313@redhat.com>
9214
9215 * arch-utils.h: Update copyright.
9216
9217 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9218 * gdbarch.h, gdbarch.c: Re-generate.
9219
9220 * inferior.h (IN_SIGTRAMP): Delete definition.
9221 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9222 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9223
9224 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9225 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9226 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9227 (find_proc_framesize): Ditto.
9228 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9229 (alpha_init_extra_frame_info): Ditto.
9230 * infrun.c (handle_inferior_event): Ditto.
9231 (handle_inferior_event): Ditto.
9232 (check_sigtramp2): Ditto.
9233 * blockframe.c (create_new_frame): Ditto.
9234 (get_prev_frame): Ditto.
9235 * ppc-linux-tdep.c: Update comments.
9236 * i386-linux-tdep.c: Update comments.
9237 * breakpoint.c (bpstat_what): Update comment.
9238
4867e41e
DM
92392002-04-24 David S. Miller <davem@redhat.com>
9240
21d83aa5
DM
9241 * i960-tdep.c (register_in_window_p): New function.
9242 (i960_find_saved_register): Use it instead of
9243 REGISTER_IN_WINDOW_P.
9244 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9245
4867e41e
DM
9246 * symtab.h (find_stab_function_addr): Kill extern.
9247 * minsyms.c (find_stab_function_addr): Remove from here...
9248 * dbxread.c: ... to here, and mark it static.
9249
69cdf6a2
DM
92502002-04-20 David S. Miller <davem@redhat.com>
9251
9252 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9253 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9254
5a595886
DM
92552002-04-21 David S. Miller <davem@redhat.com>
9256
9257 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9258 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9259 (vx_write_register): Likewise.
9260
1da1a192
JB
92612002-04-23 J. Brobecker <brobecker@gnat.com>
9262
9263 * source.c (is_regular_file): New function.
9264 (openp): Check wether file to open is a regular file
9265 to avoid opening directories.
9266
baa6f10b
JT
92672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9268
9269 * findvar.c (extract_signed_integer): Cast printf argument
9270 to suppress format warning.
9271 (extract_unsigned_integer): Likewise.
9272 * infcmd.c (registers_info): Likewise.
9273 * top.c (get_prompt_1): Likewise.
9274 * valops.c (value_assign): Likewise.
9275 * valprint.c (print_decimal): Likewise.
9276
b2c4da81
L
92772002-04-22 H.J. Lu (hjl@gnu.org)
9278
9279 * c-exp.y (typebase): Support
361d1df0 9280
b2c4da81
L
9281 [long|long long|short] [signed|unsigned] [int|]
9282
9283 and
9284
9285 signed [long|long long|short] int
9286
f267bd6a
JT
92872002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9288
9289 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9290 and vax-tdep.h.
9291 * vax-tdep.h: New file.
9292 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9293 Make several routines static.
9294 (vax_get_saved_register): New function.
9295 (vax_gdbarch_init): New function.
9296 (_initialize_vax_tdep): Register vax_gdbarch_init.
9297 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9298 Remove macros now under the control of gdbarch.
9299
da3c6d4a
MS
93002002-04-22 Michael Snyder <msnyder@redhat.com>
9301
11d3b27d
MS
9302 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9303 Some whitespace and coding standards tweaks.
da3c6d4a 9304
a33f7558
JT
93052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9306
9307 * vax-tdep.c: Include regcache.h.
9308 (vax_call_dummy_words): New.
9309 (sizeof_vax_call_dummy_words): New.
9310 (vax_fix_call_dummy): New function.
9311 (vax_saved_pc_after_call): Ditto.
9312 * config/vax/tm-vax.h: Don't include regcache.h.
9313 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9314 (CALL_DUMMY): Remove.
9315 (CALL_DUMMY_WORDS): Define.
9316 (SIZEOF_CALL_DUMMY_WORDS): Define.
9317 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9318
47a73475
MS
93192002-04-18 Michael Snyder <msnyder@redhat.com>
9320
9321 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9322
52efde73
JT
93232002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9324
9325 * vax-tdep.c (vax_frame_chain): New function.
9326 (vax_push_dummy_frame): Ditto.
9327 (vax_pop_frame): Ditto.
9328 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9329 (FRAMELESS_FUNCTION_INVOCATION): Use
9330 generic_frameless_function_invocation_not.
9331 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9332 (POP_FRAME): Use vax_pop_frame.
9333
ea74468c
JT
93342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9335
9336 * vax-tdep.c (vax_store_struct_return): New function.
9337 (vax_extract_return_value): Ditto.
9338 (vax_store_return_value): Ditto.
9339 (vax_extract_struct_value_address): Ditto.
9340 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9341 vax_store_struct_return.
9342 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9343 (STORE_RETURN_VALUE): Use vax_store_return_value.
9344 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9345
5516aa92
JT
93462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9347
9348 * vax-tdep.c (vax_frame_saved_pc): New function.
9349 (vax_frame_args_address_correct): Ditto.
9350 (vax_frame_args_address): Ditto.
9351 (vax_frame_locals_address): Ditto.
9352 (vax_frame_num_args): Move code to be in proximity to
9353 other frame-related functions.
9354 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9355 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9356 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9357 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9358 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9359
36af0b35
L
93602002-04-22 H.J. Lu (hjl@gnu.org)
9361
9362 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9363 includedir.
9364
ab62c900
JT
93652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9366
9367 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9368 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9369 (FRAME_INIT_SAVED_REGS): New macro.
9370
7232b100
JT
93712002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9372
9373 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9374
b70d2aee
JT
93752002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9376
9377 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9378 where needed.
9379 (fetch_osf_core_registers): Likewise.
9380 (supply_gregset): Likewise.
9381
a0e8a2d1 93822002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9383
a0e8a2d1
JB
9384 * symfile.h (get_section_index): Define.
9385 * symfile.c (get_section_index): New function.
9386 * mdebugread.c (SC_IS_SBSS): New macro.
9387 (SC_IS_BSS): Return true for the scBss storage class only, as
9388 the scSBss storage class refers to the .sbss section.
9389 (parse_partial_symbols): Discard the symbols which associated
9390 section does not exist.
9391 Make sure to use the .sbss section index for symbols which
9392 storage class is scBss, rather than using the .bss section index.
9393
51eb8b08
JT
93942002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9395
9396 * vax-tdep.c: Update copyright years.
9397 (vax_register_name): New function.
9398 (vax_register_byte): Ditto.
9399 (vax_register_raw_size): Ditto.
9400 (vax_register_virtual_size): Ditto.
9401 (vax_register_virtual_type): Ditto.
9402 * config/vax/tm-vax.h: Update copyright years.
9403 (REGISTER_NAMES): Remove.
9404 (REGISTER_NAME): Define.
9405 (REGISTER_BYTE): Use vax_register_byte.
9406 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9407 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9408 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9409
6cc1c0a8
AC
94102002-04-21 Andrew Cagney <ac131313@redhat.com>
9411
9412 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9413 declaration
9414 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9415
9319a2fe
DM
94162002-04-21 David S. Miller <davem@redhat.com>
9417
9418 * arch-utils.c (generic_prologue_frameless_p): Kill
9419 SKIP_PROLOGUE_FRAMELESS_P code.
9420 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9421 references.
9422 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9423 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9424 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9425 references.
9426 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9427 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9428 (sparc_gdbarch_init): Pass it to
9429 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9430
e9ed6d01
JT
94312002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9432
9433 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9434 (alphabsd-nat.o): New dependency list.
9435
36012033
JT
94362002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9437
9438 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9439 alphafbsd-tdep.c.
9440 (alpha-linux-tdep.o): New dependency list.
9441 (alphafbsd-tdep.o): Likewise.
9442
3379287a
JT
94432002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9444
9445 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9446 to here...
9447 * alpha-tdep.c: ...from here.
9448 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9449
4bcbd6cb
JT
94502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9451
9452 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9453 prototype from here...
9454 * alpha-tdep.h: ...to here.
9455
b31da25e
AC
94562002-04-21 Andrew Cagney <ac131313@redhat.com>
9457
9458 * frame.h (selected_frame_level): Document as deprecated.
9459 (frame_relative_level): Declare.
9460 * stack.c (frame_relative_level): New function.
9461 (selected_frame_level): Document as deprecated.
9462 (select_frame): Do not set the selected_frame_level.
9463
9464 * stack.c (frame_info, record_selected_frame): Update.
9465 (frame_command, current_frame_command): Update.
9466 (up_silently_base, up_command, down_silently_base): Update.
9467 (down_command): Update.
9468 * inflow.c (kill_command): Update.
9469 * tracepoint.c (finish_tfind_command): Update.
9470 * corelow.c (core_open): Update.
9471 * thread.c (info_threads_command): Update.
9472 (do_captured_thread_select): Update.
9473 * infcmd.c (finish_command): Update.
9474 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9475
9c1d6fe5
JT
94762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9477
9478 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9479
ab89facf
AC
94802002-04-21 Andrew Cagney <ac131313@redhat.com>
9481
9482 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9483 type const.
9484
82a4efa1
JT
94852002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9486
9487 * alphafbsd-tdep.c: Update copyright years. Include
9488 alpha-tdep.h.
9489 (alphafbsd_use_struct_convention): Make static.
9490 (alphafbsd_init_abi): New function.
9491 (_initialize_alphafbsd_tdep): New function.
9492 * config/alpha/tm-fbsd.h: Update copyright years.
9493 (USE_STRUCT_CONVENTION): Remove.
9494
44dffaac
JT
94952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9496
9497 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9498 an Alpha ABI variant.
9499 (alpha_abi_handler_list): Declare.
9500 (alpha_gdbarch_register_os_abi): New function.
9501 (alpha_gdbarch_init): Give registered ABI variant handlers a
9502 chance to tweak the gdbarch once we have set up defaults.
9503 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9504
65585be4
JT
95052002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9506
9507 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9508 to standard_coerce_float_to_double.
9509 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9510
d9b023cc
JT
95112002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9512
9513 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9514 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9515 from gdbarch_tdep rather than a constant.
9516 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9517 the default text address for all Alpha Unix ABIs.
9518 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9519 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9520
dc129d82
JT
95212002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9522
9523 * alpha-tdep.h: New file. Includes several Alpha target constants
9524 taken from...
9525 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9526 let gdbarch deal with.
9527 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9528 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9529 to dependency list.
9530 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9531 Alpha target register names.
9532 * alphabsd-nat.c: Likewise.
9533 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9534 Alpha target register names. Make serveral routines static.
9535 (alpha_get_saved_register): New function.
9536 (alpha_abi_names): New.
9537 (process_note_abi_tag_sections): New function.
9538 (get_elfosabi): New function.
9539 (alpha_gdbarch_init): New function.
9540 (alpha_dump_tdep): New function.
9541 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9542
d49d1e0a
AC
95432002-04-21 Andrew Cagney <ac131313@redhat.com>
9544
9545 * frame.c (find_saved_register): Delete #ifdef
9546 HAVE_REGISTER_WINDOWS code.
9547 * config/sparc/tm-sparc.h: Update comments.
9548 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9549
92e8c9ed
AC
95502002-04-21 Andrew Cagney <ac131313@redhat.com>
9551
9552 * i960-tdep.c (i960_find_saved_register): New function.
9553 (i960_get_saved_register): New function.
9554 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9555 (i960_get_saved_register): Declare.
9556 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9557
e1925118
DM
95582002-04-20 David S. Miller <davem@redhat.com>
9559
9560 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9561
29673b29
AC
95622002-04-20 Andrew Cagney <ac131313@redhat.com>
9563
9564 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9565 instead of NUM_PSEUDO_REGS.
9566
6c86dcd5
DM
95672002-04-20 David S. Miller <davem@redhat.com>
9568
9569 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9570 GDB_MULTI_ARCH_PARTIAL
9571 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9572 define, let tm-sp64.h do it.
9573
aa40ec90
JT
95742002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9575
9576 * frame.c (find_saved_register): Avoid a NULL pointer
9577 dereference and actually walk the frame list.
9578
0f79675b
AC
95792002-04-20 Andrew Cagney <ac131313@redhat.com>
9580
9581 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9582 sorted in most most-recent-used order. Document.
9583 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9584
f91305dd 95852002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9586
9587 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9588 instead of ->prev.
9589 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9590 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9591 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9592 instead of ->prev.
9593
73d322b1
EZ
95942002-04-19 Elena Zannoni <ezannoni@redhat.com>
9595
9596 Fix PR gdb/471.
9597 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9598 (build_builtin_type_vec128): Ditto.
9599 (append_composite_type_field): Fix calculation of type length in
9600 union case.
9601
ccd9a834
EZ
96022002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9603
9604 * config/djgpp/README: Update.
9605
9606 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9607 compiler warnings.
9608
a57f9e49
JT
96092002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9610
9611 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9612 (alpha_setup_arbitrary_frame): ...to this.
9613 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9614 for alpha_setup_arbitrary_frame.
9615
f4f9705a
AC
96162002-04-18 Andrew Cagney <cagney@redhat.com>
9617
9618 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9619 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9620
f4f9705a
AC
9621 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9622 * target.h (memory_breakpoint_from_pc): Update declaration.
9623 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9624
9625 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9626 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9627 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9628 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9629 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9630 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9631 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9632 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9633 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9634 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9635 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9636 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9637
9638 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9639 const pointer.
9640 * monitor.c (monitor_insert_breakpoint): Ditto.
9641 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9642
9643 * config/mcore/tm-mcore.h: Update copyright.
9644 * mem-break.c: Ditto.
9645 * xstormy16-tdep.c: Ditto.
9646
29f319b8
PM
96472002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9648
9649 * p-exp.y: Add precedence rule for '^' token.
9650 This removes the shift/reduce conflicts.
9651 Remove the comment concerning these shift/reduce conflicts.
9652
ebeac11a
EZ
96532002-04-18 Elena Zannoni <ezannoni@redhat.com>
9654
9655 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9656 (registers_powerpc_nofp): New register set for processors
9657 without floating point unit.
9658
27c31547
DM
96592002-04-18 David S. Miller <davem@redhat.com>
9660
9661 * MAINTAINERS: Add myself to write-after-approval.
9662
47a73475
MS
96632002-04-17 Michael Snyder <msnyder@redhat.com>
9664
9665 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9666
953836b2
AC
96672002-04-17 Andrew Cagney <ac131313@redhat.com>
9668
9669 * rs6000-tdep.c (frame_initial_stack_address): Use
9670 frame_register_read to read the alloca_reg.
9671
8b0d4340
AC
96722002-04-17 Andrew Cagney <ac131313@redhat.com>
9673
9674 * frame.c (find_saved_register): Find saved registers in the next
9675 not prev frame.
9676 Fix PR gdb/365.
9677
d8864532
AC
96782002-04-17 Andrew Cagney <ac131313@redhat.com>
9679
9680 * gdbarch.sh (LANG): Set to ``c''.
9681
36cc83a3 96822002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9683
36cc83a3 9684 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9685
2f4150cc 96862002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9687
9688 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9689 Update copyright.
9690
628703c6 9691 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9692 Also fix PR gdb/391.
361d1df0 9693
56157b4a
AC
96942002-04-14 Andrew Cagney <ac131313@redhat.com>
9695
9696 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9697 * aclocal.m4, configure: Re-generate.
9698 Fix PR gdb/391.
361d1df0 9699
6d1e3329
EZ
97002002-04-14 Elena Zannoni <ezannoni@redhat.com>
9701
9702 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9703 instead of tm_print_insn.
9704
cb06fa07
EZ
97052002-04-14 Elena Zannoni <ezannoni@redhat.com>
9706
9707 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9708
f208ba17
AC
97092002-04-14 Andrew Cagney <ac131313@redhat.com>
9710
9711 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9712 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9713 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9714
20f01a46
DH
97152002-04-12 Don Howard <dhoward@redhat.com>
9716
9717 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9718 max_user_call_depth.
9719 (init_cmd_lists): Initialize the new value;
9720 * cli/cli-script.c (execute_user_command): Limit the call depth of
9721 user defined commands. This avoids a core-dump when user commands
9722 are infinitly recursive.
9723
a88376a3
KB
97242002-04-12 Kevin Buettner <kevinb@redhat.com>
9725
9726 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9727 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9728 from tdep struct instead of DEFAULT_LR_SAVE.
9729 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9730 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9731 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9732
f2172603
MS
97332002-04-12 Michael Snyder <msnyder@redhat.com>
9734
694f61fb 9735 * Remote.c: Spelling fix.
20fe79c8
MS
9736 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9737 If no symbol found for "sbrk", try "_sbrk".
9738 (make_output_phdrs): Use bfd_section_name.
9739 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9740 * eval.c: Indentation fix-ups.
169a7369
MS
9741 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9742 in case it gets applied to an address that is already
9743 in the instruction space.
de74f71f
MS
9744 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9745 * symfile.c: Fix indentation, long lines.
f2172603
MS
9746 * source.c: White space fix-up.
9747
cda5a58a
AC
97482002-04-12 Andrew Cagney <cagney@redhat.com>
9749
9750 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9751 * frame.c (frame_register_read): New function. Return non-zero on
9752 success.
9753 (read_relative_register_raw_bytes_for_frame): Delete.
9754 (read_relative_register_raw_bytes): Delete.
9755 * frame.h (frame_register_read): Declare.
9756 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9757 * sh-tdep.c: Ditto.
9758 * infcmd.c (do_registers_info): Ditto.
9759 * hppa-tdep.c: Ditto.
9760 * rs6000-tdep.c: Ditto.
9761 * h8500-tdep.c: Ditto.
9762 * mips-tdep.c: Ditto.
9763 * h8300-tdep.c: Ditto.
9764 * z8k-tdep.c: Ditto.
9765
2ea5f656
KB
97662002-04-12 Kevin Buettner <kevinb@redhat.com>
9767
9768 From Jimi X <jimix@watson.ibm.com>:
9769 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9770 64-bit SysV ABI.
9771
27b15785
KB
97722002-04-12 Kevin Buettner <kevinb@redhat.com>
9773
9774 From Jimi X <jimix@watson.ibm.com>:
9775 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9776 bfd info.
9777
5d57ee30
KB
97782002-04-12 Kevin Buettner <kevinb@redhat.com>
9779
9780 From Jimi X <jimix@watson.ibm.com>:
9781 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9782 register sets for these processor variants.
9783
bc1e36ca
DJ
97842002-04-11 Daniel Jacobowitz <drow@mvista.com>
9785
bc1e36ca
DJ
9786 * regformats/reg-ppc.dat: Support FPSCR.
9787
e3f36dbd
KB
97882002-04-11 Kevin Buettner <kevinb@redhat.com>
9789
9790 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9791 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9792 Add fpscr as an invalid/unfetchable register.
9793 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9794 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9795 (fill_fpregset): Add support for register fpscr.
9796 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9797 (fill_gregset): Account for the fact that register ``mq'' might
9798 not exist.
9799 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9800 (registers_power): Add fpscr to register set at slot 71.
9801 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9802 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9803
943c9c25
MS
98042002-04-11 Michael Snyder <msnyder@redhat.com>
9805
9806 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9807 * configure: Regenerate.
9808 * config.in: Regenerate.
9809 * acconfig.h: Add define for _SYSCALL32.
9810 * core-sol2.c: Remove #define _SYSCALL32.
9811 * solib-legacy.c: Remove #define _SYSCALL32.
9812
d8c0a2e7
AC
98132002-04-10 Andrew Cagney <ac131313@redhat.com>
9814
9815 * stack.c (select_frame): Cleanup internal error message, do not
9816 use %p.
9817
7cc19214
AC
98182002-04-10 Andrew Cagney <ac131313@redhat.com>
9819
9820 * stack.c (select_frame): Check that selected_frame and the
9821 specified level are as expected.
9822 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9823 Update copyright.
9824 * frame.h (struct frame_info): Add field `level'. Update
9825 copyright.
9826 Work-in-progress PR gdb/464.
9827
67a2b77e
AC
98282002-04-10 Andrew Cagney <ac131313@redhat.com>
9829
9830 * maint.c (maint_print_section_info): Rename print_section_info.
9831 (print_bfd_section_info, print_objfile_section_info): Update.
9832 * inferior.h (struct gdbarch): Add opaque declaration.
9833 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9834 * gdbarch.h: Regenerate.
9835
8cfda98c
ML
98362002-04-10 Michal Ludvig <mludvig@suse.cz>
9837
9838 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9839 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9840 (kernel_u_size): Added.
9841 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9842 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9843
ca439ad2 98442002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 9845
ca439ad2
JI
9846 * valarith.c (find_size_for_pointer_math): New function, either returns
9847 the size for a pointer's target, returns 1 for void *, or errors for
9848 incomplete types.
9849 (value_add, value_sub): use find_size_for_pointer_math.
9850
2f2893d9
DJ
98512002-04-09 Daniel Jacobowitz <drow@mvista.com>
9852
9853 * linux-low.c (linux_look_up_symbols): New hook.
9854 (linux_target_ops): Add linux_look_up_symbols.
9855 * remote-utils.c (decode_address): New function.
9856 (look_up_one_symbol): New function.
9857 * server.c (handle_query): Call target look_up_symbols hook.
9858 * server.h (look_up_one_symbol): Add prototype.
9859 * target.h (struct target_ops): Add look_up_symbols hook.
9860
96cb11df
AC
98612002-04-09 Andrew Cagney <ac131313@redhat.com>
9862
9863 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9864 override FP_REGNUM with frame->fp. Update copyright.
9865 * parse.c (num_std_regs, std_regs): Delete.
9866 (target_map_name_to_register): Do not search std_regs. Update
9867 function description.
9868 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9869 declarations. Update copyright.
9870 Fix PR gdb/251.
361d1df0 9871
97658e92
DJ
98722002-04-09 Daniel Jacobowitz <drow@mvista.com>
9873
9874 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9875 after the last symbol in a block.
9876
6044e3eb
PM
98772002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9878
9879 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9880 is non zero as a found symbol.
9881
0406ec40
AC
98822002-04-08 Andrew Cagney <ac131313@redhat.com>
9883
9884 * findvar.c: Include "builtin-regs.h".
9885 (value_of_register): Call value_of_builtin_reg when applicable.
9886 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9887 (target_map_name_to_register): Call
9888 builtin_reg_map_name_to_regnum.
9889 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9890 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9891 (builtin_regs_h): Define.
9892 (builtin-regs.o): New target.
9893 (findvar.o): Add $(builtin_regs_h).
9894 * builtin-regs.c, builtin-regs.h: New files.
9895 * std-regs.c: New file.
9896 Partial fix for PR gdb/251.
9897
56a6dfb9
KB
98982002-04-08 Kevin Buettner <kevinb@redhat.com>
9899
9900 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9901 it's no longer required.
9902
3a808432
AC
99032002-04-08 Andrew Cagney <ac131313@redhat.com>
9904
9905 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9906
7c40d541
KB
99072002-04-08 Kevin Buettner <kevinb@redhat.com>
9908
9909 From Jimi X <jimix@watson.ibm.com>:
9910 * rs6000-tdep.c (rs6000_software_single_step): Use
9911 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9912 and size. Use target_insert_breakpoint() and
9913 target_remove_breakpoint() to insert and remove breakpoints
9914 instead of explicit memory reads and writes.
9915
cc9836a8
KB
99162002-04-08 Kevin Buettner <kevinb@redhat.com>
9917
9918 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9919 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9920 ELF_OBJECT_FORMAT ifdef.
9921
7495d1dc
KB
99222002-04-08 Kevin Buettner <kevinb@redhat.com>
9923
9924 From Jimi X <jimix@watson.ibm.com>:
9925 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9926
4288e836
KB
99272002-04-08 Kevin Buettner <kevinb@redhat.com>
9928
9929 From Jimi X <jimix@watson.ibm.com>:
9930 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9931 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9932
a4e4e501
MK
99332002-04-07 Mark Kettenis <kettenis@gnu.org>
9934
9935 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9936 s/asprintf/xasprintf/.
9937 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9938
006defba
AC
99392002-04-07 Andrew Cagney <ac131313@redhat.com>
9940
9941 I believe Jeff Law denies responsability for this one:
9942 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9943 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9944 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9945 Work-around for PR gdb/366.
9946
7aa83cac
EZ
99472002-04-07 Elena Zannoni <ezannoni@redhat.com>
9948
9949 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9950 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9951 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9952
cf1fcca1
EZ
99532002-04-07 Elena Zannoni <ezannoni@redhat.com>
9954
9955 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9956 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9957 information.
9958
3f289e6f
AC
99592002-04-07 Andrew Cagney <ac131313@redhat.com>
9960
9961 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9962 maintainer.
9963
129188f6
AC
99642002-04-07 Andrew Cagney <ac131313@redhat.com>
9965
9966 * README (Reporting Bugs in GDB): Document the bug web page as the
9967 prefered way of submitting bugs.
9968 Fix PR gdb/402.
9969
1200cd6e
AC
99702002-04-06 Andrew Cagney <ac131313@redhat.com>
9971
9972 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9973 -1. Update comment.
9974 * gdbarch.h, gdbarch.c: Re-generate.
9975
2853c33c
AS
99762002-04-07 Andreas Schwab <schwab@suse.de>
9977
9978 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9979 buffer to regcache_collect.
9980
c2169756
AC
99812002-04-06 Andrew Cagney <ac131313@redhat.com>
9982
9983 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9984 * gdbarch.c, gdbarch.h: Re-generate.
9985
25f1b008
AC
99862002-04-06 Andrew Cagney <ac131313@redhat.com>
9987
9988 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9989 declaration. Fix -Werror.
9990
59263426
DJ
99912002-04-05 Daniel Jacobowitz <drow@mvista.com>
9992
9993 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9994 * gdbarch.c: Regenerate.
9995
f5db4da3
MS
99962002-04-05 Michael Snyder <msnyder@redhat.com>
9997
80f8a6eb
MS
9998 * breakpoint.c (clear_command): Rewrite middle section to
9999 combine two loops with identical control conditions.
10000 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10001 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10002
ad3dcc5c
L
100032002-04-05 H.J. Lu (hjl@gnu.org)
10004
10005 * solib-svr4.c (bkpt_names): Add "__start".
10006
f32e7a74
AC
100072002-04-04 Andrew Cagney <ac131313@redhat.com>
10008
10009 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10010 as test for 64 bit target.
10011
8227c0ff
AC
100122002-04-05 Andrew Cagney <ac131313@redhat.com>
10013
10014 * h8500-tdep.c (h8500_write_fp): Delete function.
10015 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10016 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10017 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10018 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10019 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10020 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10021 (s390_write_fp):
10022 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10023 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10024 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10025 (d10v_write_fp): Delete function.
10026 * inferior.h (write_fp, generic_target_write_fp): Delete
10027 declarations.
10028 * regcache.c (generic_target_write_fp): Delete function.
10029 (write_fp): Delete function.
10030 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10031 * gdbarch.h, gdbarch.c: Regenerate.
10032 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10033 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10034 (sparc64_write_fp): Delete declaration.
10035 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10036 (h8500_write_fp): Delete declaration.
10037
2757dd86
AC
100382002-04-04 Andrew Cagney <ac131313@redhat.com>
10039
10040 * sparc-tdep.c (sparc64_write_fp): Delete.
10041 (sparc_push_dummy_frame): Replace write_fp call with code to store
10042 the FP directly.
10043 (sparc_gdbarch_init): Do not initialize write_fp.
10044
c69255e1
KB
100452002-04-05 Kevin Buettner <kevinb@redhat.com>
10046
10047 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10048 clause.
10049
ae767bfb
JB
100502002-03-29 Jim Blandy <jimb@redhat.com>
10051
10052 * stack.c (get_selected_block): Add new argument `addr_in_block',
10053 used to return the exact code address we used to select the block,
10054 not just the block.
10055 * blockframe.c (get_frame_block, get_current_block): Same.
10056 * frame.h (get_frame_block, get_current_block,
10057 get_selected_block): Update declarations.
10058 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10059 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10060
84d2ac95
MS
100612002-04-05 Michael Snyder <msnyder@redhat.com>
10062
10063 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10064 warning message.
10065
596aa3bf
JB
100662002-04-05 J. Brobecker <brobecker@gnat.com>
10067
10068 * utils.c (xfullpath): New function.
10069 * defs.h (xfullpath): Add declaration.
10070 * source.c (openp): Use xfullpath in place of gdb_realpath to
10071 avoid resolving the basename part of filenames when the
10072 associated file is a symbolic link. This fixes a potential
10073 inconsistency between the filenames known to GDB and the
10074 filenames it prints in the annotations.
10075 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10076 to be able to match a filename with either the real filename, or
10077 the name of any symbolic link to this file.
10078 (lookup_partial_symtab): Ditto.
10079
c02f5703
MS
100802002-04-04 Michael Snyder <msnyder@redhat.com>
10081
10082 * breakpoint.c: Add support for hardware breakpoints in overlays.
10083 (overlay_events_enabled): New state variable.
10084 (insert_breakpoints): Use overlay_events_enabled to decide
10085 whether to attempt to set a breakpoint at the overlay load addr.
10086 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10087 (remove_breakpoint): Use overlay_events_enabled to decide
10088 whether breakpoints need to be removed from overlay load addr.
10089 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10090 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10091 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10092 disable_overlay_breakpoints): Update overlay_events_enabled.
10093
5fb290d7
DJ
100942002-04-04 Daniel Jacobowitz <drow@mvista.com>
10095
10096 * dwarf2read.c (struct function_range): New.
10097 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10098 (check_cu_functions): New.
10099 (read_file_scope): Initialize global function lists.
10100 Call dwarf_decode_line after processing children.
10101 (read_func_scope): Add to global function list.
10102 (dwarf_decode_lines): Call check_cu_functions everywhere
10103 record_line is called. Call record_line with a linenumber
10104 of 0 to mark sequence ends.
10105
7b3fabf0
ML
101062002-04-04 Michal Ludvig <mludvig@suse.cz>
10107
361d1df0 10108 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10109 change sync with glibc.
10110
bce58c09
JB
101112002-04-03 Jim Blandy <jimb@redhat.com>
10112
10113 * configure.in: Call AC_C_INLINE.
10114 * configure: Regenerated.
361d1df0 10115
2fccf04a
DJ
101162002-04-01 Daniel Jacobowitz <drow@mvista.com>
10117
10118 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10119 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10120
2d1bfe2e
MK
101212002-03-31 Mark Kettenis <kettenis@gnu.org>
10122
a5941fbf
MK
10123 * NEWS: Mention gcore support on FreeBSD/i386.
10124
a90cd31d
MK
10125 * fbsd-proc.c: New file.
10126 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10127 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10128
2d1bfe2e
MK
10129 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10130 while statement.
10131
9eb6e5a1
JB
101322002-03-29 Jim Blandy <jimb@redhat.com>
10133
10134 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10135 unescaped newlines in string literals, but newer ones don't. So
10136 escape them.
10137
f02df580
MS
101382002-03-26 Michael Snyder <msnyder@redhat.com>
10139 Andrew Cagney <cagney@redhat.com>
10140
361d1df0 10141 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10142 restore file to memory.
10143 * cli/cli-dump.h: New file.
10144 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10145 * NEWS: Mention new commands.
f02df580 10146
109f874e
MS
101472002-03-28 Michael Snyder <msnyder@redhat.com>
10148
10149 * symfile.c (symbol_file_add): Move test for null symbols to later.
10150
520f6ade
AC
101512002-03-27 Andrew Cagney <ac131313@redhat.com>
10152
10153 From veksler at il.ibm.com:
10154 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10155 the xstrduped original path.
10156 Fix PR gdb/417.
10157
d4654627
MS
101582002-03-27 Michael Snyder <msnyder@redhat.com>
10159
10160 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10161 * infcmd.c (_initialize_infcmd): Ditto.
10162 * language.c (_initialize_language): Ditto.
10163 * symfile.c (_initialize_symfile): Ditto.
10164 * top.c (_init_main): Ditto.
10165 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10166
6be8bc0c
EZ
101672002-03-27 Elena Zannoni <ezannoni@redhat.com>
10168
10169 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10170 vector registers handling.
10171 (skip_prologue): Handle new AltiVec instructions. Fill in new
10172 fields of frame data.
10173 (frame_get_saved_regs): Fill in information for AltiVec registers.
10174
12af6855
JB
101752002-03-27 Jim Blandy <jimb@redhat.com>
10176
10177 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10178 a function; leave this macro here to invoke that function.
10179 (symbol_init_mangled_name): Declaration for that function.
10180 * symtab.c (symbol_init_mangled_name): New function.
10181
dc672865
AC
101822002-03-27 Andrew Cagney <ac131313@redhat.com>
10183
10184 * valarith.c: Replace strerror with safe_strerror.
10185 * tracepoint.c: Ditto.
10186 * lin-lwp.c: Ditto.
10187 * go32-nat.c: Ditto.
10188 * inflow.c: Ditto.
10189 * gnu-nat.c: Ditto.
10190
d96429cd
AS
101912002-03-27 Andreas Schwab <schwab@suse.de>
10192
10193 * event-top.c (command_line_handler): Remove useless if.
10194
7e336ba1
AJ
101952002-03-27 Andreas Jaeger <aj@suse.de>
10196
10197 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10198 comment.
10199
de220d0f
ML
102002002-03-27 Michal Ludvig <mludvig@suse.cz>
10201
10202 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10203 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10204 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10205 (x86_64_linux_dr_get_status, supply_gregset),
10206 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10207 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10208 (x86_64_register_info_table): Add.
10209 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10210 (x86_64_register_raw_size, x86_64_register_virtual_type),
10211 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10212 general x86_64_register_info_table.
10213 (i386_gdbarch_init): gdbarch_register_bytes is now set
10214 dynamicaly during initialization.
10215 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10216 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10217
0e98d0a7
DJ
102182002-03-27 Daniel Jacobowitz <drow@mvista.com>
10219
10220 * gdbserver/server.c (main): Call target_signal_to_host_p
10221 and target_signal_to_host on signals received from the remote.
10222 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10223 target_signal_from_host on signals sent to the remote.
10224 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10225 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10226
3130066b
DJ
102272002-03-27 Daniel Jacobowitz <drow@mvista.com>
10228
10229 * signals/signals.c: Include "server.h" in gdbserver build.
10230 (target_signal_from_name): Don't use STREQ.
10231 (_initialize_signals): Likewise. Don't include function in
10232 gdbserver build.
10233
9aedf4f4
DJ
102342002-03-27 Daniel Jacobowitz <drow@mvista.com>
10235
10236 * signals.c: Moved to...
10237 * signals/signals.c: Here.
7e336ba1 10238 * Makefile (signals.o): Update.
9aedf4f4 10239
3fa41cdb
JL
102402002-03-26 Jeff Law (law@redhat.com)
10241
10242 * somread.c (som_symtab_read): Remove some commented out code and
10243 updated related comments. Do not set the minimal symbol table to
10244 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10245 in a dynamic executable.
10246 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10247 where we are unable to find the minimal symbol for the given
10248 PC value.
10249
ee677e8d
MS
102502002-03-25 Jeff Law (law@redhat.com)
10251
10252 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10253
e76e1718
ML
102542002-03-25 Michal Ludvig <mludvig@suse.cz>
10255
10256 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10257
18a642a1
AC
102582002-03-23 Andrew Cagney <ac131313@redhat.com>
10259
10260 * command.h: Update copyright.
10261 (struct cmd_list_element): Replace definition with opaque
10262 declaration.
10263 (enum cmd_types): Document that it will eventually be moved to
10264 cli/cli-decode.h
10265 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10266 (MALLOCED_REPLACEMENT): Delete macro.
10267 * Makefile.in (cli_decode_h): Add $(command_h).
10268 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10269 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10270 * completer.c: Include "cli/cli-decode.h".
10271 * maint.c: Include "cli/cli-decode.h".
10272 * cli/cli-decode.h: Include "command.h".
10273 (enum command_class): Delete.
10274 (enum cmd_types): Comment out.
10275 (enum cmd_auto_boolean): Delete.
10276 (enum var_types): Delete.
10277
b2875cc0
AC
102782002-03-23 Andrew Cagney <ac131313@redhat.com>
10279
10280 * cli/cli-decode.c: Include "gdb_assert.h".
10281 (add_set_or_show_cmd): New static function.
10282 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10283 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10284 all fields, such as func, from the set command.
10285
3b45974e
AC
102862002-03-23 Andrew Cagney <ac131313@redhat.com>
10287
10288 * MAINTAINERS (sh-elf): Change warning flag to -w.
10289
823ca731
AC
102902002-03-23 Andrew Cagney <cagney@redhat.com>
10291
10292 * defs.h (error): Add printf format attribute.
10293 * thread-db.c (thread_from_lwp): Fix error format string.
10294 * stack.c (parse_frame_specification): Ditto.
10295 * cli/cli-decode.c (undef_cmd_error): Ditto.
10296 * scm-lang.c (scm_lookup_name): Ditto.
10297 * tracepoint.c (trace_error): Ditto.
10298 * remote-utils.c (usage): Ditto.
10299 * remote.c (compare_sections_command): Ditto.
10300 Fix PR gdb/328.
10301
0e101458
AC
103022002-03-22 Andrew Cagney <ac131313@redhat.com>
10303
10304 * gdbtypes.c (append_composite_type_field): New function.
10305 (init_composite_type): New function.
10306 * gdbtypes.h (append_composite_type_field): Declare.
10307 (init_composite_type): Ditto.
10308
8e0662df
EZ
103092002-03-22 Elena Zannoni <ezannoni@redhat.com>
10310
10311 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10312 function.
8e0662df
EZ
10313 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10314 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10315 structure returning convention for SYSV ABI case, but not
10316 for GNU/Linux, FreeBSD, or NetBSD.
10317
3121eff0
DJ
103182002-03-22 Daniel Jacobowitz <drow@mvista.com>
10319
10320 * symtab.h (lookup_block_symbol): Add mangled_name argument
10321 to prototype.
10322
10323 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10324 with new mangled_name argument.
10325 * linespec.c (decode_line_1): Likewise.
10326 * valops (value_of_this): Likewise.
10327 * symtab.c (lookup_transparent_type): Likewise.
10328 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10329 (lookup_symbol): If we are given a mangled name, pass it down
10330 to lookup_symbol_aux.
10331 (lookup_block_symbol): If we are given a mangled name to check
10332 against, only return symbols which match it.
10333
349b409f
CF
103342002-03-22 Christopher Faylor <cgf@redhat.com>
10335
10336 * win32-nat.c (child_create_inferior): Check for proper shell to use
10337 here, in case the user changes it on the fly.
10338 (_initialize_inftarg): Remove shell path considerations.
10339
2a873819
EZ
103402002-03-21 Elena Zannoni <ezannoni@redhat.com>
10341
10342 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10343 for gdbarch_max_register_raw_size and max_register_virtual_size.
10344 Adjust copyright year.
10345
a1b9830c
DJ
103462002-03-21 Daniel Jacobowitz <drow@mvista.com>
10347
10348 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10349 in a function to cover the entire beginning of the function
10350 as well if it does not already.
10351
8b5790f2
TR
103522002-03-21 Tom Rix <trix@redhat.com>
10353
10354 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10355 (rs6000_ptrace64): Renamed from ptrace64.
10356
bdbe5747
MH
103572002-03-20 Martin M. Hunt <hunt@redhat.com>
10358
10359 * gdbserver/remote-utils.c (remote_open): Don't call
10360 getprotobyname, we're all using TCP here so just use
10361 IPPROTO_TCP.
7e336ba1 10362 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10363
103642002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10365
bdbe5747
MH
10366 * regcache.c (_initialize_regcache): No need to call
10367 build_regcache() at this time; it gets called whenever
10368 the gdbarch changes.
10369
7781cd62
DB
103702002-03-20 David O'Brien <obrien@FreeBSD.org>
10371
10372 * sparc-nat.c: Include sys/param.h where possible.
10373
f65ca430
DJ
103742002-03-20 Daniel Jacobowitz <drow@mvista.com>
10375
10376 Fix PR gdb/422.
10377 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10378 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10379 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10380 complex types.
10381 * stabsread.c (rs6000_builtin_type): Likewise.
10382 (read_sun_floating_type): Likewise.
10383
0c867556
PS
103842002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10385
10386 * stabsread.c (read_member_functions): Remove skip code for duplicate
10387 constructor/destructor methods. Use standard parsing for these
10388 methods and just do not chain them to the list of methods after
10389 parsing.
10390
12b9c64f
AO
103912002-03-19 Alexandre Oliva <aoliva@redhat.com>
10392
10393 * coffread.c: Remove redundant static declarations. Replace
10394 occurrences of `PTR' with `void *'.
10395 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10396 * top.h (quit_cover): Likewise.
10397 * defs.h (catch_errors): Likewise.
10398
349c5d5f
AC
103992002-03-18 Andrew Cagney <ac131313@redhat.com>
10400
10401 * defs.h (XMALLOC): Define.
10402 * gdb-events.sh (XMALLOC): Delete macro.
10403 * gdb-events.c, gdb-events.h: Regenerate.
10404 * gdbarch.sh (XMALLOC): Delete macro.
10405 * gdbarch.c: Regenerate.
10406 * serial.c (XMALLOC): Delete macro.
10407 * ui-file.c (XMALLOC): Ditto.
10408 * ser-unix.h (XMALLOC): Ditto.
10409 * sh-tdep.c (XMALLOC): Ditto.
10410 * ui-out.c (XMALLOC): Ditto.
10411 * utils.c (XMALLOC): Ditto.
10412 * i386-tdep.c (XMALLOC): Ditto.
10413 * gdb-events.c (XMALLOC): Ditto.
10414 * d10v-tdep.c (XMALLOC): Ditto.
10415 * cli-out.c (XMALLOC): Ditto.
10416
10417 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10418 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10419 * ui-file.c, ui-out.c: Ditto.
10420
7d0766f3
AC
104212002-03-18 Andrew Cagney <ac131313@redhat.com>
10422
10423 * command.h (struct cmd_list_element): Add field context.
10424 (set_cmd_context, get_cmd_context): Declare.
10425 * cli/cli-decode.h: Ditto.
10426 * cli/cli-decode.c (get_cmd_context): New function.
10427 (set_cmd_context): New function.
10428 (add_cmd): Initialize context.
10429 Part of fixing PR gdb/145 and PR gdb/146.
10430
5913bcb0
AC
104312002-03-17 Andrew Cagney <ac131313@redhat.com>
10432
1868c04e
AC
10433 * cli/cli-decode.c (cmd_type): New function.
10434 * command.h (cmd_type): Declare.
10435 * infrun.c (set_schedlock_func): Call function cmd_type.
10436 * kod.c (kod_set_os): Call cmd_type.
10437 * cris-tdep.c (cris_version_update): Use function cmd_type.
10438 (cris_mode_update, cris_abi_update): Ditto.
10439
5913bcb0
AC
10440 * command.h: (execute_cmd_post_hook): Declare.
10441 (execute_cmd_pre_hook): Declare.
10442 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10443 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10444 functions. Execute pre/post hook while ensuring that afterwords
10445 hook_in is cleared.
10446 * top.c (execute_command): Use execute_cmd_post_hook, and
10447 execute_cmd_pre_hook to execute pre/post commands.
10448 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10449 hook_stop_stub.
10450 (hook_stop_stub): Call execute_cmd_pre_hook.
10451
b51450c9
AC
104522002-03-17 Andrew Cagney <ac131313@redhat.com>
10453
10454 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10455 set'' and this leads to a core dump. Move xstrdup of
10456 operating_system to after check that it is not NULL.
10457
f66c9f11
AC
104582002-03-17 Andrew Cagney <ac131313@redhat.com>
10459
8e694ecf
AC
10460 * kod.c (kod_set_os): Remove unnecessary check that
10461 ``command->type'' is set_cmd.
10462
f66c9f11
AC
10463 * valprint.c (set_input_radix): Use input_radix.
10464 (set_output_radix): Use output_radix.
10465 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10466 isn't reverted.
10467
9d01611c
AC
104682002-03-16 Andrew Cagney <ac131313@redhat.com>
10469
10470 * value.h (struct value): Delete field ``substring_addr''. Change
10471 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10472 force_core_addr_align and force_pointer_aligh.
10473
10474 * value.h (struct value): Fix typo in above change.
9d01611c 10475
4156bb53
PS
104762002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10477
10478 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10479 to fix internal_error from ``maintenance print architecture''.
10480
0e5e3ea6
PS
104812002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10482
10483 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10484 for gcc versions after gcc-2.8.1.
10485
9b013045
PS
104862002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10487
10488 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10489 for method resolution. Restore adjustment of ``this'' pointer after
10490 calling value_struct_elt, which was accidentally removed during the
10491 HP merge.
10492
376c9600
AC
104932002-03-15 Andrew Cagney <ac131313@redhat.com>
10494
10495 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10496 value_of_register.
10497 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10498 get_saved_register.
10499 * value.h (value_of_register): Update.
10500
a4db0f07
RH
105012002-03-14 Richard Henderson <rth@redhat.com>
10502
10503 * configure.in: Detect declaration for canonicalize_file_name.
10504 * utils.c (canonicalize_file_name): Declare, if needed.
10505 (gdb_realpath): Prefer realpath if available and usable.
10506 * config.in, configure: Rebuild.
10507
96383835
RH
105082002-03-14 Richard Henderson <rth@redhat.com>
10509
10510 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10511 a constant array bound.
10512
10513 * MAINTAINERS: Add myself to write-after-approval.
10514
75245b24
MS
105152002-03-14 Michael Snyder <msnyder@redhat.com>
10516
10517 * symfile.c (syms_from_objfile): Return immediately if no syms.
10518 (symbol_file_add): Return immediately if no syms.
10519 (find_sym_fns): Return immediately if no syms.
10520
e641a1ca
ML
105212002-03-13 Michal Ludvig <mludvig@suse.cz>
10522
10523 * gdbserver/remote-util.c (remote_open): Print remote-side's
10524 IP address when remote debugging over the network.
7e336ba1 10525
df08bfec
DB
105262002-03-12 David O'Brien <obrien@FreeBSD.org>
10527
10528 * config/sparc/fbsd.mh: Fix copyright.
10529 * config/sparc/fbsd.mt: Likewise.
10530
9a57864f
RE
105312002-03-11 Richard Earnshaw <rearnsha@arm.com>
10532
10533 * MAINTAINERS: Fix typo in name of gdb warnings option.
10534 (x86-64): Fix formating so that this can be parsed by awk.
10535
dd7bf85e
DJ
105362002-03-10 Daniel Jacobowitz <drow@mvista.com>
10537
10538 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10539 * defs.h: Include "gdb/signals.h".
10540 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10541
33a0a2ac
ML
105422002-03-10 Michal Ludvig <mludvig@suse.cz>
10543
10544 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10545 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10546 from x86-64-tdep.h
10547
dd824b04
DJ
105482002-03-10 Daniel Jacobowitz <drow@mvista.com>
10549 Don Howard <dhoward@redhat.com>
10550
10551 * mips-tdep.c (ST0_FR): Define.
10552 (mips2_fp_compat): New function, temporarily disabled.
10553 (mips_read_fp_register_single): New function.
10554 (mips_read_fp_register_double): New function.
10555 (mips_print_register): Use them.
10556 (do_fp_register_row): Likewise.
10557
6a41ff59
AC
105582002-03-09 Andrew Cagney <ac131313@redhat.com>
10559
10560 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10561 approval''.
10562
4ea09c10
PS
105632002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10564
10565 * stabsread.c (read_member_functions): Fix is_stub test for
10566 static member functions, improve comment.
10567
6ccc741d
RE
105682002-03-07 Richard Earnshaw <rearnsha@arm.com>
10569
10570 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10571 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10572 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10573 commands that set boolean values.
10574 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10575 (arm_rdi_resume): Always initialize PC.
10576 (arm_rdi_open): Don't use rslt as a boolean.
10577 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10578 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10579 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10580 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10581
438013df
AO
105822002-03-06 Alexandre Oliva <aoliva@redhat.com>
10583
10584 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10585 * configure: Rebuilt.
10586
70ed8774
SC
105872002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10588
10589 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10590 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10591
5ba2abeb
AC
105922002-03-06 Andrew Cagney <ac131313@redhat.com>
10593
10594 * cli/cli-decode.c (set_cmd_completer): New function.
10595 * command.h (set_cmd_completer): Declare.
10596 * cli/cli-decode.h (set_cmd_completer): Ditto.
10597
10598 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10599 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10600 * win32-nat.c (_initialize_inftarg): Ditto.
10601 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10602 * proc-api.c (_initialize_proc_api): Ditto.
10603 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10604 * source.c (_initialize_source): Ditto.
10605 * exec.c (_initialize_exec): Ditto.
10606 * solib.c (_initialize_solib): Ditto.
10607 * top.c (init_main): Ditto.
10608 * tracepoint.c (_initialize_tracepoint): Ditto.
10609 * symfile.c (_initialize_symfile): Ditto.
10610 * printcmd.c (_initialize_printcmd): Ditto.
10611 * infcmd.c (_initialize_infcmd): Ditto.
10612 * corefile.c (_initialize_core): Ditto.
10613
f779ca99
AC
106142002-03-05 Andrew Cagney <ac131313@redhat.com>
10615
10616 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10617
01a3934b
AC
106182002-03-05 Andrew Cagney <ac131313@redhat.com>
10619
10620 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10621
37057839
AC
106222002-03-05 Andrew Cagney <ac131313@redhat.com>
10623
10624 * NEWS: Update headings, 5.2 has branched.
10625
c6ecbae5
DJ
106262002-03-04 Daniel Jacobowitz <drow@mvista.com>
10627
10628 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10629 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10630 (register_addr, REGISTER_RAW_SIZE): Likewise.
10631 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10632 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10633
e9f30c21
ML
106342002-03-03 Michal Ludvig <mludvig@suse.cz>
10635
10636 * MAINTAINERS (x86-64): Add myself.
10637 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10638 changed value_ptr -> struct value *
10639
54394ac3
DB
106402002-03-01 David O'Brien <obrien@FreeBSD.org>
10641
10642 * configure.host (sparc64-*-freebsd): Add.
10643 * configure.tgt: Likewise.
10644 * config/sparc/fbsd.mh: New file.
10645 * config/sparc/fbsd.mt: Likewise.
10646 * config/sparc/nm-fbsd.h: Likewise.
10647 * config/sparc/tm-fbsd.h: Likewise.
10648
bfe95955
DJ
106492002-03-01 Daniel Jacobowitz <drow@mvista.com>
10650
10651 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10652 regformats/reg-s390x.dat.
10653
f33c6cbf
AC
106542002-03-01 Andrew Cagney <ac131313@redhat.com>
10655
10656 * utils.c: Add FIXME explaining true/false problem.
10657
5ecaa7dd
AC
106582002-02-28 Andrew Cagney <ac131313@redhat.com>
10659
10660 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10661
2a251cc2
MC
106622002-02-28 Michael Chastain <mec@shout.net>
10663
10664 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10665
6a8031a3 106662002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10667
10668 * gdbserver/linux-s390-low.c: New file.
10669 * regformats/reg-s390.dat: New file.
10670 * regformats/reg-s390x.dat: New file.
10671 * gdbserver/configure.srv: Add S/390.
10672 * gdbserver/Makefile.in: Add S/390.
10673 * configure.tgt: Enable gdbserver for S/390.
10674
ac469903
EZ
106752002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10676
10677 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10678 first line of the doc string for "info dos", except at the end of
10679 the sentence, since the short help stops at the first period.
10680
985cb1a3
JM
106812002-02-28 Jason Merrill <jason@redhat.com>
10682
10683 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10684
c570663e
FF
106852002-02-27 Fred Fish <fnf@redhat.com>
10686
10687 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10688 comment (dumy -> dummy).
10689
43630227
PS
106902002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10691
10692 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10693
b84911e8
RB
106942002-02-27 Rodney Brown <rbrown64@csc.com.au>
10695
10696 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10697
58caa3dc
DJ
106982002-02-27 Daniel Jacobowitz <drow@mvista.com>
10699
10700 * gdbserver/acconfig.h: New file.
10701 * gdbserver/i387-fp.c: New file.
10702 * gdbserver/i387-fp.h: New file.
10703 * gdbserver/linux-x86-64.c: New file.
10704 * regformats/reg-x86-64.dat: New file.
10705 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10706 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10707 * gdbserver/configure.in: Add support for regsets.
10708 * gdbserver/config.in: Regenerate.
10709 * gdbserver/configure: Regenerate.
10710 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10711 * gdbserver/linux-low.h: New file.
10712 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10713 for regsets.
10714 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10715 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10716 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10717 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10718 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10719 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10720 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10721 "i387-fp.h". Add PTRACE_GETREGS and friends.
10722 * gdbserver/regcache.c (supply_register): New function.
10723 (supply_register_by_name): New function.
10724 (collect_register): New function.
10725 (collect_register_by_name): New function.
10726
93652174
DJ
107272002-02-27 Daniel Jacobowitz <drow@mvista.com>
10728
10729 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10730 (config.status): Add configure.srv dependency.
10731 (server_h): Add config.h dependency.
10732
a02e4a61
DJ
107332002-02-27 Daniel Jacobowitz <drow@mvista.com>
10734
10735 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10736 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10737 * gdbserver/configure.srv: Change i386-*-linux* to use
10738 reg-i386-linux.o.
10739
ce0eebec
AC
107402002-02-26 Andrew Cagney <ac131313@redhat.com>
10741
10742 * x86-64-tdep.c: Re-indent. Update copyright date.
10743
82dbc5f7
AC
107442002-02-26 Andrew Cagney <ac131313@redhat.com>
10745
10746 From Michal Ludvig <mludvig@suse.cz>:
10747 * x86-64-tdep.c (value.h): Delete.
10748 (gdb_assert.h): Include.
10749 (x86_64_register_convert_to_virtual,
10750 x86_64_register_convert_to_raw ): Add check which lets only
10751 floating-point values to be converted.
10752 (value_push): Delete.
10753 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10754 (i386_gdbarch_init): Number of register_bytes fixed.
10755
e4621584
AC
107562002-02-26 Andrew Cagney <ac131313@redhat.com>
10757
10758 * MAINTAINERS: Add x86-64 target.
10759
81a9a963
AC
107602002-02-26 Andrew Cagney <ac131313@redhat.com>
10761
10762 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10763 * osfsolib.c (solib_map_sections): Ditto.
10764 * irix5-nat.c (solib_map_sections): Ditto.
10765 * corelow.c (gdb_check_format): Ditto.
10766 * symfile.c (symfile_bfd_open): Ditto.
10767 * solib.c (solib_map_sections): Ditto.
10768 Fix PR gdb/354.
7e336ba1 10769
0f017ab9
AC
107702002-02-26 Andrew Cagney <ac131313@redhat.com>
10771
10772 * remote.c (_initialize_remote): By default, disable ``e'' and
10773 ``E'' step out-of-range packets.
10774
75738c29
AS
107752002-02-26 Andreas Schwab <schwab@suse.de>
10776
10777 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10778 m68k_linux_frame_saved_pc.
10779 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10780 in_sigtramp.
10781 (SIGCONTEXT_PC_OFFSET): Remove.
10782 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10783 m68k_linux_sigtramp_saved_pc): New functions.
10784 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10785 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10786 (UCONTEXT_PC_OFFSET): Define.
10787 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10788 non-RT and RT signal trampolines.
10789
7e8ed687
RE
107902002-02-26 Richard Earnshaw <rearnsha@arm.com>
10791
10792 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10793 (TARGET_NBPG, STACK_END_ADDR): Delete
10794 (VARIABLES_INSIDE_BLOCK): Delete.
10795
6972bc8b
AC
107962002-02-25 Andrew Cagney <ac131313@redhat.com>
10797
10798 * utils.c (perror_with_name): Make string parameter constant.
10799 (print_sys_errmsg): Ditto.
10800 (query): Ditto.
10801 * defs.h (perror_with_name): Update.
10802 (print_sys_errmsg): Update.
10803 (query): Update.
10804
aa32f823
DJ
108052002-02-25 Daniel Jacobowitz <drow@mvista.com>
10806
10807 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10808 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10809
19caaa45
PS
108102002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10811
10812 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10813 if it already matches the current architecture from the exec file.
10814 Include arch-utils.h for gdbarch_info_init prototype.
10815 * Makefile.in (rs6000-nat.o): Update dependencies.
10816
d951901f
EZ
108172002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10818
10819 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10820 list of exported variables.
10821
7ea81414
DJ
108222002-02-24 Daniel Jacobowitz <drow@mvista.com>
10823
10824 * gdbserver/configure.srv: New file.
10825 * gdbserver/configure.in: Use configure.srv instead
10826 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10827 from it.
10828 * gdbserver/configure: Regenerated.
10829 * gdbserver/terminal.h: New file.
10830 * gdbserver/Makefile.in: Update for configure changes. Remove
10831 more unneeded include paths.
10832
080fe24b
AC
108332002-02-24 Andrew Cagney <ac131313@redhat.com>
10834
10835 From wiz at danbala:
10836 * config/sparc/tm-sp64.h: Fix grammar and typos.
10837 Fix PR gdb/287.
10838
8605d56e
AC
108392002-02-24 Andrew Cagney <ac131313@redhat.com>
10840
10841 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
10842 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10843 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10844 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
10845 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10846 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10847 * s390-tdep.c: Ditto.
92362027
AC
10848 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10849 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10850 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10851 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10852 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10853 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10854 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10855 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10856 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10857 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 10858 Fix PR gdb/378.
7e336ba1 10859
8ed32cc0
AC
108602002-02-23 Andrew Cagney <ac131313@redhat.com>
10861
a3007b6f
AC
10862 * lin-thread.c: Delete file.
10863 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10864 to gdb_proc_service.h.
10865 * configure: Re-generate.
10866
50a9e2f1
AC
10867 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10868 * serial.c (serial_open): Delete check for "ocd".
10869 Fix PR gdb/349.
10870
8b6e7932
AC
10871 * Makefile.in (linux-thread.o): Delete target.
10872 * linux-thread.c: Delete file.
10873
d155c46b
AC
10874 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10875 renamed SH files to be consistent.
10876
8ed32cc0
AC
10877 * symtab.c (sort_search_symbols): Use xfree.
10878
0e18d038
RE
108792002-02-23 Richard Earnshaw <rearnsha@arm.com>
10880
10881 * arm-linux-tdep.c (arm_linux_init_abi): Register
10882 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10883 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10884 definition with undef, since we don't want the sysvr4 definition.
10885 (SKIP_TRAMPOLINE_CODE): Likewise.
10886
27aac7ff
AC
108872002-02-23 Andrew Cagney <ac131313@redhat.com>
10888
10889 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10890
10891 * configure.in: (AC_CHECK_FUNCS) Added test for
10892 canonicalize_file_name Regenerated.
10893 * config.in, configure: Regenerated.
10894 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10895 defined use canonicalize_file_name.
7e336ba1 10896
65a6e0ee
MC
108972002-02-23 Michael Chastain <mec@shout.net>
10898
10899 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10900
47b95330
AC
109012002-02-23 Andrew Cagney <ac131313@redhat.com>
10902
10903 * README: Remove references to cygnus.com.
10904 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10905 dot com'' form. Remove references to cygnus.com and sourceware.
10906
696f451b
AC
109072002-02-23 Andrew Cagney <ac131313@redhat.com>
10908
10909 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10910 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10911 1003.1-2001 no longer allows "head -1".
10912 * gdb/Makefile.in (version.c): Likewise.
10913 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10914 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10915 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10916
bbaca940
AC
109172002-02-23 Andrew Cagney <ac131313@redhat.com>
10918
10919 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10920 * command.h (cmd_cfunc_eq): Declare.
10921 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10922
10923 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10924 ``struct cmd_list_element *''.
10925 * cli/cli-cmds.c (is_complete_command): Update. Use
10926 cmd_cfunc_eq.
10927 * top.c (execute_command): Pass the command to
10928 is_complete_command.
10929 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10930
b8b8b047
AC
109312002-02-23 Andrew Cagney <ac131313@redhat.com>
10932
10933 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10934 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10935 architecture defines.
10936 * s390-tdep.c (s390_gdbarch_init): Likewise.
10937
19d3fc80
RE
109382002-02-23 Richard Earnshaw <rearnsha@arm.com>
10939
10940 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10941 (arm_linux_push_arguments): Likewise.
10942 (arm_linux_init_abi): Register them. Also register linux-specific
10943 call_dummy_words.
10944 (find_minsym_and_objfile): Use strcmp, not STREQ.
10945 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10946 (arm_linux_call_dummy_words): Delete declaration.
10947 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10948 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10949 declarations.
10950 (LOWEST_PC): Delete.
10951
3ab13650
PS
109522002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10953
10954 * maint.c (print_section_info): Do not prepend `0x' to filepos
10955 output, it will be handled by local_hex_string_custom.
10956
19d3fc80 109572002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
10958
10959 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10960 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10961 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10962
d85a5daf
JB
109632002-02-22 Jim Blandy <jimb@redhat.com>
10964
10965 Indicate that the bcache functions don't change the strings
10966 they're passed.
10967 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10968 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10969
eeb25b8a
PM
109702002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10971
10972 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10973
6badb179
CF
109742002-02-21 Christopher Faylor <cgf@redhat.com>
10975
10976 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10977 find the complete path to a loaded DLL.
10978
e8717518
FF
109792002-02-21 Fred Fish <fnf@redhat.com>
10980
10981 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10982 that marks the end of the range of a function, enter a line number
10983 entry that has a line number of zero and a PC offset that matches
10984 the end of the function. This starts a range of PC's for which no
10985 line number information is known.
10986 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10987 PC's for which no line number info is found (line number is zero)
10988 then we didn't find any valid line information.
10989 * symtab.h: Document use of zero line number entry.
10990
9abe5450
EZ
109912002-02-21 Elena Zannoni <ezannoni@redhat.com>
10992
10993 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10994 (have_ptrace_getvrregs): Define for run time checks.
10995 (gdb_vrregset_t): New type for Altivec register handling.
10996 (fetch_register, store_register): Fetch/store altivec register
10997 when needed.
10998 (fetch_altivec_register, store_altivec_register): New functions.
10999 (supply_vrregset, fill_vrregset): New functions.
11000 (fetch_altivec_registers, store_altivec_registers): New functions.
11001 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11002 registers as well.
11003
aaa38bb5
AJ
110042002-02-21 Jiri Smid <smid@suse.cz>
11005
11006 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11007
b34db576
RE
110082002-02-21 Richard Earnshaw <rearnsha@arm.com>
11009
11010 * Makefile.in (armnbsd-nat.o): Update dependencies.
11011 * armnbsd-nat.c (supply_gregset): New function. Common code to
11012 supply the integer register set.
11013 (supply_fparegset): New function. Similar for FPA registers.
11014 (fetch_regs, fetch_fp_regs): Use them.
11015 (fetch_core_registers): Likewise.
11016 (fetch_elfcore_registers): New function.
11017 (arm_netbsd_elfcore_fns): New core-file type specification.
11018 (_initialize_arm_netbsd_nat): Register it.
11019
3e56fc4b
RE
110202002-02-21 Richard Earnshaw <rearnsha@arm.com>
11021
11022 * armnbsd-nat.c: Include gdbcore.h.
11023 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11024 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11025 'void' to declaration, to shut up ARI.
11026 (fetch_core_registers): Make static. Rewrite using supply_register.
11027 (arm_netbsd_core_fns): New core-file type specification.
11028 (_initialize_arm_netbsd_nat): New function.
11029
097f6b0b
CF
110302002-02-21 Christopher Faylor <cgf@redhat.com>
11031
11032 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11033 value.
11034
c914e0cc
CF
110352002-02-20 Christopher Faylor <cgf@redhat.com>
11036
11037 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11038 fails.
11039
385fa495
DJ
110402002-02-20 Daniel Jacobowitz <drow@mvista.com>
11041
11042 * jv-exp.y (parse_number): Change type of implicit longs
11043 to builtin_type_uint64.
11044
e5f1222d
DJ
110452002-02-20 Daniel Jacobowitz <drow@mvista.com>
11046
11047 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11048 to be an integer instead of a `union wait'.
11049
75c9abc6
DJ
110502002-02-20 Daniel Jacobowitz <drow@mvista.com>
11051
11052 * mips-linux-nat.c: Call the operating system GNU/Linux.
11053 * mips-linux-tdep.c: Likewise.
11054 * mips-tdep.c: Likewise.
11055
551792a5
DJ
110562002-02-20 Daniel Jacobowitz <drow@mvista.com>
11057
11058 Fix PR gdb/265.
11059 * jv-exp.y (parse_number): Handle 64-bit integers.
11060
ee6e2b82
DJ
110612002-02-20 Daniel Jacobowitz <drow@mvista.com>
11062
11063 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11064 AC_STDC_HEADERS to AC_HEADER_STDC.
11065 * gdbserver/configure: Regenerated.
11066
a48442a0
RE
110672002-02-20 Richard Earnshaw <rearnsha@arm.com>
11068
11069 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11070 is defined.
11071 * sparc-tdep.c (get_longjmp_target): Likewise.
11072
fe419ffc
RE
110732002-02-20 Richard Earnshaw <rearnsha@arm.com>
11074
11075 * News: Add news about ARM and Multi-arch. Mention the new target
11076 arm*-*-netbsd*.
11077
5832ed7e
JB
110782002-02-19 Jim Blandy <jimb@redhat.com>
11079
11080 * stabsread.c (error_type_complaint): Improve error message.
11081
84563040
DJ
110822002-02-19 Daniel Jacobowitz <drow@mvista.com>
11083
11084 * gdbserver/README: Update documentation.
11085 * gdbserver/configure.in: Update configury to match documentation.
11086 * gdbserver/Makefile.in: Likewise.
11087 * gdbserver/configure: Regenerated.
11088 * gdbserver/aclocal.m4: New file, generated by aclocal.
11089 * gdbserver/config.in: New file, generated by autoheader.
11090
375fd65b
RE
110912002-02-19 Richard Earnshaw <rearnsha@arm.com>
11092
11093 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11094 armnbsd-nat.c.
11095
08216dd7
RE
110962002-02-19 Richard Earnshaw <rearnsha@arm.com>
11097
11098 * arm-tdep.h (enum arm_float_model): New enum.
11099 (struct gdbarch_tdep): Add fp_model.
11100 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11101 up floating-point conversions until we know the floating-point model
11102 in use by the inferior. Don't complain about being unable to
11103 determine the ABI of the inferior when we don't have one.
11104 (arm_extract_return_value): Support different floating-point models.
11105 (arm_store_return_value): Likewise.
aaa38bb5 11106 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11107 ARM_FLOAT_SOFT.
11108 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11109
65d6d66a
PS
111102002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11111
11112 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11113 of ``current_gdbarch''.
11114
47221191
RE
111152002-02-19 Richard Earnshaw <rearnsha@arm.com>
11116
11117 * armnbsd-nat.c : ANSIfy all function declarations.
11118 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11119 (fetch_inferior_registers): Re-implement in terms of above.
11120 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11121 (store_inferior_registers): Re-implement in terms of above.
11122
fdf39c9a
RE
111232002-02-19 Richard Earnshaw <rearnsha@arm.com>
11124
aaa38bb5 11125 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11126 kernel.
11127 * arm-linux-tdep.c: Likewise.
11128 * config/arm/tm-linux.h: Likewise.
11129
93247f88
RE
111302002-02-19 Richard Earnshaw <rearnsha@arm.com>
11131
11132 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11133 * config/arm/nbsd.mt (TM_FILE): Delete.
11134 * config/arm/tm-nbsd.h: Delete.
11135
d7b486e7
RE
111362002-02-19 Richard Earnshaw <rearnsha@arm.com>
11137
11138 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11139 Initialize CALL_DUMMY_LENGTH.
11140
41d39a95
RE
111412002-02-19 Richard Earnshaw <rearnsha@arm.com>
11142
11143 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11144 function.
11145 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11146 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11147 defines one thing and that is incorrect for this port.
11148 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11149
e1195560
PM
111502002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11151
11152 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11153
c1748f97
PM
111542002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11155
11156 * win32-nat.c (display_selector): New function. Displays information
11157 about the information returned by GetThreadSelectorEntry API function.
11158 (display_selectors): New function. Displays the infomation of
11159 the selector given as argument, or of CS, DS ans FS selectors
11160 if no argument is given.
11161 ( _initialize_inftarg): Add "w32" as info prefix command.
11162 Add "info w32 selector" as command calling display_selectors.
11163
e41e6bbf
PM
111642002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11165
11166 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11167 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11168 if not defined.
11169
0d3a9f48
RE
111702002-02-18 Richard Earnshaw <rearnsha@arm.com>
11171
11172 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11173
3fb4b924
RE
111742002-02-18 Richard Earnshaw <rearnsha@arm.com>
11175
11176 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11177 (arm_fix_call_dummy): Call it.
11178 (arm_call_dummy_breakpoint_offset): Delete.
11179 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11180 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11181
7f55af32
AC
111822002-02-18 Andrew Cagney <ac131313@redhat.com>
11183
11184 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11185 Default to func_frame_chain_valid.
11186 * gdbarch.h, gdbarch.c: Re-generate.
11187 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11188
05f13b9c
EZ
111892002-02-18 Elena Zannoni <ezannoni@redhat.com>
11190
11191 * ppc-linux-nat.c: Update copyright.
11192 (fetch_register, store_register): Add tid parameter, don't compute
11193 tid here.
11194 (fetch_ppc_registers, store_ppc_registers): Add tid
11195 parameter. Pass it along to callees.
11196 (fetch_inferior_registers, store_inferior_registers): Compute tid
11197 here, and pass it to calleed functions.
11198 (fill_gregset, supply_fpregset): Clean up formatting.
11199
d7afb4c9
RE
112002002-02-18 Richard Earnshaw <rearnsha@arm.com>
11201
11202 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11203 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11204
9df628e0
RE
112052002-02-18 Richard Earnshaw <rearnsha@arm.com>
11206
11207 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11208 * gdbarch.c gdbarch.h: Regenerate.
11209 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11210 function.
11211 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11212 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11213 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11214
11215 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11216 * arm-tdep.c (arm_get_longjmp_target): New function.
11217 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11218 this to a positive value register arm_get_longjmp_target as the
11219 longjmp handler.
11220 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11221 (arm_linux_init_abi): Set up longjmp description in tdep.
11222 * armnbsd-nat.c (get_longjmp_target): Delete.
11223 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11224 description in tdep.
11225 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11226 (get_longjmp_target): Delete declaration.
11227 (GET_LONGJMP_TARGET): Delete.
11228 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11229 (GET_LONGJMP_TARGET): Delete.
11230
57bc8964
KB
112312002-02-17 Kevin Buettner <kevinb@redhat.com>
11232
11233 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11234 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11235 of ``current_gdbarch''.
11236
83d31a92
TT
112372002-02-17 Tom Tromey <tromey@redhat.com>
11238
11239 * cli/cli-cmds.c (compare_strings): New function.
11240 (complete_command): Only print each unique item once.
11241 * completer.h (complete_line): Declare.
11242 * completer.c (complete_line): New function.
11243 (line_completion_function): Use it.
11244
17ef5d92
AC
112452002-02-16 Andrew Cagney <ac131313@redhat.com>
11246
11247 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11248 * gdbarch.h, gdbarch.c: Re-generate.
11249
491b8946
DJ
112502002-02-16 Daniel Jacobowitz <drow@mvista.com>
11251
11252 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11253
112542002-02-16 Daniel Jacobowitz <drow@mvista.com>
11255
11256 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11257 * valops.c (value_arg_coerce): Don't take the address of a reference
11258 to convert an argument to a reference.
11259
dfe7f3ac
CF
112602002-02-15 Christopher Faylor <cgf@redhat.com>
11261
11262 * win32-nat.c (get_image_name): New function.
11263 (handle_load_dll): Use get_image_name function.
11264 (get_child_debug_event): Avoid registering debug events until possibly
11265 execed process is started.
11266 (child_create_inferior): Allow invocation via shell so that command
11267 line redirection, etc. works ok.
11268 (_initialize_inftarg): Add new command: "set shell" to control whether
11269 a shell is used to start a process.
11270
1d33e73a
DJ
112712002-02-15 Daniel Jacobowitz <drow@mvista.com>
11272
11273 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11274 instead of find_register_by_number.
11275 (cannot_store_register): Likewise.
11276
48cd0caa
PM
112772002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11278
aaa38bb5 11279 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11280 fprintf_unfiltered (gdb_stderr, ...).
11281
8656e7d8
DJ
112822002-02-15 Daniel Jacobowitz <drow@mvista.com>
11283
11284 * gdbserver/gdbserver.1: Document --attach.
11285
66e810cd
RE
112862002-02-15 Richard Earnshaw <rearnsha@arm.com>
11287
11288 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11289 descriptions.
11290 * arm-tdep.c (arm_default_arm_le_breakpoint)
11291 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11292 (arm_default_thumb_be_breakpoint): New. Initialize them from
11293 traditional breakpoint defines.
11294 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11295 (arm_gdbarch_init): Initialize new breakpoint variables.
11296 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11297 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11298 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11299 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11300 code out to ...
11301 (arm_netbsd_init_abi_common): ... here; new function.
11302 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11303 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11304 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11305 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11306
97e03143
RE
113072002-02-15 Richard Earnshaw <rearnsha@arm.com>
11308
11309 * arm-tdep.h (enum arm_abi): New enum.
11310 (struct gdbarch_tdep): New structure.
11311 (LOWEST_PC): Provide a default.
11312 (arm_gdbarch_register_os_abi): Declare new function.
11313 * arm-tdep.c (arm_abi_names): New array.
11314 (process_note_abi_tag_sections): New function.
11315 (get_elfosabi): New function.
11316 (arm_gdbarch_register_os_abi): New function.
11317 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11318 support for that ABI has been built in, then call the appropriate
11319 configuration routine. Use gdbarch_num_regs() to get the number
11320 of registers.
11321 (arm_dump_tdep): New function.
11322 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11323 place-holder functions.
11324 (_initialize_arm_tdep): Register them.
11325 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11326
11327 * armnbsd-tdep.c: New file.
11328 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11329 * config/arm/nbsd.mt (TDEPFILES): Add it.
11330 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11331
11332 * armnbsd-nat.c: Include regcache.h.
11333 * Makefile.in (armnbsd-nat.o): Update dependency list.
11334
11335 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11336
ad68be46
DJ
113372002-02-14 Daniel Jacobowitz <drow@mvista.com>
11338
11339 * gdbserver/Makefile.in: Fix typos in target rules.
11340
003d6d1d
DJ
113412002-02-14 Daniel Jacobowitz <drow@mvista.com>
11342
aaa38bb5 11343 Fix part of PR gdb/267.
003d6d1d
DJ
11344 * linespec.c (find_methods): Handle constructors specially for now.
11345
6b230f1b
CV
113462002-02-14 Corinna Vinschen <vinschen@redhat.com>
11347
11348 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11349 handling.
11350 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11351 standard_coerce_float_to_double().
11352
1ea98d12
CF
113532002-02-14 Christopher Faylor <cgf@redhat.com>
11354
11355 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11356 GDBINIT_FILENAME.
11357
dd47e6fd
EZ
113582002-02-14 Elena Zannoni <ezannoni@redhat.com>
11359
11360 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11361 find_variant_by_name, because it confuses the multiarch
11362 framework. Return NULL if there isn't an architecture with the
11363 user supplied name, instead of forcing a different one without
11364 recording the change with the multiarch machinery.
11365 (find_variant_by_name): Delete.
11366
d7e39b9e
PS
113672002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11368
11369 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11370 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11371
76e42a4f
MH
113722002-02-13 Martin M. Hunt <hunt@redhat.com>
11373
aaa38bb5 11374 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11375 print_frame_info_listing_hook, set current_source_symtab.
11376
0a30fbc4
DJ
113772002-02-14 Daniel Jacobowitz <drow@mvista.com>
11378
11379 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11380 and remove unused $(INCLUDE_DIR).
11381 Add regcache.c to OBS.
11382 Add generated register protocol files to clean target.
11383 Update dependencies for new objects, obsolete old target code.
11384
11385 * gdbserver/linux-low.c: Remove all platform-specific code to
11386 new files. Remove various dead code. Update to use regcache
11387 functionality.
11388 * gdbserver/remote-utils.c (fromhex): Add return statement
11389 to quiet warning.
11390 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11391 constant.
11392 (input_interrupt): Add integer parameter to match prototype
11393 of a signal handler.
11394 (outreg): Use register_data ().
11395 (prepare_resume_reply): Use gdbserver_expedite_regs.
11396 * gdbserver/server.c (main): Dynamically allocate own_buf because
11397 PBUFSIZ is no longer constant. Use registers_to_string () and
11398 registers_from_string ().
11399 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11400 for error (), fatal (), and warning (). Update definition of
11401 PBUFSIZ to use regcache functionality. Add include guard.
11402 * gdbserver/utils.c (fatal): Add missing ``const''.
11403 (warning): New function.
11404
11405 * regformats/regdat.sh: Include "regcache.h" in generated files.
11406 Provide init_registers () function.
11407 * regformats/regdef.h: Add prototype for set_register_cache ().
11408 Add include guard.
11409
11410 * gdbserver/linux-arm-low.c: New file.
11411 * gdbserver/linux-i386-low.c: New file.
11412 * gdbserver/linux-ia64-low.c: New file.
11413 * gdbserver/linux-m68k-low.c: New file.
11414 * gdbserver/linux-mips-low.c: New file.
11415 * gdbserver/linux-ppc-low.c: New file.
11416 * gdbserver/linux-sh-low.c: New file.
11417
11418 * gdbserver/regcache.c: New file.
11419 * gdbserver/regcache.h: New file.
11420
11421 * gdbserver/low-linux.c: Removed obsolete file.
11422
4cc841d0
DJ
114232002-02-14 Daniel Jacobowitz <drow@mvista.com>
11424
11425 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11426 * config/i386/linux.mt: Likewise.
11427 * config/ia64/linux.mt: Likewise.
11428 * config/m68k/linux.mh: Likewise.
11429 * config/powerpc/linux.mh: Likewise.
11430 * config/mips/linux.mt: Likewise.
11431
11432 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11433
11434 * config/i386/i386lynx.mh: Mark gdbserver variables
11435 as (currently) obsolete for this target.
11436 * config/i386/nbsd.mt: Likewise.
11437 * config/i386/nbsdelf.mt: Likewise.
11438 * config/m32r/m32r.mt: Likewise.
11439 * config/m68k/m68klynx.mh: Likewise.
11440 * config/m68k/nbsd.mt: Likewise.
11441 * config/m68k/sun3os4.mh: Likewise.
11442 * config/mips/vr5000.mt: Likewise.
11443 * config/ns32k/nbsd.mt: Likewise.
11444 * config/pa/hppabsd.mh: Likewise.
11445 * config/pa/hppaosf.mh: Likewise.
11446 * config/powerpc/nbsd.mt: Likewise.
11447 * config/rs6000/rs6000lynx.mh: Likewise.
11448 * config/s390/s390.mt: Likewise.
11449 * config/s390/s390x.mt: Likewise.
11450 * config/sparc/sparclynx.mh: Likewise.
11451 * config/sparc/sun4os4.mh: Likewise.
11452 * config/i386/x86-64linux.mt: Likewise.
11453 * config/sparc/linux.mh: Likewise.
11454
a85f51e7
DJ
114552002-02-14 Daniel Jacobowitz <drow@mvista.com>
11456
11457 * configure.tgt: Configure gdbserver only for known working
11458 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11459 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11460 SUBDIRS if it is configured. Update comment for ${nativefile}.
11461 * configure: Regenerated.
11462
65554fef
MS
114632002-02-13 Michael Snyder <msnyder@redhat.com>
11464
670a52db
MS
11465 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11466
6dbdc4a3
MS
11467 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11468 (default_gcore_mach): Just return 0, work around a problem in bfd.
11469 (default_gcore_target): OK to return NULL if exec_bfd is null.
11470 (make_mem_sec): Use a cast, avoid a warning.
11471
11472 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11473 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11474 sizeof (host pointer) != sizeof (target pointer)).
11475 (procfs_make_note_section): Avoid overflow in psargs string.
11476
aaa38bb5 11477 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11478 implementation return an error.
11479
114802002-02-13 Rodney Brown <rbrown64@csc.com.au>
11481
11482 * procfs.c (procfs_make_note_section): Provide a default definition
11483 (for alpha-dec-osf4.0f). Fix typos.
11484
1e4d76e7
EZ
114852002-02-13 Elena Zannoni <ezannoni@redhat.com>
11486
11487 * linux-proc.c: Add include of regcache.h.
11488 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11489
b6d1a1d5
AC
114902002-02-13 Andrew Cagney <ac131313@redhat.com>
11491
11492 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11493 * memattr.c (create_mem_region): Disallow useless empty region.
11494 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11495 non-overlapping.
b6d1a1d5 11496
6c6ea35e
MC
114972002-02-13 Michael Chastain <mec@shout.net>
11498
11499 * defs.h: Kill CONST_PTR.
11500 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11501 * c-lang.c (c_builtin_types): Likewise.
11502 * ch-lang.c (ch_builtin_types): Likewise.
11503 * f-lang.c (f_builtin_types): Likewise.
11504 * language.c (unknown_builtin_types): Likewise.
11505 * m2-lang.c (m2_builtin_types): Likewise.
11506 * p-lang.c (pascal_builtin_types): Likewise.
11507 * scm-lang.c (c_builtin_types): Likewise.
11508
3e0b0f48
KS
115092002-02-13 Keith Seitz <keiths@redhat.com>
11510
11511 * arm-tdep.h (arm_get_next_pc): Add declaration.
11512
67255d04
RE
115132002-02-13 Richard Earnshaw <rearnsha@arm.com>
11514
11515 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11516 with other related struct-returning functions.
11517 (arm_extract_struct_value_address): New function.
11518 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11519 initialize float_format, double_format and long_double_format as
11520 appropriate to the endianness of the target.
11521 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11522 (arm_use_struct_convention): Delete declaration.
11523 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11524
079777f6
KS
115252002-02-13 Keith Seitz <keiths@redhat.com>
11526
11527 * defs.h (core_addr_to_string_nz): New function.
11528
34588f23
MK
115292002-02-13 Mark Kettenis <kettenis@gnu.org>
11530
11531 Apply missing bits of 2002-01-15 patch.
11532 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11533 (fill_fpregset): Use i387_fill_fsave.
11534
49b563f9
KS
115352002-02-12 Keith Seitz <keiths@redhat.com>
11536
49b563f9
KS
11537 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11538 (core_addr_to_string_nz): New function.
11539
aeb98c60
RE
115402002-02-11 Richard Earnshaw <rearnsha@arm.com>
11541
11542 * arm-linux-nat.c: Really include arm-tdep.h.
11543 * config/arm/tm-linux.h (struct type, struct value): Declare.
11544
65554fef
MS
115452002-02-11 Michael Snyder <msnyder@redhat.com>
11546
11547 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11548 (gcore section): Ifdef for Solaris and Unixware only.
11549 (procfs_do_thread_registers): Unixware needs one lwpstatus
11550 per thread (not one prstatus or pstatus).
11551 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11552 not over all gdb threads. For unixware, call elfcore_write_pstatus
11553 once before iterating over threads.
11554
34e8f22d
RE
115552002-02-11 Richard Earnshaw <rearnsha@arm.com>
11556
11557 * arm-tdep.h: New file.
11558 * arm-tdep.c: Include arm-tdep.h.
11559 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11560 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11561 (arm_print_float_info, arm_register_type, convert_to_extended)
11562 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11563 (arm_extract_return_value, arm_register_name): Make static.
11564 (arm_software_single_step): Similarly. Fix types in declaration.
11565 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11566 (arm_store_return_value, arm_store_struct_return): New functions.
11567 (arm_gdbarch_init): Register the above functions. Also register
11568 call_dummy_start_offset, sizeof_call_dummy_words,
11569 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11570 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11571 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11572 prologue_cache.saved_regs here, rather than ...
11573 (_initialize_arm_tdep): ... here.
11574 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11575 declarations.
11576 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11577 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11578 (arm_print_float_info, arm_register_type, convert_to_extended)
11579 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11580 (arm_extract_return_value, arm_register_name): Delete declarations.
11581 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11582 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11583 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11584 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11585 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11586 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11587 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11588 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11589 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11590 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11591 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11592 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11593 interface.
11594 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11595 * remote-rdi.c remote-rdp.c: Likewise.
11596 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11597 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11598 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11599 definition.
11600
11601 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11602 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11603 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11604 from non-ARM_ prefixed definitions.
11605 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11606 all uses of above.
11607 * remote-rdi.c remote-rdp.c: Likewise.
11608 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11609
148754e5
RE
116102002-02-11 Richard Earnshaw <rearnsha@arm.com>
11611
11612 * arm-tdep.c (arm_frameless_function_invocation)
11613 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11614 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11615 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11616 (arm_pop_frame, arm_get_next_pc): Make static.
11617 (arm_gdbarch_init): Register above in gdbarch structure.
11618 (arm_read_fp): Renamed from arm_target_read_fp.
11619 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11620 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11621 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11622 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11623 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11624 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11625 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11626 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11627 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11628 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11629 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11630
434d2d4f
DJ
116312002-02-10 Daniel Jacobowitz <drow@mvista.com>
11632
11633 * symtab.c (compare_search_syms): New function.
11634 (sort_search_symbols): New function.
11635 (search_symbols): Sort symbols after searching rather than
11636 before.
11637
55241689
AC
116382002-02-10 Andrew Cagney <ac131313@redhat.com>
11639
11640 * NEWS: Linux -> GNU/Linux.
11641
028c194b
AC
116422002-02-10 Andrew Cagney <ac131313@redhat.com>
11643
11644 * gdbarch.sh: For for level one methods, disallow a definition
11645 when partially multi-arched. Add comments explaining rationale.
11646 * gdbarch.h: Re-generate.
11647
6acf50cd
AC
116482002-02-10 Andrew Cagney <ac131313@redhat.com>
11649
11650 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11651 multi-arch partial.
aaa38bb5 11652
50248794
AC
116532002-02-10 Andrew Cagney <ac131313@redhat.com>
11654
11655 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11656 field. Use diff -u.
11657 * gdbarch.c: Re-generate.
11658
c30e0066
AC
116592002-02-10 Andrew Cagney <ac131313@redhat.com>
11660
9b56c5f3 11661 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11662 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11663 partial.
11664
6e6d6484
AC
116652002-02-10 Andrew Cagney <ac131313@redhat.com>
11666
11667 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11668 multi-arch partial.
11669 (PUSH_ARGUMENTS): Switch to using predefault.
11670 * gdbarch.c: Regenerate.
11671
c203844d
AC
116722002-02-10 Andrew Cagney <ac131313@redhat.com>
11673
11674 * valops.c (PUSH_ARGUMENTS): Delete definition.
11675 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11676 partial. Default to default_push_arguments.
11677 * gdbarch.h, gdbarch.c: Regenerate.
11678
b5a2688f
AC
116792002-02-09 Andrew Cagney <ac131313@redhat.com>
11680
11681 * defs.h (throw_exception): Rename return_to_top_level. Update
11682 comments.
11683 * utils.c (error_stream, internal_verror, quit): Ditto.
11684 * top.c (throw_exception, catcher): Ditto.
11685 * sparclet-rom.c (sparclet_load): Ditto.
11686 * remote.c (interrupt_query, minitelnet): Ditto.
11687 * remote-sds.c (interrupt_query): Ditto.
11688 * remote-mips.c (mips_error, mips_kill): Ditto.
11689 * ocd.c (interrupt_query): Ditto.
11690 * monitor.c (monitor_interrupt_query): Ditto.
11691 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11692 * target.h: Update comment.
aaa38bb5 11693
b5a2688f 11694 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11695
2fa5c1e0
AC
116962002-02-09 Andrew Cagney <ac131313@redhat.com>
11697
11698 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11699 default_double_format.
11700 * gdbarch.h, gdbarch.c: Re-generate.
11701 * findvar.c (floatformat_unknown): Delete variable definition.
11702 * doublest.h (floatformat_unknown): Delete variable declaration.
11703
da966255
JB
117042002-02-09 Jim Blandy <jimb@redhat.com>
11705
11706 * stabsread.c (read_type): Add code to parse Sun's syntax for
11707 prototyped function types.
11708
123a4891
AC
117092002-02-09 Andrew Cagney <ac131313@redhat.com>
11710
11711 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11712 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11713
fb39c8f3
PS
117142002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11715
11716 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11717 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11718 now _initialize_xcoffsolib gets called again and overrides the
11719 commands from solib.c in a native configuration.
11720
0b87a11d
MK
117212002-02-09 Mark Kettenis <kettenis@gnu.org>
11722
11723 * doublest.c (store_typed_floating): Don't try to return a value.
11724 Fixes PR gdb/290.
11725
bdc2fc72
JB
117262002-02-08 Jim Blandy <jimb@redhat.com>
11727
11728 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11729 is prototyped and has no arguments, print its argument list as
11730 `(void)'.
11731
da69bbcf
CD
117322002-02-08 Chris Demetriou <cgd@broadcom.com>
11733
11734 * MAINTAINERS (write-after-approval): Add myself.
11735 (paper-trail): I've escaped!
aaa38bb5 11736
b69571f5
CF
117372002-02-08 Christopher Faylor <cgf@redhat.com>
11738
11739 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11740 changes.
11741 (_initialize_check_for_gdb_ini): Ditto.
11742
f6871398
MH
117432002-02-08 Martin M. Hunt <hunt@redhat.com>
11744
11745 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11746 xaprintf -> xasprintf.
11747
4e52d31c
PM
117482002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11749
11750 * win32-nat.c: Remove use of printf and sprintf functions.
11751
39bbf761
RE
117522002-02-08 Richard Earnshaw <rearnsha@arm.com>
11753
11754 * arm-tdep.c (arm_frame_chain_valid): Make static.
11755 (arm_push_arguments): Likewise.
11756 (arm_gdbarch_init): New function.
11757 (_initialize_arm_tdep): Call it.
11758 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11759 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11760 (FRAME_CHAIN_VALID): Delete.
11761 (arm_frame_chain_valid): Delete declaration.
11762 (PUSH_ARGUMENTS): Delete.
11763 (arm_push_arguments): Delete declaration.
11764 (CALL_DUMMY_P): Delete.
11765
9c9532c9
CV
117662002-02-08 Andrew Cagney <ac131313@redhat.com>
11767 Corinna Vinschen <vinschen@redhat.com>
11768
11769 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11770 on builtin float types.
11771
4e8f7a8b
DJ
117722002-02-08 Daniel Jacobowitz <drow@mvista.com>
11773
11774 * utils.c: Include <curses.h> before "bfd.h".
11775 * tui/tui-hooks.c: Likewise.
11776 * tui/tui.c: Likewise.
11777 * tui/tuiCommand.c: Likewise.
11778 * tui/tuiData.c: Likewise.
11779 * tui/tuiDataWin.c: Likewise.
11780 * tui/tuiDisassem.c: Likewise.
11781 * tui/tuiGeneralWin.c: Likewise.
11782 * tui/tuiIO.c: Likewise.
11783 * tui/tuiLayout.c: Likewise.
11784 * tui/tuiRegs.c: Likewise.
11785 * tui/tuiSource.c: Likewise.
11786 * tui/tuiSourceWin.c: Likewise.
11787 * tui/tuiStack.c: Likewise.
11788 * tui/tuiWin.c: Likewise.
11789
cd4bffcf
EZ
117902002-02-07 Elena Zannoni <ezannoni@redhat.com>
11791
11792 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11793 to include space for pseudoregs as well. Update loops accordingly.
11794 (sh_fp_frame_init_saved_regs): Ditto.
11795 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11796
26806ce2
AC
117972002-02-07 Andrew Cagney <ac131313@redhat.com>
11798
11799 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11800 Add Richard Earnshaw to Arm maintainers.
11801
97fdab62
AC
118022002-02-07 Andrew Cagney <ac131313@redhat.com>
11803
a6b98203
AC
11804 * defs.h (warning_begin): Delete declaration.
11805
97fdab62
AC
11806 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11807 Delete macro.
11808
78b29b40
MS
118092002-02-07 Michael Snyder <msnyder@redhat.com>
11810
aaa38bb5 11811 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
11812 Logic bug, remove misplaced else.
11813
d8849953
KD
118142002-02-07 Klee Dienes <klee@apple.com>
11815
11816 * fork-inferior.c (fork_inferior): Add '!' to the list of
11817 characters that need to be quoted when building a string for the
11818 shell. Quote '!' specifically with a backslash, since CSH chokes
11819 when trying to evaluate "str!str".
aaa38bb5 11820
095778a0
NC
118212002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11822
11823 * rdi-share/host.h: Only provide a typedef for bool if it is not
11824 defined.
11825
1900040c
MS
118262002-02-04 Michael Snyder <msnyder@redhat.com>
11827
11828 * breakpoint.h (enum bptype): Add new overlay event bp type.
11829 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 11830
1900040c
MS
11831 * breakpoint.c (create_internal_breakpoint): New function.
11832 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11833 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11834 (create_thread_event_breakpoint): Ditto.
11835 (create_solib_event_breakpoint): Ditto.
11836 (create_overlay_event_breakpoint): New function.
11837 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11838 (update_breakpoints_after_exec): Delete and re-initialize
11839 overlay event breakpoints after an exec. Add FIXME comment
11840 about longjmp breakpoint.
11841 (print_it_typical): Ignore overlay event breakpoints.
11842 (print_one_breakpoint): Ditto.
11843 (mention): Ditto.
11844 (bpstat_what): Do not stop for overlay event breakpoints.
11845 (delete_breakpoint): Don't delete overlay event breakpoints.
11846 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11847 (breakpoint_re_set): Re-create overlay event breakpoint.
11848
11849 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11850 (overlay_manual_command): Disable overlay breakpoints.
11851 (overlay_off_command): Disable overlay breakpoints.
11852
082fc60d
RE
118532002-02-06 Richard Earnshaw <rearnsha@arm.com>
11854
11855 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11856 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11857 to here from config/tm-arm.h.
11858 (coff_sym_is_thumb): Make static.
11859 (arm_elf_make_msymbol_special): New function.
11860 (arm_coff_make_msymbol_special): New function.
11861 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11862 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11863 (coff_sym_is_thumb): Delete declaration.
11864 (arm_elf_make_msymbol_special): Declare.
11865 (arm_coff_make_msymbol_special): Declare.
11866 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11867 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11868
039c5766
RE
118692002-02-06 Richard Earnshaw <rearnsha@arm.com>
11870
11871 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11872
118732002-02-06 Richard Earnshaw <rearnsha@arm.com>
11874
11875 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11876 * gdbarch.c gdbarch.h: Regenerate.
11877 * arch-utils.c (default_print_float_info): New function.
11878 * arch-utils.h (default_print_float_info): Prototype it.
11879 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11880 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11881 (PRINT_FLOAT_INFO): Document it.
11882
11883 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11884 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11885 (PRINT_FLOAT_INFO): Define.
11886
58fa08f0
PM
118872002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11888
aaa38bb5 11889 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
11890 Add typecast to sprintf argument to suppress a warning.
11891
7393af7c
PM
118922002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11893
58fa08f0 11894 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
11895 to allow easier handling of pass state.
11896 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11897 that gives exception name and address.
11898 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 11899 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 11900 exceptions added.
aaa38bb5
AJ
11901 (child_continue): Correctly report continue_status.
11902 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 11903 TARGET_SIGNAL_0 (new default value).
aaa38bb5 11904 (child_resume): consider sig argument passed to decide if
7393af7c
PM
11905 the exception should be passed to debuggee or not.
11906
6af4589c
MS
119072002-02-05 Michael Snyder <msnyder@redhat.com>
11908
11909 * regcache.c (fetch_register): Call target_fetch_register
11910 only if we don't call FETCH_PSEUDO_REGISTER.
11911 (store_register): Call target_store_register only if we
11912 don't call STORE_PSEUDO_REGISTER.
11913
a2cf933a
EZ
119142002-02-05 Elena Zannoni <ezannoni@redhat.com>
11915
11916 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11917 ELF_MAKE_MSYMBOL_SPECIAL.
11918 * gdbarch.c, gdbarch.h: Regenerate.
11919 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 11920 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
11921 * elfread.c (elf_symtab_read): Compile use of
11922 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11923 multiarched.
11924 * coffread.c (coff_symtab_read): Ditto, for
11925 COFF_MAKE_MSYMBOL_SPECIAL.
11926
6bb7be43
JB
119272002-02-05 Jim Blandy <jimb@redhat.com>
11928
11929 * solib-svr4.c (svr4_truncate_ptr): New function.
11930 (svr4_relocate_section_addresses): Do the address arithmetic with
11931 the appropriate truncation for target addresses, even when
11932 CORE_ADDR is larger than a target address.
11933
e18651ec
DJ
119342002-02-05 Daniel Jacobowitz <drow@mvista.com>
11935
11936 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11937 to (int *).
11938
6b2725be
DJ
119392002-02-05 Daniel Jacobowitz <drow@mvista.com>
11940
11941 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11942 code.
11943
fca9e603
DJ
119442002-02-05 Daniel Jacobowitz <drow@mvista.com>
11945
11946 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11947
6c537a52
DJ
119482002-02-05 Daniel Jacobowitz <drow@mvista.com>
11949
11950 * gdbserver/linux-low.c: Remove unused include files.
11951
d844cde6
DJ
119522002-02-05 Daniel Jacobowitz <drow@mvista.com>
11953
11954 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11955 (read_inferior_memory): Use it.
11956 (write_inferior_memory): Likewise.
11957
d07c63e7
DJ
119582002-02-05 Daniel Jacobowitz <drow@mvista.com>
11959
11960 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11961 grubbing through sys_errlist.
11962
da6d8c04
DJ
119632002-02-05 Daniel Jacobowitz <drow@mvista.com>
11964
11965 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11966
5b421780
PM
119672002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11968 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11969
9f60d481
AC
119702002-02-04 Andrew Cagney <ac131313@redhat.com>
11971
11972 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11973 (do_sfunc, set_cmd_sfunc): New functions.
11974
11975 * command.h (struct cmd_list_element): Add field func.
11976 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11977 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11978 * cli/cli-decode.h: Ditto.
11979
11980 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11981 (help_all, help_cmd_list): Ditto.
11982 (find_cmd, complete_on_cmdlist): Ditto.
11983 * top.c (execute_command): Ditto.
11984
11985 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11986 function.sfunc.
11987
11988 * infcmd.c (notice_args_read): Fix function signature.
11989
11990 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11991 * cli/cli-decode.c (add_set_cmd): Ditto.
11992 * utils.c (initialize_utils): Ditto.
11993 * maint.c (_initialize_maint_cmds): Ditto.
11994 * infrun.c (_initialize_infrun): Ditto.
11995 * demangle.c (_initialize_demangler): Ditto.
11996 * remote.c (add_packet_config_cmd): Ditto.
11997 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11998 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11999 * proc-api.c (_initialize_proc_api): Ditto.
12000 * kod.c (_initialize_kod): Ditto.
12001 * valprint.c (_initialize_valprint): Ditto.
12002 * top.c (init_main): Ditto.
12003 * infcmd.c (_initialize_infcmd): Ditto.
12004 * corefile.c (_initialize_core): Ditto.
12005 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12006 * arch-utils.c (initialize_current_architecture): Ditto.
12007 (_initialize_gdbarch_utils): Ditto.
12008 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12009
12010 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12011 * wince.c (_initialize_inftarg): Ditto.
12012 * symfile.c (_initialize_symfile): Ditto.
12013 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12014 * language.c (_initialize_language): Ditto.
12015 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12016
f9ba0717
MS
120172002-02-04 Michael Snyder <msnyder@redhat.com>
12018
12019 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12020
0c74b2a7
DJ
120212002-02-04 Daniel Jacobowitz <drow@mvista.com>
12022
12023 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12024 Add rules for building the register data files.
12025
c638789f
DJ
120262002-02-04 Daniel Jacobowitz <drow@mvista.com>
12027
12028 * regformats/regdat.sh: Add braces to the definition of
12029 expedite_regs_${arch}.
12030
db253027
DJ
120312002-02-04 Daniel Jacobowitz <drow@mvista.com>
12032
12033 * regformats/regdef.h (struct reg): Add comment describing the
12034 requirements for offset and size fields.
12035
206be19c
AS
120362002-02-04 Andreas Schwab <schwab@suse.de>
12037
12038 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12039 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12040
181c1381
RE
120412002-02-04 Richard Earnshaw <rearnsha@arm.com>
12042
12043 * gdbarch.sh (copyright): Update years in generated header.
12044 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12045 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12046 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12047 * dbxread.c: Likewise.
12048 * dwarfread.c: Likewise.
12049 * elfread.c: Likewise.
12050 * somread.c: Likewise.
12051
12052 * arm-tdep.c (arm_smash_text_address): New function.
12053 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12054
fa4ba8da
PM
120552002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12056
12057 Add support for hardware watchpoints on win32 native.
aaa38bb5 12058 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12059 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12060 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12061 of debug registers.
12062 (debug_registers_changed): New variable. Reflects when debug registers
12063 are changed and need to be written to inferior.
aaa38bb5 12064 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12065 was set, used when new threads are created.
12066 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12067 i386-nat code.
12068 (thread_rec): Set dr array if id is the thread of current_event .
12069 (child_continue, child_resume): Change the debug registers for all
12070 threads if debug_registers_changed.
12071 (child_add_thread): Change the debug registers if debug_registers_used.
12072 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12073 Link nm.h to new nm-cygwin.h file.
12074 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12075 of hardware registers.
12076
a73c86fb
AC
120772002-02-03 Andrew Cagney <ac131313@redhat.com>
12078
12079 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12080 Restore behavour broken by 2002-01-20 Andrew Cagney
12081 <ac131313@redhat.com> IEEE_FLOAT removal.
12082
acf5ed49
DJ
120832002-02-03 Daniel Jacobowitz <drow@mvista.com>
12084
12085 * c-valprint.c (c_val_print): Pass a proper valaddr to
12086 cp_print_class_method.
12087 * valops.c (search_struct_method): If there is only one method
12088 and args is NULL, return that method.
12089
493d28d5
DJ
120902002-02-03 Daniel Jacobowitz <drow@mvista.com>
12091
12092 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12093 accessing tag_name directly.
12094
7495dfdb
DJ
120952002-02-03 Daniel Jacobowitz <drow@mvista.com>
12096
12097 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12098 of accessing tag_name directly.
12099
dd6bda65
DJ
121002002-02-03 Daniel Jacobowitz <drow@mvista.com>
12101
12102 PR gdb/280
12103 * gdbtypes.c (replace_type): New function.
12104 * gdbtypes.h (replace_type): Add prototype.
12105 * stabsread.c (read_type): Use replace_type.
12106
88fe217c
RE
121072002-02-03 Richard Earnshaw <rearnsha@arm.com>
12108
12109 * Makefile.in (memattr.o): Add missing dependencies rule.
12110
e5d66720
PS
121112002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12112
12113 * breakpoint.c (break_at_finish_command): Really export.
12114 (break_at_finish_at_depth_command): Ditto.
12115 (tbreak_at_finish_command): Ditto.
12116 * hppa-tdep.c: Include completer.h.
12117 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12118 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12119
fffee0be
AC
121202002-02-01 Andrew Cagney <ac131313@redhat.com>
12121
12122 * utils.c (do_write): New function.
12123 (error_stream): Rewrite combining the code from error_begin and
12124 verror.
12125 (verror): Rewrite using error_stream.
12126 (error_begin): Delete function.
12127
255e7dbf
AC
121282002-02-01 Andrew Cagney <ac131313@redhat.com>
12129
12130 * utils.c (error_begin): Make static.
12131 * defs.h (error_begin): Delete declaration.
12132
12133 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12134 (decode_line_1): Use cplusplus_error instead of error_begin,
12135 cplusplus_hint and return_to_top_level.
12136 * coffread.c (coff_symfile_read): Use error instead of error_begin
12137 and return_to_top_level.
12138 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12139
ddfe3c15
AC
121402002-02-01 Andrew Cagney <ac131313@redhat.com>
12141
12142 * language.h (type_error, range_error): Make string parameter
12143 constant.
12144 * language.c (warning_pre_print): Delete extern declaration.
12145 * dwarfread.c (warning_pre_print): Ditto.
12146 * language.c (type_error, range_error): Rewrite to use verror and
12147 vwarning instead of warning_begin.
12148
03ac34d5
MS
121492002-02-01 Michael Snyder <msnyder@redhat.com>
12150
261c4ca2
MS
12151 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12152 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12153
e00d1dc8
AC
121542002-02-01 Andrew Cagney <ac131313@redhat.com>
12155
12156 * command.h (NO_FUNCTION): Delete macro.
12157 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12158 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12159 * tracepoint.c (_initialize_tracepoint): Ditto.
12160 * cli/cli-decode.c (add_set_cmd): Ditto.
12161 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12162
76b79d6e
DJ
121632002-02-01 Daniel Jacobowitz <drow@mvista.com>
12164
12165 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12166 Update ``this'' pointer when calling virtual functions.
12167
799f9e91
MS
121682002-02-01 Michael Snyder <msnyder@redhat.com>
12169
c7bd442c 12170 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12171 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12172
3cf384d4
DJ
121732002-02-01 Daniel Jacobowitz <drow@mvista.com>
12174
12175 * regformats/reg-arm.dat: New file.
12176 * regformats/reg-i386.dat: New file.
12177 * regformats/reg-ia64.dat: New file.
12178 * regformats/reg-m68k.dat: New file.
12179 * regformats/reg-mips.dat: New file.
12180 * regformats/reg-ppc.dat: New file.
12181 * regformats/reg-sh.dat: New file.
12182 * regformats/regdef.h: New file.
12183 * regformats/regdat.sh: New file.
12184
0defa245
RE
121852002-02-01 Richard Earnshaw <reanrsha@arm.com>
12186
12187 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12188 (arm_frame_args_address, arm_frame_locals_address): New functions.
12189 (arm_frame_num_args): New function.
12190 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12191 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12192 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12193
405f26e6
MS
121942002-01-31 Michael Snyder <msnyder@redhat.com>
12195
502fd408
MS
12196 * breakpoint.c (break_at_finish_command): Export.
12197 (break_at_finish_at_depth_command): Export.
12198 (tbreak_at_finish_command): Export.
d6020d45 12199 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12200 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12201 "txbreak" commands, which are HPPA specific.
502fd408 12202
7d35e135
MS
12203 * printcmd.c (disassemble_command): Remove an ancient
12204 artifact of an old merge.
12205
aaa38bb5 12206 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12207 Define enum constant values for overlay mode.
12208 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12209 (overlay_is_mapped, overlay_auto_command,
12210 overlay_manual_command): Ditto.
d874f1e2 12211
aaa38bb5
AJ
12212 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12213 breakpoint_here_p, breakpoint_inserted_here_p,
12214 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12215 describe_other_breakpoints, check_duplicates, clear_command):
12216 Coding standard fixes.
12217
8add0441 12218 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12219 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12220 code: check bfd SEC_READONLY flag for section.
12221
e351066e
AC
122222002-01-31 Andrew Cagney <ac131313@redhat.com>
12223
7d35e135 12224 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12225
8a48e967
DJ
122262002-01-30 Daniel Jacobowitz <drow@mvista.com>
12227
12228 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12229 data symbols, since we search based on textlow and texthigh.
12230 (find_pc_sect_symtab): Likewise.
12231
f5a96129
AC
122322002-01-30 Andrew Cagney <ac131313@redhat.com>
12233
12234 * defs.h (vwarning): Declare.
f5a96129
AC
12235 * utils.c (vwarning): New function.
12236 (warning): Call vwarning.
12237 (warning_begin): Delete function.
12238
12239 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12240 the warning message.
12241 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12242 warning_begin.
12243
cefd4ef5
MS
122442002-01-30 Michael Snyder <msnyder@redhat.com>
12245
1a703748
MS
12246 * NEWS: Mention "set trust-readonly-sections" command.
12247 Mention generate-core-file command.
cefd4ef5 12248
3a11626d
MS
122492002-01-15 Michael Snyder <msnyder@redhat.com>
12250
12251 * target.c: New command, "set trust-readonly-sections on".
12252 (do_xfer_memory): Honor the suggestion to trust readonly sections
12253 by reading them from the object file instead of from the target.
12254 (initialize_targets): Register command "set trust-readonly-sections".
12255
d1c7e53b
AC
122562002-01-29 Andrew Cagney <ac131313@redhat.com>
12257
12258 * parse.c (target_map_name_to_register): Simplify, search regs and
12259 pseudo-regs using a single loop.
12260
e2c9a72c
AC
122612002-01-30 Andrew Cagney <ac131313@redhat.com>
12262
12263 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12264
69824b4e
MK
122652002-01-15 Rodney Brown <rbrown64@csc.com.au>
12266
12267 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12268 * config/i386/i386v42mp.mh: Add i387-nat.o .
12269 * i386v4-nat.c: Include i387-nat.h.
12270 (supply_fpregset): Use i387_supply_fsave.
12271 (fill_fpregset): Use i387_fill_fsave.
12272
6eb69eab
RE
122732002-01-30 Richard Earnshaw <rearnsha@arm.com>
12274
12275 * arm-tdep.c (arm_call_dummy_words): Define.
12276 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12277 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12278 (CALL_DUMMY_WORDS): Define.
12279 (arm_call_dummy_words): Declare.
12280 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12281 (arm_linux_call_dummy_words): Declare.
12282
9852326a
AS
122832002-01-30 Andreas Schwab <schwab@suse.de>
12284
12285 * m68klinux-nat.c: Fix last change to use regcache_collect
12286 instead of referencing registers[] directly.
12287
977a3030
AC
122882002-01-29 Andrew Cagney <ac131313@redhat.com>
12289
12290 * parse.c (target_map_name_to_register): Delete code wrapped in
12291 #ifdef REGISTER_NAME_ALIAS_HOOK.
12292
2076c72b
MS
122932002-01-28 Michael Snyder <msnyder@redhat.com>
12294
12295 * regcache.c (legacy_read_register_gen): Need to be able to
12296 read pseudo-register as well as real register.
12297 (legacy_write_register_gen): Ditto.
12298
8fcc723b
AC
122992002-01-28 Andrew Cagney <ac131313@redhat.com>
12300
12301 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12302 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12303 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12304 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12305 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12306 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12307 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12308 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12309 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12310 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12311 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12312 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12313 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12314 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12315 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12316 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12317 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12318 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12319 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12320 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12321
afe64c1a
AC
123222002-01-28 Andrew Cagney <ac131313@redhat.com>
12323
12324 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12325 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12326 (initialize_current_architecture): Update target_byte_order using
12327 information from BFD.
aaa38bb5 12328 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12329 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12330
75bc7ddf
AC
123312002-01-28 Andrew Cagney <ac131313@redhat.com>
12332
12333 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12334 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12335
12336 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12337 #ifdef INVALID_FLOAT.
12338 * infcmd.c (do_registers_info): Ditto.
12339 * values.c (unpack_double): Ditto. Add comment.
12340
12341 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12342 already commented out.
12343
0280a90a
AS
123442002-01-26 Andreas Schwab <schwab@suse.de>
12345
12346 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12347 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12348 registers and add support for PTRACE_GETREGS.
12349
7072a954
AC
123502002-01-24 Andrew Cagney <ac131313@redhat.com>
12351
12352 GDB 5.1.1 released from 5.1 branch.
12353 * NEWS: Add 5.1.1 news.
12354 * README: Sync with 5.1 branch.
12355
86f902e0
FF
123562002-01-23 Fred Fish <fnf@redhat.com>
12357
12358 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12359 stabstring on initial malloc. Reallocing will copy it for us,
12360 if necessary.
12361
8af51c36
EZ
123622002-01-23 Elena Zannoni <ezannoni@redhat.com>
12363
aaa38bb5 12364 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12365 (HFILES_NO_SRCDIR): Remove hpread.h.
12366 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12367 (hpread.o): Update dependencies.
12368 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12369
12370 * hp-psymtab-read.c: Remove file.
12371 * hp-symtab-read.c: Remove file.
12372 * hpread.h: Remove file.
12373
12374 * hpread.c: Merge all contents of hp-psymtab-read.c,
12375 hp-symtab-read.c and hpread.h into this file, as it was prior to
12376 January 1999.
12377
12378 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12379 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12380 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12381 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12382
dc5cfeb6
EZ
123832002-01-23 Elena Zannoni <ezannoni@redhat.com>
12384
12385 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12386 fill_gregset): Call gdbarch_tdep() just once, assign result to
12387 variable and use that, instead of calling the function several
12388 times.
12389
ea87b71b
AO
123902002-01-24 Alexandre Oliva <aoliva@redhat.com>
12391
12392 * configure.host: Accept sparcv9 as alias for sparc64.
12393 * configure.tgt: Likewise.
12394
13fc0c2f
KB
123952002-01-22 Kevin Buettner <kevinb@redhat.com>
12396
12397 * solib-aix5.c (build_so_list_from_mapfile)
12398 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12399 arguments is not reversed.
12400 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12401 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12402
7bd872fe
EZ
124032002-01-22 Elena Zannoni <ezannoni@redhat.com>
12404
12405 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12406 modified version of obsolete sh_fetch_pseudo_register.
12407 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12408 (sh4_register_read): New function.
12409 (sh_pseudo_register_write): New function. Renamed and modified
12410 version of obsolete sh_store_pseudo_register.
12411 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12412 (sh4_register_write): New function.
12413 (sh_gdbarch_init): Remove setting of gdbarch function
12414 fetch_pseudo_register and store_pseudo_register. Remove setting of
12415 register_convert_to_raw, register_convert_to_virtual,
12416 register_convertible.
12417 (sh_sh4_register_convertible): Delete. No longer needed. All is
12418 taken care by architecture specific functions
12419 register_read/register_write.
12420 (sh_sh4_register_convert_to_virtual): Make static.
12421 (sh_sh4_register_convert_to_raw): Ditto.
12422
069e84fd
AC
124232002-01-22 Andrew Cagney <ac131313@redhat.com>
12424
12425 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12426 (floatformat_is_nan, floatformat_mantissa): Ditto.
12427
12428 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12429 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12430 builtin_type_ieee_double_little,
12431 builtin_type_ieee_double_littlebyte_bigword,
12432 builtin_type_m68881_ext, builtin_type_i960_ext,
12433 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12434 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12435 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12436 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12437
211a4f69
CV
124382002-01-22 Corinna Vinschen <vinschen@redhat.com>
12439
12440 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12441 parameter. Set frameless flag if it exists and depended of
12442 whether the scanned function is frameless or not.
12443 (xstormy16_skip_prologue): If function is frameless, return
12444 result of xstormy16_scan_prologue().
12445 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12446 call.
12447
f81353e4
EZ
124482002-01-21 Elena Zannoni <ezannoni@redhat.com>
12449
12450 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12451 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12452 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12453 sh_sh4_register_byte, sh_sh4_register_raw_size,
12454 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12455 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12456 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12457 sh_store_pseudo_register, sh_do_pseudo_register): Call
12458 gdbarch_tdep() just once, assign result to variable and use that,
12459 instead of calling the function several times.
12460
63c73a17
MK
124612002-01-20 Mark Kettenis <kettenis@gnu.org>
12462
12463 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12464 macros instead of LAST_FPU_CTRL_REGNUM.
12465 (store_register): Likewise.
12466
39ad761d
JB
124672002-01-21 Jim Blandy <jimb@redhat.com>
12468
12469 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12470 is up-to-date before running the program, not just when a program
12471 exits.
12472
3d74b771
FF
124732002-01-21 Fred Fish <fnf@redhat.com>
12474
12475 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12476 when we have found all instructions we are looking for.
12477
966fbf70
RE
124782002-01-21 Richard Earnshaw <rearnsha@arm.com>
12479
12480 * arm-tdep.c (arm_register_name): New function.
12481 (arm_registers_names): Make static.
12482 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12483 (arm_register_name): Declare.
12484 (REGISTER_NAME): Use it.
12485
c3b4394c
RE
124862002-01-21 Richard Earnshaw <rearnsha@arm.com>
12487 Kevin Buettner <kevinb@redhat.com>
12488
12489 Convert arm targets to new FRAME interface.
12490 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12491 (arm_frame_find_save_regs): Delete.
12492 (arm_frame_init_saved_regs): New.
12493 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12494 Allocate extra_info as required. Convert all uses of fsr.regs
12495 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12496 to use extra_info.
12497 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12498 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12499 (check_prologue_cache, save_prologue_cache): Likewise.
12500 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12501 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12502 (FRAME_FIND_SAVED_REGS): Delete.
12503 (arm_frame_find_saved_regs): Delete prototype.
12504 (arm_frame_init_saved_regs): New prototype.
12505 (FRAME_INIT_SAVED_REGS): Define.
12506
61d99182
AC
125072002-01-20 Andrew Cagney <ac131313@redhat.com>
12508
12509 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12510
6aaea291
AC
125112002-01-20 Andrew Cagney <ac131313@redhat.com>
12512
12513 From Jeff Law <law@redhat.com>:
12514 * infttrace.c: Include <sys/pstat.h>.
12515 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12516 exec file if the ttrace equivalent fails.
12517
15f698d2
AC
125182002-01-20 Andrew Cagney <ac131313@redhat.com>
12519
12520 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12521 (closeLogFile): Ditto.
12522
f86ddd7c
MC
125232002-01-20 Michael Chastain <mec@shout.net>
12524
12525 * top.c (print_gdb_version): Bump copyright year to 2002.
12526
904507ce
AC
125272002-01-20 Andrew Cagney <ac131313@redhat.com>
12528
12529 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12530 Zannoni and Eli Zaretskii.
12531
d7f0b9ce
DJ
125322002-01-20 Daniel Jacobowitz <drow@mvista.com>
12533
12534 * buildsym.c: Update copyright years.
12535 * c-typeprint.c: Likewise.
12536 * dwarf2read.c: Likewise.
12537 * f-typeprint.c: Likewise.
12538 * gdbtypes.c: Likewise.
12539 * gdbtypes.h: Likewise.
12540 * hp-symtab-read.c: Likewise.
12541 * hpread.c: Likewise.
12542 * mdebugread.c: Likewise.
12543 * p-typeprint.c: Likewise.
12544
3fd3d7d2
AC
125452002-01-20 Andrew Cagney <ac131313@redhat.com>
12546
12547 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12548 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12549 byte-order selectable.
12550 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12551 * arch-utils.c: Ditto.
12552 (set_endian): Ditto.
12553 (set_endian_from_file): Ditto.
12554 * gdbserver/low-sim.c (create_inferior): Ditto.
12555 * gdbarch.sh: Ditto.
12556 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12557 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12558 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12559 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12560 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12561 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12562 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12563 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12564 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12565 macro definition.
12566 * config/mips/tm-wince.h: Remove #undef of macro
12567 TARGET_BYTE_ORDER_SELECTABLE.
12568 * config/sh/tm-wince.h: Ditto.
12569
b02dede2
DJ
125702002-01-20 Daniel Jacobowitz <drow@mvista.com>
12571
12572 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12573 member function fields. Add accessor macro
12574 TYPE_FN_FIELD_ARTIFICIAL.
12575 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12576 * c-typeprint.c (c_type_print_base): Skip artificial member
12577 functions.
12578
c3643761
DJ
125792002-01-20 Daniel Jacobowitz <drow@mvista.com>
12580
12581 * f-typeprint.c: Delete unused function f_type_print_args.
12582 * p-typeprint.c: Delete unused function pascal_type_print_args.
12583
8176bb6d
DJ
125842002-01-20 Daniel Jacobowitz <drow@mvista.com>
12585
12586 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12587 comment. Add ``artificial'' to ``union field_location''.
12588
12589 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12590
12591 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12592 * mdebugread.c (parse_symbol): Likewise.
12593 * stabsread.c (define_symbol): Likewise.
12594 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12595 initializing TYPE_FIELD_BITPOS to n (obsolete).
12596 (hpread_doc_function_type): Likewise.
12597 * hpread.c (hpread_function_type): Likewise.
12598
7fd60527
AC
125992002-01-20 Andrew Cagney <ac131313@redhat.com>
12600
12601 * configure.in (host_makefile_frag): Only require a host makefile
12602 fragment when a native build.
12603 * configure: Re-generate.
12604
c2f05ac9
AC
126052002-01-20 Andrew Cagney <ac131313@redhat.com>
12606
12607 * doublest.h (floatformat_from_type): Declare.
12608 * doublest.c (floatformat_from_type): New function.
12609 (convert_typed_floating): Use.
12610
12611 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12612 call to function floatformat_from_type.
12613
12614 * gdbarch.sh (IEEE_FLOAT): Delete.
12615 * gdbarch.h, gdbarch.c: Re-generate.
12616 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12617 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12618 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12619 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12620 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12621 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12622 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12623 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12624 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12625 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12626 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12627 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12628
12629 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12630 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12631 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12632 * sh-tdep.c (sh_gdbarch_init): Ditto.
12633 * mips-tdep.c (mips_gdbarch_init): Ditto.
12634 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12635 * cris-tdep.c (cris_gdbarch_init): Ditto.
12636
abf22e64
AJ
126372002-01-20 Jiri Smid <smid@suse.cz>
12638
12639 * configure.host, configure.tgt: Support x86-64.
12640 * NEWS: Note new target x86-64.
12641
b7c4cbf8
AJ
12642 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12643 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12644 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12645 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12646 x86-64-linux-nat.o): Fix dependencies.
12647
82600034
AC
126482002-01-19 Andrew Cagney <ac131313@redhat.com>
12649
12650 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12651 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12652 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12653 * config/sparc/xm-sun4os4.h: Delete file.
12654 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12655
bbe5c628
AC
126562002-01-19 Andrew Cagney <ac131313@redhat.com>
12657
12658 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12659 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12660 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12661 * config/i386/i386lynx.mh (XM_FILE): Delete.
12662 * config/rs6000/xm-rs6000ly.h: Delete file.
12663 * config/sparc/xm-sparclynx.h: Delete file.
12664 * config/m68k/xm-m68klynx.h: Delete file.
12665 * config/i386/xm-i386lynx.h: Delete file.
12666 * config/xm-lynx.h: Delete file.
12667 * config/djgpp/fnchange.lst: Update.
12668
f8453e34
JT
126692002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12670
12671 * alpha-tdep.c (alpha_register_byte): New function.
12672 (alpha_register_raw_size): Ditto.
12673 (alpha_register_virtual_size): Ditto.
12674 (alpha_skip_prologue_internal): Renamed from
12675 alpha_skip_prologue.
12676 (alpha_skip_prologue): New version that calls
12677 alpha_skip_prologue_internal.
12678 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12679 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12680 second argument from alpha_skip_prologue.
12681 (REGISTER_BYTE): Use alpha_register_byte.
12682 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12683 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12684 (FRAMELESS_FUNCTION_INVOCATION): Use
12685 generic_frameless_function_invocation_not.
12686 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12687 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12688
52d9e613
AC
126892002-01-19 Andrew Cagney <ac131313@redhat.com>
12690
12691 * config/mips/xm-news-mips.h: Delete file.
12692 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12693
12694 * config/m88k/xm-m88k.h: Delete file.
12695 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12696 * config/m88k/xm-delta88v4.h: Ditto.
12697 * config/m88k/xm-delta88.h: Ditto.
12698
12699 * config/alpha/xm-fbsd.h: Delete file.
12700 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12701
12702 * config/sparc/xm-sparc.h: Delete file.
12703 * Makefile.in (xm-sun4os4.h): Delete dependency.
12704 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12705 * config/sparc/xm-sun4os4.h: Ditto.
12706 * config/sparc/xm-linux.h: Ditto.
12707
12708 * config/i386/xm-windows.h: Delete file.
12709
2d1b2124
AC
127102002-01-19 Andrew Cagney <ac131313@redhat.com>
12711
12712 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12713 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12714
ee1f65f0
JT
127152002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12716
12717 * alpha-tdep.c (alpha_call_dummy_words): New.
12718 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12719 (CALL_DUMMY_P): Define.
12720 (CALL_DUMMY_WORDS): Define.
12721 (SIZEOF_CALL_DUMMY_WORDS): Define.
12722
98081e55
PB
127232002-01-19 Per Bothner <per@bothner.com>
12724
12725 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12726 isn't NULL, which can happen with some gcj-3.x-produced code.
12727
0d056799
JT
127282002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12729
12730 * alpha-tdep.c (alpha_register_virtual_type): New function.
12731 (alpha_init_frame_pc_first): Ditto.
12732 (alpha_fix_call_dummy): Ditto.
12733 (alpha_store_struct_return): Ditto.
12734 (alpha_extract_struct_value_address): Ditto.
12735 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12736 alpha_register_virtual_type.
12737 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12738 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12739 alpha_extract_struct_value_address.
12740 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12741 (INIT_FRAME_PC): Use init_frame_pc_noop.
12742 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12743
4604bcad
MK
127442002-01-19 Mark Kettenis <kettenis@gnu.org>
12745
12746 * i386gnu-nat.c: Include "i386-tdep.h".
12747 (fetch_fpregs): Simplify code dealing with uninitialized floating
12748 point states such that it doesn't require FP7_REGNUM.
12749
140f9984
JT
127502002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12751
abf22e64
AJ
12752 * alpha-tdep.c (frame_extra_info): New.
12753 (alpha_find_saved_regs): Make static. Use
140f9984
JT
12754 frame->extra_info.
12755 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
12756 (alpha_frame_saved_pc): Use frame->extra_info.
12757 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12758 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
12759 (init_extra_frame_info): Rename to...
12760 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 12761 (alpha_print_extra_frame_info): New function.
140f9984
JT
12762 (alpha_frame_locals_address): Ditto.
12763 (alpha_frame_args_address): Ditto.
abf22e64 12764 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
12765 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12766 alpha_frame_args_address.
abf22e64 12767 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 12768 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
12769 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12770 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
12771 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12772 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12773
d734c450
JT
127742002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12775
12776 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12777 (alpha_cannot_fetch_register): Ditto.
12778 (alpha_cannot_store_register): Ditto.
12779 (alpha_register_convertible): Ditto.
12780 (alpha_use_struct_convention): Ditto.
12781 * config/alpha/tm-alpha.h: Update copyright years.
12782 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12783 (INNER_THAN): Use core_addr_lessthan.
12784 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12785 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12786 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12787 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12788 (FRAME_CHAIN): Remove unnecessary cast.
12789
b4ceaee6
AC
127902002-01-18 Andrew Cagney <ac131313@redhat.com>
12791
12792 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12793 obsolete.
12794
0a65a603
AC
127952002-01-18 Andrew Cagney <ac131313@redhat.com>
12796
12797 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12798 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12799 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12800 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12801 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12802 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12803 * x86-64-linux-nat.c: Ditto.
12804
636a6dfc
JT
128052002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12806
abf22e64 12807 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
12808 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12809 (REGISTER_NAME): Define.
12810
acceddb6
JT
128112002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12812
12813 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12814
ec32e4be
JT
128152002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12816
12817 * alpha-tdep.c: Update copyright years.
12818 (alpha_next_pc): New function.
12819 (alpha_software_single_step): Ditto.
12820 * config/alpha/tm-alpha.h: Add prototype for
12821 alpha_software_single_step.
12822
e771a871
JT
128232002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12824
12825 * alphabsd-nat.c: Update copyright years.
12826 (fill_gregset): Use regcache_collect.
12827 (fill_fpregset): Likewise.
12828 (fetch_inferior_registers): Only fetch integer registers
12829 if requested to do so.
12830 (store_inferior_registers): Only store integer registers
12831 if requested to do so.
12832
7708fa01
AC
128332002-01-17 Andrew Cagney <ac131313@redhat.com>
12834
12835 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12836 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12837 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12838 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12839 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12840 * config/arm/linux.mh (XDEPFILES): Delete.
12841 * config/arm/nbsd.mh (XDEPFILES): Delete.
12842 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12843 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12844 * config/i386/i386m3.mh (XDEPFILES): Delete.
12845 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12846 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12847 * config/i386/fbsd.mh (XDEPFILES): Delete.
12848 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12849 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12850 * config/i386/i386v4.mh (XDEPFILES): Delete.
12851 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12852 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12853 * config/i386/i386aix.mh (XDEPFILES): Delete.
12854 * config/i386/go32.mh (XDEPFILES): Delete.
12855 * config/i386/cygwin.mh (XDEPFILES): Delete.
12856 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12857 * config/i386/i386mach.mh (XDEPFILES): Delete.
12858 * config/i386/i386v32.mh (XDEPFILES): Delete.
12859 * config/i386/linux.mh (XDEPFILES): Delete.
12860 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12861 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12862 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12863 * config/i386/i386sco.mh (XDEPFILES): Delete.
12864 * config/i386/i386v.mh (XDEPFILES): Delete.
12865 * config/i386/nbsd.mh (XDEPFILES): Delete.
12866 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12867 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12868 * config/i386/symmetry.mh (XDEPFILES): Delete.
12869 * config/i386/obsd.mh (XDEPFILES): Delete.
12870 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12871 * config/ia64/linux.mh (XDEPFILES): Delete.
12872 * config/ia64/aix.mh (XDEPFILES): Delete.
12873 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12874 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12875 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12876 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12877 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12878 * config/m68k/linux.mh (XDEPFILES): Delete.
12879 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12880 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12881 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12882 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12883 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12884 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12885 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12886 * config/m88k/delta88.mh (XDEPFILES): Delete.
12887 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12888 * config/m88k/m88k.mh (XDEPFILES): Delete.
12889 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12890 * config/mips/linux.mh (XDEPFILES): Delete.
12891 * config/mips/irix6.mh (XDEPFILES): Delete.
12892 * config/mips/irix5.mh (XDEPFILES): Delete.
12893 * config/mips/irix4.mh (XDEPFILES): Delete.
12894 * config/mips/irix3.mh (XDEPFILES): Delete.
12895 * config/mips/decstation.mh (XDEPFILES): Delete.
12896 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12897 (NATDEPFILES): Move core-aout.o to here.
12898 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12899 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12900 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12901 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12902 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12903 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12904 * config/pa/hpux11.mh (XDEPFILES): Delete.
12905 * config/powerpc/aix.mh (XDEPFILES): Delete.
12906 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12907 * config/powerpc/linux.mh (XDEPFILES): Delete.
12908 * config/romp/rtbsd.mh: Rename XDEPFILES.
12909 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12910 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12911 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12912 * config/s390/s390.mh (XDEPFILES): Delete.
12913 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12914 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12915 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12916 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12917 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12918 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12919 * config/sparc/linux.mh (XDEPFILES): Delete.
12920 * config/vax/vaxult.mh (XDEPFILES): Delete.
12921 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12922 * Makefile.in (DEPFILES): Remove XDEPFILES.
12923
375fc983
AC
129242002-01-17 Andrew Cagney <ac131313@redhat.com>
12925
12926 * utils.c (internal_verror): Fix comments, default is yes not no.
12927 Update queries to match. Default to quit and dump core.
12928
8926118c
AC
129292002-01-17 Andrew Cagney <ac131313@redhat.com>
12930
12931 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12932 copyright.
12933 * defs.h, event-top.c, gdbcmd.h: Ditto.
12934 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12935 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12936 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12937 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12938 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12939 * mi/mi-main.c:Ditto.
12940
12941 * stack.c, symfile.c: Update copyright.
12942
45b7b345
DJ
129432002-01-17 Daniel Jacobowitz <drow@mvista.com>
12944
db728ff7
DJ
12945 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12946 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12947 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12948 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 12949
db728ff7
DJ
129502002-01-17 Daniel Jacobowitz <drow@mvista.com>
12951
12952 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12953 * gdbserver/low-lynx.c (myattach): Likewise.
12954 * gdbserver/low-nbsd.c (myattach): Likewise.
12955 * gdbserver/low-sim.c (myattach): Likewise.
12956 * gdbserver/low-sparc.c (myattach): Likewise.
12957 * gdbserver/low-sun3.c (myattach): Likewise.
12958
12959 * gdbserver/low-linux.c (myattach): New function.
45b7b345 12960
db728ff7 12961 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
12962 (main): Handle "--attach".
12963
8de3c354
AC
129642002-01-16 Andrew Cagney <ac131313@redhat.com>
12965
12966 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12967 maintainer.
12968
b0129042
DJ
129692002-01-15 Daniel Jacobowitz <drow@mvista.com>
12970
12971 * c-typeprint.c (is_type_conversion_operator): Add additional
12972 check for non-conversion operators.
12973
ba8679fb 129742002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
12975
12976 * linux-proc.c: Add "info proc" command, a la procfs.c.
12977 (read_mapping): New function, abstract and re-use code.
12978 (linux_find_memory_regions): Use new func read_mapping.
12979 (linux_info_proc_cmd): New function, implement "info proc".
12980 (_initialize_linux_proc): Add new command "info proc".
12981
e4f9b4d5
MS
129822002-01-15 Michael Snyder <msnyder@redhat.com>
12983
12984 * symfile.c (generic_load): Use bfd_map_over_sections method
12985 instead of manipulating bfd structure members directly.
12986 (add_section_size_callback): New function, bfd sections callback
12987 used by generic_load.
12988 (load_sections_callback): New function, bfd sections callback
12989 used by generic_load.
12990
08cf96df
EZ
129912002-01-15 Elena Zannoni <ezannoni@redhat.com>
12992
abf22e64 12993 [Based on work by Jim Blandy]
08cf96df
EZ
12994 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12995 (builtin_type_vec128): Export.
12996 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12997 types.
12998 (builtin_type_vec128): New builtin type for 128 bit vector
12999 registers.
13000 (build_gdbtypes): Initialize builtin_type_v16qi and
13001 builtin_type_v8hi. Create the vec128 register builtin type
13002 structure.
13003 (build_builtin_type_vec128): New function.
abf22e64 13004 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13005 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13006 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13007 AltiVec register to new builtin type.
13008
d7242108
DJ
130092001-01-15 Daniel Jacobowitz <drow@mvista.com>
13010
13011 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13012 to make_cv_type.
13013
4ee3352d
AC
130142002-01-14 Andrew Cagney <ac131313@redhat.com>
13015
13016 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13017 CLEAN_UP_REGISTER_VALUE.
13018 * regcache.c (supply_register): Update only call.
13019
f015b2e7
AC
130202002-01-14 Andrew Cagney <ac131313@redhat.com>
13021
13022 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13023 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13024 a29k-*-vxworks* targets as obsolete.
13025
356ae49d
MS
130262002-01-14 Michael Snyder <msnyder@redhat.com>
13027
13028 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13029 until we can resolve portability issues.
13030 * gregset.h: Remove references to fpxregs.
13031 * gcore.c (gcore_command): Initialize note_sec to NULL.
13032
ade8f45e
AC
130332002-01-13 Andrew Cagney <ac131313@redhat.com>
13034
13035 * signals.c (target_signal_to_name): Rewrite. Only use
13036 signals[].name when in bounds and non-NULL.
abf22e64 13037
89c49e7a
AC
130382002-01-13 Andrew Cagney <ac131313@redhat.com>
13039
13040 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13041 * signals.c (target_signal_to_name): Verify that SIG is within the
13042 bounds of the signals array.
13043
4daa9f9f
AC
130442002-01-13 Andrew Cagney <ac131313@redhat.com>
13045
13046 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13047
ba4bbdcb
KS
130482002-01-13 Keith Seitz <keiths@redhat.com>
13049
13050 * stack.c (print_frame_info_base): Print the frame's pc
13051 only if when print_frame_info_listing_hook is not defined.
13052
575bbeb6
KS
130532002-01-13 Keith Seitz <keiths@redhat.com>
13054
13055 * varobj.c (varobj_set_value): Make sure that there were no
13056 errors evaluating the object before attempting to set its
13057 value.
13058 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13059 so this offset adjustment is no longer necessary.
13060 (create_child): Don't set the error flag if the child is
13061 a CPLUS_FAKE_CHILD.
13062 (value_of_child): If value_fetch_lazy fails, return NULL
13063 so that callers will be notified that an error occurred.
13064 (c_value_of_variable): Delay check of variable's validity
13065 until later. We actually want all structs and unions to have
13066 the value "{...}".
13067 Do not return "???" for variables which could not be evaluated.
13068 This error condition must be returned to the caller so that it
13069 can get the error condition from gdb.
13070 (cplus_name_of_child): Adjust index for vptr before figuring
13071 out the name of the child.
13072 (cplus_value_of_child): If a child's (real) parent is not valid,
13073 don't even bother trying to give a value for it. Just return
13074 an error. Change all instances in this function.
13075 (cplus_type_of_child): If our parent is one of the "fake"
13076 parents, we need to get at the type of the real parent, and
13077 derive the child's true type using this information.
13078
b76898ab
AC
130792002-01-13 Andrew Cagney <ac131313@redhat.com>
13080
13081 From 2002-01-09 John Marshall <johnm@falch.net>:
13082 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13083 sources.redhat.com, and tweak some related URLs which had
13084 suffered from linkrot.
13085
b6649e88
AC
130862002-01-13 Andrew Cagney <ac131313@redhat.com>
13087
13088 From Jeff law:
13089 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13090 structures passed in registers.
13091
82cc5033
EZ
130922002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13093
13094 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13095 white space which prevented compilation. Reported by DSK
13096 <dsk@student.unsw.edu.au>.
13097
ba5f2f8a
MS
130982002-01-11 Michael Snyder <msnyder@redhat.com>
13099
fbd35540
MS
13100 * symfile.c (build_section_addr_info_from_section_tab):
13101 Use bfd access method instead of manipulating bfd directly.
13102 (syms_from_objfile): Ditto.
13103 (simple_overlay_update_1): Ditto.
13104 (simple_overlay_update): Ditto.
13105 (generic_load): Ditto.
13106 (overlay_unmapped_address): FIXME comment, bfd access methods.
13107 (sections_overlap): FIXME comment, bfd access methods.
13108 (pc_in_mapped_range): FIXME comment, bfd access methods.
13109 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13110 (section_is_mapped): FIXME comment, bfd access methods.
13111 (section_is_overlay): FIXME comment, bfd access methods.
13112
ba5f2f8a
MS
13113 * symfile.c (generic_load): Whitespace and long line cleanups.
13114 Remove duplicate variable, change several local variables to
13115 more appropriate data types.
13116 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13117
17df2af6
AC
131182002-01-12 Andrew Cagney <ac131313@redhat.com>
13119
13120 From Peter Schauer:
13121 * language.c (longest_local_hex_string_custom): Use phex_nz to
13122 convert NUM to a hex string.
13123
ec920329
EZ
131242002-01-12 Elena Zannoni <ezannoni@redhat.com>
13125
13126 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13127 the function.
538a76d6 13128 Update Copyright year.
ec920329 13129
3abd2e01
AC
131302002-01-12 Andrew Cagney <ac131313@redhat.com>
13131
13132 * language.c (longest_raw_hex_string): Delete unused function.
13133
b21b22e0
PS
131342002-01-11 Petr Sorfa <petrs@caldera.com>
13135
13136 * MAINTAINERS (write-after-approval): Add myself.
13137 * dwarf2read.c (read_tag_string_type): Handling of
13138 DW_AT_byte_size.
13139 (read_tag_string_type): FORTRAN fix to prevent propagation of
13140 first string size.
13141 (set_cu_language): Handling of DW_LANG_Fortran95
13142
747fe712
RE
131432002-01-11 Richard Earnshaw <rearnsha@arm.com>
13144
13145 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13146 GETPID(inferior_ptid).
13147 (store_inferior_registers): Likewise.
13148
f1bea926
JM
131492002-01-10 Jason Merrill <jason@redhat.com>
13150
13151 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13152 Fix DW_OP_minus.
13153
ae940673
AC
131542002-01-10 Andrew Cagney <ac131313@redhat.com>
13155
13156 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13157 and bfd/elf32-sh-nbsd.c.
13158
00546b04
MS
131592002-01-10 Michael Snyder <msnyder@redhat.com>
13160
352ed7b4
MS
13161 * NEWS: Mention --pid and corefile/proc-id behavior change.
13162
c18be923
MS
13163 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13164 * gcore.c: Include cli/cli-decode.h instead of command.h.
13165
00546b04
MS
13166 * main.c (captured_main): Add new command line option "--pid".
13167 If the second command line argument (following the symbol-file)
13168 begins with a digit, try to attach to it before trying to open
13169 it as a corefile.
13170 (print_gdb_help): Document the "--pid" argument.
13171
db60ec62
EZ
131722002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13173
13174 * completer.c (command_completer): New function.
13175
13176 * completer.h <command_completer>: Add prototype.
13177
13178 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13179 completer for the "help" command.
13180
39c22d1a
JM
131812002-01-09 Jason Merrill <jason@redhat.com>
13182
13183 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13184
c564377f
MS
131852002-01-09 Michael Snyder <msnyder@redhat.com>
13186
975aec09
MS
13187 * i386-linux-nat.c (fill_fpxregset): Make global.
13188 (store_fpxregset): Ditto.
13189
db4a10fa
MS
13190 * gregset.h (gdb_fpxregset_t): Define.
13191 (supply_fpxregset): Prototype.
13192 (fill_fpxregset): Prototype.
13193
c564377f
MS
13194 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13195
c3d45d70
RE
131962002-01-09 Richard Earnshaw <rearnsha@arm.com>
13197
13198 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13199 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13200 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13201
fcc87af1
AC
132022002-01-09 Andrew Cagney <ac131313@redhat.com>
13203
13204 * MAINTAINERS: Update target maintainer rules so that any
13205 Maintainer can approve a tested patch for a maintenance-only
13206 target.
13207
dd96c05b
RE
132082002-01-09 Richard Earnshaw <rearnsha@arm.com>
13209
d4297db9 13210 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13211
d4297db9 13212 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13213 IN_SIGTRAMP.
13214
145fdc6e
MS
132152002-01-08 Michael Snyder <msnyder@redhat.com>
13216
13217 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13218 real name of the executable, rather than the /proc name.
13219
be4d1333
MS
132202002-01-03 Michael Snyder <msnyder@redhat.com>
13221
13222 Implement a "generate-core-file" command in gdb, save target state.
13223 * gcore.c: New file. Implement new command 'generate-core-file'.
13224 Save a corefile image of the current state of the inferior.
13225 * linux-proc.c: Add linux-specific code for saving corefiles.
13226 * target.h (struct target_ops): Add new target vectors for saving
13227 corefiles; to_find_memory_regions and to_make_corefile_notes.
13228 (target_find_memory_regions): New macro.
13229 (target_make_corefile_notes): New macro.
13230 * target.c (update_current_target): Inherit new target methods.
13231 (dummy_find_memory_regions): New place-holder method.
13232 (dummy_make_corefile_notes): New place-holder method.
13233 (init_dummy_target): Initialize new dummy target vectors.
13234 * exec.c (exec_set_find_memory_regions): New function.
13235 Allow the exec_ops vector for memory regions to be taken over.
13236 (exec_make_note_section): New function, target vector method.
13237 * defs.h (exec_set_find_memory_regions): Export prototype.
13238 * procfs.c (proc_find_memory_regions): New function, corefile method.
13239 (procfs_make_note_section): New function, corefile method.
13240 (init_procfs_ops): Set new target vector pointers.
13241 (find_memory_regions_callback): New function.
13242 (procfs_do_thread_registers): New function.
13243 (procfs_corefile_thread_callback): New function.
13244 * sol-thread.c (sol_find_memory_regions): New function.
13245 (sol_make_note_section): New function.
13246 (init_sol_thread_ops): Initialize new target vectors.
13247 * inftarg.c (inftarg_set_find_memory_regions): New function.
13248 Allow to_find_memory_regions vector to be taken over.
13249 (inftarg_set_make_corefile_notes): New function.
13250 Allow to_make_corefile_notes vector to be taken over.
13251 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13252 interface layer if not target_has_execution (may be a corefile).
13253 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13254 * config/sparc/sun4sol2.mh: Ditto.
13255 * config/alpha/alpha-linux.mh: Ditto.
13256 * config/arm/linux.mh: Ditto.
13257 * config/i386/x86-64linux.mh: Ditto.
13258 * config/ia64/linux.mh: Ditto.
13259 * config/m68k/linux.mh: Ditto.
13260 * config/mips/linux.mh: Ditto.
13261 * config/powerpc/linux.mh: Ditto.
13262 * config/sparc/linux.mh: Ditto.
13263
c6b92abd
MS
132642002-01-07 Michael Snyder <msnyder@redhat.com>
13265
13266 * arm-linux-nat.c: Remove references to regcache.c internal data
13267 (registers[] and register_valid[]).
13268
4b09dc8c
MS
132692002-01-07 Michael Snyder <msnyder@redhat.com>
13270
abf22e64
AJ
13271 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13272 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13273 symbol file and shlibs.
13274 * Makefile.in: Add rule for linux-proc.o.
13275 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13276 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13277 * config/arm/linux.mh: Ditto.
13278 * config/i386/linux.mh: Ditto.
13279 * config/i386/x86-64linux.mh: Ditto.
13280 * config/ia64/linux.mh: Ditto.
13281 * config/m68k/linux.mh: Ditto.
13282 * config/mips/linux.mh: Ditto.
13283 * config/powerpc/linux.mh: Ditto.
13284 * config/sparc/linux.mh: Ditto.
13285
c25b74ac
PM
132862002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13287
13288 * win32-nat.c: Add i386-tdep.h dependency.
13289
94cd915f
MS
132902002-01-07 Michael Snyder <msnyder@redhat.com>
13291
c7cccb76
MS
13292 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13293 instead of bfd_get_arch_size. Don't bail out just because
13294 there's no exec_bfd.
abf22e64 13295
34c0bd93
MS
13296 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13297 * p-valprint.c (pascal_object_print_value): Ditto.
13298 * somread.c (som_symtab_read): Ditto.
13299 * symfile.c (simple_free_overlay_region_table): Ditto.
13300 * valops.c (value_assign): Ditto.
13301
21c1c920
MS
13302 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13303 use tilde_expand and strerror for opening save-tracepoints file.
13304
5bbd998e
MS
13305 * thread-db.c (thread_db_new_objfile): Indendation fix.
13306
94cd915f
MS
13307 * infptrace.c (GDB_MAX_ALLOCA): New define.
13308 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13309 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13310 can be overridden with whatever value is appropriate to the host).
13311 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13312 alloca to allocate potentially large buffer.
13313 * rs6000-nat.c (child_xfer_memory): Ditto.
13314 * symm-nat.c (child_xfer_memory): Ditto.
13315 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13316
494e8a93
JSC
133172002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13318
13319 From Nick Clifton <nickc@redhat.com>
13320 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13321
d0e1d48e
MS
133222002-01-07 Michael Snyder <msnyder@redhat.com>
13323
abf22e64 13324 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13325 Don't use exec_bfd if it's NULL.
13326
290b2c7a
MK
133272002-01-06 Mark Kettenis <kettenis@gnu.org>
13328
abf22e64 13329 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13330
aef21287
AC
133312002-01-06 Andrew Cagney <ac131313@redhat.com>
13332
13333 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13334 * gnu-nat.c: Ditto.
13335
30efa627
AC
133362002-01-06 Andrew Cagney <ac131313@redhat.com>
13337
13338 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13339 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13340 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13341 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13342 z8k-coff have not been multi-arched. Update z8k-coff build
13343 status.
13344
9b4ff276
AC
133452002-01-06 Andrew Cagney <ac131313@redhat.com>
13346
13347 * MAINTAINERS: Mark a29k target as obsolete.
13348 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13349 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13350 comments.
13351 * NEWS: Note that a29k targets are obsolete.
13352 * a29k-tdep.c: Mark as obsolete.
13353 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13354 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13355 a29k-*-vxworks* targets as obsolete.
13356 * remote-adapt.c: Obsolete.
13357 * remote-eb.c: Obsolete.
13358 * remote-mm.c: Obsolete.
13359 * remote-udi.c: Obsolete.
13360 * config/a29k/a29k-udi.mt: Obsolete.
13361 * config/a29k/a29k.mt: Obsolete.
13362 * config/a29k/tm-a29k.h: Obsolete.
13363 * config/a29k/tm-vx29k.h: Obsolete.
13364 * config/a29k/vx29k.mt: Obsolete.
13365
a9011d31
AC
133662002-01-05 Andrew Cagney <ac131313@redhat.com>
13367
13368 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13369 with BFD_ENDIAN_BIG.
13370
9299404e
AC
133712002-01-05 Andrew Cagney <ac131313@redhat.com>
13372
13373 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13374 * configure, config.in: Re-generate.
13375 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13376 * defs.h: Do not include <endian.h>.
13377
7e89e357
JT
133782002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13379
13380 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13381 * config.in: Regenerate.
13382 * configure.in: Update copyright years.
13383 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13384 * configure: Regenerate.
13385 * i386bsd-nat.c: Update copyright years.
13386 (fill_gregset): Use regcache_collect.
13387 (fetch_inferior_registers): Only fetch integer registers
13388 if requested to do so. Add support for XMM registers
13389 using PT_GETXMMREGS.
13390 (store_inferior_registers): Only store integer registers
13391 if requested to do so. Add support for XMM registers
13392 using PT_SETXMMREGS.
13393 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13394 (store_inferior_registers): Remove.
13395 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13396 (fetch_elfcore_registers): New function.
13397 (i386nbsd_elfcore_fns): New.
13398 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13399 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13400 i386bsd-nat.o.
13401 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13402 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13403 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13404 * config/i386/tm-nbsd.h: Update copyright years.
13405 (HAVE_SSE_REGS): Define.
13406 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13407 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13408 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13409 (SIGCONTEXT_PC_OFFSET): Remove.
13410 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13411
a752853e
AC
134122002-01-05 Andrew Cagney <ac131313@redhat.com>
13413
13414 * configure.tgt: Remove powerpc-*-macos* target.
13415 * config/m68k/xm-mpw.h: Delete file.
13416 * config/xm-mpw.h: Delete file.
13417 * ser-mac.c: Delete file.
13418 * mpw-make.sed: Delete file.
13419 * mpw-config.in: Delete file.
13420 * mac-xdep.c: Delete file.
13421 * mac-gdb.r: Delete file.
13422 * mac-defs.h: Delete file.
13423 * mac-nat.c: Delete file.
13424 * config/powerpc/macos.mh: Delete file.
13425 * config/powerpc/macos.mt: Delete file.
13426 * config/powerpc/nm-macos.h: Delete file.
13427 * config/powerpc/tm-macos.h: Delete file.
13428 * source.c (openp, open_source_file): Remove obsolete code.
13429 * top.c (gdb_readline): Ditto.
13430 * utils.c (query): Ditto.
13431 * event-top.c (display_gdb_prompt): Ditto.
13432 * Makefile.in (ser-mac.o): Delete obsolete target.
13433 * NEWS: Update.
13434
d7449b42
AC
134352002-01-04 Andrew Cagney <ac131313@redhat.com>
13436
13437 * defs.h (BIG_ENDIAN): Delete macro definition.
13438 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13439 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13440 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13441 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13442 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13443 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13444 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13445 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13446 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13447 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13448 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13449 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13450 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13451 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13452 * gdbarch.c: Re-generate.
13453
356374e8
DJ
134542002-01-04 Daniel Jacobowitz <drow@mvista.com>
13455
13456 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13457 for core files.
13458
a2b8f8f8
JT
134592002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13460
13461 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13462
12466af9
AC
134632002-01-04 Andrew Cagney <ac131313@redhat.com>
13464
13465 * value.h (value_ptr): Delete typedef.
13466
3549ab40
JT
134672002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13468
13469 * i386nbsd-nat.c: Update copyright years.
13470 Include i386-tdep.h.
13471
fedbd091
EZ
134722002-01-04 Elena Zannoni <ezannoni@redhat.com>
13473
13474 * stabsread.c: Update copyright years.
13475
13476 From Debashis Mahata <debashis.mahata@wipro.com>:
13477 (read_struct_fields): Deal with Sun C compiler erroneous stab
13478 output for structs and unions.
fec8b34f 13479 Fix PR gdb/269.
fedbd091 13480
eb43544b
DJ
134812002-01-04 Daniel Jacobowitz <drow@mvista.com>
13482
13483 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13484 prototype.
13485
1514d34e
DJ
134862002-01-04 Daniel Jacobowitz <drow@mvista.com>
13487
13488 * cp-abi.c: Fix whitespace.
13489 (baseclass_offset): New wrapper function.
13490 * cp-abi.h (baseclass_offset): Add prototype.
13491 (struct cp_abi_ops): Add baseclass_offset pointer.
13492
13493 * valops.c (vb_match): Move to...
13494 * gnu-v2-abi.c (vb_match): here.
13495 * valops.c (baseclass_offset): Move to...
13496 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13497
13498 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13499
13500 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13501 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13502 * hpacc-abi.c (init_hpacc_ops): Likewise.
13503
7f8c9282
DJ
135042002-01-04 Daniel Jacobowitz <drow@mvista.com>
13505
13506 * valops.c (find_overload_match): Accept obj as a
13507 reference parameter. Update it before returning.
13508 * value.h (find_overload_match): Update prototype.
13509 * eval.c (evaluate_subexp_standard): Pass object to
13510 find_overload_match by reference.
13511
f23631e4
AC
135122002-01-03 Andrew Cagney <ac131313@redhat.com>
13513
13514 * valarith.c: Replace value_ptr with struct value pointer. Remove
13515 register attribute from value declarations.
13516 * valops.c: Ditto.
13517 * value.h: Ditto.
13518 * scm-lang.c (scm_lookup_name): Ditto.
13519
79e10fab 135202002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13521
79e10fab
AC
13522 Abstract the functionality of iterating over mapped memory
13523 regions into a general purpose iterator function.
abf22e64 13524 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13525 iterator for memory sections.
13526 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13527 (solib_mappings_callback): New function, callback for above.
13528 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13529 (info_mappings_callback): New function, callback for above.
13530
13531 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13532
c5ad026a
MK
135332002-01-01 Mark Kettenis <kettenis@gnu.org>
13534
d2a7c97a
MK
13535 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13536 * i386-tdep.c: Include "elf-bfd.h".
13537 (process_note_abi_tag_sections): New function.
13538 (i386_gdbarch_init): Add code to recognize various OS/ABI
13539 combinations.
13540
c5ad026a
MK
13541 * maint.c (_initialize_maint_cmds): Add missing \ in
13542 string-literal.
13543
a1a5b71e 13544For older changes see ChangeLog-2001
c906108c
SS
13545\f
13546Local Variables:
13547mode: change-log
13548left-margin: 8
13549fill-column: 74
13550version-control: never
13551End:
This page took 0.962219 seconds and 4 git commands to generate.