* symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
481d0f41
JB
12002-11-25 Jim Blandy <jimb@redhat.com>
2
3 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
4 || info_verbose isn't true.
5
7d6a26a7
AC
62002-11-24 Andrew Cagney <ac131313@redhat.com>
7
8 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
9 default to get_frame_base.
10 * gdbarch.h, gdbarch.c: Regenerate.
11 * arch-utils.c (default_frame_address): Delete function.
12 * arch-utils.h (default_frame_address): Delete declaration
13
6abe1021
PM
142002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
15
16 * varobj.c (find_frame_addr_in_frame_chain):
17 Use get_frame_base instead of FRAME_FP,
18 obvious fix.
19
c193f6ac
AC
202002-11-19 Andrew Cagney <ac131313@redhat.com>
21
22 * frame.h (FRAME_FP): Delete macro.
23 (get_frame_base): New function declaration.
24 * frame.c (get_frame_base): New function.
25 (get_frame_id): Use ->frame.
26 (frame_find_by_id): Rewrite to use get_frame_id.
27 * blockframe.c: Use get_frame_base instead of FRAME_FP.
28 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
29 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
30 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
31 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
32 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
33 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
34
e5d2af14
AC
352002-11-24 Andrew Cagney <ac131313@redhat.com>
36
37 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
38
931d12c6
AC
392002-11-24 Andrew Cagney <ac131313@redhat.com>
40
41 * frame.c (set_unwind_by_pc): Revert change below, use
42 PC_IN_CALL_DUMMY.
43 (get_prev_frame): Ditto.
44
5e0f933e
AC
452002-11-24 Andrew Cagney <ac131313@redhat.com>
46
47 * dummy-frame.c (pc_in_dummy_frame): New function.
48 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
49 (find_dummy_frame): Update comment.
50 (generic_pop_current_frame): Use get_frame_type.
51 * dummy-frame.h (pc_in_dummy_frame): Declare.
52 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
53 (create_new_frame): Use pc_in_dummy_frame.
54 (get_prev_frame): Use pc_in_dummy_frame.
55 (frame_saved_regs_register_unwind): Use get_prev_frame.
56 (deprecated_generic_get_saved_register): Use get_prev_frame.
57
7d8547c9
AC
582002-11-23 Andrew Cagney <ac131313@redhat.com>
59
60 * blockframe.c (find_frame_addr_in_frame_chain): Move function
61 from here ...
62 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
63 (varobj_create): Note that frame ID should be used.
64 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
65
0225421b
AC
662002-11-23 Andrew Cagney <ac131313@redhat.com>
67
68 * breakpoint.c: Include "gdb_assert.h".
69 (deprecated_frame_in_dummy): Assert that generic dummy frames are
70 not being used.
71 * Makefile.in (breakpoint.o): Update dependencies.
72 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
73 deprecated_frame_in_dummy.
74 * stack.c (print_frame_info_base): Ditto.
75 (frame_info): Ditto.
76 (print_frame_info_base): Ditto. Delete dead code.
77
32eeb91a
AS
782002-11-23 Andreas Schwab <schwab@suse.de>
79
80 * Makefile.in (m68k_tdep_h): Define.
81 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
82 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
83 * m68k-tdep.c: Move register number enum ...
84 * m68k-tdep.h: ... to this new file and rename the constants from
85 E_* to M68K_*. All uses changed.
86 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
87 * abug-rom.c: Include "m68k-tdep.h". Use
88 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
89 * cpu32bug-rom.c: Likewise.
90 * dbug-rom.c: Likewise.
91 * m68k-tdep.c: Likewise.
92 * m68klinux-nat.c: Likewise.
93 * remote-est.c: Likewise.
94 * rom68k-rom.c: Likewise.
95 * config/m68k/tm-linux.h: Likewise.
96
9648bac8
AC
972002-11-23 Andrew Cagney <ac131313@redhat.com>
98
99 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
100 dummy frame initialization code.
101 * mips-tdep.c (mips_gdbarch_init): Ditto.
102
91a175b3
CF
1032002-11-22 Christopher Faylor <cgf@redhat.com>
104
105 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
106 attach will hang.
107
f4ded5b1
AC
1082002-11-22 Andrew Cagney <ac131313@redhat.com>
109
110 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
111 to default_frame_address.
112 * gdbarch.h, gdbarch.c: Re-generate.
113
114 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
115 or frame_locals_address to default_frame_address.
116 * m68k-tdep.c (m68k_gdbarch_init): Update.
117 * i386-tdep.c (i386_gdbarch_init): Update.
118 * frv-tdep.c (frv_gdbarch_init): Update.
119 * sh-tdep.c (sh_gdbarch_init): Update.
120 * v850-tdep.c (v850_gdbarch_init): Update.
121 * sparc-tdep.c (sparc_gdbarch_init): Update.
122 * mips-tdep.c (mips_gdbarch_init): Update.
123 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
124 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
125 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
126
127 * cris-tdep.c (cris_frame_args_address): Delete function.
128 (cris_frame_locals_address): Delete function.
129 (cris_gdbarch_init): Do not set frame_args_address or
130 frame_locals_address.
131
f7c1e0f3
MS
1322002-11-22 Michael Snyder <msnyder@redhat.com>
133
134 * thread-db.c (thread_db_load): Tell the user what's going on
135 if dlopen fails on libthread_db.
136
03dac896
AS
1372002-11-23 Andreas Schwab <schwab@suse.de>
138
139 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
140 invariant return values.
141
7a67d0fe
AS
1422002-11-22 Andreas Schwab <schwab@suse.de>
143
144 * valops.c (value_slice): Move declaration of `offset' to avoid
145 warning.
146
5633f842
CF
1472002-11-22 Christopher Faylor <cgf@redhat.com>
148
149 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
150 (struct so_stuff): Add end_addr field.
151 (register_loaded_dll): Calculate and store end address of loaded dll.
152 (solib_address): New function.
153 (child_solib_loaded_library_pathname): Pass carefully constructed
154 section info to safe_symbol_file_add rather than ignoring it.
155 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
156 DLL is loaded.
157 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
158 (child_create_inferior): Fix a compiler warning.
159 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
160 (solib_address): Declare new function.
161
d85fe7f7
AS
1622002-11-22 Andreas Schwab <schwab@suse.de>
163
164 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
165 and FPS registers.
166
8308e54c
DJ
1672002-11-21 Daniel Jacobowitz <drow@mvista.com>
168
169 * maint.c (_initialize_maint_cmds): Fix typo. From
170 Francesco Potorti` <pot@gnu.org>.
171
8997bd5e
AC
1722002-11-21 Andrew Cagney <cagney@redhat.com>
173
174 * mips-tdep.c (mips_dump_tdep): Delete references to
175 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
176 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
177 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
178 * printcmd.c (build_address_symbolic): Delete calls to
179 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
180 (address_info): Ditto.
181 Fix PR gdb/773.
182
4e87b832
KD
1832002-11-19 Klee Dienes <kdienes@apple.com>
184 Adam Fedor <fedor@gnu.org>
185
186 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
187 the ability to explicitly specify the quote characters and word
188 break characters; if NULL is specified for either, use the old
189 behavior of using the characters used by the completer.
190 (skip_chars): New function. Convenience wrapper around
191 skip_quoted_chars to provide the original skip_chars behavior.
192 * completer.h (skip_quoted_chars): Add prototype.
193
9ba8d803
AC
1942002-11-19 Andrew Cagney <ac131313@redhat.com>
195
196 Problems reported by Paul Eggert.
197 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
198
0a595803
AS
1992002-11-19 Andreas Schwab <schwab@suse.de>
200
201 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
202 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
203 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
204 (m68k_linux_frame_saved_pc): Move to ...
205 * m68klinux-tdep.c: ... here. New file.
206 * Makefile.in (m68klinux-tdep.o): Add dependencies.
207 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
208
e8afa4d7
AF
2092002-11-19 Adam Fedor <fedor@gnu.org>
210
211 * objc-exp.y: Revert to old skip_quoted usage.
212
a76c9d72
AF
2132002-11-19 Adam Fedor <fedor@gnu.org>
214
215 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
216 (objc_lang_h): Define.
217 (YYFILES): Add objc-exp.tab.c.
218 (local-maintainer-clean): Remove objc-exp.tab.c.
219 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
220
fd0e9d45
PM
2212002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
222
223 * p-exp.y (typecast rule): Add automatic dereference of
224 pascal classes if needed.
225 (THIS): Set current_type.
226 Automatically dereference pascal classes.
227 (typebase rule): Add ^typebase recognition.
228
82eeeb94
AF
2292002-11-18 Adam Fedor <fedor@gnu.org>
230
231 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
232 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
233 (op_name): Handle OP_OBJC_SELF.
234 * Makefile.in (expprint.o): Add additional depends.
235
646df18d
AF
2362002-11-18 Adam Fedor <fedor@gnu.org>
237
238 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
239 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
240 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
241 * objc-exp.y: Likewise.
242
379b85df
AF
2432002-11-18 Adam Fedor <fedor@gnu.org>
244
245 * gdb/parser-defs.h: (struct objc_class_str): New structure
246 for parsing ObjC classes.
247
85cf597a
AC
2482002-11-18 Andrew Cagney <ac131313@redhat.com>
249
250 * stack.c (frame_relative_level): Copy function from here ...
251 * frame.c (frame_relative_level): ...to here.
252
5a203e44
AC
2532002-11-18 Andrew Cagney <ac131313@redhat.com>
254
255 * frame.h (enum frame_type): Define.
256 (get_frame_type): Declare.
257 (struct frame_info): Add field `type'. Delete field
258 signal_handler_caller.
259 (deprecated_set_frame_signal_handler_caller): Declare.
260 * frame.c (get_frame_type): New function.
261 (deprecated_set_frame_type): New function.
262 (create_new_frame): Set the frame's type.
263 (get_prev_frame): Similar.
264 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
265 * s390-tdep.c: Ditto.
266 * m68klinux-nat.c: Ditto.
267 * ns32k-tdep.c: Ditto.
268 * x86-64-linux-tdep.c: Ditto.
269 * vax-tdep.c: Ditto.
270 * rs6000-tdep.c: Ditto.
271 * ppc-linux-tdep.c: Ditto.
272 * i386-interix-tdep.c: Ditto.
273 * mips-tdep.c: Ditto.
274 * m68k-tdep.c: Ditto.
275 * hppa-tdep.c: Ditto.
276 * ia64-tdep.c: Ditto.
277 * cris-tdep.c: Ditto.
278 * arm-tdep.c: Ditto.
279 * alpha-tdep.c: Ditto.
280 * i386-tdep.c: Ditto.
281 * stack.c: Ditto.
282 * ada-lang.c: Ditto.
283 * blockframe.c: Update.
284 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
285 deprecated_set_frame_type instead of signal_handler_caller.
286 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
287 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
288 * breakpoint.h: Delete FIXME suggesting get_frame_type.
289
bf4ae8b2
KD
2902002-11-18 Klee Dienes <kdienes@apple.com>
291
292 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
293
a672ef13
KD
2942002-11-18 Klee Dienes <kdienes@apple.com>
295
296 * buildsym.c (pop_context): Add comment.
297
0c5e171a
KD
2982002-11-18 Klee Dienes <kdienes@apple.com>
299
300 * buildsym.h (pop_context): Convert to function, defined in
301 buildsym.c.
302 * buildsym.c: Include gdb_assert.h.
303 (pop_context): Implement as C function. Add check for stack
304 underflow.
305 * dbxread.c (process_one_symbol): Complain and stop processing
306 that symbol if we are already at the top of the context stack for
307 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
308 when processing N_RBRAC.
309
8a1f4c4c
DJ
3102002-11-16 Daniel Jacobowitz <drow@mvista.com>
311
312 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
313 define.
314 (struct target_waitstatus): Add opaque definition.
315 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
316 * exec.c (init_exec_ops): Likewise.
317 * fork-child.c (clone_and_follow_inferior): Remove.
318 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
319 * inferior.h (clone_and_follow_inferior): Remove prototype.
320 * infrun.c (follow_fork_mode_both): Remove.
321 (follow_fork_mode_kind_names): Remove commented out "both".
322 (follow_inferior_fork): Remove follow_fork_mode_both support.
323 * inftarg.c (child_clone_and_follow_inferior): Remove.
324 (child_post_follow_inferior_by_clone): Remove.
325 (init_child_ops): Don't set to_clone_and_follow_inferior
326 or to_post_follow_inferior_by_clone.
327 * target.c (default_clone_and_follow_inferior): Remove.
328 (cleanup_target): Don't set to_clone_and_follow_inferior
329 or to_post_follow_inferior_by_clone.
330 (find_default_clone_and_follow_inferior): Remove.
331 (init_dummy_target): Don't set to_clone_and_follow_inferior.
332 (debug_to_clone_and_follow_inferior): Remove.
333 (debug_to_post_follow_inferior_by_clone): Remove.
334 (setup_target_debug): Don't set to_clone_and_follow_inferior
335 or to_post_follow_inferior_by_clone.
336 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
337 and to_post_follow_inferior_by_clone.
338 (child_clone_and_follow_inferior): Remove prototype.
339 (child_post_follow_inferior_by_clone): Remove prototype.
340 (target_clone_and_follow_inferior): Remove macro.
341 (target_post_follow_inferior_by_clone): Remove macro.
342 (find_default_clone_and_follow_inferior): Remove prototype.
343
47932f85
DJ
3442002-11-16 Daniel Jacobowitz <drow@mvista.com>
345
346 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
347 inferior_has_vforked, and inferior_has_execd instead of
348 target_has_forked, target_has_vforked, and target_has_execd.
349 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
350 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
351 (CHILD_WAIT): Define.
352 (child_wait): Add prototype.
353 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
354 Add prototype.
355 (hpux_has_vforked): Likewise, from child_has_vforked.
356 (hpux_has_execd): Likewise, from child_has_execd.
357 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
358 (not_same_real_pid, child_wait): New, copied from inftarg.c.
359 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
360 and hpux_has_syscall_event instead of the target hooks.
361 * infrun.c (inferior_has_forked, inferior_has_vforked)
362 (inferior_has_execd): New functions.
363 * inftarg.c (not_same_real_pid): Remove.
364 (child_wait): Remove references to not_same_real_pid,
365 target_has_forked, target_has_vforked, target_has_execd,
366 and target_has_syscall_event.
367 (child_has_forked, child_has_vforked, child_has_execd)
368 (child_has_syscall_event): Remove.
369 (init_child_ops): Remove references to child_has_forked,
370 child_has_vforked, child_has_execd, and child_has_syscall_event.
371 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
372 (hpux_has_vforked): Likewise, from child_has_vforked.
373 (hpux_has_execd): Likewise, from child_has_execd.
374 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
375 * target.c (cleanup_target): Remove references to
376 to_has_forked, to_has_vforked, to_has_execd, and
377 to_has_syscall_event.
378 (update_current_target): Likewise.
379 (setup_target_debug): Likewise.
380 (debug_to_has_forked): Remove.
381 (debug_to_has_vforked): Remove.
382 (debug_to_has_execd): Remove.
383 (debug_to_has_syscall_event): Remove.
384 * target.h (struct target_ops): Remove to_has_forked.
385 to_has_vforked, to_has_execd, and to_has_syscall_event.
386 (child_has_forked, child_has_vforked, child_has_execd)
387 (child_has_syscall_event): Remove prototypes.
388 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
389 prototypes.
390 (target_has_forked, target_has_vforked, target_has_execd)
391 (target_has_syscall_event): Remove macros.
392
4088142a
DJ
3932002-11-16 Daniel Jacobowitz <drow@mvista.com>
394
395 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
396 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
397 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
398 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
399 * target.c (cleanup_target): Remove reference to
400 to_can_follow_vfork_prior_to_exec.
401 (update_current_target): Likewise.
402 (debug_to_can_follow_vfork_prior_to_exec): Remove.
403 (setup_target_debug): Remove reference to
404 to_can_follow_vfork_prior_to_exec.
405 * target.h (struct target_ops): Remove
406 to_can_follow_vfork_prior_to_exec.
407 (child_can_follow_vfork_prior_to_exec): Remove prototype.
408 (target_can_follow_vfork_prior_to_exec): Remove definition.
409 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
410 define.
411 * infrun.c (follow_vfork_when_exec): Remove.
412 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
413 (follow_exec): Likewise.
414 (handle_inferior_event): Likewise.
415 (keep_going): Likewise.
416
18cde8d5
AC
4172002-11-15 Andrew Cagney <cagney@redhat.com>
418
419 * frame.c (generic_unwind_get_saved_register): Make static.
420 * frame.h (generic_unwind_get_saved_register): Delete declaration.
421 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
422 defaults to generic_unwind_get_saved_register.
423 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
424 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
425 * frv-tdep.c (frv_gdbarch_init): Ditto.
426 * i386-tdep.c (i386_gdbarch_init): Ditto.
427 * s390-tdep.c (s390_gdbarch_init): Ditto.
428 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
429 * v850-tdep.c (v850_gdbarch_init): Ditto.
430 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
431 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
432 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
433
a6b063af
AC
4342002-11-15 Andrew Cagney <cagney@redhat.com>
435
436 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
437 i386-tdep.c.
438
f407986f
AC
4392002-11-15 Andrew Cagney <cagney@redhat.com>
440
441 * frame.h (sigtramp_saved_pc): Delete declaration.
442 * blockframe.c (sigtramp_saved_pc): Delete function.
443 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
444 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
445 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
446 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
447
f18c5a73
AC
4482002-11-15 Andrew Cagney <ac131313@redhat.com>
449
450 * frame.c (frame_pc_unwind): New function.
451 (frame_saved_regs_pc_unwind): New function.
452 (frame_register_unwind): Pass unwind_cache instead of
453 register_unwind_cache.
454 (set_unwind_by_pc): Add unwind_pc parameter, set.
455 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
456 (get_prev_frame): Ditto.
457 * frame.h (frame_pc_unwind_ftype): Declare.
458 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
459 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
460 (frame_pc_unwind): Declare.
461 * dummy-frame.c (dummy_frame_pc_unwind): New function.
462 (struct dummy_frame): Add comment mentioning that values are for
463 previous frame.
464 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
465 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
466 (generic_file_frame_chain_valid): Ditto.
467 * stack.c (frame_info): Ditto.
468
d9285969 4692002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
470
471 * linespec.c (locate_first_half): New function.
472 (decode_line_1): Move code into locate_first_half.
473
d741b867
AC
4742002-11-15 Andrew Cagney <ac131313@redhat.com>
475
476 * complaints.h: Add comment explaining how to eliminate a
477 deprecated_complain call.
24382c5c 478 * complaints.h: Fix spelling errors.
d741b867 479
82d03c99
DC
4802002-11-15 David Carlton <carlton@math.stanford.edu>
481
482 * printcmd.c: Remove #include "disasm.h".
483
c97eb5d9
AC
4842002-11-14 Andrew Cagney <ac131313@redhat.com>
485
486 * frame.h: Move the most relevant interface functions to the start
487 of the file.
488
524d7c18
AC
4892002-11-14 Andrew Cagney <ac131313@redhat.com>
490
491 * regcache.h (deprecated_registers): Rename registers.
492 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
493 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
494 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
495 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
496 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
497 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
498 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
499 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
500 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
501 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
502 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
503 * v850ice.c: Update.
504
6411e720
AC
505Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
506
507 * utils.c (gdb_realpath): Add comment mentioning realpath with a
508 NULL buffer.
509
73937e03
AC
5102002-11-13 Andrew Cagney <cagney@redhat.com>
511
512 * regcache.h (deprecated_read_register_bytes): Rename
513 read_register_bytes.
514 (deprecated_write_register_bytes): Rename write_register_bytes.
515 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
516 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
517 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
518 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
519 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
520 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
521 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
522 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
523 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
524 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
525 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
526 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
527 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
528 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
529
fb0cd46e
JB
5302002-11-13 Jim Blandy <jimb@redhat.com>
531
532 * findvar.c (read_var_value): Doc fix.
533
2d28509a
AC
5342002-11-13 Andrew Cagney <cagney@redhat.com>
535
536 * regcache.c (struct regcache): Replace passthough_p with
537 readonly_p.
538 (regcache_xmalloc): Initialize readonly_p.
539 (build_regcache): Initialize readonly_p.
540 (regcache_save): New function.
541 (regcache_restore): New function.
542 (regcache_cpy): Re-implement using regcache_save and
543 regcache_restore.
544 (regcache_raw_read): Update.
545 (regcache_cooked_read): When a read-only cache, checked for cached
546 pseudo register values.
547 (regcache_raw_write): Assert that the cache is not read-only.
548 Remove code handling a non-passthrough cache.
549 * regcache.h (regcache_save): Declare.
550 (regcache_restore): Declare.
551
067df2e5
AC
5522002-11-13 Andrew Cagney <cagney@redhat.com>
553
554 * regcache.c (struct regcache_descr): Add fields
555 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
556 (init_legacy_regcache_descr): Compute the size of a cooked
557 register cache and then assign that to sizeof_raw_registers. Set
558 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
559 (init_legacy_regcache_descr): Ditto.
560
51b1fe4e
AC
5612002-11-13 Andrew Cagney <cagney@redhat.com>
562
563 * regcache.c (register_buffer): Move to near start of file, update
564 description.
565 (regcache_raw_read): Use.
566 (regcache_raw_write): Use.
567 (struct regcache): Rename raw_registers to registers and
568 raw_register_valid_p to register_valid_p.
569 (regcache_xmalloc): Update.
570 (regcache_xfree): Update.
571 (register_buffer): Update.
572 (regcache_cpy): Update.
573 (regcache_cpy_no_passthrough): Update.
574 (regcache_valid_p): Update.
575 (deprecated_grub_regcache_for_registers): Update.
576 (deprecated_grub_regcache_for_register_valid): Update.
577 (set_register_cached): Update.
578 (regcache_raw_write): Update.
579
80b4c677
PM
5802002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
581
582 * p-exp.y (name_not_typename): Use copy_name to
583 set current_type variable for fields of THIS.
584
0f3fafde
DJ
5852002-11-12 Daniel Jacobowitz <drow@mvista.com>
586
587 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
588 * monitor.c (init_base_monitor_ops): Likewise.
589 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
590 * remote-array.c (init_array_ops): Likewise.
591 * remote-e7000.c (init_e7000_ops): Likewise.
592 * remote-es.c (init_es1800_ops): Likewise.
593 (init_es1800_child_ops): Likewise.
594 * remote-rdp.c (init_remote_rdp_ops): Likewise.
595 * remote-sim.c (init_gdbsim_ops): Likewise.
596 * remote-st.c (init_st2000_ops): Likewise.
597 * sol-thread.c (init_sol_core_ops): Likewise.
598 (init_sol_thread_ops): Likewise.
599 * v850ice.c (init_850ice_ops): Likewise.
600 * win32-nat.c (init_child_ops): Likewise.
601 * wince.c (init_child_ops): Likewise.
602
82c0260e
AC
6032002-11-12 Andrew Cagney <ac131313@redhat.com>
604
605 * utils.c (gdb_realpath): Make rp a constant pointer.
606
70d35819
AC
6072002-11-12 Andrew Cagney <ac131313@redhat.com>
608
609 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
610 a constant buffer; cannonicalize_file_name(); realpath() with a
611 pathconf() defined buffer, xstrdup().
612
9835a8b0
AC
6132002-11-12 Andrew Cagney <ac131313@redhat.com>
614
615 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
616 to hang2.C; hang3.c to hang3.C.
617
3f47be5c
EZ
6182002-11-11 Elena Zannoni <ezannoni@redhat.com>
619
620 * findvar.c (read_var_value): Reenable TLS code.
621
6222002-11-11 Elena Zannoni <ezannoni@redhat.com>
623 Jim Blandy <jimb@redhat.com>
624
625 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
626 * target.c (update_current_target): Add
627 to_get_thread_local_address.
628 * target.h (to_get_thread_local_address): Export.
629 (target_get_thread_local_address): Define.
630 (target_get_thread_local_address_p): Define.
631 * thread-db.c: Include solib-svr4.h.
632 (td_thr_tls_get_addr_p): Define.
633 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
634 (thread_db_get_thread_local_address): New function.
635 (init_thread_db_ops): Initialize to_get_thread_local_address.
636 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
637 * configure: Regenerate.
638 * config.in: Regenerate.
639
636b1a6d
DC
6402002-11-11 David Carlton <carlton@math.stanford.edu>
641
642 * linespec.c (set_flags): New function.
643 (decode_line_1): Move code into set_flags.
644
44fe14ab
DC
6452002-11-11 David Carlton <carlton@math.stanford.edu>
646
647 * linespec.c (decode_line_1): Move chunks of code to separate
648 functions.
649 (initialize_defaults): New function.
650 (decode_indirect): New function.
651
e6f181f5
AC
6522002-11-11 Andrew Cagney <ac131313@redhat.com>
653
8971b011
AC
654 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
655 instead of void_code_ptr.
656 (sigtramp_saved_pc): Ditto.
657
e6f181f5
AC
658 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
659 i386_fp_regnum_p.
660
01ad7f36
DJ
6612002-11-10 Daniel Jacobowitz <drow@mvista.com>
662
663 * gdbtypes.h (struct main_type): Move artificial flag out of
664 loc. New member of ``struct field'' named static_kind. Reduce
665 overloaded meaning of bitsize.
666 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
667 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
668 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
669
670 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
671 new fields.
672 (template_to_fixed_record_type, template_to_static_fixed_type)
673 (to_record_with_fixed_variant_part): Likewise.
674 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
675 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
676 * dwarfread.c (struct_type, enum_type): Likewise.
677 * hpread.c (hpread_read_enum_type)
678 (hpread_read_function_type, hpread_read_doc_function_type)
679 (hpread_read_struct_type): Likewise.
680 * mdebugread.c (parse_symbol): Likewise.
681
bf1e52be
AC
6822002-11-10 Andrew Cagney <ac131313@redhat.com>
683
684 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
685 * stack.c (print_frame_info_base): Update.
686 (print_frame_info_base, frame_info): Update.
687 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
688 (sparc_frame_saved_pc): Update.
689 * ada-lang.c (find_printable_frame): Update.
690 * breakpoint.c (deprecated_frame_in_dummy): Update.
691
ce556f85
MK
6922002-11-09 Mark Kettenis <kettenis@gnu.org>
693
694 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
695 defined.
696 (regmap): Extend to cover all registers.
697 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
698 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
699 definitions.
700 (fetch_register, sore_register): Simplify.
701 (old_fetch_inferior_registers, old_store_inferior_registers):
702 Remove functions.
703 (cannot_fetch_register, cannot_store_register): Change
704 implementation to use regmap array to decide which registers
705 cannot be fetched/stored. This removes $orig_eax from the
706 registers that cannot be fetched/stored.
707 (fetch_inferior_registers): Call fetch_register directly instead
708 of calling old_fetch_inferior_registers.
709 (store_inferior_registers): Call store_register directly instead
710 of calling old_store_inferior_registers.
711 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
712 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
713 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
714
932bb524
KD
7152002-11-09 Klee Dienes <kdienes@apple.com>
716
717 * i387-tdep.c (i387_supply_register): When called with NULL as a
718 buffer, mark the register as not provided (to mirror the behavior
719 of supply_register).
720 (i387_supply_fxsave): Ditto.
721 (i387_supply_fsave): Ditto (inherits the behavior from
722 i387_supply_register).
723
ebe68b27
KD
7242002-11-09 Klee Dienes <kdienes@apple.com>
725
726 * blockframe.c (sigtramp_saved_pc): Use
727 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
728 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
729 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
730
15220c65
AC
7312002-11-09 Andrew Cagney <ac131313@redhat.com>
732
733 * frame.c (get_prev_frame): Test prev_p to identify a previously
734 unwound frame. Initialize prev_p.
735 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
736 comment.
737
95adb866
AC
7382002-11-09 Andrew Cagney <ac131313@redhat.com>
739
740 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
741 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
742 more comments. Zap dead code.
743
e71ecd70
MK
7442002-11-09 Mark Kettenis <kettenis@gnu.org>
745
746 * infcmd.c (print_vector_info, print_float_info): Move code that
747 checks whether the target has any registers and whether there is a
748 selected frame up, such that it is also used if a target provides
749 multi-arch definitions of these functions.
750
c525330d
AC
7512002-11-08 Andrew Cagney <ac131313@redhat.com>
752
72bdd927
AC
753 * Makefile.in (DESTDIR): Define.
754 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
755 prefix.
756
c525330d
AC
757 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
758 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
759
38c968cf
AC
7602002-11-08 Andrew Cagney <ac131313@redhat.com>
761
762 * i386-linux-tdep.c: Include "reggroups.h".
763 (i386_linux_register_reggroup_p): New function.
764 (i386_linux_init_abi): Set register_reggroup_p to
765 i386_linux_register_reggroup_p.
766 * i386-tdep.h (i386_register_reggroup_p): Declare.
767 * i386-tdep.c: Include "reggroups.h".
768 (i386_init_reggroups): New function.
769 (i386_add_reggroups): New function.
770 (i386_register_reggroup_p): New function.
771 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
772 (_initialize_i386_tdep): Call i386_init_reggroups.
773 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
774 specific reggroups.
775
19e33363
MK
7762002-11-09 Mark Kettenis <kettenis@gnu.org>
777
371a6e84
MK
778 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
779 request that's available in *BSD.
780
94ba925a
MK
781 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
782
19e33363
MK
783 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
784 FDOFF_REGNUM.
785
8779790c
AC
7862002-11-08 Andrew Cagney <ac131313@redhat.com>
787
788 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
789 * dummy-frame.c (find_dummy_frame): Rename
790 generic_find_dummy_frame, make static. Return the dummy frame
791 instead of the regcache.
792 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
793 (cached_find_dummy_frame): New function. Use find_dummy_frame.
794 (dummy_frame_register_unwind): Rename
795 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
796 * dummy-frame.h (dummy_frame_register_unwind): Rename
797 generic_call_dummy_register_unwind.
798
8674b74f
MK
7992002-11-08 Mark Kettenis <kettenis@gnu.org>
800
801 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
802 except the inclusion of "i386/tm-i386.h", to...
803 * config/i386/nm-i386v42mp.h: ...here.
804 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
805
4c1e7e9d
AC
8062002-11-08 Andrew Cagney <ac131313@redhat.com>
807
808 * Makefile.in (frame.o): Update dependencies.
809 * blockframe.c (current_frame, frame_obstack_alloc)
810 (frame_saved_regs_zalloc, get_current_frame)
811 (set_current_frame, create_new_frame)
812 (set_unwind_by_pc, get_next_frame)
813 (flush_cached_frames, reinit_frame_cache)
814 (frame_saved_regs_register_unwind)
815 (deprecated_generic_get_saved_register)
816 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
817 (_initialize_blockframe): Move frame code from here...
818 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
819 "annotate.h" and "dummy-frame.h".
820 (_initialize_frame): New function.
821
921e78cf
JB
8222002-11-08 Jim Blandy <jimb@redhat.com>
823
824 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
825 when we finish a function a context.
826 * buildsym.h (outermost_context_p): New macro.
827 (Bug analyzed by David Edelsohn.)
828
9c1412c1
AC
8292002-11-08 Andrew Cagney <ac131313@redhat.com>
830
831 * blockframe.c: Include "dummy-frame.h".
832 (struct dummy_frame, dummy_frame_stack)
833 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
834 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
835 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
836 (generic_save_call_dummy_addr, generic_pop_current_frame)
837 (generic_pop_dummy_frame, generic_fix_call_dummy)
838 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
839 dummy frame code from here...
840 * dummy-frame.c: ...to here. New file.
841 * dummy-frame.h: New file.
842 (generic_call_dummy_register_unwind): Declare.
843 (generic_find_dummy_frame): Declare.
844 * Makefile.in (SFILES): Add dummy-frame.c.
845 (dummy-frame.o): Specify dependencies.
846 (dummy_frame_h): Define.
847 (COMMON_OBS): Add dummy-frame.o.
848 (blockframe.o): Update dependencies.
849
208d8187
JB
8502002-11-08 Jim Blandy <jimb@redhat.com>
851
852 * dwarf2read.c (read_func_scope): Restore local_symbols and
853 param_symbols after we finish the function context. (Based on a
854 patch from David Edelsohn.)
855
413dad4d
DC
8562002-11-08 David Carlton <carlton@math.stanford.edu>
857
858 * linespec.c (symbol_found): New function.
859 (minsym_found): New function.
860 (decode_line_1): Separate out some code into separate functions.
861
5512c44a
JB
8622002-11-08 Joel Brobecker <brobecker@gnat.com>
863
864 * i386-tdep.c (i386_frameless_signal_p): Make non static for
865 the benefit of the interix target.
866 * i386-tdep.h (i386_frameless_signal_p): Declare.
867
1b33ef47
AC
8682002-11-08 Andrew Cagney <ac131313@redhat.com>
869
870 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
871 declaration that snuck in from change below.
872
23a34459
AC
8732002-11-06 Andrew Cagney <cagney@redhat.com>
874
875 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
876 all callers.
877 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
878 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
879 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
880 (i386_mxcsr_regnum_p): new function. Use instead of
881 MXCSR_REGNUM_P.
882 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
883 (i386_sse_regnum_p): Declare.
884 (i386_mxcsr_regnum_p): Declare.
885 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
886 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
887 (IS_FP_REGNUM): Update definition.
888 (IS_FPU_CTRL_REGNUM): Update definition..
889 (IS_SSE_REGNUM): Update definition..
890 * i386v-nat.c (register_u_addr): Update.
891 * go32-nat.c (fetch_register): Update.
892 (store_register): Update.
893
d709c020
JB
8942002-11-07 Joel Brobecker <brobecker@gnat.com>
895
896 Preparation work to convert the hppa targets to multiarch partial.
897
898 * hppa-tdep.c: Add new functions replacing macro bodies from
899 config/pa/tm-hppa.h. These function will be used to initialize
900 the gdbarch structure. Import some comments from tm-hppa.h,
901 and place them where appropriate, to avoid loosing them when
902 we cleanup this file.
903 (hppa_reg_struct_has_addr): New function.
904 (hppa_inner_than): New function.
905 (hppa_stack_align): New function.
906 (hppa_pc_requires_run_before_use): New function.
907 (hppa_instruction_nullified): New function.
908 (hppa_register_byte): New function.
909 (hppa_register_virtual_type): New function.
910 (hppa_store_struct_return): New function.
911 (hppa_cannot_store_register): New function.
912 (hppa_frame_args_address): New function.
913 (hppa_frame_locals_address): New function.
914 (hppa_smash_text_address): New function.
915 (hppa_coerce_float_to_double): New function. Requires the inclusion
916 of "language.h".
917
918 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
919
920 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
921 gdbarch-eligible macro to a call to the new associated function
922 created in hppa-tdep.c.
923 (INNER_THAN): Likewise.
924 (STACK_ALIGN): Likewise.
925 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
926 (INSTRUCTION_NULLIFIED): Likewise.
927 (REGISTER_BYTE): Likewise.
928 (REGISTER_VIRTUAL_TYPE): Likewise.
929 (STORE_STRUCT_RETURN): Likewise.
930 (CANNOT_STORE_REGISTER): Likewise.
931 (FRAME_ARGS_ADDRESS): Likewise.
932 (FRAME_LOCALS_ADDRESS): Likewise.
933 (SMASH_TEXT_ADDRESS): Likewise.
934 (COERCE_FLOAT_TO_DOUBLE): Likewise.
935 (ABOUT_TO_RETURN): Delete, as no longer used.
936
83c31e7d
FN
9372002-11-07 Fernando Nasser <fnasser@redhat.com>
938
939 * printcmd.c (disassemble_command): Remove obsolete function.
940 (_initialize_printcmd): Do not create disassemble command here.
941 * cli/cli-cmds.c (disassemble_command): New function. Implements
942 disassemble command.
943 (init_cli_cmds): Create disassemble command here instead.
944
0ec30a36
AC
9452002-11-07 Andrew Cagney <ac131313@redhat.com>
946
947 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
948
e600bd34
AC
9492002-11-07 Andrew Cagney <ac131313@redhat.com>
950
951 * regcache.h (regcache_cooked_read_using_offset_hack)
952 (regcache_cooked_write_using_offset_hack): Delete declarations.
953 (register_changed): Delete declaration.
954 * regcache.c (regcache_cooked_read_using_offset_hack)
955 (regcache_cooked_write_using_offset_hack): Delete functions.
956 (cooked_xfer_using_offset_hack): Delete function.
957 (register_changed): Delete function.
958
568f8739
JB
9592002-11-07 Jim Blandy <jimb@redhat.com>
960
961 * macroscope.c: #include "complaints.h".
962 (sal_macro_scope): Cope with filenames that appear in the symtabs,
963 but not in the macro table.
964 * Makefile.in (macroscope.o): Record dependency.
965
b0718b7b
JB
9662002-11-07 Joel Brobecker <brobecker@gnat.com>
967
968 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
969
2b9e5f3f
AC
9702002-11-07 Andrew Cagney <ac131313@redhat.com>
971
972 * regcache.c (deprecated_registers_fetched): Update.
973 * regcache.h (deprecated_registers_fetched): Rename
974 registers_fetched.
975 * remote-vxsparc.c (vx_read_register): Update.
976 * remote-vxmips.c (vx_read_register): Update.
977 * remote-vx68.c (vx_read_register): Update.
978 * irix5-nat.c (fetch_core_registers): Update.
979 * mipsm3-nat.c (fetch_inferior_registers): Update.
980 * sun3-nat.c (fetch_inferior_registers): Update.
981 * symm-nat.c (fetch_inferior_registers): Update.
982 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
983 (fetch_core_registers): Update.
984 (fetch_kcore_registers): Update.
985 * mips-nat.c (fetch_inferior_registers): Update.
986 * corelow.c (get_core_registers): Update.
987 * a68v-nat.c (fetch_inferior_registers): Update.
988
e6e68f1f
JB
9892002-11-06 Joel Brobecker <brobecker@gnat.com>
990
991 Put in place the framework necessary for multiarching the hppa targets.
992 * hppa-tdep.c (hppa_gdbarch_init): New function.
993 (hppa_dump_tdep): New function.
994 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
995 tdep structure dumper.
996 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
997 until the multi-arching conversion has partially been completed.
998
492254e9
AC
9992002-11-06 Andrew Cagney <ac131313@redhat.com>
1000
1001 * valops.c (value_assign): Merge lval_register case into
1002 lval_reg_frame_relative. Use frame_register and
1003 regcache_cooked_write instead of get_saved_register and
1004 write_register_bytes. After flushing the register cache, try to
1005 re-select the selected frame.
1006
8262ee23
AC
10072002-11-06 Andrew Cagney <ac131313@redhat.com>
1008
1009 * regcache.h (deprecated_register_valid): Rename register_valid.
1010 * regcache.c: Update.
1011 * ia64-aix-nat.c: Update.
1012 * i386gnu-nat.c: Update.
1013 * alpha-nat.c: Update.
1014 * sparc-nat.c: Update.
1015 * lynx-nat.c: Update.
1016 * remote-mips.c: Update.
1017
4facf7e8
JB
10182002-11-06 Joel Brobecker <brobecker@gnat.com>
1019
1020 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1021 to end of file, to be more consistent with the pratice followed
1022 by other targets.
1023
f9418c0f
AC
10242002-11-06 Andrew Cagney <ac131313@redhat.com>
1025
1026 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1027 (print_float_info): Print registers in float_reggroup.
1028 (print_vector_info): Print registers in vector_reggroup.
1029 (default_print_registers_info): When all, print registers in
1030 all_reggroup. Otherwize, print registers in general_reggroup.
1031 (registers_info): Rewrite. Add support for register groups.
1032 Eliminate a goto.
1033
3fe235a7
EZ
10342002-11-06 Elena Zannoni <ezannoni@redhat.com>
1035
1036 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1037 ages.
1038 (symtab_symbol_info): Remove eons old ifdeffed out code.
1039 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1040 command.
1041
ef944135
TR
10422002-11-06 Theodore A. Roth <troth@openavr.org>
1043
1044 * c-exp.y: Add missing semi-colons.
1045 * f-exp.y: Add missing semi-colons.
1046 * m2-exp.y: Add missing semi-colons.
1047 * p-exp.y: Add missing semi-colons.
1048 Add empty action to start rule to avoid a type clash error when
1049 building with bison >= 1.50.
1050
f8302a57
JB
10512002-11-06 Jim Blandy <jimb@redhat.com>
1052
1053 * macrotab.h (struct macro_source_file): Doc fix.
1054
6e382aa3
JJ
10552002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1056
1057 * varobj.c (child_exists, cplus_number_of_children): Change
1058 STREQ macro references to strcmp.
1059 (cplus_name_of_child): Change code to handle the fact that
1060 fields are not necessarily contiguous with regards to their
1061 access control. This is a fix for PR gdb/792.
1062
a216a322
AC
10632002-11-05 Andrew Cagney <ac131313@redhat.com>
1064
1065 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1066 * gdbarch.h, gdbarch.c: Regnerate.
1067 * frame.h (frame_register): Declare.
1068 * frame.c (frame_register): New function.
1069 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1070 GET_SAVED_REGISTER, otherwize call
1071 generic_unwind_get_saved_register.
1072 (frame_register_read): Use frame_register instead of
1073 get_saved_register.
1074
7d5b6fdd
EZ
10752002-11-05 Elena Zannoni <ezannoni@redhat.com>
1076
1077 From Jim Ingham <jingham@apple.com>:
1078 * event-top.c (gdb_disable_readline): New function.
1079 (_initialize_event_loop): Move comment.
1080
b7c64260
EZ
10812002-11-05 Elena Zannoni <ezannoni@redhat.com>
1082
1083 * event-loop.c (start_event_loop): Add comment.
1084 Update copyright.
1085
c2e1b8f2
AC
10862002-11-05 Andrew Cagney <ac131313@redhat.com>
1087
1088 * infcmd.c (default_print_registers_info): Do not call
1089 PRINT_REGISTER_HOOK.
1090
87647bb0
AC
10912002-11-05 Andrew Cagney <ac131313@redhat.com>
1092
1093 * sparc-tdep.c (sparc_print_register_hook): Make static.
1094 (sparc_print_registers_info): New function.
1095 (sparc_do_registers_info): New function.
1096 (sparclet_print_registers_info): New function.
1097 (sparclet_do_registers_info): New function.
1098 (do_sparc_print_registers_info): New function.
1099 (sparc_print_registers): New static function, clone of infcmd.c's
1100 default_print_registers_info.
1101 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1102 (sparclet_do_registers_info): Declare.
1103 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1104 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1105 Re-define.
1106 (sparc_do_registers_info): Declare.
1107 (PRINT_REGISTER_HOOK): Delete macro.
1108 (sparc_print_register_hook): Delete declaration.
1109
8155455b
DC
11102002-11-05 David Carlton <carlton@math.stanford.edu>
1111
1112 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1113 functions.
1114 (lookup_symbol_aux_local): New function.
1115 (lookup_symbol_aux_symtabs): New function.
1116 (lookup_symbol_aux_psymtabs): New function.
1117
29924310
DC
11182002-11-05 David Carlton <carlton@math.stanford.edu>
1119
1120 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1121 previous values of 'objfile' and 'block'.
1122
cc303028
PM
11232002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1124
1125 * values.c (value_change_enclosing_type): Set
1126 enclosing_type field correctly also for the case where
1127 more memory needs to be allocated.
1128
1d70089a
MK
11292002-11-03 Mark Kettenis <kettenis@gnu.org>
1130
f16a25ae
MK
1131 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1132 of puts_filtered.
1133
1d70089a
MK
1134 * i387-tdep.c (i387_print_float_info): Replace calls to
1135 register_read and deprecated_read_register_gen with calls to
1136 frame_register_read, and make the necessary adjustments to the
1137 surrounding code.
1138
7e20f3fb
AC
11392002-11-02 Andrew Cagney <ac131313@redhat.com>
1140
1141 * gdbarch.sh (register_reggroup_p): Allow default value.
1142 * gdbarch.h, gdbarch.c: Regenerate.
1143
192dbe33
AC
11442002-11-02 Andrew Cagney <ac131313@redhat.com>
1145
1146 * regcache.h: Add coment indicating replacements for deprecated
1147 functions.
1148
b59ff9d5
AC
11492002-11-02 Andrew Cagney <cagney@redhat.com>
1150
1151 * reggroups.h, reggroups.c: New files.
1152 * regcache.c: Include "reggroups.h".
1153 (enum regcache_dump_what): Add `regcache_dump_groups'.
1154 (regcache_dump): Contract size of the "Type" column. When
1155 specified, dump the register's groups.
1156 (maintenance_print_register_groups): New function.
1157 (_initialize_regcache): Add command `maint print register-groups'.
1158 * Makefile.in (COMMON_OBS): Add reggroups.o
1159 (SFILES): Add reggroups.c.
1160 (reggroups_h): Define.
1161 (regcache.o, gdbarch.o): Update dependencies.
1162 (reggroups.o): Specify dependencies.
1163 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1164 Add opaque declaration for `struct reggroup' in generated .h file.
1165 Include "reggroups.h" in generated .c file.
1166 gdbarch.h, gdbarch.c: Re-generate.
1167
4caf0990
AC
11682002-11-02 Andrew Cagney <cagney@redhat.com>
1169
1170 * regcache.h (deprecated_read_register_gen): Rename
1171 read_register_gen.
1172 (deprecated_write_register_gen): Rename write_register_gen.
1173 * i387-tdep.c: Update.
1174 * x86-64-linux-nat.c: Update
1175 * wince.c: Update.
1176 * thread-db.c: Update.
1177 * win32-nat.c: Update.
1178 * mips-tdep.c: Update.
1179 * d10v-tdep.c: Update.
1180 * cris-tdep.c: Update.
1181 * remote-sim.c: Update.
1182 * remote-rdi.c: Update.
1183 * remote-rdp.c: Update.
1184 * frame.c: Update.
1185 * target.c: Update.
1186 * blockframe.c: Update.
1187 * x86-64-tdep.c: Update.
1188 * xstormy16-tdep.c: Update.
1189 * sh-tdep.c: Update.
1190 * s390-tdep.c: Update.
1191 * rs6000-tdep.c: Update.
1192 * sparc-tdep.c: Update.
1193 * i386-tdep.c: Update.
1194 * dwarf2cfi.c: Update.
1195 * regcache.c: Update.
1196
7a7adcdf
JB
11972002-11-01 Joel Brobecker <brobecker@gnat.com>
1198
1199 New interix-specific files:
1200 * config/i386/nm-interix.h: New file.
1201 * config/i386/interix.mh: New file.
1202 * config/i386/interix.mt: New file.
1203 * i386-interix-nat.c: New file.
1204 * i386-interix-tdep.c: New file.
1205
bdcdd535
AC
12062002-11-01 Andrew Cagney <cagney@redhat.com>
1207
1208 * frame.h (deprecated_generic_get_saved_register): Rename
1209 generic_get_saved_register.
1210 * blockframe.c (deprecated_generic_get_saved_register): Update.
1211 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1212 (xstormy16_frame_saved_register): Update.
1213 * sh-tdep.c (sh_gdbarch_init): Update.
1214 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1215 * ia64-tdep.c (ia64_get_saved_register): Update.
1216 * cris-tdep.c (cris_gdbarch_init): Update.
1217 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1218 * arm-tdep.c (arm_gdbarch_init): Update.
1219
2a4b7c45
DJ
12202002-10-31 Daniel Jacobowitz <drow@mvista.com>
1221
1222 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1223
ef17e74b
DJ
12242002-10-31 Daniel Jacobowitz <drow@mvista.com>
1225
1226 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1227 trampolines in sigaction.
1228
4904ba5b
AC
12292002-10-31 Andrew Cagney <cagney@redhat.com>
1230
1231 * h8300-tdep.c: Include "gdb_assert.h".
1232 (h8300_print_register): Add gdbarch, file and frame parameters.
1233 Use frame_read_unsigned_register to read the register's value.
1234 Use fprintf_filtered to display output.
1235 (h8300_print_registers_info): Replace h8300_do_registers_info.
1236 (h8300_gdbarch_init): Set print_registers_info.
1237
f908a0eb
AC
12382002-10-31 Andrew Cagney <cagney@redhat.com>
1239
1240 * frame.c (frame_read_unsigned_register): New function.
1241 (frame_read_signed_register): New function.
1242 * frame.h (frame_read_unsigned_register): Declare.
1243 (frame_read_signed_register): Declare.
1244
c5646e11
AC
12452002-10-31 Andrew Cagney <cagney@redhat.com>
1246
1247 * h8500-tdep.c (h8500_print_registers_info): New static function,
1248 clone of infcmd.c's default_print_registers_info.
1249 (h8500_do_registers_info): New funtion.
1250 (h8500_print_register_hook): Rename print_register_hook, make
1251 static.
1252
1253 * config/h8500/tm-h8500.h: Update copyright.
1254 (DEPRECATED_DO_REGISTERS_INFO): Define.
1255 (h8500_do_registers_info: Declare.
1256 (PRINT_REGISTER_HOOK): Delete macro.
1257 (print_register_hook): Delete function.
1258
0bdd672b
AC
12592002-10-31 Andrew Cagney <cagney@redhat.com>
1260
1261 * z8k-tdep.c (z8k_print_register_hook): Make static.
1262 (z8k_print_registers_info): New static function, clone of
1263 infcmd.c's default_print_registers_info.
1264 (z8k_do_registers_info): New function. Wrap
1265 z8k_print_registers_info.
1266 * config/z8k/tm-z8k.h: Update copyright.
1267 (PRINT_REGISTER_HOOK): Delete macro.
1268 (z8k_print_register_hook): Delete declaration.
1269 (DEPRECATED_DO_REGISTERS_INFO): Define.
1270 (z8k_do_registers_info): Declare.
1271
bf9c25dc
JB
12722002-10-30 Joel Brobecker <brobecker@gnat.com>
1273
1274 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1275 as this is already provided by value.h, and was actually causing
1276 a compilation error because of a conflict in parameter type
1277 declaration due to a missing const keyword.
1278 (low_text_segment_addres): Fix a compilation warning.
1279
2c665b51
DJ
12802002-10-29 Daniel Jacobowitz <drow@mvista.com>
1281
1282 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1283 registers without a name.
1284 (mips_linux_cannot_store_register): Don't store registers without
1285 a name.
1286
e70ea697
DC
12872002-10-28 David Carlton <carlton@math.stanford.edu>
1288
1289 * symtab.c (find_addr_symbol): Delete. (It was already commented
1290 out.)
1291 * symtab.h: Delete prototype for find_addr_symbol.
1292
903ad3a6
AC
12932002-10-26 Andrew Cagney <cagney@redhat.com>
1294
1295 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1296 DO_REGISTERS_INFO.
1297 gdbarch.h, gdbarch.c: Re-generate.
1298 * infcmd.c (default_print_registers_info): Update reference.
1299 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1300 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1301 * sh-tdep.c (sh_gdbarch_init): Ditto.
1302 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1303 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1304
ab91194c
MK
13052002-10-26 Mark Kettenis <kettenis@gnu.org>
1306
e3033f15
MK
1307 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1308 cfi_init_extra_frame_info.
1309 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1310 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1311
b83b026c
MK
1312 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1313 target where necessary. Add more comments and remove the ones
1314 that don't provide any useful information.
1315
267bf4bb
MK
1316 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1317 deprecated_read_register_dummy with
1318 frame_unwind_unsigned_register.
1319
751f1375
MK
1320 * i386-tdep.c (i386_extract_struct_value_address): Use
1321 regcache_raw_read_unsigned instead of
1322 regcache_cooked_read_unsigned since we know that the register
1323 we're reading isn't a pseudo register. Rename variable 'val' into
1324 the more descriptive 'addr'.
1325
26abbdc4
MK
1326 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1327 (x86_64_push_return_address): Add comment.
1328 (x86_64_pop_frame): Make static.
1329 (examine_argument): Clarify comment.
1330 (x86_64_skip_prologue): Make prolog_expact variable static.
1331
9f1549cc
MK
1332 * dwarf2cfi.c: Fix some formatting problems.
1333 (context_cpy, read_encoded_pointer): Clarify comments.
1334
ab91194c
MK
1335 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1336 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1337 i386 target back into x86_64_gdbarch_init. Add some comments and
1338 remove meaningless ones.
1339
72367fb4
AC
13402002-10-25 Andrew Cagney <cagney@redhat.com>
1341
1342 * complaints.h (struct deprecated_complaint): Rename `struct
1343 complaint'.
1344 * complaints.c (complain): Update.
1345 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1346 incorrect comment indicating that "symfile.h" was being included
1347 for the `struct complaint' definition.
1348 * remote-vx.c: Update.
1349 * objc-lang.c: Update.
1350 * xcoffread.c: Update.
1351 * hpread.c: Update.
1352 * mdebugread.c: Update.
1353 * stabsread.c: Update.
1354 * dwarf2read.c: Update.
1355 * dwarfread.c: Update.
1356 * elfread.c: Update.
1357 * coffread.c: Update.
1358 * stabsread.h: Update.
1359 * dbxread.c: Update.
1360 * buildsym.c: Update.
1361 * gdbtypes.c: Update.
1362 * macrotab.c: Update.
1363
1f2baacc
MK
13642002-10-25 Mark Kettenis <kettenis@gnu.org>
1365
0c1a73d6
MK
1366 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1367 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1368 (x86_64_init_abi): ...new function.
1369
6aee4d54 1370 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1371 * i386v-nat.c: Include "i386-tdep.h".
1372
8f9cbe01
AC
13732002-10-25 Andrew Cagney <cagney@redhat.com>
1374
5f11f355
AC
1375 * gdbtypes.c (address_space_name_to_int): Update.
1376 (address_space_int_to_name): Update.
1377 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1378 multi-arch predicate.
1379 (address_class_name_to_type_flags): Ditto.
1380 * gdbarch.h, gdbarch.c: Re-generate.
1381
8f9cbe01
AC
1382 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1383
e8d96a5d
MH
13842002-10-24 Martin M. Hunt <hunt@redhat.com>
1385
1386 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1387
fe39c653
EZ
13882002-10-24 Elena Zannoni <ezannoni@redhat.com>
1389
1390 * symtab.h (INIT_SAL): Delete macro.
1391 (init_sal): Export.
1392 * symtab.c (init_sal): New function.
1393
1394 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1395 to init_sal function call.
1396 (find_sal_from_funcs_and_line): Ditto.
1397 (all_sals_for_line): Ditto.
1398 * breakpoint.c (create_internal_breakpoint): Ditto.
1399 (create_fork_vfork_event_catchpoint): Ditto.
1400 (create_exec_event_catchpoint): Ditto.
1401 (parse_breakpoint_sals): Ditto.
1402 (watch_command_1): Ditto.
1403 (handle_gnu_4_16_catch_command): Ditto.
1404 (clear_command): Ditto.
1405 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1406 * infcmd.c (run_stack_dummy): Ditto.
1407 * infrun.c (process_event_stop_test): Ditto.
1408 (check_sigtramp2): Ditto.
1409 (step_over_function): Ditto.
1410 * linespec.c (decode_line_2): Ditto.
1411 (decode_line_1): Ditto.
1412 * source.c (line_info): Ditto.
1413 * symtab.c (find_pc_sect_line): Ditto.
1414
baed091b
ML
14152002-10-24 Michal Ludvig <mludvig@suse.cz>
1416
1417 * dwarf2cfi.c (struct context)
1418 (struct context_reg): Moved to dwarf2cfi.h
1419 (context_alloc, frame_state_alloc, context_cpy):
1420 Made extern instead of static, removed prototypes.
1421 * dwarf2cfi.h (struct context)
1422 (struct context_reg): New, moved from dwarf2cfi.c
1423 (context_alloc, frame_state_alloc, context_cpy):
1424 New prototypes.
1425 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1426 Changed from static to extern.
1427 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1428 (LINUX_SIGCONTEXT_FP_OFFSET)
1429 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1430 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1431 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1432 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1433 set_gdbarch_*() calls now use x86-64 specific functions
1434 instead of DWARF2 CFI ones.
1435 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1436 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1437 (x86_64_init_extra_frame_info): New prototypes.
1438
c38da1af
DC
14392002-10-23 David Carlton <carlton@math.stanford.edu>
1440
1441 * linespec.c: #include "parser-defs.h".
1442 Delete prototype for find_template_name_end.
1443 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1444
fb9b6b35
JJ
14452002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1446
1447 * NEWS: add recent mi fixes.
1448 * varobj.c (struct varobj): Add new "updated" flag.
1449 (new_variable): Default "updated" flag to 0.
1450 (varobj_set_value): Set "updated" flag to 1 if value
1451 changes.
1452 (varobj_update): Check varobj "updated" flag before
1453 comparing old and refreshed values. Fix for
1454 PR gdb/702.
1455
8da065d5
DC
14562002-10-23 David Carlton <carlton@math.stanford.edu>
1457
1458 * parse.c (parse_exp_1): Use BLOCK_START.
1459 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1460 SYMBOL_BLOCK_VALUE.
1461 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1462
87f2f08c
DC
14632002-10-23 David Carlton <carlton@math.stanford.edu>
1464
1465 * symtab.c: Delete cplusplus_hint.
1466 Delete prototype for find_template_name_end.
1467
88cda038
EZ
14682002-10-23 Elena Zannoni <ezannoni@redhat.com>
1469
1470 * symtab.h: Update comment.
1471
2625d86c
MS
14722002-10-23 Michael Snyder <msnyder@redhat.com>
1473
1474 * printcmd.c (address_info): Restore quotes in output.
1475 * valops.c (value_of_local): Restore quotes in error message.
1476
9cc0d196
EZ
14772002-10-23 Elena Zannoni <ezannoni@redhat.com>
1478
1479 * symtab.c (symbol_demangled_name): New function.
1480 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1481 turning most of it into a function.
1482 (symbol_demangled_name): Export.
1483
19de93d0
MS
14842002-10-23 Michael Snyder <msnyder@redhat.com>
1485
1486 * valops.c (value_of_local): Restore quotes in error message.
1487
89aad1f9
EZ
14882002-10-23 Elena Zannoni <ezannoni@redhat.com>
1489
1490 * symtab.c (symbol_init_language_specific): New function.
1491 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1492 turning most of it into a function.
1493 (symbol_init_language_specific): Export.
1494
d9fa45fe
DC
14952002-10-23 David Carlton <carlton@math.stanford.edu>
1496
1497 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1498 (dwarf_attr_name): Ditto.
1499 (dwarf_type_encoding_name): Ditto.
1500 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1501 (process_die): Handle DW_TAG_namespace,
1502 DW_TAG_imported_declaration, DW_TAG_imported_module.
1503 (read_namespace): New function.
1504
1045b512
JB
15052002-10-22 Joel Brobecker <brobecker@gnat.com>
1506
1507 * configure.in: Define NEW_PROC_API on Interix too.
1508 * configure: Regenerate.
1509
15102002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1511
1512 * configure: Regenerate using the proper version of autoconf.
1513
3987b9d4
EZ
15142002-10-21 Elena Zannoni <ezannoni@redhat.com>
1515
1516 * findvar.c (read_var_value): Temporarily disable TLS code, until
1517 complete TLS support is added.
1518
9d774e44
EZ
15192002-10-21 Jim Blandy <jimb@redhat.com>
1520 Elena Zannoni <ezannoni@redhat.com>
1521
1522 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1523 for thread local storage locations.
1524 (struct symbol): Add objfile field.
1525 (SYMBOL_OBJFILE): Define.
1526 * dwarf2read.c (is_thread_local): New static variable.
1527 (new_symbol): If variable is in thread local fill in address class
1528 and objfile appropriately.
1529 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1530 stack operation.
1531 * printcmd.c (address_info): Print the information for thread
1532 local storage variable.
1533 * findvar.c (read_var_value): In case of thread local variable,
1534 defer to the target vector code to compute address.
1535
bc4a16ae
EZ
15362002-10-21 Elena Zannoni <ezannoni@redhat.com>
1537
1538 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1539 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1540
407caf07
EZ
15412002-10-21 Elena Zannoni <ezannoni@redhat.com>
1542
1543 * symtab.h (address_class): Rename
1544 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1545 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1546 * printcmd.c (address_info): Ditto.
1547 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1548
005328e3
MK
15492002-10-20 Mark Kettenis <kettenis@gnu.org>
1550
afdb036a
MK
1551 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1552 DBREG_DRX macro to acces debug registers.
1553
ca02e098
MK
1554 * Makefile.in (i386obsd-tdep.o): New target.
1555
03cc47f7
MK
1556 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1557 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1558
005328e3
MK
1559 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1560 * config/i386/obsd.mt: New file.
1561 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1562 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1563 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1564 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1565 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1566 * i386obsd-tdep.c: New file.
1567
9c96f9f2
AF
15682002-10-19 Adam Fedor <fedor@gnu.org>
1569
1570 * objc-exp.y (name_not_typename): Fix invalid comment.
1571
ce1ed485
MK
15722002-10-20 Mark Kettenis <kettenis@gnu.org>
1573
1574 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1575 to allocate partial syms and macro byte caches.
1576
1efc7aaa
DC
15772002-10-18 David Carlton <carlton@math.stanford.edu>
1578
1579 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1580
7e1d63ec
AF
15812002-10-18 Adam Fedor <fedor@gnu.org>
1582
1583 * stabsread.c (find_name_end): New function.
1584 (define_symbol): Use it.
1585
6e8d29a9
DJ
15862002-10-18 Daniel Jacobowitz <drow@mvista.com>
1587
1588 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1589 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1590 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1591 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1592
1efc7aaa 15932002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1594
1595 * symfile.h: Add opaque declaration for struct obstack.
1596 Declare obsavestring to take a const char *.
1597 * symfile.c (obsavestring): Make first argument a const char *.
1598
1aeae86e
AF
15992002-10-16 Adam Fedor <fedor@gnu.org>
1600
1601 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1602 names when matching breakpoints in current file.
1603
8b2dbe47
KB
16042002-10-16 Kevin Buettner <kevinb@redhat.com>
1605
1606 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1607 (read_tag_pointer_type): Add address class support.
1608 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1609 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1610 New methods.
1611 * gdbarch.h, gdbarch.c: Regenerate.
1612 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1613 (make_type_with_address_space, recursive_type_dump): Add address
1614 class support.
1615 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1616 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1617 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1618
74451869
KD
16192002-10-16 Klee Dienes <kdienes@apple.com>
1620
1621 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1622 to get the last character of a char[] buffer, not
1623 name[sizeof(vptr_name)-1].
1624
ff4cb3e8
AF
16252002-10-14 Adam Fedor <fedor@gnu.org>
1626
1627 * symtab.h: New objc_specific struct.
1628 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1629 (SYMBOL_DEMANGLED_NAME): Likewise.
1630
da2cf7e0
AF
16312002-10-14 Adam Fedor <fedor@gnu.org>
1632
1633 * symfile.c (init_filename_language_table): Add ObjC file extension.
1634
4a351cef
AF
16352002-10-14 Adam Fedor <fedor@gnu.org>
1636
1637 * utils.c (puts_filtered_tabular): New function.
1638 (fprintf_symbol_filtered): Get ObjC demangled name.
1639 * defs.h (puts_filtered_tabular): Declared.
1640
9750e763
KB
16412002-10-14 Kevin Buettner <kevinb@redhat.com>
1642
1643 * c-lang.h (c_type_print_varspec_prefix): Delete.
1644 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1645 ``need_post_space'' parameter. Adjust all callers.
1646
eee771c1
DJ
16472002-10-14 Daniel Jacobowitz <drow@mvista.com>
1648
1649 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1650 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1651 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1652 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1653
46c82446
AF
16542002-10-13 Adam Fedor <fedor@gnu.org>
1655
1656 * source.c (print_source_lines): Update comments.
1657
d069f99d
AF
16582002-10-13 Adam Fedor <fedor@gnu.org>
1659
1660 * valops.c (value_of_local): New function.
1661 (value_of_this): Use it.
1662 * value.h (value_of_local): Declared.
1663
53c551b7
AF
16642002-10-13 Adam Fedor <fedor@gnu.org>
1665
1666 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1667 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1668
eb392fbf
AF
16692002-10-12 Adam Fedor <fedor@gnu.org>
1670
1671 * language.c (binop_result_type): Add language_objc to case.
1672 (integral_type): Likewise.
1673 (character_type): Likewise.
1674 (string_type): Likewise.
1675 (boolean_type): Likewise.
1676 (structured_type): Likewise.
1677 (binop_type_check): Likewise.
1678
e2b23ee9
AF
16792002-10-11 Adam Fedor <fedor@gnu.org>
1680
1681 * printcmd.c (address_info): Print 'self' for ObjC.
1682
b01ab485
AF
16832002-10-11 Adam Fedor <fedor@gnu.org>
1684
1685 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1686 OP_SELF.
1687
806e6073
AF
16882002-10-11 Adam Fedor <fedor@gnu.org>
1689
1690 * language.h (CAST_IS_CONVERSION): Add language_objc.
1691
50f85cdf
AF
16922002-10-11 Adam Fedor <fedor@gnu.org>
1693
1694 * defs.h (enum language): Add language_objc.
1695
0d540cdf
KD
16962002-10-11 Klee Dienes <kdienes@apple.com>
1697
69266111 1698 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1699 * gdbcore.h (read_memory_typed_address): Add prototype.
1700 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1701 to read a value destined for a CORE_ADDR, not read_memory_integer.
1702 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1703 (f77_get_dynamic_lowerbound): Ditto.
1704
d5dc7960
MH
17052002-10-11 Martin M. Hunt <hunt@redhat.com>
1706
1707 * utils.c (string_to_core_addr): After turning string into
1708 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1709 which will do necessary sign-extension, etc.
1710
8343f86c
DJ
17112002-10-11 Daniel Jacobowitz <drow@mvista.com>
1712
1713 * c-exp.y (THIS): Delete token and grammar rule.
1714 (yylex): Don't return THIS.
1715 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1716 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1717 * demangle.c (cplus_markers): Update comment. Put '$'
1718 first. Remove CPLUS_MARKER.
1719 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1720 * jv-exp.y (THIS): Delete token and grammar rule.
1721 (yylex): Don't return THIS.
1722 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1723 * objc-exp.y (THIS): Delete token and grammar rule.
1724 (yylex): Don't return THIS.
1725 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1726 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1727 (read_member_functions): Likewise for opname.
1728 (read_tilde_fields): Use is_cplus_marker.
1729
1730 * defs.h (CPLUS_MARKER): Don't define.
1731 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1732 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1733 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1734 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1735 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1736
1737 * config/i386/tm-i386v4.h: Delete file.
1738 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1739 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1740 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1741 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1742 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1743 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1744 * config/i386/i386v4.mt (TM_FILE): Likewise.
1745 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1746
967c0d83
MM
17472002-10-10 Marko Mlinar <markom@opencores.org>
1748
1749 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1750 accidentially not commited 2002-10-09
1751 * gdbarch.h, gdbarch.c: Re-generate.
1752
f74fa174
MM
17532002-10-09 Marko Mlinar <markom@opencores.org>
1754
1755 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1756 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1757 * gdbarch.h, gdbarch.c: Re-generate.
1758
57349743
JB
17592002-10-08 Petr Sorfa <petrs@caldera.com>
1760
1761 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1762
1763 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1764 so we can work on more than one compilation unit at a time. This
1765 helps prepare GDB to handle inter-CU die references.
1766 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1767 the code to be defined before struct comp_unit_head.
1768 (comp_unit_head): Added new members - offset, cu_head,
1769 begin_die, next and dwarf2_abbrevs.
1770 (dwarf2_abbrevs): Removed single static var; now member of
1771 struct comp_unit_head.
1772 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1773 members.
1774 (psymtab_to_symtab_1): Changed to work with the new
1775 struct comp_unit_head.
1776 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1777 constructs the dwarf2_abbrevs[] inside the cu_header.
1778 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1779 dwarf2_abbrev table to clean up.
1780 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1781 handling of dwarf2_abbrevs inside the cu_header.
1782 (read_partial_die): Now supports the call to the new
1783 dwarf2_lookup_abbrev.
1784 (read_full_die): Now supports the call to the new
1785 dwarf2_lookup_abbrev.
1786
4092aadb
CF
17872002-10-06 Christopher Faylor <cgf@redhat.com>
1788
1789 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1790 insure that shell variables, such as "transformed_name" are propagated
1791 to later shell statements in rule.
1792
af0b2512
MK
17932002-10-06 Mark Kettenis <kettenis@gnu.org>
1794
1795 * config/i386/nm-i386sco.h: Add protection against
1796 multiple-inclusion. Include "i386/nm-i386v.h".
1797 (REGISTER_U_ADDR): Remove define.
1798 (i386_register_u_addr): Remove prototype.
1799
d6020d45
MS
18002002-10-04 Michael Snyder <msnyder@redhat.com>
1801
1802 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1803 before treating it as a single-step event.
1804
7248f48e
AF
18052002-10-03 Adam Fedor <fedor@gnu.org>
1806
1807 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1808 (objc_demangle): Remove assignment in if statements, Replace
1809 free with xfree.
1810 (add_msglist): Likewise.
1811 (end_msglist): Likewise.
1812 (complare_selectors): Likewise.
1813 (selectors_info): Likewise.
1814 (compare_classes): Likewise.
1815 (classes_info): Likewise.
1816 (print_object_command): Likewise.
1817 (find_objc_msgcall_submethod): Replace PTR with void *.
1818 * objc-lang.h: Remove check for __STDC__.
1819
52c6a6ac
JJ
18202002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1821
1822 * ui-out.h (ui_out_field_fmt_int): New prototype.
1823 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1824 of field width and alignment.
1825 * stack.c (print_frame_info_base): When printing frame level, use
1826 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1827 PR gdb/192
1828
7e3cec17
JJ
18292002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1830
1831 * MAINTAINERS: Add self to Write After Approval list.
1832
a58dd373
EZ
18332002-10-02 Elena Zannoni <ezannoni@redhat.com>
1834
1835 * infcmd.c (interrupt_target_command_wrapper): Delete.
1836 (interrupt_target_command): Make non static.
1837 (nofp_registers_info): Make static.
1838 * stack.c (return_command_wrapper): Delete.
1839 (return_command): Make non static.
1840
cee6ddeb
EZ
18412002-10-02 Elena Zannoni <ezannoni@redhat.com>
1842
1843 * event-top.c (gdb_setup_readline): New function. Code moved from
1844 _initialize_event_loop().
1845 (_initialize_event_loop): Call gdb_setup_readline().
1846
c4ed33b9
AC
18472002-10-02 Andrew Cagney <ac131313@redhat.com>
1848
1849 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1850 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1851 * gdbarch.h, gdbarch.c: Re-generate.
1852
cef4f5dd
DJ
18532002-10-02 Daniel Jacobowitz <drow@mvista.com>
1854
1855 Fix PR gdb/778
1856 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1857 before recursing.
1858 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1859 of fill_in_vptr_fieldno.
1860
36dc181b 18612002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 1862
36dc181b
EZ
1863 * inferior.h (registers_info, stepi_command, nexti_command,
1864 continue_command, interrupt_target_command): Export from infcmd.c.
1865 * frame.h (args_info, selected_frame_level_changed_hook,
1866 return_command): Export from stack.c.
1867 * v850ice.c (stepi_command, nexti_command, continue_command): use
1868 prototypes from inferior.h.
1869 * tracepoint.c (registers_info, args_info, locals_info): Use
1870 prototypes from frame.h and inferior.h.
1871 * Makefile.in (mi-main.o): Add dependency on frame.h.
1872
6f99cb26
AC
18732002-10-02 Andrew Cagney <ac131313@redhat.com>
1874
da3eff49
AC
1875 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1876 value in register 3 adjusted by ppc_gp0_regnum.
1877
6f99cb26
AC
1878 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1879
da615bee
MM
18802002-10-02 Marko Mlinar <markom@opencores.org>
1881
1882 * MAINTAINERS: Add myself to the Write After Approval list.
1883
d154bee2
AO
18842002-10-01 Alexandre Oliva <aoliva@redhat.com>
1885
62a49b2c
AO
1886 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1887 of the section for the N64 ABI, fixed.
1888
d154bee2
AO
1889 * config/mips/tm-irix6.h: Include solib.h.
1890
ed348acc
EZ
18912002-10-01 Elena Zannoni <ezannoni@redhat.com>
1892
1893 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1894 GNU operators.
1895
da0f9dcd
AC
18962002-10-01 Andrew Cagney <ac131313@redhat.com>
1897
1898 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1899 and that "mi0" syntax has been removed.
1900
bdf64bac
DC
19012002-09-30 David Carlton <carlton@math.stanford.edu>
1902
1903 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1904 * ppc-sysv-tdep.c: #include "gdb_string.h".
1905 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1906 pacify GCC.
1907
54c2a1e6
AC
19082002-10-01 Andrew Cagney <ac131313@redhat.com>
1909
1910 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1911 "vrsave"'s register number.
1912
cedea778
AC
19132002-09-30 Andrew Cagney <ac131313@redhat.com>
1914
1915 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1916 use frame_unwind_signed_register to obtain the PC.
1917 (mips_frame_chain): Handle a generic dummy frame.
1918 (mips_init_extra_frame_info): When a generic dummy frame, don't
1919 re-compute the frame base.
1920 (mips_pop_frame): Handle generic dummy frames.
1921 (mips_gdbarch_init): When generic dummy frames, set
1922 use_generic_dummy_frames, push_dummy_frame to
1923 generic_push_dummy_frame, pc_in_call_dummy to
1924 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1925 generic_save_dummy_frame_tos.
1926
68315eb8
AC
19272002-09-30 Andrew Cagney <ac131313@redhat.com>
1928
1929 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1930 against TOP when TOP was explictly set.
1931 (generic_push_dummy_frame): Set TOP to zero.
1932
3b8630c3
EZ
19332002-09-30 Elena Zannoni <ezannoni@redhat.com>
1934
1935 * event-loop.c (start_event_loop): Rename variable 'result' to
1936 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1937
28ee05e9
KS
19382002-09-30 Keith Seitz <keiths@redhat.com>
1939
1940 * gdb-events.sh (selected_thread_changed): New event.
1941 * gdb-events.c: Regenerated.
1942 * gdb-events.h: Regenerated.
1943
6eecb1c8
HPN
19442002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1945
1946 * MAINTAINERS: Add self to Write After Approval list.
1947
92df71f0
FN
19482002-09-30 Fernando Nasser <fnasser@redhat.com>
1949
3b8630c3
EZ
1950 * disasm.c: New file.
1951 * disasm.h: New file.
92df71f0
FN
1952 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1953 (compare_lines): Ditto.
1954 (dump_insns): Ditto.
3b8630c3
EZ
1955 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1956 argument.
92df71f0 1957 (do_assembly_only): Ditto.
3b8630c3
EZ
1958 (do_disassembly): Renamed to gdb_disassembly and moved to
1959 disasm.c. Sdded uiout argument.
1960 * Makefile.in: Add new files. Reorder SFILES list. Update
1961 dependencies. Include libgdb.a later in the insight executable.
92df71f0 1962
0c22854d
AC
19632002-09-29 Andrew Cagney <ac131313@redhat.com>
1964
1965 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1966 bfd/elf64-alpha-fbsd.c.
1967
e67f2023
AC
19682002-09-29 Andrew Cagney <ac131313@redhat.com>
1969
1970 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1971 i386gnu-tdep.c.
1972
89396210
AC
19732002-09-29 Andrew Cagney <ac131313@redhat.com>
1974
1975 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1976 __FUNCTION__.
1977 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1978 function name.
1979 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1980 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1981 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1982 (S_msg_sig_post_reply): Ditto.
1983
7079c36c
CV
19842002-09-28 Corinna Vinschen <vinschen@redhat.com>
1985
89396210
AC
1986 * sh-tdep.c (sh_use_struct_convention): Use definition according
1987 to ABI.
7079c36c
CV
1988 (sh_push_arguments): Store in register with correct endianess.
1989 (sh_default_store_return_value): Ditto.
1990 (sh_gdbarch_init): Set sizeof long double to 8.
1991
975ac915
MK
19922002-09-27 Mark Kettenis <kettenis@gnu.org>
1993
1994 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1995 Fix some whitespace problems.
1996
9bbe19fb
DC
19972002-09-27 David Carlton <carlton@math.stanford.edu>
1998
1999 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2000 (mcore-tdep.o): Ditto.
2001 (ns32k-tdep.o): Ditto.
2002 (ns32knbsd-tdep.o): Ditto.
2003 (sh3-rom.o): Ditto.
2004 (vax-tdep.o): Ditto.
2005 * cris-tdep.c: #include "gdb_string.h"
2006 * mcore-tdep.c: Ditto.
2007 * ns32k-tdep.c: Ditto.
2008 * ns32knbsd-tdep.c: Ditto.
2009 * sh3-rom.c: Ditto.
2010 * vax-tdep.c: Ditto.
2011
43b2fdc7
DC
20122002-09-27 David Carlton <carlton@math.stanford.edu>
2013
2014 * config/djgpp/fnchange.lst: Add entries for
2015 gdb/testsuite/gdb.c++/m-static files.
2016
e8cfbbd9
JW
20172002-09-27 Jim Wilson <wilson@redhat.com>
2018
2019 * MAINTAINERS: Add myself to the Write After Approval list.
2020
43b2fdc7 20212002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2022
2023 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2024
2025
9f3b7f07
AC
20262002-09-26 Andrew Cagney <ac131313@redhat.com>
2027
2028 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2029 frame.
2030
11269d7e
AC
20312002-09-26 Andrew Cagney <ac131313@redhat.com>
2032
2033 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2034 (rs6000_struct_return_address): Delete variable.
2035 (rs6000_store_struct_return): Update.
2036 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2037 deprecated_extract_struct_value_address.
2038 (rs6000_frame_align): New function.
2039 (rs6000_gdbarch_init): Set frame_align.
2040
f15ab4a7
AC
20412002-09-26 Andrew Cagney <ac131313@redhat.com>
2042
2043 From Grace Sainsbury <graces@redhat.com>:
2044 * Makefile.in (gdbtk-main.o): New target.
2045 (gdb.o): New target.
2046 (main_h): Define.
2047 (main.o): Update dependencies.
2048 (gdb$(EXEEXT)): Add gdb.o.
2049 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2050 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2051 (SUBDIR_GDBTK_CLEAN): Set.
2052 (install-gdbtk): Install the insight binary.
2053 (uninstall-gdbtk): New target.
2054 (all-gdbtk, clean-gdbtk): New rule.
2055 * top.c (use_windows): Default to zero.
2056 * main.c: Include "main.h".
2057 (main): Delete.
2058 (struct captured_main_args): Delete.
2059 (gdb_main): New function.
2060 * main.h: New file.
2061 * gdb.c: New File.
2062
e36180d7
AC
20632002-09-25 Andrew Cagney <cagney@redhat.com>
2064
2065 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2066 (frame_map_regnum_to_name): New function.
2067 (frame_map_name_to_regnum): New function.
2068 * frame.h (frame_map_name_to_regnum): Declare.
2069 (frame_map_regnum_to_name): Declare.
2070 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2071 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2072 * parse.c: Do not include "builtin-regs.h".
2073 (target_map_name_to_register): Delete function.
2074 (write_dollar_variable): Use frame_map_name_to_regnum.
2075 * parser-defs.h (target_map_name_to_register): Delete declaration.
2076 * expprint.c: Include "frame.h".
2077 (print_subexp): Use frame_map_regnum_to_name.
2078 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2079 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2080
8b69000d
AC
20812002-09-25 Andrew Cagney <ac131313@redhat.com>
2082
2083 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2084 wasn't saved, and the next innermost frame is a dummy, return the
2085 dummy frame's link register.
2086
046ca86a
JB
20872002-09-24 Jim Blandy <jimb@redhat.com>
2088
2089 Fix from Paul Breed:
2090 * main.c (captured_main): Add a `break' after the case for 'b'.
2091
94b66fa7
KS
20922002-09-24 Keith Seitz <keiths@redhat.com>
2093
2094 * varobj.c (c_type_of_child): Use get_target_type instead
2095 of TYPE_TARGET_TYPE.
2096
c214a6fd
FN
20972002-09-22 Fernando Nasser <fnasser@redhat.com>
2098
53cb0458
FN
2099 * source.c (get_current_or_default_source_symtab_and_line): Remove
2100 function.
2101 (set_default_source_symtab_and_line): New function. Attempts to
2102 determine a source file to list lines from if one is not currently
2103 defined.
2104 (get_current_source_symtab_and_line): Initialize sal.pc and
2105 sal.end fields.
2106 (set_current_source_symtab_and_line): Mark argument as const.
2107 * source.h: Update declarations and comments.
2108 * linespec.c (decode_line_1): Replace call to removed routine above.
2109 * stack.c (print_frame_info_base): Ditto.
2110 * cli/cli-cmds.c (edit_command): Ditto.
2111 (list_command): Ditto.
2112
21132002-09-22 Fernando Nasser <fnasser@redhat.com>
2114
d6020d45 2115 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2116 sal.pc and sal.end fields.
c214a6fd
FN
2117 (get_current_or_default_source_symtab_and_line): Ditto.
2118 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2119 so we do not cause a new source symtab to be searched for (reverting an
2120 unintentional change from the 2002-09-20 patch).
2121 * scm-lang.c (scm_unpac): Ditto.
2122
cc3b68a5
AC
21232002-09-21 Andrew Cagney <cagney@redhat.com>
2124
2125 * complaints.c (symfile_explanations): Remove new-line from
2126 ``isolated_message''.
2127 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2128 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2129
5835abe7
NC
21302002-09-20 Nick Clifton <nickc@redhat.com>
2131
2132 * NEWS: Announce that V850EA ISA is no longer supported.
2133 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2134
a15ef5f5
DC
21352002-09-20 David Carlton <carlton@math.stanford.edu>
2136
06ba1b39
DC
2137 * Makefile.in (c-lang.o): Correct dependencies.
2138 (utils.o): Gather dependencies.
2139 (charset.o): Move.
a15ef5f5
DC
2140 * c-lang.c: #include "gdb_string.h"
2141
87885426
FN
21422002-09-20 Fernando Nasser <fnasser@redhat.com>
2143
2144 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2145 * cli/cli-cmds.c (list_command): New function. Implements the new
2146 cli edit command.
2147 (_init_cli_cmds): Add new command definition.
2148 * gdb.1: Document edit command.
2149 * doc/gdb.texinfo: Document edit command.
2150
21512002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2152
2153 * source.c: Make global variables current_source_symtab and
2154 current_source_line static.
2155 (list_command): Moved to cli/cli-cmds.c.
2156 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2157 (get_first_line_listed): New accessor function.
2158 (get_lines_to_list): New accessor function.
2159 (get_current_source_symtab_and_line): New function. Retrieves the
2160 position in the source code that we consider current.
2161 (get_current_or_default_source_symtab_and_line): New function.
2162 Like the above but attempts to determine a default position if one
2163 is not currently defined.
2164 (set_current_source_symtab_and_line): New function. Sets the source
2165 code position considered current and returns the previously set one.
2166 (clear_current_source_symtab_and_line): Reset stored information about
2167 a current source line.
2168 (_initialize_source): Remove registration for the "list" command and
2169 its alias.
2170 * source.h: Add declarations for the new functions above.
2171 * symtab.h: Remove declarations for the global variables mentioned
2172 above.
2173 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2174 obtain current source line.
2175 * linespec.c (decode_line_1): Ditto.
2176 * macroscope.c (default_macro_scope): Ditto.
2177 * scm-lang.c (scm_unpac): Ditto.
2178 * stack.c (print_frame_info_base): Ditto.
2179 * symfile.c (clear_symtab_users): Ditto.
2180 * symtab.c (decode_line_spec): Ditto.
2181 * cli/cli-cmds.c (list_command): Moved here from source.c.
2182 (ambiguous_line_spec): Moved here from source.c.
2183 (_init_cli_cmds): Add definition for "list" and its alias.
2184 * Makefile.in: Update dependencies.
2185
ddd216ea
CV
21862002-09-20 Corinna Vinschen <vinschen@redhat.com>
2187
2188 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2189 with what gcc thinks is correct.
2190
6d305052
CV
21912002-09-20 Corinna Vinschen <vinschen@redhat.com>
2192
2193 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2194 multiple register push instruction.
2195
234b45d4
KB
21962002-09-19 Jim Blandy <jimb@redhat.com>
2197
2198 Add support for distinct host and target character sets.
2199 * charset.c, charset.h: New files.
2200 * c-exp.y: #include "charset.h".
2201 (yylex): Convert character and string literals to the target
2202 character set, before returning them as the semantic value of the
2203 token.
2204 * c-lang.c: #include "charset.h".
2205 (c_emit_char): Use charset-specific methods to recognize
2206 characters with backslash escape forms, to decide which characters
2207 to print literally and which to print using numeric escape
2208 sequences, and to convert target characters to host characters
2209 before printing.
2210 * utils.c: #include "charset.h".
2211 (no_control_char_error): New function.
2212 (parse_escape): Use charset-specific methods to recognize
2213 backslash escapes, parse `control character' notation, and convert
2214 characters from the host character set to the target character set.
2215 * configure.in: Set the default host character set.
2216 Check where to find iconv, and what its argument types might be.
2217 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2218 * Makefile.in (SFILES): List charset.c.
2219 (COMMON_OBS): List charset.o.
2220 (charset.o): New rule.
2221 (charset_h): New header dependency variable.
2222 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2223 (LIBICONV): New variable, set by configure.
2224 (CLIBS): Include $(LIBICONV) here.
2225 * aclocal.m4, config.in, configure: Regenerated.
2226
525d6a61
JB
22272002-09-19 Joel Brobecker <brobecker@gnat.com>
2228
2229 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2230 bison 1.35 warning.
2231
3ed93867
RE
22322002-09-19 Richard Earnshaw <rearnsha@arm.com>
2233
2234 * gdb_mbuild.sh: New file.
2235
437666f8
AC
22362002-09-19 Andrew Cagney <ac131313@redhat.com>
2237
2238 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2239
389e51db
AC
22402002-09-18 Andrew Cagney <ac131313@redhat.com>
2241
2242 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2243 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2244 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2245 valops.c, value.h: Revert previous change.
2246
3b4efeaa
MS
22472002-09-18 Michael Snyder <msnyder@redhat.com>
2248
2249 Preliminary support for Objective-C:
2250 * defs.h (language_objc): New enum value.
2251 (puts_filtered_tabular): Declaration only, exported from utils.c.
2252 (skip_quoted): Delete, declared in completer.h.
2253 * c-exp.y: Include completer.h.
2254 * p-exp.y: Ditto.
2255 * jv-exp.y: Ditto.
2256 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2257 New operator enum values.
2258 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2259 * language.c (binop_result_type): Handle language_objc case.
2260 (integral_type, character_type, string_type, boolean_type,
2261 structured_type, binop_type_check): Ditto.
2262 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2263 (struct objc_specific): Add to general_symbol_info.
2264 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2265 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2266 * parser-defs.h (struct objc_class_str): New struct type.
2267 (start_msglist, end_msglist, add_msglist): Declaration only,
2268 exported from objc-lang.c.
2269 * value.h (value_of_local, value_nsstring,
2270 call_function_by_hand_expecting_type): Exported from valops.c.
2271 * valops.c (find_function_addr): Export.
2272 (call_function_by_hand_expecting_type): New function.
2273 (value_of_local): New function.
2274 * symfile.c (init_filename_language_table): Add ".m" extension
2275 for Objective-C.
2276 * utils.c (puts_filtered_tabular): New function.
2277 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2278 (set/show demangle): Extend help-string to refer to ObjC.
2279 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2280 * stabsread.c (symbol_reference_defined): Objective-C symbols
2281 may contain colons: make allowances when scanning stabs strings
2282 for colons.
2283 (objc_find_colon): New function.
2284 * printcmd.c (address_info): If language == objc then print
2285 "self" instead of "this".
2286 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2287 OP_NSSTRING, and OP_SELF.
2288 (prefixify_subexp): Ditto.
2289 * source.c (print_source_lines): Mention objc in comment.
2290 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2291 method names.
2292
b9caf505
AC
22932002-09-18 Andrew Cagney <ac131313@redhat.com>
2294
2295 * complaints.h: Update copyright.
2296 (struct complaints): Declare.
2297 (struct complaint): Make `message' constant.
2298 (internal_complaint): Declare.
2299 (complaint): Declare.
2300 (complaint_root): Delete declaration.
2301 (symfile_complaints): Delete declaration.
2302 (struct complaints): Add opaque declaration.
2303 (clear_complaints): Add a complaints parameter.
2304 * complaints.c: Update copyright.
2305 (enum complaint_series): Define.
2306 (complaint_root): Delete.
2307 (struct complaints): Define.
2308 (complaint_sentinel, symfile_complaint_book): New variables.
2309 (symfile_explanations, symfile_complaints): New variables.
2310 New variables.
2311 (get_complaints): New function.
2312 (vcomplaint): New function.
2313 (complaint): New function.
2314 (internal_complaint): New function.
2315 (complain): Call vcomplain with symfile_complaint.
2316 (clear_complaints): Rewrite.
2317 (_initialize_complaints): Use add_setshow_command.
2318 * Makefile.in (complaints.o): Update dependencies.
2319 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2320 to call to clear_complaints.
2321 (new_symfile_objfile, reread_symbols): Ditto.
2322 (oldsyms_complaint): Delete.
2323 (empty_symtab_complaint, unknown_option_complaint): Delete.
2324 (free_named_symtabs): Use complaint instead of complain.
2325
d2e6263c
MS
23262002-09-18 Michael Snyder <msnyder@redhat.com>
2327
5fb2031a
AC
2328 Contributed by Apple Computer, Inc. Merged with current sources
2329 by Adam Fedor <fedor@doc.com> [cagney].
2330
d2e6263c
MS
2331 * objc-lang.c: First clean-up round: comments, indentation.
2332 * objc-lang.h: Ditto.
2333 * objc-lang.y: Ditto.
2334
dec43320
AC
23352002-09-18 Andrew Cagney <ac131313@redhat.com>
2336
2337 * maint.c (maintenance_internal_error): Print the parameter as the
2338 error message.
2339 (maintenance_internal_warning): New function.
2340 (_initialize_maint_cmds): Add command `maint internal-warning'.
2341
2342 * defs.h (internal_warning, internal_vwarning): Declare.
2343 * utils.c (struct internal_problem): Define.
2344 (internal_vproblem): New function.
2345 (internal_warning): New function.
2346 (internal_vwarning): New function.
2347 (internal_warning_problem, internal_error_problem): New variables.
2348 (internal_verror): Just call internal_vproblem.
2349
b81654f1
MS
23502002-09-18 Michael Snyder <msnyder@redhat.com>
2351
2352 * objc-lang.c: New file, support for Objective-C.
2353 Preliminary check-in, not yet integrated into gdb.
2354 * objc-lang.h: New file.
2355 * objc-exp.y: New file.
2356
0542c381
AC
23572002-09-18 Andrew Cagney <ac131313@redhat.com>
2358
7bda5e4a
AC
2359 * infrun.c (signal_stop_update): Convert definition to ISO C.
2360 (signal_print_update): Ditto.
2361 (signal_pass_update): Ditto.
2362 * inflow.c (terminal_save_ours): Ditto.
2363
5247b418
AC
2364 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2365 comments.
2366
fc60962c
AC
2367 * config/djgpp/fnchange.lst: Handle name clashes between
2368 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2369 bfd/coff-tic80.c.
2370
0542c381
AC
2371 * i386-linux-tdep.h: Fix tipo.
2372
5b924b9b
AF
23732002-09-18 Adam Fedor <fedor@gnu.org>
2374
2375 * MAINTAINERS: Add myself to the Write After Approval list.
2376
5afc051b
JB
23772002-09-18 Jim Blandy <jimb@redhat.com>
2378
2379 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2380 texthigh and textlow to reader-specific structs caused
2381 objfile_relocate to miss them. This is fixable, but the work that
2382 the change was supposed to prepare GDB for never got done anyway.
2383
eb944380
DC
23842002-09-18 David Carlton <carlton@math.stanford.edu>
2385
2386 * MAINTAINERS: Alphabetize Write After Approval list.
2387
948e66d9
DJ
23882002-09-18 Daniel Jacobowitz <drow@mvista.com>
2389
2390 Fix PR gdb/709
2391 * values.c (value_static_field): Call read_var_value.
2392
dc604539
AC
23932002-09-18 Andrew Cagney <ac131313@redhat.com>
2394
2395 * valops.c (hand_function_call): Align the initial stack pointer
2396 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2397 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2398 return value.
2399 * mips-tdep.c (mips_frame_align): New function.
2400 (mips_gdbarch_init): Set frame_align.
2401 * gdbarch.sh (FRAME_ALIGN): New method.
2402 * gdbarch.h, gdbarch.c: Re-generate.
2403
cb7e422f
ML
24042002-09-18 Michal Ludvig <mludvig@suse.cz>
2405
2406 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2407 registers.
2408
a094c6fb
AC
24092002-09-17 Andrew Cagney <ac131313@redhat.com>
2410
2411 * NEWS: Mention that MIPS $fp behavior changed.
2412 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2413 reference to FP_REGNUM.
2414 (mipsnbsd_cannot_store_register): Ditto.
2415 * mips-linux-nat.c: Update copyright.
2416 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2417 (mips_linux_cannot_store_register): Ditto.
2418 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2419 * config/mips/tm-mips.h: Update copyright.
2420 (FP_REGNUM): Delete macro.
2421 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2422 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2423 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2424 (mips_r3041_reg_names, mips_r3051_reg_names)
2425 (mips_r3081_reg_names): Replace "fp" with "".
2426 Fix PR gdb/480.
2427
45cf40d1
TR
24282002-09-17 Theodore A. Roth <troth@verinet.com>
2429
2430 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2431 generic_read_register_dummy() (PR gdb/703).
2432 (avr_push_return_address): #if 0 out unused vars.
2433 (avr_gdbarch_init): Enable use of avr_push_return_address().
2434
c7e701b5
MS
24352002-09-17 Michael Snyder <msnyder@redhat.com>
2436
d76ba2a5 2437 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2438 RTE will take care of it.
2439
20bcf01c
AC
24402002-09-17 Andrew Cagney <ac131313@redhat.com>
2441
2442 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2443 invalid, return SP_REGNUM.
2444
009a9971 24452002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2446
2447 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2448 point registers without sign extension.
2449
135c175f
AC
24502002-09-17 Andrew Cagney <cagney@redhat.com>
2451
2452 * blockframe.c (deprecated_read_register_dummy): Rename
2453 generic_read_register_dummy.
2454 * frame.c (frame_unwind_signed_register): New function.
2455 (frame_unwind_unsigned_register): New function.
2456 * frame.h (frame_unwind_signed_register): Declare.
2457 (frame_unwind_unsigned_register): Declare.
2458 (deprecated_read_register_dummy): Rename
2459 generic_read_register_dummy.
2460
2461 * h8300-tdep.c (h8300_frame_chain): Update.
2462 (h8300_frame_saved_pc): Update.
2463 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2464 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2465 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2466 (s390_frame_chain): Update.
2467 * v850-tdep.c (v850_find_callers_reg): Update.
2468 (v850_frame_saved_pc): Update.
2469 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2470 (m32r_find_callers_reg): Update.
2471 (m32r_frame_saved_pc): Update.
2472 * sh-tdep.c (sh_find_callers_reg): Update.
2473 (sh64_get_saved_pr): Update.
2474 (sh_init_extra_frame_info): Update.
2475 (sh_init_extra_frame_info): Update.
2476 (sh64_init_extra_frame_info): Update.
2477 (sh64_init_extra_frame_info): Update.
2478 * mcore-tdep.c (mcore_find_callers_reg): Update.
2479 (mcore_frame_saved_pc): Update.
2480 (mcore_init_extra_frame_info): Update.
2481 * i386-tdep.c (i386_frame_saved_pc): Update.
2482 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2483 (ia64_init_extra_frame_info): Update.
2484 (ia64_init_extra_frame_info): Update.
2485 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2486 * cris-tdep.c (cris_init_extra_frame_info): Update.
2487 * avr-tdep.c (avr_frame_chain): Update.
2488 (avr_init_extra_frame_info): Update.
2489 (avr_frame_saved_pc): Update.
2490 * arm-tdep.c (arm_find_callers_reg): Update.
2491 (arm_init_extra_frame_info): Update.
2492 (arm_frame_saved_pc): Update.
2493
a741e514
TT
24942002-09-17 Tom Tromey <tromey@redhat.com>
2495
2496 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2497 is "'".
2498
d1a8e808
CV
24992002-09-17 Corinna Vinschen <vinschen@redhat.com>
2500
2501 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2502 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2503 NEXT_PROLOGUE_INSN.
2504 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2505 NEXT_PROLOGUE_INSN.
2506
d9025a18
JB
25072002-09-16 Joel Brobecker <brobecker@gnat.com>
2508
2509 * osfsolib.c: Remove file, replaced by solib-osf.c.
2510 * Makefile.in: Remove compilation rules for osfsolib.c.
2511
1b2ef1b6
DC
25122002-09-16 David Carlton <carlton@math.stanford.edu>
2513
2514 * cp-valprint.c (cp_print_class_method): Correct args to
2515 check_stub_method_group.
2516
928e48af
CV
25172002-09-16 Corinna Vinschen <vinschen@redhat.com>
2518
2519 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2520 `set architecture'. Unify naming convention of functions.
2521 (h8300_skip_prologue): Improve prologue analysis.
2522 (h8300_push_arguments): Rewritten to more closely match GCC's
2523 bizarre argument-passing behavior, along with the comment describing
2524 said behavior.
2525 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2526 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2527 sim, remote-e7000.c, remote-hms.c and remote.c
2528
5e3397bb
MK
25292002-09-15 Mark Kettenis <kettenis@gnu.org>
2530
2531 * i386-tdep.c (gdb_print_insn_i386): Removed.
2532 (i386_print_insn): New function.
2533 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2534 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2535 tm_print_insn_info.
2536
f710f4fc
MK
25372002-09-14 Mark Kettenis <kettenis@gnu.org>
2538
2539 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2540 zero.
2541
db54fef4
CV
25422002-09-14 Corinna Vinschen <vinschen@redhat.com>
2543
2544 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2545 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2546 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2547
2becadee
CF
25482002-09-13 Christopher Faylor <cgf@redhat.com>
2549
2550 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2551
de17c821
DJ
25522002-09-13 Daniel Jacobowitz <drow@mvista.com>
2553
2554 * gdbtypes.c (check_stub_method): Make static.
2555 (check_stub_method_group): New function.
2556 * gdbtypes.h: Update prototypes.
2557 * cp-support.c: New file.
2558 * cp-support.h: New file.
2559
2560 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2561 (update_method_name_from_physname): New function.
2562 (read_member_functions): Correct method names for operators
2563 and v3 constructors/destructors. Separate v2 constructors and
2564 destructors.
2565 * Makefile.in (stabsread.o): Update dependencies.
2566 (SFILES): Add cp-support.c.
2567 (COMMON_OBS): Add cp-support.o.
2568 (cp_support_h, cp-support.o): Add.
2569
2570 * cp-valprint.c (cp_print_class_method): Call
2571 check_stub_method_group instead of check_stub_method. Remove
2572 extraneous QUITs.
2573 * p-valprint.c (pascal_object_print_class_method): Likewise.
2574 * valops.c (search_struct_method): Likewise.
2575 (find_method_list, value_struct_elt_for_reference): Likewise.
2576
e76cff22
AC
25772002-09-13 Andrew Cagney <cagney@redhat.com>
2578
2579 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2580 * gdbarch.h, gdbarch.c: Regenerate.
2581
905abb3f
AC
25822002-09-13 Andrew Cagney <ac131313@redhat.com>
2583
2584 * frame.c (find_saved_register): Delete function.
2585 * frame.h (find_saved_register): Delete declaration.
2586 Fix PR gdb/631.
2587
64159455
AC
2588Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2589
2590 * mips-tdep.c (read_next_frame_reg): Re-hack using
2591 frame_register_unwind.
2592
795e1e11
AC
2593Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2594
2595 * mips-tdep.c (mips_get_saved_register): Re-hack using
2596 frame_register_unwind.
2597
5720643c
JB
25982002-09-12 Joel Brobecker <brobecker@gnat.com>
2599
2600 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2601 vector. Will be useful for Interix.
2602 * gdbarch.h, gdbarch.c: Regenerate.
2603
2604 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2605 name of the malloc function by NAME_OF_MALLOC.
2606
3bada2a2
JB
26072002-09-12 Joel Brobecker <brobecker@gnat.com>
2608
2609 * value.h (find_function_in_inferior): Add const keyword to
2610 one of the parameters. Allows us to invoke this function with
2611 a const char *.
2612 * valops.c (find_function_in_inferior): Likewise.
2613
3db26b01
JB
26142002-09-12 Joel Brobecker <brobecker@gnat.com>
2615
2616 * exec.c (xfer_memory): Fix compilation warning with old versions
2617 of GCC.
2618 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2619
17c5ed2c
DC
26202002-09-12 David Carlton <carlton@math.stanford.edu>
2621
2622 * symtab.h: Run through gdb_indent.h.
2623 Add 2002 to Copyright year list.
2624
ecd1107e
AM
26252002-09-12 Alan Modra <amodra@bigpond.net.au>
2626
2627 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2628 mach constants.
2629 * MAINTAINERS: Add myself to write after approval list.
2630
e64f66d1
JB
26312002-09-11 J. Brobecker <brobecker@gnat.com>
2632
2633 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2634
f9395794
JB
26352002-09-11 J. Brobecker <brobecker@gnat.com>
2636
2637 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2638 Interix.
2639
1a303dec
MS
26402002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2641
2642 * procfs.c (do_detach): Clear current signal, not just fault.
2643 Corrects problem with breakpoint trap signal leaking to detached
2644 process on Tru64.
2645
c0219d42
MS
26462002-09-10 Michael Snyder <msnyder@redhat.com>
2647
2648 * buildsym.c (finish_block): Protect against null pointer.
2649
9d84ac84
AC
26502002-09-10 Andrew Cagney <cagney@redhat.com>
2651
2652 * infcmd.c (default_print_registers_info): Send all output to
2653 ``file'' instead of ``gdb_stdout''.
2654
77d8f2b4
MS
26552002-09-10 Michael Snyder <msnyder@redhat.com>
2656
2657 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2658 LONGEST, and use signed register read (addresses are sign-
2659 extended for mips).
2660
99656a61
SC
26612002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2662
2663 * event-loop.c (gdb_do_one_event): Make public.
2664 * event-loop.h (gdb_do_one_event): Declare.
2665
da12f4d8
JL
26662002-09-10 Jeff Law <law@redhat.com>
2667
2668 * infttrace.c (child_resume): Simplify and rework to avoid
2669 TT_PROC_CONTINUE.
2670
d0aee0c4
FF
26712002-09-09 Fred Fish <fnf@intrinsity.com>
2672
2673 * printcmd.c (print_scalar_formatted): "len" is the number of
2674 target bytes, NOT the number of target bits.
2675
7cb3ec5e
EZ
26762002-09-09 Elena Zannoni <ezannoni@redhat.com>
2677
2678 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2679 * top.c (init_main): Set rl_terminal_name.
2680
4dc81987
AS
26812002-09-08 Aidan Skinner <aidan@velvet.net>
2682
2683 * ada-lang.c (ada_array_bound, ada_type_match,
2684 _initialize_ada_language): Fix K&R definitions.
2685 * ada-tasks.c (get_current_task): Fix K&R definitions.
2686 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2687
842330b4
CF
26882002-09-07 Christopher Faylor <cgf@redhat.com>
2689
2690 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2691 Add XP.
2692
43156d82
MK
26932002-09-06 Mark Kettenis <kettenis@gnu.org>
2694
66da5fd8
MK
2695 * i386-tdep.c (i386_register_virtual_type,
2696 i386_register_convertible, i386_register_convert_to_virtual,
2697 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2698 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2699 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2700 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2701 Don't set push_arguments twice.
2702
4b218c18
MK
2703 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2704 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2705 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2706 sigtramp_end to NULL.
2707 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2708 defines.
2709 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2710
4cc314d5
MK
2711 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2712 whitespace.
2713
43156d82
MK
2714 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2715 * gdbarch.h, gdbarch.c: Re-generate.
2716 * blockframe.c (find_pc_sect_partial_function): Convert to use
2717 SIGTRAMP_START_P predicate.
2718
6672060b
MS
27192002-09-05 Michael Snyder <msnyder@redhat.com>
2720
a90c3637
MS
2721 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2722 generic_dummy_frame method and old method. Also distinguish
2723 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2724 (arm_extract_return_value): Use new regcache method.
a90c3637 2725
6672060b
MS
2726 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2727 adjustment that doesn't conform to the ABI.
2728 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2729 saved regcache, not from current regcache.
2730
299ffc64
AC
27312002-09-05 Andrew Cagney <ac131313@redhat.com>
2732
2733 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2734 * README: Update.
2735
a3a2ee65
JT
27362002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2737
2738 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2739 if arm_apcs_32 is false.
2740
2bc7eea9
AC
27412002-09-04 Andrew Cagney <ac131313@redhat.com>
2742
2743 GDB 5.3 branch created.
2744
8a55a7c5
TR
27452002-09-03 Theodore A. Roth <troth@verinet.com>
2746
2747 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2748 generic_unwind_get_saved_register.
2749
e26fb1d7
DC
27502002-09-03 David Carlton <carlton@math.stanford.edu>
2751
2752 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2753 argument (PR gdb/653). Update call to smash_to_method_type.
2754 (read_structure_scope): Update call to dwarf2_add_member_fn.
2755
30d52491
ML
27562002-09-03 Michal Ludvig <mludvig@suse.cz>
2757
2758 * x86-64-linux-tdep.c: Include gdb_string.h
2759 * x86-64-linux-nat.c: Ditto.
2760
06891d83
JT
27612002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2762
2763 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2764 when YYDEBUG is set to 1.
2765 * c-exp.y: Likewise.
2766 * f-exp.y: Likewise.
2767 * jv-exp.y: Likewise.
2768 * m2-exp.y: Likewise.
2769 * p-exp.y: Likewise.
2770
7d400e77
JT
27712002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2772
2773 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2774 dependency list.
2775 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2776 solib_svr4_fetch_link_map_offsets to
2777 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2778 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2779 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2780 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2781 solib-svr4.o, and solib-legacy.o.
2782 * config/i386/tm-nbsd.h: Include solib.h.
2783
704a27c4
JT
27842002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2785
2786 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2787 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2788 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2789 comment noting that this needs its own target configuration.
2790 * config/i386/nbsd.mt: New file.
2791 * config/i386/nbsdaout.mt: Remove.
2792 * config/i386/nbsdelf.mt: Ditto.
2793 * config/i386/tm-nbsdaout.h: Ditto.
2794
d66198e1
JT
27952002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2796
2797 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2798 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2799 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2800 tdep->sigtramp_end.
2801 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2802 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2803 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2804
3cac699e
JT
28052002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2806
2807 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2808 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2809 * i386-tdep.h (i386bsd_init_abi): New prototype.
2810 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2811 function declaration.
2812 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2813 for NetBSD-a.out or NetBSD-ELF.
2814 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2815 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2816 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2817 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2818 and nbsd-tdep.h.
2819 (i386nbsd_pc_in_sigtramp): New function.
2820 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2821 i386nbsd_pc_in_sigtramp.
2822 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2823 and i386nbsdelf_init_abi OS ABI handlers.
2824 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2825 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2826
7010ca0a
MK
28272002-09-02 Mark Kettenis <kettenis@gnu.org>
2828
2829 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2830 registers if the target really has them.
2831
6dd93b72
JT
28322002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2833
2834 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2835 than nbsd-tdep.h.
2836
2ca8ae21
JT
28372002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2838
2839 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2840 list.
2841 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2842 (alphanbsd_skip_sigtramp_frame): New functions.
2843 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2844 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2845 to alphanbsd_sigcontext_addr.
2846
3d9b49b0
JT
28472002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2848
2849 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2850 list.
2851 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2852 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2853 nbsd_pc_in_sigtramp.
2854 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2855 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2856 * nbsd-tdep.c: Include gdb_string.h.
2857 (nbsd_pc_in_sigtramp): New function.
2858 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2859 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2860 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2861 ppcnbsd_pc_in_sigtramp.
2862 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2863 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2864 shnbsd_pc_in_sigtramp.
2865 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2866 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2867 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2868
c860120c
PM
28692002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2870
2871 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2872 watchpoints to NULL.
2873 (insert_breakpoints): set val field of watchpoints if NULL.
2874
2875
c7612d53
JB
28762002-08-29 Jim Blandy <jimb@redhat.com>
2877
2878 * symtab.c (lookup_symbol_aux): In the cases where we find a
2879 minimal symbol of an appropriate name and use its address to
2880 select a symtab to read and search, use `name' (as passed to us)
2881 as the demangled name when searching the symtab's global and
2882 static blocks, not the minsym's name.
2883
66609862
KS
28842002-08-29 Keith Seitz <keiths@redhat.com>
2885
2886 * stack.c (print_frame_info_base): Always set current_source_symtab
2887 and current_source_line.
2888
151fefe2
JB
28892002-08-29 Donn Terry <donnte@microsoft.com>
2890
2891 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2892
bfb3754e
KS
28932002-08-28 Keith Seitz <keiths@redhat.com>
2894
2895 * stack.c (select_frame): Add FIXME concerning selected-frame
2896 events.
2897 (select_frame_command): Send selected-frame-level-changed
2898 event notification, but only if the level actually changed.
2899 (up_silently_base): Add selected-frame-level-changed event
2900 notification.
2901 (down_silently_base): Likewise.
2902
e822a2a0
AC
29032002-08-28 Andrew Cagney <ac131313@redhat.com>
2904
2905 * Makefile.in: Update dependencies for all gdb/*.c files.
2906
309367d4
TT
29072002-08-27 Tom Tromey <tromey@redhat.com>
2908
2909 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2910 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2911 Update dependencies.
2912 * i387-tdep.c: Include gdb_string.h.
2913 * osabi.c: Likewise.
2914 * i386-linux-nat.c: Likewise.
2915 * lin-lwp.c: Likewise.
2916 * ax-gdb.c: Likewise.
2917 * signals/signals.c: Likewise.
2918 * jv-valprint.c: Likewise.
2919 * p-lang.c: Likewise.
2920 * c-valprint.c: Likewise.
2921 * cp-abi.c: Likewise.
2922
e1507482
EZ
29232002-08-27 Elena Zannoni <ezannoni@redhat.com>
2924
2925 * cli/cli-script.h (copy_command_lines): Export.
2926 * breakpoint.c: Include cli/cli-script.h.
2927 * Makefile.in (breakpoint.o): Update dependencies.
2928
c6510018
MS
29292002-08-26 Michael Snyder <msnyder@redhat.com>
2930
2931 * breakpoint.c (insert_breakpoints): Protect all references
2932 to 'process_warning'. Shorten long lines.
2933
c2b8ed2c
MS
29342002-08-26 Joel Brobecker <brobecker@gnat.com>
2935
2936 * cli/cli-script.c (copy_command_lines): New function.
2937 * defs.h (copy_command_lines): Export.
2938 * testsuite/gdb.base/commands.exp: New tests for commands
2939 attached to a temporary breakpoint, and for commands that
2940 delete the breakpoint they are attached to.
2941
29422002-08-26 Michael Snyder <msnyder@redhat.com>
2943
2944 * breakpoint.c (bpstat_stop_status): Instead of copying the
2945 pointer to the breakpoint commands struct, make a new copy
2946 of the struct and point to that.
2947 (bpstat_clear): Free the commands struct.
2948 (bpstat_clear_actions): Free the commands struct.
2949 (bpstat_do_actions): Free the command actions. Also execute
2950 the local cleanups, instead of deleting them.
2951 (delete_breakpoint): Leave the commands field of the bpstat
2952 chain alone -- it will be freed later.
2953
64b84175
KB
29542002-08-26 Kevin Buettner <kevinb@redhat.com>
2955
2956 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2957 deleted in 2002-08-20 commit. This function is still used by
2958 ppc-linux-nat.c.
2959
55970da6
KS
29602002-08-26 Keith Seitz <keiths@redhat.com>
2961
2962 * gdb-events.sh: Add selected-frame-level-changed event.
2963 * gdb-events.c: Regenerated.
2964 * gdb-events.h: Regenerated.
2965
a790ad35
SC
29662002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2967
2968 Fix PR gdb/393:
2969 * inflow.c (terminal_save_ours): New function to save terminal
2970 settings.
2971 * inferior.h (terminal_save_ours): Declare.
2972 * target.c (debug_to_terminal_save_ours): New function.
2973 (cleanup_target): Defaults to_terminal_save_ours.
2974 (update_current_target): Inherit to_terminal_save_ours.
2975 (setup_target_debug): Set to_terminal_save_ours.
2976 * target.h (target_terminal_save_ours): New to save terminal settings.
2977 (target_ops): New member to_terminal_save_ours.
2978 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2979 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2980 * inftarg.c (init_child_ops): Likewise.
2981 * m3-nat.c (init_m3_ops): Likewise.
2982 * procfs.c (init_procfs_ops): Likewise.
2983 * wince.c (init_child_ops): Likewise.
2984 * win32-nat.c (init_child_ops): Likewise.
2985 * sol-thread.c (init_sol_thread_ops): Likewise.
2986
c00dcbe9
MK
29872002-08-26 Mark Kettenis <kettenis@gnu.org>
2988
3d7f4f49
MK
2989 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2990 use regcache_* functions.
2991 (i386_gdbarch_init): Set store_return_value instead of
2992 deprecated_store_return_value.
2993
c00dcbe9
MK
2994 * regcache.c (regcache_raw_write_signed,
2995 regcache_raw_write_unsigned): New functions.
2996 * regcache.h (regcache_raw_write_signed,
2997 regcache_raw_write_unsigned): New prototypes.
2998
0e0d15ca
AC
29992002-08-25 Andrew Cagney <ac131313@redhat.com>
3000
3001 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3002 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3003 source file dependencies. Cleanup corresponding generator rules.
3004
d3b22ed5
AC
30052002-08-25 Andrew Cagney <ac131313@redhat.com>
3006
3007 * regcache.h (register_offset_hack): Declare.
3008 (regcache_cooked_read_using_offset_hack): Declare.
3009 (regcache_cooked_write_using_offset_hack): Declare.
3010
3011 * regcache.c (register_offset_hack): New function.
3012 (regcache_cooked_read_using_offset_hack): New function.
3013 (regcache_cooked_write_using_offset_hack): New function.
3014 (regcache_dump): Check that the registers, according to their
3015 offset, are packed hard against each other.
3016 (cooked_xfer_using_offset_hack): New function.
3017
bb425013
AC
30182002-08-25 Andrew Cagney <ac131313@redhat.com>
3019
3020 * regcache.c (struct regcache_descr): Add field register_type.
3021 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3022 in as a parameter
3023 (init_regcache_descr): Initialize register_type. Pass the descr
3024 to init_legacy_regcache_descr. Use register_type instead of
3025 REGISTER_VIRTUAL_TYPE.
3026 (register_type): New function.
3027 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3028 * regcache.h (register_type): Declare.
3029
d0403e00
AC
30302002-08-25 Andrew Cagney <ac131313@redhat.com>
3031
3032 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3033 instead of deprecated_store_return_value. Fix fallout from
3034 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3035
0ed04cce
AC
30362002-08-25 Andrew Cagney <ac131313@redhat.com>
3037
3038 * regcache.c (max_register_size): New function.
3039 (init_legacy_regcache_descr): Ensure that max_register_size is
3040 large enough for REGISTER_VIRTUAL_SIZE.
3041 * regcache.h (max_register_size): Declare.
3042
46d79c04
AC
30432002-08-24 Andrew Cagney <ac131313@redhat.com>
3044
3045 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3046 store_return_value.
3047 (e500_extract_return_value): Change type of valbuf pointer to
3048 void.
3049
853c7bd0
MK
30502002-08-24 Mark Kettenis <kettenis@gnu.org>
3051
cd87e769
MK
3052 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3053 workaround.
3054
853c7bd0
MK
3055 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3056 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3057 long long) to prevent compiler warning on 64-bit systems.
3058
ebba8386
AC
30592002-08-23 Andrew Cagney <cagney@redhat.com>
3060
3061 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3062 (DEPRECATED_STORE_RETURN_VALUE): New method.
3063 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3064 * gdbarch.h, gdbarch.c: Re-generate.
3065
3066 * values.c (set_return_value): Pass current_regcache to
3067 STORE_RETURN_VALUE.
3068 * arch-utils.h (legacy_store_return_value): Declare.
3069 * arch-utils.c (legacy_store_return_value): New function.
3070 (legacy_extract_return_value): Update parameters.
3071
3072 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3073 STORE_RETURN_VALUE.
3074 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3075 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3076 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3077 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3078 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3079 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3080 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3081 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3082 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3083 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3084
3085 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3086 * i386-tdep.c (i386_extract_return_value): Update.
3087 * arch-utils.c (legacy_extract_return_value): Update.
3088 * frv-tdep.c (frv_gdbarch_init): Update.
3089 * cris-tdep.c (cris_gdbarch_init): Update.
3090 * d10v-tdep.c (d10v_gdbarch_init): Update.
3091 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3092 * m68k-tdep.c (m68k_gdbarch_init): Update.
3093 * mcore-tdep.c (mcore_gdbarch_init): Update.
3094 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3095 * s390-tdep.c (s390_gdbarch_init): Update.
3096 * sparc-tdep.c (sparc_gdbarch_init): Update.
3097 * sh-tdep.c (sh_gdbarch_init): Update.
3098 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3099 * v850-tdep.c (v850_gdbarch_init): Update.
3100 * avr-tdep.c (avr_gdbarch_init): Update.
3101 * ia64-tdep.c (ia64_gdbarch_init): Update.
3102 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3103 * vax-tdep.c (vax_gdbarch_init): Update.
3104 * alpha-tdep.c (alpha_gdbarch_init): Update.
3105 * arm-tdep.c (arm_gdbarch_init): Update.
3106 * mips-tdep.c (mips_gdbarch_init): Update.
3107 * i386-tdep.c (i386_gdbarch_init): Update.
3108
5bd8c6d0
AC
31092002-08-23 Andrew Cagney <ac131313@redhat.com>
3110
3111 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3112 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3113
e73e1724
MK
31142002-08-24 Mark Kettenis <kettenis@gnu.org>
3115
3116 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3117 problems.
3118
3e6564e1
JB
31192002-08-23 Joel Brobecker <brobecker@gnat.com>
3120
3121 * infrun.c (handle_inferior_event): Move a comment outside of a
3122 function call, in order to avoid indent reformatting this part
3123 of the code in an unreadable way.
3124
81d0cc19
GS
31252002-08-23 Grace Sainsbury <graces@redhat.com>
3126
3127 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3128 when breakpoints fail. Move general breakpoint error messages to
3129 insert_breakpoints.
3130 * breakpoint.c (insert_breakpoints): Change warnings when
3131 breakpoints are nto inserted to specify the type. Remove call to
3132 memory_error when hardware breakpoints can't be inserted. Remove
3133 multiple calls to warning so all messages are sent to the user at
3134 once.
3135 (delete_breakpoints): Make insert error messsages more explicit.
3136
17574093
DJ
31372002-08-23 Daniel Jacobowitz <drow@mvista.com>
3138
3139 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3140 gdbserver/ChangeLog.
3141
8acc2935
MK
31422002-08-23 Mark Kettenis <kettenis@gnu.org>
3143
dfe01d39
MK
3144 * i386-tdep.c: Include "objfiles.h".
3145 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3146 skip_trampoline_code.
3147 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3148 (CPLUS_MARKER): Define to '.'.
3149
8acc2935
MK
3150 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3151 member.
3152 (linux_corefile_thread_callback): Increase args->num_notes.
3153 (linux_make_note_section): Initialize thread_args.num_notes, and
3154 use it to determine whether notes for any threads were created.
3155
151fefe2 31562002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3157
3158 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3159 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3160 and PCUNKILL.
3161 (write_with_trace): Conditionalize out the switch branch handling
3162 PCSHOLD if the corresponding macro is not defined. Likewise for
3163 PRSABORT and PRSTOP.
3164 This change will be needed by the Interix port.
3165
e1507482
EZ
31662002-08-22 Elena Zannoni <ezannoni@redhat.com>
3167
3168 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3169 write_register wherever possible instead of manipulating the
3170 register bytes directly.
3171 Assign VALUE_CONTENTS to a variable and use that.
3172 The GPR numbers are now dependent on the architecture.
3173
96ff0de4
EZ
31742002-08-22 Elena Zannoni <ezannoni@redhat.com>
3175
3176 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3177 ev_offset fields.
3178 (skip_prologue): Add support for BookE/e500 instructions.
3179 (e500_extract_return_value): New function.
3180 (frame_get_saved_regs): Add support for saving ev registers and
3181 pseudo gpr's.
3182 (e500_store_return_value): New function.
3183 (rs6000_gdbarch_init): Move up default intializations of
3184 deprecated_extract_return_value and store_return_value. Overwrite
3185 init of store_return_value with e500 specific version.
3186 Set extract_return_value for e500.
3187
fbefca5b
EZ
31882002-08-22 Elena Zannoni <ezannoni@redhat.com>
3189
3190 * blockframe.c (generic_call_dummy_register_unwind): Use
3191 regcache_cooked_read to catch cases in which the variable is
3192 stored in a pseudo register.
3193
4d210288
AC
31942002-08-22 Andrew Cagney <cagney@redhat.com>
3195
3196 * NEWS: Mention that the i960 has been made obsolete.
3197 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3198 i960-tdep.c
3199 (remote-nrom.o): Obsolete target.
3200 (remote-nindy.o, i960-tdep.o): Ditto.
3201 * remote-nrom.c: Make file obsolete.
3202 * remote-nindy.c, remote-vx960.c: Ditto.
3203 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3204 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3205 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3206 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3207 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3208 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3209 i960-*-vxworks* obsolete.
3210 * MAINTAINERS: Note that the i960 is obsolete.
3211
6c0c456d
CV
32122002-08-21 Corinna Vinschen <vinschen@redhat.com
3213
3214 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3215 detach to allow reinitialization.
3216
9f9d12b3
AC
32172002-08-22 Andrew Cagney <ac131313@redhat.com>
3218
3219 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3220 attempt).
3221
ebeb39fe
JB
32222002-08-22 Jim Blandy <jimb@redhat.com>
3223
3224 * coffread.c (coff_symfile_read): Don't try to read the line
3225 number table from disk if the image file doesn't have a symbol
3226 table; we'll never actually look at the info anyway, and Windows
3227 ships DLL's with bogus file offsets for the line number data.
3228
5bf1c677
EZ
32292002-08-21 Elena Zannoni <ezannoni@redhat.com>
3230
3231 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3232 an e500 executable.
3233
71b8ef93
MS
32342002-08-21 Michael Snyder <msnyder@redhat.com>
3235
3236 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3237 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3238 (DEFAULT_MIPS_TYPE): Delete unused macro.
3239 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3240 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3241
d174216d
JB
32422002-08-21 Jim Blandy <jimb@redhat.com>
3243
3244 * valops.c (value_cast): Simplify and correct logic for doing a
3245 static cast from a pointer to a base class to a pointer to a
3246 derived class.
3247
0ab7a791
AC
32482002-08-21 Andrew Cagney <ac131313@redhat.com>
3249
3250 * infcmd.c (default_print_registers_info): Replace
3251 do_registers_info.
3252 (registers_info): Use gdbarch_print_registers_info instead of
3253 DO_REGISTERS_INFO.
3254 * inferior.h (default_print_registers_info): Replace
3255 do_registers_info.
3256 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3257 (DO_REGISTERS_INFO): Change to a predicate function.
3258 * gdbarch.h, gdbarch.c: Regenerate.
3259
e23792cc
KS
32602002-08-21 Keith Seitz <keiths@redhat.com>
3261
3262 * gdb-events.sh: Add target-changed event.
3263 * gdb-events.c: Regenerated.
3264 * gdb-events.c: Regenerated.
3265 * valops.c (value_assign): Add target-changed event notification
3266 to inlval_register, lval_memory, and lval_reg_frame_relative.
3267
9fb14e79
JB
32682002-08-21 Joel Brobecker <brobecker@gnat.com>
3269
3270 * NEWS: Add an entry regarding the improvement of the next/step
3271 operation on Alpha Tru64 multi-processor machines.
3272
6d39a69f
AC
32732002-08-21 Andrew Cagney <ac131313@redhat.com>
3274
72acd513
AC
3275 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3276 directores.
342af04b 3277 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3278 * Makefile.in (install-gdbtk): Move to install section.
3279 (rdi-share/libangsd.a): Move to end of file.
3280
fa5f27c7
AC
32812002-08-19 Andrew Cagney <ac131313@redhat.com>
3282
3283 * frame.c (frame_register_unwind): When a register, set addrp to
3284 the register's byte.
3285
5a89d8aa
MS
32862002-08-20 Michael Snyder <msnyder@redhat.com>
3287
3288 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3289 used locally, so move them from the target machine header to here.
3290 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3291 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3292 Make static.
3293 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3294
822e978b
AC
32952002-08-20 Andrew Cagney <cagney@redhat.com>
3296
3297 * NEWS: Mention that the Apollo line was made obsolete.
3298 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3299 m68*-hp-hpux* obsolete.
3300 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3301 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3302 * buildsym.c (make_blockvector): Make static.
3303 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3304 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3305 (ALLDEPFILES): Remove dstread.c.
3306 (dstread.o): Obsolete make rule.
3307 * dstread.c: Makefile obsolete.
3308 * dst.h: Ditto.
3309 * config/m68k/hp300hpux.mt: Ditto.
3310 * config/m68k/hp300hpux.mh: Ditto.
3311 * config/m68k/hp300bsd.mt: Ditto.
3312 * config/m68k/hp300bsd.mh: Ditto.
3313 * config/m68k/apollo68b.mt: Ditto.
3314 * config/m68k/apollo68v.mh: Ditto.
3315 * config/m68k/apollo68b.mh: Ditto.
3316
e41b17f0
MS
33172002-08-20 Michael Snyder <msnyder@redhat.com>
3318
3319 * mips-tdep.c (mips_in_return_stub): Make static.
3320 (mips_gdbarch_init): Set in_solib_return_trampoline.
3321 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3322
d50355b6
MS
33232002-08-20 Michael Snyder <msnyder@redhat.com>
3324
3325 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3326 * gdbarch.c, gdbarch.h: Regenerate.
3327 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3328 Add.
3329 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3330
757a7cc6
MS
33312002-08-20 Michael Snyder <msnyder@redhat.com>
3332
3333 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3334 (mips_gdbarch_init): Set skip_trampoline_code,
3335 in_solib_call_trampoline.
3336 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3337 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3338
c8001721
EZ
33392002-08-20 Elena Zannoni <ezannoni@redhat.com>
3340
3341 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3342
3343 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3344 vector type for ev registers.
3345 (e500_pseudo_register_read): New function.
3346 (e500_pseudo_register_write): New function.
3347 (e500_dwarf2_reg_to_regnum): New function.
3348 (PPC_UISA_NOFP_SPRS): New macro.
3349 (PPC_EV_REGS): New macro.
3350 (PPC_GPRS_PSEUDO_REGS): New macro.
3351 (registers_e500): New register set for e500.
3352 (variants): Add e500 variant.
3353 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3354 before setting architectural dependent variations. Initialize ev
3355 registers numbers. Add case for e500 architecture. Set the
3356 number of pseudo registers.
3357
64366f1c
EZ
33582002-08-20 Elena Zannoni <ezannoni@redhat.com>
3359
3360 * rs6000-tdep.c: Clean up comments.
3361
7e78f0ca
AC
33622002-08-20 Andrew Cagney <cagney@redhat.com>
3363
3364 * h8300-tdep.c: Re-indent file.
3365
697f7479
JB
33662002-08-20 Jim Blandy <jimb@redhat.com>
3367
3368 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3369 default for this.
697f7479 3370
e86ae29f
KS
33712002-08-20 Keith Seitz <keiths@redhat.com>
3372
3373 * breakpoints.c (watch_command_1): Use internal breakpoint
3374 when setting a watchpoint_scope breakpoint.
3375
216b504f
EZ
33762002-08-20 Elena Zannoni <ezannoni@redhat.com>
3377
3378 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3379 (build_builtin_type_vec64i): Ditto.
3380 (build_builtin_type_vec128): Ditto.
3381 (build_builtin_type_vec128i): Ditto.
3382
f7ab6ec6
MS
33832002-08-19 Michael Snyder <msnyder@redhat.com>
3384
3385 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3386 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3387 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3388 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3389 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3390 CALL_DUMMY_ADDRESS): Delete.
3391 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3392 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3393 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3394 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3395 push_return_address.
3396 (mips_register_raw_size, mips_eabi_use_struct_convention,
3397 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3398 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3399 mips_init_extra_frame_info, mips_eabi_push_arguments,
3400 mips_n32n64_push_arguments, mips_push_return_address,
3401 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3402 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3403
b5d1566e
MS
34042002-08-19 Michael Snyder <msnyder@redhat.com>
3405
3406 * mips-tdep.c (mips_frame_num_args): New function.
3407 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3408 frame_saved_pc, frame_args_address, frame_locals_address,
3409 frame_num_args, and frame_args_skip.
3410 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3411 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3412 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3413 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3414
2f1488ce
MS
34152002-08-20 Michael Snyder <msnyder@redhat.com>
3416
3417 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3418 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3419 * mips-tdep.c (mips_store_struct_return): New function.
3420 (mips_extract_struct_value_address): New function.
3421 (mips_gdbarch_init): Set store_struct_return and
3422 extract_struct_value_address.
3423
41ff2da1
DC
34242002-08-20 David Carlton <carlton@math.stanford.edu>
3425
3426 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3427 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3428 (read_file_scope): Check that line_header is nonzero before
3429 decoding macro information.
3430
e5451d58
MK
34312002-08-20 Mark Kettenis <kettenis@gnu.org>
3432
3433 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3434 flag the general-purpose registers as floating-point on targets
3435 that don't support the floating-point registers.
3436
4a6daafa
EZ
34372002-08-20 Elena Zannoni <ezannoni@redhat.com>
3438
3439 * rs6000-tdep.c (altivec_register_p): Delete.
3440 (rs6000_do_altivec_registers): Delete.
3441 (rs6000_altivec_registers_info): Delete.
3442 (rs6000_do_registers_info): Delete.
3443 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3444 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3445
ab4327e0
EZ
34462002-08-20 Elena Zannoni <ezannoni@redhat.com>
3447
3448 * infcmd.c (do_registers_info): Print vector registers in hex
3449 format only.
3450 (print_vector_info): Check that printing registers
3451 makes sense.
3452 (print_float_info): Ditto.
3453
cb1d2653
AC
34542002-08-20 Andrew Cagney <ac131313@redhat.com>
3455
3456 * mips-tdep.c (mips_gdbarch_init): Update.
3457 (mips_o32_extract_return_value): Rewrite.
3458 (mips_o32_store_return_value): Rewrite.
3459 (mips_o32_xfer_return_value): New function.
3460 (mips_xfer_register): Tweak debug print message. Allow for
3461 buf_offset when dumping the value transfered.
3462
dfc3d9b2
AC
34632002-08-20 Andrew Cagney <ac131313@redhat.com>
3464
3465 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3466 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3467 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3468 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3469 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3470
7807aa61
MS
34712002-08-14 Michael Snyder <msnyder@redhat.com>
3472
3473 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3474
489461e2
EZ
34752002-08-19 Elena Zannoni <ezannoni@redhat.com>
3476
3477 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3478 register.
3479 (P): New macro to define a register as a pseudo register.
3480 (R, R4, R8, R16, FR32, R64, R0): Updated.
3481 (struct variant): Add new fields for number of pseudo registers
3482 and number of total registers.
3483 (tot_num_registers): New macro replacing....
3484 (num_registers): ...deleted macro.
3485 (num_registers): New function.
3486 (num_pseudo_registers): New function.
3487 (variants): Update all variants to intialize new fields correctly.
3488 Postpone initialization of number of pseudo regs and real regs.
3489 (init_variants): New function.
3490 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3491 registers offsets.
3492
fcaffe4c
DC
34932002-08-19 David Carlton <carlton@math.stanford.edu>
3494
2c2738a0
DC
3495 * valops.c (search_struct_field): Change error message to treat
3496 return value of 0 from value_static_field as meaning that field is
3497 optimized out.
3498 (value_struct_elt_for_reference): Ditto.
3499 * values.c (value_static_field): Treat an unresolved location the
3500 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3501 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3502 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3503 * MAINTAINERS: Add self to Write After Approval list.
3504
88658117
AC
35052002-08-19 Andrew Cagney <ac131313@redhat.com>
3506
3507 * mips-tdep.c (mips_xfer_register): New function.
3508 (mips_n32n64_extract_return_value): Rewrite.
3509 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3510 instead of deprecated_extract_return_value.
3511
21283beb
EZ
35122002-08-19 Elena Zannoni <ezannoni@redhat.com>
3513
3514 * rs6000-tdep.c (TDEP): Delete macro.
3515 (branch_dest): Replace use of TDEP macro with its body.
3516 (rs6000_pop_frame): Ditto.
3517 (rs6000_push_arguments): Ditto.
3518 (rs6000_skip_trampoline_code): Ditto.
3519 (rs6000_frame_saved_pc): Ditto.
3520 (rs6000_frame_chain): Ditto.
3521 (rs6000_register_name): Ditto.
3522 (rs6000_register_byte): Ditto.
3523 (rs6000_register_raw_size): Ditto.
3524 (rs6000_register_virtual_type): Ditto.
3525 (rs6000_register_convertible): Ditto.
3526 (rs6000_convert_from_func_ptr_addr): Ditto.
3527
bf072999
DJ
35282002-08-19 Daniel Jacobowitz <drow@mvista.com>
3529
3530 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3531 conditionally.
3532 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3533 MIPS_LINUX_JB_ELEMENT_SIZE.
3534 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3535 for MAX_REGISTER_RAW_SIZE arrays.
3536 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3537 MIPS_LINUX_JB_ELEMENT_SIZE.
3538
9b949a49
PM
35392002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3540
3541 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3542
6d3e79c6
AS
35432002-08-19 Aidan Skinner <aidan@velvet.net>
3544
3545 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3546 ada-valprint.c ada-tasks.c.
3547 (YYFILES): Add ada-exp.y.
3548 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3549 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3550 (ada-exp.tab.o): New target.
3551
06c0b04e
AC
35522002-08-18 Andrew Cagney <ac131313@redhat.com>
3553
3554 * regcache.c (regcache_xfer_part): New function.
3555 (regcache_raw_read_part): New function.
3556 (regcache_raw_write_part): New function.
3557 (regcache_cooked_read_part): New function.
3558 (regcache_cooked_write_part): New function.
3559 * regcache.h (regcache_raw_read_part): Declare.
3560 (regcache_raw_write_part): Declare.
3561 (regcache_cooked_read_part): Declare.
3562 (regcache_cooked_write_part): Declare.
3563
92d1e331
DJ
35642002-08-18 Daniel Jacobowitz <drow@mvista.com>
3565
3566 * remote.c (remote_open_1): Add async_p.
3567 (remote_async_open_1): Delete.
3568 (open_remote_target): Delete.
3569 (remote_open, extended_remote_open): Update calls to remote_open_1.
3570 (remote_async_open, extended_remote_async_open): Call
3571 remote_open_1 instead of remote_async_open_1.
3572
247055de
MK
35732002-08-19 Mark Kettenis <kettenis@gnu.org>
3574
3575 * blockframe.c: Fix a few coding standard violations.
3576
641eda39
MK
35772002-08-19 Mark Kettenis <kettenis@gnu.org>
3578
0b717710
MK
3579 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3580 here from ...
3581 * config/i386/tm-i386sco5.h: ... here. File removed.
3582 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3583
26d28e12 3584 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3585 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3586 (TM_FILE): Set to tm-i386.h.
3587 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3588 * config/i386/tm-i386v.h: Remove file.
3589 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3590 instead of "i386/tm-i386v.h".
3591 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3592 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3593 "i386/tm-i386v.h".
3594 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3595 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3596 "i386/tm-i386.h".
3597
d4e0bab4
MK
35982002-08-18 Mark Kettenis <kettenis@gnu.org>
3599
3600 * config/i386/nm-i386v.h: Add protection against
3601 multiple-inclusion.
3602 (i386_register_u_addr): Remove prototype.
3603 (register_u_addr): New prototype.
3604 (REGISTER_U_ADDR): Redefine accordingly.
3605 * i386v-nat.c: Improve several comments.
3606 (i386_register_u_addr): Change signature and rename to
3607 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3608 ubase variable.
3609
46cac009
AC
36102002-08-18 Andrew Cagney <ac131313@redhat.com>
3611
3612 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3613 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3614 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3615 deprecated_extract_return_value.
3616 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3617 rename mips_o32o64_push_arguments.
3618 (mips_gdbarch_init): Update.
3619 (mips_extract_return_value): Delete.
3620 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3621 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3622 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3623 (mips_n32n64_extract_return_value): Clone
3624 mips_extract_return_value.
3625 (mips_store_return_value): Delete.
3626 (mips_o32_store_return_value): Clone mips_store_return_value.
3627 (mips_o64_store_return_value): Clone mips_store_return_value.
3628 (mips_eabi_store_return_value): Clone mips_store_return_value.
3629 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3630
d2e4a39e
AS
36312002-08-18 Aidan Skinner <aidan@velvet.net>
3632
0c30c098
AS
3633 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3634 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3635
36362002-08-18 Aidan Skinner <aidan@velvet.net>
3637
3638 * ada-lang.c: Run through gdb_indent.sh.
3639 * ada-lang.h: Run through gdb_indent.sh.
3640 * ada-tasks.c: Run through gdb_indent.sh.
3641 * ada-typeprint.c: Run through gdb_indent.sh.
3642 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3643
01fc4e33
AC
36442002-08-18 Andrew Cagney <ac131313@redhat.com>
3645
3646 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3647 ABI.
3648
d8ee244c
MK
36492002-08-18 Mark Kettenis <kettenis@gnu.org>
3650
c38d8261
MK
3651 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3652
222db64c
MK
3653 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3654 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3655
c2848c82
MK
3656 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3657 write_register_gen instead of write_register_bytes.
3658
d8ee244c
MK
3659 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3660 i[3456]-*-osf1mk* configurations have been made obsolete.
3661 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3662 i[3456]86-*-osf1mk* hosts obsolete.
3663 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3664 targets obsolete.
3665 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3666 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3667 config/i386/i386m3.mt, config/i386/nm-m3.h,
3668 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3669 config/i386/i386mk.mh, config/i386/i386mk.mt,
3670 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3671 obsolete.
3672 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3673 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3674 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3675
61d8d407
AC
36762002-08-18 Andrew Cagney <ac131313@redhat.com>
3677
3678 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3679 (hppa_value_returned_from_stack): Declare.
3680 (hppa_extract_return_value): Declare.
3681 * config/pa/hppa.mt: New file.
3682 * configure.tgt: Recognize hppa*-*-*.
3683 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3684
0c52bd59
MK
36852002-08-18 Mark Kettenis <kettenis@gnu.org>
3686
3687 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3688 comment.
3689
b5686e99
MK
36902002-08-17 Mark Kettenis <kettenis@gnu.org>
3691
3692 * top.c (gdb_rl_operate_and_get_next): Make sure
3693 operate-and-get-next functions correctly even when the history
3694 list is completely filled.
3695
c1bab85b
AC
36962002-08-18 Andrew Cagney <ac131313@redhat.com>
3697
3698 * MAINTAINERS (Target Instruction Set Architectures): Rename
3699 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3700 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3701 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3702 already listed under Host/Native.
3703
3704 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3705 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3706 mips*-*-*.
3707
32089c7c
AC
37082002-08-17 Andrew Cagney <ac131313@redhat.com>
3709
3710 * config/ia64/ia64.mt: New file.
3711 * config/alpha/alpha.mt: New file.
3712 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3713 ia64-linux-gnu. Mention that ia64-elf is broken.
3714 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3715
b4671f85
MK
37162002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3717
3718 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3719 generic_func_frame_valid instead of func_frame_valid.
3720
c8edd8b4
JB
37212002-08-16 Joel Brobecker <brobecker@gnat.com>
3722
3723 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3724 procfs appears to be broken when debugging on multi-processor
3725 machines. So enable software single stepping in order to avoid
3726 using the procfs interface to do next/step operations, using
3727 internal breakpoints instead.
3728
3729 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3730 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3731 make this pc address equal to the value it would have if the
3732 system stepping capability was used. Also set a new flag used
3733 to ensure that we don't readjust the PC one more time later.
3734
3735 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3736 address by DECR_PC_AFTER_BREAK when software single step is
3737 in use for this architecture, as this has already been taken
3738 care of in handle_inferior_event().
3739
238617f6
JB
37402002-08-16 Joel Brobecker <brobecker@gnat.com>
3741
3742 * infrun.c (handle_inferior_event): Minor reformatting, to make
3743 a rather long condition expression easier to read.
3744
541a7aac
AC
37452002-08-16 Andrew Cagney <ac131313@redhat.com>
3746
3747 * Makefile.in (gdbtk.o): Move to end of file.
3748 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3749 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3750 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3751 (gdbtk-wrapper.o, gdbres.o): Ditto.
3752
f92d4a7b
AC
37532002-08-16 Andrew Cagney <ac131313@redhat.com>
3754
3755 * Makefile.in (copying.o): Separate out compile rule.
3756 (hpux-thread.o, procfs.o, signals.o): Ditto.
3757 (v850ice.o, z8k-tdep.o): Ditto.
3758 (tui-file.o): Move to TUI section.
3759 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3760 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3761
1cce71eb
JB
37622002-08-16 Joel Brobecker <brobecker@gnat.com>
3763
3764 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3765 skip_trampoline_code, for better namespace-proofing.
3766
3767 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3768
0851f23d
JB
37692002-08-16 Joel Brobecker <brobecker@gnat.com>
3770
3771 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3772
f8d40ec8
JB
37732002-08-16 Joel Brobecker <brobecker@gnat.com>
3774
3775 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3776 signal, check whether we hit a breakpoint before checking for a
3777 single step breakpoint. Otherwise, GDB fails to notice that a
3778 breakpoint has been hit when stepping onto a breakpoint.
3779
63d022e0
KS
37802002-08-16 Keith Seitz <keiths@redhat.com>
3781
3782 * gdb-events.sh (clear_gdb_event_hooks): New function.
3783 * gdb-events.c: Regenerate.
3784 * gdb-events.h: Regenerate.
3785
6e31adb3
AC
37862002-08-16 Andrew Cagney <ac131313@redhat.com>
3787
3788 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3789 not_a_sw_breakpoint.
3790 * breakpoint.h (bpstat_stop_status): Add parameter names.
3791
c8189ed1
GS
37922002-08-16 Grace Sainsbury <graces@redhat.com>
3793
3794 * remote.c (remote_insert_hw_breakpoint)
3795 (remote_remove_hw_breakpoint): Fix calculation of length field
3796 for Z-packet.
3797
d05285fa
MS
37982002-08-15 Michael Snyder <msnyder@redhat.com>
3799
466d7106
MS
3800 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3801 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3802 (supply_fpregset): Ditto.
3803
d05285fa
MS
3804 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3805 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3806 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 3807 (TARGET_READ_SP): Delete.
bf1f5b4c 3808 (DO_REGISTERS_INFO): Delete.
102182a9
MS
3809 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3810 Delete.
3811 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3812 from macros to functions.
bf1f5b4c 3813
d05285fa
MS
3814 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3815 (mips_register_convertible, mips_register_convert_to_virtual,
3816 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
3817 (mips_read_sp): New function.
3818 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
3819 (mips_do_registers_info): Make static.
3820 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
3821 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3822 (mips_register_convert_from_type, mips_register_convert_to_type):
3823 New functions.
3824 (mips_gdbarch_init): Set up function_start_offset,
3825 register_virtual_size, pc_in_sigtramp.
d05285fa 3826
e76f1f2e
AC
38272002-08-15 Andrew Cagney <ac131313@redhat.com>
3828
3829 * infcmd.c (vector_info): New function.
3830 (_initialize_infcmd): Add command "info vector".
3831 (print_vector_info): New function.
3832
3833 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3834 * gdbarch.h, gdbarch.c: Regenerate.
3835
4782dc19
AC
38362002-08-15 Andrew Cagney <ac131313@redhat.com>
3837
3838 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3839 ``print_all''. Only print vector registers when ``print_all''.
3840
23e3a7ac
AC
38412002-08-15 Andrew Cagney <ac131313@redhat.com>
3842
8e186fd6
AC
3843 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3844 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3845
23e3a7ac
AC
3846 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3847 Add `args' parameter.
3848 * gdbarch.h, gdbarch.c: Regenerate.
3849
3850 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3851
3852 * infcmd.c (float_info): Call print_float_info.
3853 (print_float_info): New function. By default, print the
3854 floating-point registers.
3855
3856 * arch-utils.h (default_print_float_info): Delete declaration.
3857 * arch-utils.c (default_print_float_info): Delete function.
3858
e0ca2bb9
MK
38592002-08-16 Mark Kettenis <kettenis@gnu.org>
3860
3f733acc
MK
3861 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3862 out define.
3863
7d8d2918
MK
3864 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3865 FRAME.
3866
1c7cc583
MK
3867 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3868 * configure.host: Make i[3456]86-*-aix host obsolete.
3869 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3870 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3871 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3872 config/i386/xm-i386aix.h: Make files obsolete.
3873 * i386aix-nat.c: Make file obsolete.
3874 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3875 (i386aix-nat.o): Make target obsolete.
3876
e0ca2bb9
MK
3877 * config/i386/nm-gnu.h: Removed.
3878 * config/i386/nm-i386gnu.h: New file.
3879 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3880 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3881 Moved here from ...
3882 * config/i386/tm-i386gnu.h: ... here. Removed.
3883 * config/i386/xm-i386gnu.h: Removed.
3884 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3885 (NAT_FILE): Set to nm-i386gnu.h.
3886 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3887 * i386-tdep.c: New file.
3888 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3889 (i386gnu-tdep.o): Specify dependencies.
3890
16057ec7 38912002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 3892
6b99ee2e
MK
3893 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3894 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3895 Adjust a few comments to reflect reality a bit closer.
3896 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3897 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3898 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3899 target_insert_watchpoint, target_remove_watchpoint):
3900 Move defines to ...
3901 * config/i386/nm-i386sco5.h: ... here.
3902 (kernel_u_size): Add prototype. Improve a few comments and add
3903 protection against multiple inclusion.
3904
d9a6f65c
MK
3905 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3906 out define.
3907
047eff6a
MK
3908 * uw-thread.c (SP_ARG0): Define if not already defined.
3909 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3910
dcdb1290
MK
3911 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3912
5d2d0b2a
MK
3913 * config/i386/tm-i386.h: Don't include "regcache.h".
3914
61113f8b
MK
3915 * i387-tdep.h (i387_print_float_info): New prototype.
3916 * i387-tdep.c (print_i387_value, print_i387_ext,
3917 print_i387_status_word, print_i387_control_word): Add `struct
3918 ui_file *' argument and use it for output.
3919 (i387_print_float_info): Renamed from i387_float_info. Add
3920 `struct gdbarch *' and `struct ui_file *' arguments and use the
3921 latter for output.
3922 * i386-tdep.c: Include "i387-tdep.h".
3923 (i386_gdbarch_init): Set print_float_info.
3924 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3925 (FLOAT_INFO): Remove define.
3926
46e0f506
MS
39272002-08-13 Michael Snyder <msnyder@redhat.com>
3928
3929 * mips-tdep.c (mips_push_arguments): Rename to
3930 mips_eabi_push_arguments, and tune for EABI.
3931 (MIPS_REGS_HAVE_HOME_P): Delete.
3932 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3933 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3934 Delete references to mips_regs_have_home_p.
3935
409268de
KS
39362002-08-14 Keith Seitz <keiths@redhat.com>
3937
3938 * Makefile.in (install-gdbtk): Create insight plugin directory.
3939 Install plugins.tcl file.
3940
ffc6a242
KS
39412002-08-14 Keith Seitz <keiths@redhat.com>
3942
3943 * configure.in: Move SUBDIRS to near top of the file so that
3944 --enable options may add things to it.
3945 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3946 * configure: Regenerate.
3947
ebafbe83
MS
39482002-08-13 Michael Snyder <msnyder@redhat.com>
3949
3950 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3951 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3952 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3953
32f6f25d
AC
39542002-08-13 Andrew Cagney <ac131313@redhat.com>
3955
3956 * vax-tdep.c (vax_get_saved_register): Delete function.
3957 (vax_gdbarch_init): Update.
3958 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3959 (ns32k_gdbarch_init): Update.
3960 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3961 (alpha_gdbarch_init): Update.
3962
53826de9
AC
39632002-08-13 Andrew Cagney <cagney@redhat.com>
3964
3965 * regcache.c (init_regcache_descr): Overallocate the
3966 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3967 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3968 nr_raw_registers.
3969 (set_register_cached): Add range checking assertions. Use
3970 current_regcache.
3971
16057ec7 39722002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
3973
3974 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3975 numbers for MMX registers.
3976
7b4c2dce
AC
39772002-08-13 Andrew Cagney <cagney@redhat.com>
3978
3979 * i386-tdep.c (i386_gdbarch_init): Use
3980 generic_unwind_get_saved_register.
3981
1e03ad20
KB
39822002-08-13 Kevin Buettner <kevinb@redhat.com>
3983
3984 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3985 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3986 target vector.
3987 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3988 Delete. Add comment regarding this now-deleted target method.
3989
548bcbec
SC
39902002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3991
3992 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3993 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3994 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3995 real PC and the page number (if it's within the memory bank window).
3996 (m68hc11_pseudo_register_write): Likewise when saving.
3997 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3998 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3999 (m68hc11_register_raw_size): And use 32-bit for it.
4000 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4001 16K memory bank is used by the prog; also use the virtual pc.
4002
7df11f59
SC
40032002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4004
4005 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4006 (m68hc11_gdbarch_init): Install it in gdbarch.
4007 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4008 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4009 (MSYMBOL_SIZE): New for documentation.
4010 (insn_return_kind): Enum to specify how a function returns.
4011 (frame_extra_info): Cleanup and record the return mode.
4012 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4013 register in address computation.
4014 (m68hc11_get_return_insn): New to obtain the return instruction used
4015 by the function.
4016 (m68hc11_frame_init_saved_regs): Take into account the return
4017 instruction used by the function for far and interrupt functions.
4018 (m68hc11_init_extra_frame_info): Take into account page register.
4019 (m68hc11_frame_args_address): Adjust according to the return mode.
4020 (show_regs): Print page register only when it's used.
4021
5706502a
SC
40222002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4023
4024 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4025 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4026 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4027 registers.
4028 (m68hc11_register_raw_size): Likewise.
4029
28fc6740
AC
40302002-08-13 Andrew Cagney <cagney@redhat.com>
4031
4032 * i386-tdep.c (i386_register_name): Handle mmx registers.
4033 (mmx_regnum_p): New function.
4034 (i386_mmx_names): New array.
4035 (mmx_num_regs): New variable.
4036 (i386_pseudo_register_read): New function.
4037 (i386_pseudo_register_write): New function.
4038 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4039
4040 * regcache.c (regcache_raw_read_unsigned): New function.
4041 (regcache_raw_read_signed): New function.
4042 * regcache.h (regcache_raw_read_unsigned): Declare.
4043 (regcache_raw_read_signed): Declare.
4044
a378f419
AC
40452002-08-13 Andrew Cagney <cagney@redhat.com>
4046
4047 * regcache.c (regcache_raw_read_as_address): Delete function.
4048 (regcache_cooked_read_signed): New function.
4049 (regcache_cooked_read_unsigned): New function.
4050 * regcache.h (regcache_cooked_read_signed): Declare.
4051 (regcache_cooked_read_unsigned): Declare.
4052 (regcache_raw_read_as_address): Delete declaration.
4053
4054 * blockframe.c (generic_read_register_dummy): Use
4055 regcache_cooked_read_unsigned.
4056 * i386-tdep.c (i386_extract_struct_value_address): Use
4057 regcache_cooked_read_unsigned.
4058
81967506
SC
40592002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4060
4061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4062 double sizes according to ELF ABI flags.
4063 (gdbarch_tdep): Record elf_flags.
4064
ffe1f3ee
SC
40652002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4066
4067 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4068 (m6812_prolog): They can appear in 68HC12 function prologue.
4069 (m68hc11_frame_chain): Cleanup.
4070
98216c5d
AC
40712002-08-12 Andrew Cagney <cagney@redhat.com>
4072
4073 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4074 declarations.
4075 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4076 (i386_linux_register_raw_size): Delete function.
4077 (i386_linux_init_abi): Update.
4078 * i386-tdep.c (i386_register_raw_size): Delete function.
4079 (i386_register_byte): Delete function.
4080 (i386_gdbarch_init): Update.
4081 (i386_register_size): Delete array.
4082 (i386_register_offset): Delete array.
4083
4084 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4085 (REGISTER_RAW_SIZE): Delete macro.
4086 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4087 (REGISTER_BYTE): Delete macro.
4088
3b19021e
AS
40892002-08-11 Aidan Skinner <aidan@velvet.net>
4090
4091 * ada-lang.c (ada_lookup_partial_symbol)
4092 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4093 prototype names so that grep ^func works properly.
4094
4095 * ada-lang.c (ada_array_element_type)
4096 (ada_lookup_partial_symbol): Fix typos in parameter list.
4097
4098 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4099 Fix prototype names so that grep ^func works properly.
4100
b063e7a2
AC
41012002-08-10 Andrew Cagney <cagney@redhat.com>
4102 Elena Zannoni <ezannoni@redhat.com>
4103 Martin M. Hunt <hunt@redhat.com>
4104
4105 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4106 (build_builtin_type_vec128i): Set the vector bit.
4107 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4108 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4109 (build_builtin_type_vec64): New function.
4110 (build_builtin_type_vec64i): New function.
4111 (build_gdbtypes): Initialize builtin_type_vec64 and
4112 builtin_type_vec64i.
4113
a7e3c2ad
AC
41142002-08-09 Andrew Cagney <cagney@redhat.com>
4115
4116 * regcache.c (regcache_dump): Compare the register offset
4117 with REGISTER_BYTE.
4118 * arch-utils.c (generic_register_byte): New function.
4119 * arch-utils.h (generic_register_byte): Declare.
4120 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4121 * gdbarch.h, gdbarch.c: Regenerate.
4122
af030b9a
AC
41232002-08-09 Andrew Cagney <cagney@redhat.com>
4124
4125 * regcache.c: Include "gdbcmd.h"
4126 (_initialize_regcache): Add commands "maintenance print
4127 registers", "maintenance print raw-registers" and "maintenance
4128 print cooked-registers".
4129 (enum regcache_dump_what): Define.
4130 (dump_endian_bytes): New function.
4131 (regcache_dump): New function.
4132 (regcache_print): New function.
4133 (maintenance_print_registers): New function.
4134 (maintenance_print_raw_registers): New function.
4135 (maintenance_print_cooked_registers): New function.
4136 * Makefile.in (regcache.o): Update dependencies.
4137
cb3d25d1
MS
41382002-08-09 Michael Snyder <msnyder@redhat.com>
4139
4140 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4141 (mips_push_arguments): Correct some comments. Use paddr_nz
4142 for printing addresses in debug output. Replace static
4143 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4144 (mips_n32n64_push_arguments): New function, cloned from
4145 mips_push_arguments and tuned for the n32/n64 ABI.
4146 (mips_push_register): Buffer needs dynamic allocation.
4147 (mips_print_register): Ditto.
4148 (do_gp_register_row): Ditto.
4149 (mips_store_return_value): Ditto.
4150 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4151
2163ab9d
DH
41522002-08-09 Don Howard <dhoward@redhat.com>
4153
4154 * memattr.c (mem_info_command): Print special case of upper bound
4155 as max CORE_ADDR + 1.
4156
b78bcb18
MS
41572002-08-08 Michael Snyder <msnyder@redhat.com>
4158
4159 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4160 returns structs by ref if they're too big to fit in two registers.
4161
ffabd70d
KB
41622002-08-09 Kevin Buettner <kevinb@redhat.com>
4163
4164 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4165 saved regs value.
4166 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4167 mips_find_saved_regs().
4168 (mips_pop_frame): Likewise.
4169
fbcdb4a3
KB
41702002-08-09 Kevin Buettner <kevinb@redhat.com>
4171
4172 * blockframe.c (frame_saved_regs_register_unwind): Revise
4173 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4174 frames are in use.
4175
3c3bea1c
GS
41762002-08-09 Grace Sainsbury <graces@redhat.com>
4177
4178 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4179 T-packets; the 'a' is not taken as a register number.
4180 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4181 (remote_stopped_data_address): New functions; add to target
4182 vector.
4183 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4184 prototypes to match other implementations of this
4185 function. replace integer argument with pointer -- the length
4186 field in the Z-packet is the length of what is pointed to or 1 if
4187 pointer is null. Add to target vector.
4188 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4189 target vector.
4190
4191 From Mark Salter:
4192 * remote.c (remote_wait): Add support to extract optional
4193 watchpoint information from T-packet. Ignore unrecognized
4194 optional info in T-packet.
4195 (remote_async_wait): Ditto.
4196
5d1d95de
CV
41972002-08-09 Corinna Vinschen <vinschen@redhat.com>
4198
4199 * cli/cli-dump.c: Change fopen modes to use binary open modes
4200 as defined in include/fopen-bin.h throughout.
4201
c86b5b38
MS
42022002-08-08 Michael Snyder <msnyder@redhat.com>
4203
4204 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4205
b30590dc
KB
42062002-08-08 Kevin Buettner <kevinb@redhat.com>
4207
4208 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4209 assertion failure by returning early after a warning.
4210
498868ed
KB
42112002-08-08 Kevin Buettner <kevinb@redhat.com>
4212
4213 * mips-tdep.c (mips_find_saved_regs): Make static.
4214 (mips_frame_init_saved_regs): New function.
4215 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4216 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4217 (mips_find_saved_regs): Delete declaration.
4218
b2dd6311
GS
42192002-08-08 Grace Sainsbury <graces@redhat.com>
4220
3c3bea1c
GS
4221 * remote.c (remote_wait, remote_async_wait): Change
4222 thread_num from int to ULONGEST.
4223 (unpack_varlen_hex): Change result parameter from
4224 int * to ULONGEST *.
b2dd6311 4225
ea47855f
AC
42262002-08-08 Andrew Cagney <ac131313@redhat.com>
4227
4228 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4229 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4230 powerpc*-*-*.
4231 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4232
69db8bae
AC
42332002-08-08 Andrew Cagney <cagney@redhat.com>
4234
4235 * gcore.c (override_derive_stack_segment): Delete variable.
4236 (preempt_derive_stack_segment): Delete function.
4237 (derive_stack_segment): Delete function.
4238 (default_derive_stack_segment): Renamed to derive_stack_segment.
4239 (override_derive_heap_segment): Delete variable.
4240 (preempt_derive_heap_segment): Delete function.
4241 (derive_heap_segment): Delete function.
4242 (default_derive_heap_segment): Rename to derive_heap_segment.
4243
cb811fe7
MS
42442002-08-06 Michael Snyder <msnyder@redhat.com>
4245
4246 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4247 * mips-tdep.c (mips_EABI_use_struct_convention,
4248 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4249 New functions. (mips_use_struct_convention): Delete.
4250 (mips_gdbarch_init): set use_gdbarch_convention.
4251
8b389c40
MS
42522002-08-06 Michael Snyder <msnyder@redhat.com>
4253
4254 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4255 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4256 mips_o32_reg_struct_has_addr): New functions.
4257 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4258
5c27f28a
AC
42592002-08-07 Andrew Cagney <ac131313@redhat.com>
4260
4261 * regcache.c (pseudo_register): Delete function.
4262 (fetch_register): Delete function.
4263 (store_register): Delete function.
4264 (regcache_raw_read, legacy_read_register_gen): Use
4265 target_fetch_registers instead of fetch_register.
4266 (legacy_write_register_gen, regcache_raw_write): Use
4267 target_store_register instead of store_register.
4268 (write_register_bytes): Ditto.
4269
4270 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4271 (STORE_PSEUDO_REGISTER): Delete.
4272 * gdbarch.h, gdbarch.c: Regenerate.
4273
5b331675
CV
42742002-08-06 Corinna Vinschen <vinschen@redhat.com>
4275
4276 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4277 write dump file binary.
4278
6acdf5c7
MS
42792002-08-05 Michael Snyder <msnyder@redhat.com>
4280
4281 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4282 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4283 (mips_gdbarch_init): Set N32 target to be mips64.
4284
b2f01c35
KB
42852002-08-06 Kevin Buettner <kevinb@redhat.com>
4286
4287 * frame.c (find_saved_register): Break out of loop once saved
4288 register address is found. Don't mention sparc in loop comment
4289 anymore.
4290
63db5580
KB
42912002-08-06 Kevin Buettner <kevinb@redhat.com>
4292
4293 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4294 mips_default_saved_regsize to 8.
4295
5e34e75e
AC
42962002-08-06 Andrew Cagney <ac131313@redhat.com>
4297
4298 * gcore.c: Do not include <sys/procfs.h>.
4299 * Makefile.in (gcore.o): Update dependencies.
4300
eb4c54a2
AC
43012002-08-06 Andrew Cagney <cagney@redhat.com>
4302
4303 * configure.tgt: Make arc-*-* obsolete.
4304 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4305 * MAINTAINERS: Make arc-elf obsolete.
4306 * arc-tdep.c: Make file obsolete.
4307 * config/arc/arc.mt: Ditto.
4308 * config/arc/tm-arc.h: Ditto.
4309
ced15480
TR
43102002-08-05 Theodore A. Roth <troth@verinet.com>
4311
c1bab85b 4312 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4313
b4743822
AC
43142002-08-05 Andrew Cagney <ac131313@redhat.com>
4315
4316 * mcore-tdep.c (mcore_gdbarch_init): Use
4317 generic_unwind_get_saved_register instead of
4318 generic_get_saved_register.
4319 * v850-tdep.c (v850_gdbarch_init): Ditto.
4320 * frv-tdep.c (frv_gdbarch_init): Ditto.
4321 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4322 * s390-tdep.c (s390_gdbarch_init): Ditto.
4323 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4324 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4325 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4326
3956d554
JB
43272002-08-05 Joel Brobecker <brobecker@gnat.com>
4328
4329 * objfiles.h: Add missing #include "symfile.h"
4330
4331 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4332
8249c0d6
AC
43332002-08-04 Andrew Cagney <ac131313@redhat.com>
4334
4335 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4336 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4337 of FIELD_BITSIZE.
4338
b9d14705
DJ
43392002-08-04 Daniel Jacobowitz <drow@mvista.com>
4340
4341 * NEWS: Cleanup and nitpick.
4342
dd73b9bb
AC
43432002-08-03 Andrew Cagney <ac131313@redhat.com>
4344
4345 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4346
043a27f8
AC
43472002-08-03 Andrew Cagney <ac131313@redhat.com>
4348
4349 * Makefile.in (gdbtk-bp.o): Update dependencies.
4350 (gdbtk-register.o): Ditto.
4351 (gdbtk-varobj.o): Ditto.
4352
46ce284d
AC
43532002-08-03 Andrew Cagney <cagney@redhat.com>
4354
4355 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4356 m68hc11_fetch_pseudo_register.
4357 (m68hc11_pseudo_register_write): Replace
4358 m68hc11_store_pseudo_register.
4359 (m68hc11_gdbarch_init): Update.
4360
b66d6d2e
AC
4361Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4362
4363 * gdbarch.sh: Include "gdb_string.h".
4364 * gdbarch.c: Regenerate.
4365
4366 * regcache.c: Include "gdb_string.h".
4367 * ax-general.c: Ditto.
4368 * varobj.c: Ditto.
4369 * std-regs.c: Ditto.
4370 * fbsd-proc.c: Ditto.
4371 * thread.c: Ditto.
4372
4373 * Makefile.in (regcache.o): Update dependencies.
4374 (thread.o, gdbarch.o): Ditto.
4375 (ax-general.o, gdbarch.o): Ditto.
4376 (varobj.o, std-regs.o): Ditto.
4377 (fbsd-proc.o): Specify dependencies.
4378
29e1842b
AC
43792002-08-02 Andrew Cagney <cagney@redhat.com>
4380
4381 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4382 regnum.
4383 (regcache_cooked_write): Ditto.
4384
68365089
AC
43852002-08-02 Andrew Cagney <ac131313@redhat.com>
4386
4387 * regcache.c (regcache_cooked_read): New function.
4388 (regcache_cooked_write): New function.
4389 (read_register_gen): Rewrite using regcache_cooked_read.
4390 (write_register_gen): Rewrite using regcache_cooked_write.
4391
4392 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4393 Declare.
4394
d8124050
AC
43952002-08-02 Andrew Cagney <cagney@redhat.com>
4396
4397 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4398 Replace the architecture methods register_read and register_write.
4399 * gdbarch.h, gdbarch.c: Regenerate.
4400 * regcache.c (init_regcache_descr): Update.
4401 (read_register_gen): Update.
4402 (write_register_gen): Update.
4403 (supply_register): Update comment.
4404
4405 * sh-tdep.c (sh_gdbarch_init): Update.
4406 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4407 `regcache' and `gdbarch' parameters. Make `buffer' a void
4408 pointer. Update code.
4409 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4410 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4411 void pointer. Update code.
4412 (sh64_register_write): Delete.
4413 (sh4_register_read): Delete.
4414 (sh64_register_read): Delete.
4415 (sh4_register_write): Delete.
4416 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4417 void pointer, `to' parameter a void pointer.
4418 (sh_sh64_register_convert_to_raw): Ditto.
4419
a6425924
KB
44202002-08-01 Kevin Buettner <kevinb@redhat.com>
4421
4422 * mips-tdep.c (mips_register_virtual_type): Use architecture
4423 invariant return values.
4424
ff5922b5
AC
44252002-08-01 Andrew Cagney <cagney@redhat.com>
4426
4427 * linux-proc.c: Include "gdb_string.h".
4428 * Makefile.in (linux-proc.o): Update dependency list.
4429
32a6503c
KB
44302002-08-01 Kevin Buettner <kevinb@redhat.com>
4431
4432 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4433 comment.
4434
ccaa32c7
GS
44352002-08-01 Grace Sainsbury <graces@redhat.com>
4436
4437 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4438 to_insert_watchpoint, to_remove_watchpoint,
4439 to_stopped_by_watchpoint, to_stopped_data_address,
4440 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4441 target vecctor. Define their corresponding macros so they call
4442 them.
4443
4444 * target.c: Add default and debug versions of for
4445 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4446 to_insert_watchpoint, to_remove_watchpoint,
4447 to_stopped_by_watchpoint, to_stopped_data_address,
4448 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4449
78fde5f8
KB
44502002-08-01 Kevin Buettner <kevinb@redhat.com>
4451
4452 * mips-tdep.c (mips_register_virtual_type): New function.
4453 (mips_gdbarch_init): Register mips_register_virtual_type()
4454 with gdbarch machinery.
4455 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4456 this file instead of tm-bigmips.h.
4457 (MIPS_REGSIZE): Delete this macro.
4458 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4459 multiarch version in mips-tdep.c will be found.
4460
db034ac5
AC
44612002-08-01 Andrew Cagney <cagney@redhat.com>
4462
4463 * NEWS: Menion that CHILL has been made obsolete.
4464
4465 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4466 * stabsread.c (read_range_type): Ditto.
4467 * gdbtypes.h: Ditto.
4468 * language.c (binop_type_check): Ditto.
4469 (binop_result_type): Ditto.
4470 (integral_type): Ditto.
4471 (character_type): Ditto.
4472 (string_type): Ditto.
4473 (boolean_type): Ditto.
4474 (structured_type): Ditto.
4475 (lang_bool_type): Ditto.
4476 (binop_type_check): Ditto.
4477 * language.h (_LANG_chill): Ditto.
4478 * dwarfread.c (set_cu_language): Ditto.
4479 * dwarfread.c (CHILL_PRODUCER): Ditto.
4480 * dwarfread.c (handle_producer): Ditto.
4481 * expression.h (enum exp_opcode): Ditto.
4482 * eval.c: Ditto for comments.
4483 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4484 * expprint.c (print_subexp): Ditto.
4485 (print_subexp): Ditto.
4486 * valops.c (value_cast): Ditto.
4487 (search_struct_field): Ditto.
4488 * value.h (COERCE_VARYING_ARRAY): Ditto.
4489 * symfile.c (init_filename_language_table): Ditto.
4490 (add_psymbol_with_dem_name_to_list): Ditto.
4491 * valarith.c (value_binop): Ditto.
4492 (value_neg): Ditto.
4493 * valops.c (value_slice): Ditto.
4494 * symtab.h (union language_specific): Ditto.
4495 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4496 (SYMBOL_DEMANGLED_NAME): Ditto.
4497 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4498 * defs.h (enum language): Ditto.
4499 * symtab.c (got_symtab): Ditto.
4500 * utils.c (fprintf_symbol_filtered): Ditto.
4501
4502 * ch-typeprint.c: Make file obsolete.
4503 * ch-valprint.c: Make file obsolete.
4504 * ch-lang.h: Make file obsolete.
4505 * ch-exp.c: Make file obsolete.
4506 * ch-lang.c: Make file obsolete.
4507
4508 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4509 CHILL_LIB.
4510 (TARGET_FLAGS_TO_PASS): Ditto.
4511 (CHILLFLAGS): Obsolete.
4512 (CHILL): Obsolete.
4513 (CHILL_FOR_TARGET): Obsolete.
4514 (CHILL_LIB): Obsolete.
4515 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4516 ch-valprint.c.
4517 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4518 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4519 ch-lang.o.
4520 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4521 targets.
4522
8aaf0b47
JB
45232002-07-31 Joel Brobecker <brobecker@gnat.com>
4524
4525 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4526 This does not change anything at the moment, but will be helpful
4527 later when full Ada support is integrated.
4528
f3a7b3a5
KB
45292002-07-31 Kevin Buettner <kevinb@redhat.com>
4530
4531 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4532 help message.
4533
fb850278
KB
45342002-07-31 Kevin Buettner <kevinb@redhat.com>
4535
4536 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4537 and save it in a local variable. Use variable in later test.
4538
e3bddbfa
KB
45392002-07-31 Kevin Buettner <kevinb@redhat.com>
4540
4541 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4542 test. (Thanks to Daniel Jacobowitz.)
4543
28d169de
KB
45442002-07-31 Kevin Buettner <kevinb@redhat.com>
4545
4546 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4547 (mips_abi_strings): Add "n64".
4548 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4549
7fe7e44e
KB
45502002-07-31 Kevin Buettner <kevinb@redhat.com>
4551
4552 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4553 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4554
c6caf090
KB
45552002-07-31 Kevin Buettner <kevinb@redhat.com>
4556
4557 * utils.c (host_pointer_to_address, address_to_host_pointer):
4558 Use gdb_assert() instead of explicit call to internal_error().
4559
c41669e0
KB
45602002-07-30 Kevin Buettner <kevinb@redhat.com>
4561
4562 * Makefile.in (rs6000-nat.o): Update dependencies.
4563
4564 From Nicholas Duffek:
4565 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4566 (aix-thread.o): New rule.
4567 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4568 * config/powerpc/aix432.mh: New file.
4569
2fda4977
DJ
45702002-07-30 Daniel Jacobowitz <drow@mvista.com>
4571
4572 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4573 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4574 (fetch_core_registers, ppc_linux_supply_gregset)
4575 (ppc_linux_supply_fpregset): New functions.
4576 (ppc_linux_regset_core_fns): New.
4577 (_initialize_ppc_linux_tdep): Call add_core_fns.
4578 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4579 and ppc_linux_supply_gregset.
4580 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4581 (supply_fpregset): Call ppc_linux_supply_fpregset.
4582 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4583 corelow.o.
4584 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4585
729051e6
DJ
45862002-07-30 Daniel Jacobowitz <drow@mvista.com>
4587
4588 * symtab.c (lookup_symbol): Demangle before lowercasing.
4589
5f8a3188
AC
45902002-07-30 Andrew Cagney <ac131313@redhat.com>
4591
4592 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4593 declaration.
4594 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4595 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4596 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4597 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4598 "gdb_string.h".
4599 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4600 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4601 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4602 (avr-tdep.o, mon960-rom.o): Ditto.
4603 (aout_stabs_gnu_h): Define.
4604 (symtab_h): Remove $(gdb_obstack_h).
4605
67f07146
JB
46062002-07-30 Jim Blandy <jimb@redhat.com>
4607
4608 Patch from David Carlton <carlton@math.stanford.edu>:
4609 * gdbinit.in: Move the `dir' commands that add GDB's own source
4610 directory to the search path to the end, so that the `gdb' source
4611 directory will be searched first.
4612
04ea0df1
AC
46132002-07-29 Andrew Cagney <ac131313@redhat.com>
4614
4615 * gdb_obstack.h: New file.
4616 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4617 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4618 * objfiles.h: Include "gdb_obstack.h".
4619 * Makefile.in (gdb_obstack_h): Define.
4620 (symtab_h): Add $(gdb_obstack_h).
4621 (objfiles_h): Add $(gdb_obstack_h).
4622
4623 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4624 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4625 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4626 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4627 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4628 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4629 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4630 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4631
4632 * Makefile.in (bcache.o): Update dependencies.
4633 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4634 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4635 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4636 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4637 (stabsread.o, symfile.o, symmisc.o): Ditto.
4638 (symtab.o, typeprint.o, macroexp.o): Ditto.
4639 (macrotab.o, mdebugread.o): Ditto.
4640 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4641 (coff_ecoff_h, aout_aout64_h): Define.
4642 (aout_stabs_gnu_h, libaout_h): Define.
4643
d138e37a
AC
46442002-07-29 Andrew Cagney <cagney@redhat.com>
4645
4646 * regcache.c (struct regcache_descr): Rename nr_registers to
4647 nr_cooked_registers. Revise comments describing the structure
4648 member fields.
4649 (init_regcache_descr): Update.
4650 (init_legacy_regcache_descr): Update.
4651 (read_register_gen, write_register_gen): When a cooked register in
4652 the raw register range, directly access the value from the raw
4653 register cache.
4654
460e6ec3
AC
46552002-07-29 Andrew Cagney <ac131313@redhat.com>
4656
4657 * z8k-tdep.c: Do not include "obstack.h".
4658 * h8300-tdep.c, h8500-tdep.c: Ditto.
4659 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4660 * valprint.c, v850-tdep.c: Ditto.
4661 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4662 * mn10200-tdep.c: Ditto.
4663
4664 * Makefile.in (z8k-tdep.o): Update dependencies.
4665 (m68hc11-tdep.o, valprint.o): Ditto.
4666 (v850-tdep.o, d10v-tdep.o): Ditto.
4667 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4668 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4669 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4670 (sh_opc_h, gdb_sim_sh_h): Define.
4671 (elf_sh_h, elf_bfd_h): Define.
4672 (opcode_m68hc11_h): Define.
4673 (OPCODES_SRC, OPCODES_DIR): define.
4674 (OPCODES): Use $(OPCODES_DIR).
4675 (gdb_sim_d10v_h): Rename sim_d10v_h.
4676 (gdb_sim_arm_h): Rename sim_arm_h.
4677
790c9cf0
KB
46782002-07-26 Kevin Buettner <kevinb@redhat.com>
4679
4680 * utils.c (host_pointer_to_address, address_to_host_pointer):
4681 Change internal_error() message to indicate function responsible
4682 for the error.
4683
9647fa49
KB
46842002-07-26 Kevin Buettner <kevinb@redhat.com>
4685
4686 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4687 calls to local_hex_string_custom().
4688
dabbe2c0
KB
46892002-07-26 Kevin Buettner <kevinb@redhat.com>
4690
4691 * irix5-nat.c: Move IRIX shared library support from here...
4692 * solib-irix.c: ...to here. Revised substantially to work with
4693 generic solib framework.
4694
b96d0a4e
KB
4695 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4696 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4697 * mips-irix-tdep.c: New file.
4698
313fb2f6
KB
4699 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4700 (mips-irix-tdep.o, solib-irix.o): New rules.
4701 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4702 solib-irix.o.
4703 * config/mips/irix6.mt (TDEPFILES): Likewise.
4704 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4705
ab2eaf26
KB
47062002-07-26 Kevin Buettner <kevinb@redhat.com>
4707
177e4768 4708 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4709 disabled (via ``#if 0'') includes.
4710
7244546a
KB
47112002-07-26 Kevin Buettner <kevinb@redhat.com>
4712
4713 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4714 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4715 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4716 Add support for the fpscr register.
4717 * rs6000-nat.c (regmap, fetch_inferior_registers)
4718 (store_inferior_registers, fetch_core_registers): Likewise.
4719
dd7be90a
KB
47202002-07-26 Kevin Buettner <kevinb@redhat.com>
4721
4722 * rs6000-nat.c (language.h): Include.
4723 (special_regs): Delete this array.
4724 (regmap): New function.
4725 (fetch_register, store_register): Use regmap() to map gdb
4726 register numbers to ptrace register numbers. Also, use
4727 outputs from regmap() to make decisions regarding type of
4728 ptrace() call to make. In particular, don't compare against
4729 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4730 (fetch_inferior_registers, store_inferior_registers): Where
4731 possible, obtain register numbers from tdep struct. Don't
4732 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4733 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4734 (LAST_UISA_SP_REGNUM): Delete.
4735
11bf77db
KB
47362002-07-25 Kevin Buettner <kevinb@redhat.com>
4737
4738 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4739 (fetch_registers, store_register, fetch_core_registers): Don't
4740 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4741 regcache_collect() as appropriate.
4742 (find_toc_address): Format hex address with local_hex_string().
4743
06afebeb
AC
47442002-07-25 Andrew Cagney <ac131313@redhat.com>
4745
4746 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4747 bfd/elf32-frv.c.
4748
8c554d79
TT
47492002-07-24 Tom Tromey <tromey@redhat.com>
4750
4751 * jv-exp.y: Marked all strings with _().
4752 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4753 internal_error.
4754 (MethodInvocation, CastExpression, parse_number, yyerror,
4755 java_type_from_name, push_expression_name, yylex): Typo fixes.
4756
e4c242d9
DJ
47572002-07-24 Daniel Jacobowitz <drow@mvista.com>
4758
4759 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4760 (tee_file_flush, tee_file_write, tee_file_fputs)
4761 (tee_file_isatty): New.
4762 * ui-file.h (tee_file_new): Add prototype.
4763
ebf56fd3
AS
47642002-07-24 Aidan Skinner <aidan@velvet.net>
4765
4766 * ada-lang.c: Change k&r style function definitions to prototyped
4767 form.
4768 * ada-typeprint.c: Change k&r style function definitions to prototyped
4769 form.
4770 * ada-valprint.c: Change k&r style function definitions to prototyped
4771 form.
4772
7fb623f7
AC
47732002-07-24 Andrew Cagney <cagney@redhat.com>
4774
4775 * README: Remove reference to remote-bug.
4776 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4777 remote-bug.c.
4778 (m88k-nat.o): Delete rule.
4779 (m88k-tdep.o): Delete rule.
4780 (remote-bug.o): Delete rule.
4781 * MAINTAINERS: Mark as obsolete.
4782 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4783 * m88k-tdep.c: Make file obsolete.
4784 * config/m88k/m88k.mh: Ditto.
4785 * config/m88k/delta88v4.mh: Ditto.
4786 * config/m88k/delta88v4.mt: Ditto.
4787 * config/m88k/delta88.mt: Ditto.
4788 * config/m88k/delta88.mh: Ditto.
4789 * remote-bug.c: Ditto.
4790 * config/m88k/tm-delta88.h: Ditto.
4791 * config/m88k/nm-delta88v4.h: Ditto.
4792 * config/m88k/xm-delta88.h: Ditto.
4793 * config/m88k/xm-dgux.h: Ditto.
4794 * config/m88k/tm-m88k.h: Ditto.
4795 * config/m88k/nm-m88k.h: Ditto.
4796 * config/m88k/tm-delta88v4.h: Ditto.
4797 * m88k-nat.c: Ditto.
4798 * cxux-nat.c: Ditto.
4799 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4800 and m88*-*-* obsolete.
4801 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4802 m88*-*-* obsolete.
4803
37611a2b
AC
48042002-07-24 Andrew Cagney <cagney@redhat.com>
4805
4806 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4807 constant. Same for local pointer variables.
4808 (extract_signed_integer): Ditto.
4809 * defs.h (extract_unsigned_integer): Update.
4810 (extract_signed_integer): Update.
4811
1aaa5f99
AC
48122002-07-24 Andrew Cagney <cagney@redhat.com>
4813
4814 * regcache.c (regcache_raw_write): Change buf parameter to a
4815 constant void pointer.
4816 (regcache_raw_read): Change buf parameter to a void pointer.
4817 (legacy_write_register_gen): Change myaddr parameter a constant
4818 void pointer.
4819 (supply_register): Change val parameter to a const void pointer.
4820 * regcache.h (regcache_raw_write): Update declaration.
4821 (regcache_raw_read): Update declaration.
4822 (supply_register): Update declaration.
4823
b4f5539f
TT
48242002-07-24 Tom Tromey <tromey@redhat.com>
4825
4826 * defs.h (gdb_readline_wrapper): Declare.
4827 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4828 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4829 * top.c (gdb_readline_wrapper): New function.
4830 (command_line_input): Use it.
4831
0818c12a
AC
48322002-07-24 Andrew Cagney <cagney@redhat.com>
4833
4834 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4835 regcache_read and regcache_write.
4836 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4837 * regcache.c: Update.
4838 * sh-tdep.c (sh64_push_arguments): Update comment.
4839 (sh_pseudo_register_read): Update.
4840 (sh_pseudo_register_write): Update.
4841 (sh4_register_read): Update.
4842 (sh4_register_write): Update.
4843 (sh64_pseudo_register_read): Update.
4844 (sh64_pseudo_register_write): Update.
4845 (sh64_register_read): Update.
4846 (sh64_register_write): Update.
4847 * i386-tdep.c (i386_extract_return_value): Update.
4848 (i386_extract_struct_value_address): Update.
4849 (i386_extract_return_value): Update.
4850 * blockframe.c (generic_read_register_dummy): Update.
4851 (generic_call_dummy_register_unwind): Update
4852 * infrun.c (write_inferior_status_register): Update.
4853
f7321c06
JB
48542002-07-23 Jim Blandy <jimb@redhat.com>
4855
4856 * parser-defs.h (expression_context_pc): Make this extern.
4857 (Thanks to Michael Snyder.)
4858
2037aebb
AC
48592002-07-23 Andrew Cagney <ac131313@redhat.com>
4860
4861 GDB 5.2.1 released from 5.2 branch.
4862 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4863 * README: Update to mention 5.2.1.
4864
66504d44
MS
48652002-07-23 Mark Salter <msalter@redhat.com>
4866
4867 * remote.c (remote_read_bytes): Fix check for error.
4868
27bae383
KB
48692002-07-22 Kevin Buettner <kevinb@redhat.com>
4870
4871 * aix-thread.c (language.h): Include.
4872 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4873 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4874 Print newlines at end of debug messages.
4875 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4876 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4877
48782002-07-22 Kevin Buettner <kevinb@redhat.com>
4879
4880 * aix-thread.c (ppc-tdep.h): Include.
4881 (special_register_p): New function.
4882 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4883 (store_regs_user_thread): Use register number information from
4884 gdbarch_tdep struct instead of hardcoded offsets relative to
4885 FIRST_UISA_SP_REGNUM.
4886 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4887 special_register_p() instead of using FPLAST_REGNUM and
4888 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4889 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4890 will be MQ's register number.
4891
48922002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
4893
4894 * aix-thread.c (ops): Rename to aix_thread_ops.
4895 (base_ops): Rename to base_target.
4896 (ops_attach): Rename to aix_thread_attach.
4897 (ops_detach): Rename to aix_thread_detach.
4898 (ops_resume): Rename to aix_thread_detach.
4899 (ops_wait): Rename to aix_thread_wait.
4900 (ops_kill): Rename to aix_thread_kill.
4901 (init_ops): Rename to init_aix_thread_ops.
4902 (ops_fetch_register): Rename to aix_thread_fetch_register.
4903 (ops_store_register): Rename to aix_thread_store_register.
4904 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4905 (ops_thread_alive): Rename to aix_thread_thread_alive.
4906 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4907 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4908 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4909 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4910 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4911 (store_regs_lib): Rename to store_regs_user_thread.
4912 (store_regs_kern): Rename to store_regs_kernel_thread.
4913
27bae383 49142002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
4915
4916 * aix-thread.c (ops_prepare_to_store): Eliminate.
4917 (init_ops): Don't initialize ops.prepare_to_store.
4918 (store_regs_kern): Pre-fetch register buffers from child,
4919 because some registers may not be in the cache. Copy
4920 regs from register cache only if they are cached.
4921 (store_regs_lib): Copy regs from register cache only
4922 if they are cached.
4923 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4924 fill_gprs64): Ditto.
4925
61c5da0b
KB
49262002-07-22 Kevin Buettner <kevinb@redhat.com>
4927
4928 * aix-thread.c (gdb_assert.h): Include.
4929 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4930 register sizes (from register cache) match size of buffer holding
4931 register data.
4932 (fill_sprs32): Change parameter types to match those in the ptrace()
4933 buffer.
4934 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4935 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4936
49372002-07-22 Michael Snyder <msnyder@redhat.com>
4938
4939 * aix-thread.c (supply_sprs64): Cosmetic change.
4940 (supply_sprs32): Cosmetic change.
4941 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4942 (fill_sprs64): Use regcache_collect instead of read_register.
4943 (store_regs_lib): Use regcache_collect instead of
4944 read_register. Use fill_sprs32 instead of fill_sprs64,
4945 if debugging a 32-bit architecture.
4946 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4947 out of the register cache, instead of passing a pointer into
4948 the register cache directly to ptrace. Use regcache_collect
4949 insteaad of read_register.
4950 (ops_prepare_to_store): Use target_read_registers instead
4951 of read_register_bytes.
4952
36479eb1
AS
49532002-07-20 Aidan Skinner <aidan@velvet.net>
4954
4955 * MAINTAINERS: Add self under write after approval.
4956
80ae6ee2
AS
49572002-07-20 Aidan Skinner <aidan@velvet.net>
4958
4959 * ada-tasks.c: Change k&r style function definitions to prototyped
4960 form.
4961
8a8ab2b9
AC
49622002-07-19 Andrew Cagney <ac131313@redhat.com>
4963
4964 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4965 * x86-64-tdep.c: Include "objfiles.h".
4966 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4967 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4968
fb16b900
ML
49692002-07-17 Michal Ludvig <michal@suse.cz>
4970
4971 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4972 (update_context): Initialise cfa variable.
4973
0fe7bf7b
MS
49742002-07-17 Michael Snyder <msnyder@redhat.com>
4975
4976 * aix-thread.c: Shorten some long lines.
4977 Bring comments into line with code spec.
4978
488f131b
JB
49792002-07-18 Joel Brobecker <brobecker@gnat.com>
4980
4981 * infrun.c: Re-indent using gdb_indent.sh.
4982
46c415d2
JB
49832002-07-18 Joel Brobecker <brobecker@gnat.com>
4984
4985 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4986 Leave the indentation temporarily untouched, to minimize the diffs.
4987
cdecafbe
EZ
49882002-07-18 Elena Zannoni <ezannoni@redhat.com>
4989
4990 * stabsread.c: Make os9k sections of the code obsolete,
4991 for real this time.
4992 * stabsread.h: Make os9k sections of the code obsolete.
4993
7b6aa020
ML
49942002-07-18 Michal Ludvig <mludvig@suse.cz>
4995
09ec9b38
ML
4996 * linux-low.c (regsets_store_inferior_registers): Add free()
4997 at the end of a loop to prevent memory leak.
4998 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4999 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5000 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5001 line a comment.
4894ac5d 5002 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5003
233282cd
JB
50042002-07-17 Jim Blandy <jimb@redhat.com>
5005
5006 * macrocmd.c (info_macro_command): Remove newline from error
5007 message.
5008
7b6aa020 50092002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5010
5011 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5012 (sh_gdbarch_init): Use it for sh-dsp.
5013
f7ef9339
KB
50142002-07-16 Kevin Buettner <kevinb@redhat.com>
5015
5016 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5017 64-bit DWARF2 format.
5018
8dd72958
JB
50192002-07-16 Joel Brobecker <brobecker@gnat.com>
5020
5021 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5022 <sys/proc.h> when not available.
5023
a99a9e1b
AC
50242002-07-16 Andrew Cagney <ac131313@redhat.com>
5025
5026 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5027 * stabsread.c: Make os9k sections of the code obsolete.
5028 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5029 * config/i386/i386os9k.mt: Make file obsolete.
5030 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5031 (COMMON_OBS): Remove os9kread.o
5032 (SFILES): Remove os9kread.c.
5033 (os9kread.o, remote-os9k.o): Make target obsolete.
5034 * remote-os9k.c: Make file obsolete.
5035 * os9kread.c: Make file obsolete.
5036 * Makefile.in
5037
7a3085c1
AC
50382002-07-16 Andrew Cagney <ac131313@redhat.com>
5039
5040 * NEWS: Mention that the FR30 has been made obsolete.
5041 * fr30-tdep.c: Make file obsolete.
5042 * config/fr30/tm-fr30.h: Ditto.
5043 * config/fr30/fr30.mt: Ditto.
5044 * configure.tgt: Make fr30-*-elf obsolete.
5045 * MAINTAINERS: Make fr30-elf obsolete.
5046
28a93f5a
PM
50472002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5048
5049 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5050 found is not inside a section.
5051
be006b8b
KB
50522002-07-15 Kevin Buettner <kevinb@redhat.com>
5053
5054 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5055 strerror().
5056 (pdc_realloc): Use xrealloc() instead of realloc().
5057
14fa3751
KB
50582002-07-15 Kevin Buettner <kevinb@redhat.com>
5059
5060 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5061 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5062 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5063 macros.
5064
42cc437f
KB
50652002-07-15 Kevin Buettner <kevinb@redhat.com>
5066
5067 * aix-thread.c (ptrace_check): Eliminate goto.
5068 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5069 problem.
5070
8e2c28d4
KB
50712002-07-15 Kevin Buettner <kevinb@redhat.com>
5072
5073 * aix-thread.c (gdbcmd.h): Include.
5074 (DEBUG, DBG, DBG2, dbg): Eliminate.
5075 (debug_aix_thread): New static global.
5076 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5077 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5078 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5079 invocations to DBG and DBG2 macros to test against
5080 ``debug_aix_thread'' and call fprintf_unfiltered().
5081 (_initialize_aix_thread): Add new command "set debug aix-thread".
5082
30413464
AC
50832002-07-15 Andrew Cagney <ac131313@redhat.com>
5084
5085 From Gerhard Tonn <TON@de.ibm.com>:
5086 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5087 instead of supply_register.
5088
7c43edc1
AC
50892002-07-15 Andrew Cagney <ac131313@redhat.com>
5090
5091 * dwarf2cfi.c: Include "gdb_assert.h".
5092 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5093 non-NULL.
5094 (update_context): Do not use __func__. Add missing ``break''.
5095 (update_context): Do not use __func__.
5096
9364a0ef
EZ
50972002-07-15 Elena Zannoni <ezannoni@redhat.com>
5098
5099 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5100 and its setting. Set gdbarch instruction printing functions
5101 directly. For non-rs6000 case use new function
5102 gdb_print_insn_powerpc.
5103 (gdb_print_insn_powerpc): New function.
5104
3fbeef0b
AC
51052002-07-13 Andrew Cagney <ac131313@redhat.com>
5106
92eb23c5 5107 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5108 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5109 * configure.tgt: Mark d30v-*-* as obsolete.
5110 * d30v-tdep.c: Mark file as obsolete.
5111 * config/d30v/d30v.mt: Ditto.
5112 * config/d30v/tm-d30v.h: Ditto.
5113
aacb1f0a
AS
51142002-07-13 Aidan Skinner <aidan@velvet.net>
5115
5116 * ada-tasks.c (add_task_entry): replace calls to
5117 malloc() with xmalloc
5118 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5119
5120 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5121 ada_finish_decode_line_1, all_sals_for_line
5122 ada_breakpoint_rewrite): replace calls to free() with xfree()
5123
c11d79f2
KB
51242002-07-12 Kevin Buettner <kevinb@redhat.com>
5125
5126 From Nicholas Duffek (with minor changes by Martin Hunt,
5127 Louis Hamilton, and Kevin Buettner):
5128 * aix-thread.c: New file.
5129
8e19ed76
PS
51302002-07-12 Petr Sorfa <petrs@caldera.com>
5131
5132 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5133 complaint for invalid attribute class or form.
5134 (read_func_scope): DW_AT_frame_base
5135 better handling of DW_AT_block*.
5136 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5137 better handling of DW_AT_block*.
5138 (read_common_block): DW_AT_location
5139 better handling of DW_AT_block*.
5140 (read_partial_die): DW_AT_location better handling
5141 of DW_AT_block*.
5142 (new_symbol): DW_AT_external better handling of
5143 DW_AT_block*. Proper initialization of variable
5144 "addr".
5145 (attr_form_is_block): New function that returns true
5146 if the attribute's form is of DW_FORM_block*.
5147
295401f7
DJ
51482002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5149
5150 * valops.c (find_method_list): Remove comment about
5151 removed STATIC_MEMFUNCP argument.
5152 (value_find_oload_method_list): Likewise.
5153
e42dc924
KB
51542002-07-12 Kevin Buettner <kevinb@redhat.com>
5155
5156 From Nicholas Duffek:
5157 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5158 target_new_objfile_hook.
5159
6904b546
KB
51602002-07-12 Kevin Buettner <kevinb@redhat.com>
5161
5162 From Nicholas Duffek:
5163 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5164 csect.
5165
53fe9346
AC
51662002-07-12 Andrew Cagney <cagney@redhat.com>
5167
5168 * MAINTAINERS: Mention --enable-sim-build-warnings.
5169 (m68hc11-elf): Disable sim build warnings.
5170 (m32r-elf): Mark as broken obsolete candidate.
5171 (x86_64-linux-gnu): Mark as buildable with -Werror.
5172 (arm-elf): Change -w to ``,'' which enables warnings but not
5173 -Werror.
5174
af5f3db6
AC
51752002-07-12 Andrew Cagney <ac131313@redhat.com>
5176
5177 * bcache.h: Update copyright.
5178 (struct bstring, struct bcache): Move definition to "bcache.c".
5179 Replaced by opaque declaration.
5180 (bcache_xfree): Replace free_bcache.
5181 (bcache_xmalloc, bcache_memory_used): Declare.
5182
5183 * bcache.c: Update copyright.
5184 (struct bstring, struct bcache): Moved to here from "bcache.h".
5185 Update comments.
5186 (bcache_xmalloc, bcache_memory_used): New functions.
5187 (bcache_xfree): Replace function free_bcache.
5188
5189 * Makefile.in (objfiles.o): Add $(bcache_h).
5190 (objfiles_h): Remove $(bcache_h).
5191 (symfile.o): Add $(bcache_h).
5192
5193 * symmisc.c: Update copyright.
5194 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5195 (print_objfile_statistics): Use bcache_memory_used.
5196
5197 * symfile.c: Include "bcache.h".
5198 (reread_symbols): Use bcache_xfree.
5199 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5200 (add_psymbol_to_list): Pass psymbol_cache by value.
5201 (add_psymbol_with_dem_name_to_list): Ditto.
5202
5203 * objfiles.h: Update copyright.
5204 (struct bcache): Declare opaque. Do not include "bcache.h".
5205 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5206 bcache'' pointers.
5207 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5208
5209 * objfiles.c: Include "bcache.h". Update copyright.
5210 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5211 macro_cache.
5212 (free_objfile): Use bcache_xfree.
5213
444199e7
GS
52142002-07-11 Grace Sainsbury <graces@redhat.com>
5215
5216 * monitor.c (monitor_fetch_register): Make name a constant.
5217 (monitor_store_register): Same.
5218
261397f8
DJ
52192002-07-11 Daniel Jacobowitz <drow@mvista.com>
5220
5221 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5222 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5223 (finish_block) For non-function blocks, hash the symbol table. For
5224 function blocks, mark the symbol table as unhashed.
5225 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5226 (msymbol_hash_iw): Likewise.
5227 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5228 value.
5229 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5230 (lookup_minimal_symbol): Likewise for both.
5231 * symtab.h (struct block): Add `hashtable' flag. Comment the
5232 hashtable.
5233 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5234 (ALL_BLOCK_SYMBOLS): Update.
5235 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5236 (struct symbol): Add `hash_next' pointer.
5237 * symtab.c (lookup_block_symbol): Search using the hash table when
5238 possible.
5239 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5240 (search_symbols, find_addr_symbol): Likewise.
5241
5242 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5243 (read_dst_symtab): Likewise.
5244 * jv-lang.c (get_java_class_symtab): Likewise.
5245 * mdebugread.c: Include "gdb_assert.h".
5246 (shrink_block): Assert that the block being modified is not hashed.
5247 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5248 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5249 symbols.
5250 (dump_symtab): Recognize hashed blocks.
5251 * printcmd.c (print_frame_args): Assert that function blocks do not
5252 have hashed symbol tables.
5253 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5254 (fill_in_ada_prototype, debug_print_block): Likewise.
5255 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5256
6f0eaa01
CV
52572002-07-11 Corinna Vinschen <vinschen@redhat.com>
5258
5259 * stack.c (print_frame): Use result of frame_address_in_block()
5260 instead of fi->pc when evaluating symbols.
5261 (backtrace_command_1): Ditto.
5262
a208b0cb
AC
52632002-07-11 Andrew Cagney <cagney@redhat.com>
5264
5265 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5266 Make static.
5267
5268 * arm-tdep.c (arm_register_name): Make return type constant.
5269
a6b6b089
AC
52702002-07-10 Andrew Cagney <ac131313@redhat.com>
5271
5ae5f592
AC
5272 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5273 prototype.
5274 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5275 * s390-tdep.c (s390_fp_regnum): Ditto.
5276 (s390_read_fp): Ditto.
5277 (s390_pop_frame): Ditto.
5278 (_initialize_s390_tdep): Ditto.
5279 * remote.c (get_remote_state): Ditto.
5280 * procfs.c (mappingflags): Ditto.
5281 * memattr.c (_initialize_mem): Ditto.
5282 * mcore-tdep.c (mcore_pop_frame): Ditto.
5283 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5284 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5285 * language.c (set_case_str): Ditto.
5286 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5287 * frv-tdep.c (new_variant): Ditto.
5288 (frv_stopped_data_address): Ditto.
5289 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5290 (context_alloc): Ditto.
5291 (frame_state_alloc): Ditto.
5292 (unwind_tmp_obstack_init): Ditto.
5293 (unwind_tmp_obstack_free): Ditto.
5294 (cfi_read_fp): Ditto.
5295 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5296 (cris_pop_frame): Ditto.
5297 * c-lang.c (scanning_macro_expansion): Ditto.
5298 (finished_macro_expansion): Ditto.
5299 (c_preprocess_and_parse): Ditto.
5300 * gdbarch.sh: Ditto.
5301 * gdbarch.h, gdbarch.c: Regenerate.
5302 * config/mn10200/tm-mn10200.h: Adjust indentation.
5303 * target.c: Adjust indentation.
5304 * symtab.h: Adjust indentation.
5305 * stabsread.h: Adjust indentation.
5306 * remote-es.c: Adjust indentation.
5307 * os9kread.c: Adjust indentation.
5308
53092002-07-10 Andrew Cagney <ac131313@redhat.com>
5310
a6b6b089
AC
5311 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5312 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5313
a1789893
GS
53142002-07-10 Grace Sainsbury <graces@redhat.com>
5315
5316 * NEWS: Mention m68k, mcore multi-arching.
5317 * MAINTAINERS: Change status of m68k, mcore to reflect
5318 multi-arching.
5319
02f0d45d
DJ
53202002-07-10 Daniel Jacobowitz <drow@mvista.com>
5321
5322 * valops.c (find_overload_match): Free oload_syms.
5323
f15f768e
JB
53242002-07-09 Joel Brobecker <brobecker@gnat.com>
5325
5326 Define HAVE_SYS_PROC_H if sys/proc.h exists
5327 * configure.in: Add check for sys/proc.h
5328 * config.in: Regenerate.
5329 * configure: Regenerate.
5330
902a7139
GS
53312002-07-09 Grace Sainsbury <graces@redhat.com>
5332
5333 * config/m68k/tm-m68k.h: Remove macros wrapped in
5334 #if !GDB_MULTI_ARCH.
5335
a534e424
AC
53362002-07-08 Andrew Cagney <ac131313@redhat.com>
5337
5338 * config.in, configure: Regenerate.
5339
9b94f7bf
MK
53402002-07-08 Mark Kettenis <kettenis@gnu.org>
5341
5342 * dwarf2cfi.c: Include "gcore.h".
5343 (execute_stack_op): Fix implementation of the
5344 DW_OP_deref and DW_OP_deref_size operators by letting do their
5345 lookup in the target.
5346
1d34db41
MK
53472002-07-07 Mark Kettenis <kettenis@gnu.org>
5348
5349 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5350 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5351 tdep->sc_sp_offset.
5352
79d5b63a
DJ
53532002-07-05 Daniel Jacobowitz <drow@mvista.com>
5354
5355 Fix PR gdb/595, gdb/602
5356 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5357 Don't call value_cast, just read the vtable pointer; update comments
5358 to match.
5359
3bb912e8
GS
53602002-07-05 Grace Sainsbury <graces@redhat.com>
5361
5362 * config/mcore/tm-mcore.h: Remove file.
5363 * config/mcore/mcore.mt: Remove definition of TM_FILE
5364 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5365
ca39387d
MK
53662002-07-05 Mark Kettenis <kettenis@gnu.org>
5367
5368 * i386bsd-tdep.c: Include "gdb_string.h".
5369
efdc1108
GS
53702002-07-04 Grace Sainsbury <graces@redhat.com>
5371
5372 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5373 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5374 mcore-tdep.
5375 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5376 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5377 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5378 (RETVAL_REGNUM): Move macros from tm-mcore.h
5379 (mcore_reg_struct_has_addr): New function.
5380 (mcore_gdbarch_init): Added initializations for the macros removed
5381 from tm-mcore.h.
5382
bb21884d
MK
53832002-07-04 Mark Kettenis <kettenis@gnu.org>
5384
5385 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5386 traditonal string branding within the ELF header.
5387
228c6d41
DJ
53882002-07-04 Daniel Jacobowitz <drow@mvista.com>
5389
5390 * symtab.c (remove_params): New function.
5391 (make_symbol_overload_list): Use it instead of cplus_demangle.
5392 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5393
2404952e
MK
53942002-07-04 Mark Kettenis <kettenis@gnu.org>
5395
e5e4acad
MK
5396 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5397
baadce09
MK
5398 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5399 New variables.
5400 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5401 and tdep->sigtramp_end.
5402 * i386obsd-nat.c: New file.
5403 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5404
2404952e
MK
5405 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5406 Don't call get_current_frame().
5407
9b4f1ba7
PM
54082002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5409
5410 * i386-nat.c (child_post_startup_inferior): New function
5411 calling i386_cleanup_dregs if
5412 I386_USE_GENERIC_WATCHPOINTS is defined.
5413 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5414 conditional to acknowledge that i386-nat.c has its
5415 own child_post_startup_inferior function.
5416
c0d1d883
MK
54172002-07-04 Mark Kettenis <kettenis@gnu.org>
5418
00f8375e
MK
5419 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5420 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5421 instead of MAX_REGISTER_RAW_SIZE.
5422 (i386_extract_return_value, i386_extract_struct_value_address):
5423 Convert to use regcache.
5424 (i386_gdbarch_init): Set max_register_raw_size and
5425 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5426 Set extract_return_value and extract_struct_value_address instead
5427 of their deprecated variants.
5428
c0d1d883
MK
5429 Convert i386 target to generic dummy frames.
5430 * i386-tdep.c: Include "symfile.h".
5431 (i386_frameless_signal_p): Consider a function to be frameless if
5432 the pc points at the first instruction of the function.
5433 (i386_frame_chain): Handle (generic) call dummies.
5434 (i386_frame_saved_pc): Likewise.
5435 (i386_frame_init_saved_regs): Remove code dealing with call
5436 dummies on the stack.
5437 (i386_push_dummy_frame): Removed.
5438 (i386_call_dummy_words): Removed.
5439 (i386_fix_call_dummy): Removed.
5440 (i386_push_return_address): New function.
5441 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5442 parameter, and don't call get_current_frame.
5443 (i386_pop_frame): New function.
5444 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5445 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5446 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5447 call_dummy_length to 0, set call_dummy_words to NULL, set
5448 sizeof_call_dummy_words to 0, set fix_call_dummy to
5449 generic_fix_call_dummy, set pc_in_call_dummy to
5450 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5451 generic_push_dummy_frame, set push_return_address to
5452 i386_push_return_address and set frame_chain_valid to
5453 generic_file_frame_chain_valid.
5454
049ee0e4
AC
54552002-07-03 Andrew Cagney <ac131313@redhat.com>
5456
5457 * gdbarch.sh (struct regcache): Add opaque declaration.
5458 (EXTRACT_RETURN_VALUE): New architecture method.
5459 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5460 * gdbarch.h, gdbarch.c: Regenerate.
5461 * arch-utils.c (legacy_extract_return_value): New function.
5462 * arch-utils.h (legacy_extract_return_value): Declare.
5463 * values.c (value_being_returned): Re-enable code handling
5464 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5465 deprecated_grub_regcache_for_registers call to block handling
5466 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5467 (EXTRACT_RETURN_VALUE): Do not define.
5468
4e0d9804
GS
54692002-07-03 Grace Sainsbury <graces@redhat.com>
5470
5471 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5472 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5473 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5474 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5475 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5476 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5477 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5478 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5479 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5480 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5481 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5482 argument so the function fits the prototype in the architecture
5483 vector.
5484 (mcore_pop_frame): Remove argument so the function fits the
5485 prototype. Use get_current_frame instead of the argument.
5486 (mcore_push_arguments): Change type of struct_return so the
5487 function can be used in the architecture vector.
5488 (mcore_store_struct_return): Add.
5489 (mcore_frame_init_saved_regs): Add.
5490 (mcore_gdbarch_init): Add function calls to replace the macros
5491 removed from tm-mcore.h
5492
36160dc4
AC
54932002-07-03 Andrew Cagney <ac131313@redhat.com>
5494
5495 * infcmd.c (print_return_value): Remove compatibility code calling
5496 deprecated_grub_regcache_for_registers.
5497
5498 * values.c: Include "regcache.h".
5499 (value_being_returned): Update. Use
5500 deprecated_grub_regcache_for_registers to extract the register
5501 buffer address.
5502 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5503 ``struct regcache''.
5504 * Makefile.in (values.o): Add dependency on $(regcache_h).
5505
5506 * inferior.h (run_stack_dummy): Change type of second parameter to
5507 a ``struct regcache''.
5508 * valops.c (hand_function_call): Change type of retbuf to ``struct
5509 regcache''. Allocate using regcache_xmalloc, clean using
5510 make_cleanup_regcache_xfree.
5511 * infcmd.c (run_stack_dummy): Update. Use
5512 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5513
5514 * regcache.c (do_regcache_xfree): New function.
5515 (make_cleanup_regcache_xfree): New function.
5516 * regcache.h (make_cleanup_regcache_xfree): Declare.
5517
e64d9b3d
MH
55182002-07-03 Martin M. Hunt <hunt@redhat.com>
5519
4dd79c29
MH
5520 * event-top.c (command_line_handler): Don't read past
5521 beginning of buffer.
e64d9b3d 5522
4dd79c29
MH
55232002-07-03 Martin M. Hunt <hunt@redhat.com>
5524
e64d9b3d
MH
5525 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5526 struct frame_id.
5527 (varobj_create): Store frame_id for root.
5528 (varobj_gen_name): Use xasprintf.
5529 (varobj_update): Save and restore frame using get_frame_id() and
5530 frame_find_by_id().
5531 (create_child): Use xasprintf.
5532 (new_root_variable): Initialize frame_id.
5533 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5534 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5535 to prevent memory leak.
5536
26e6c56a
AC
55372002-07-03 Andrew Cagney <ac131313@redhat.com>
5538
5539 * valops.c (hand_function_call): Move declaration of retbuf to
5540 start of function, allocate using malloc, add a cleanup but before
5541 the inf_status cleanup, cleanup the buffer. Rename local variable
5542 old_chain to inf_status_cleanup.
5543
f436dd25
MH
55442002-07-03 Martin M. Hunt <hunt@redhat.com>
5545
5546 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5547
5548 * cli/cli-decode.c (cmd_func_p): New function.
5549 (cmd_func): New function.
5550
5551 * command.h: Add cmd_func() and cmd_func_p().
5552
4cfe2084
GS
55532002-07-03 Grace Sainsbury <graces@redhat.com>
5554
5555 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5556 (REGISTER_SIZE): Remove.
5557 (MAX_REGISTER_RAW_SIZE): Remove.
5558 (REGISTER_VIRTUAL_TYPE): Remove.
5559 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5560 (REGISTER_NAME): Remove.
5561 (USE_GENERIC_DUMMY_FRAMES): Remove.
5562 (CALL_DUMMY): Remove.
5563 (CALL_DUMMY_START_OFFSET): Remove.
5564 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5565 (CALL_DUMMY_LOCATION): Remove.
5566 (FIX_CALL_DUMMY): Remove.
5567 (CALL_DUMMY_ADDRESS): Remove.
5568 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5569 (SAVE_DUMMY_FRAME_TOS): Remove.
5570 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5571 (mcore_register_virtual_type): New function.
5572 (mcore_register_byte): New function.
5573 (mcore_register_size): New function.
5574 (mcore_register_name): New function.
5575 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5576 macros removed from tm-mcore.h.
5577 (mcore_dump_tdep): Add.
5578 (_initialize_mcore_tdep): Add gdbarch_register call.
5579
4fd667e9
MK
55802002-07-03 Mark Kettenis <kettenis@gnu.org>
5581
5582 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5583 frameless_look_for_prologue, such that we actually call this
5584 function.
5585
42f99ac2
JB
55862002-07-02 Joel Brobecker <brobecker@gnat.com>
5587
5588 * frame.h (frame_address_in_block): New function.
5589
5590 * blockframe.c (frame_address_in_block): New function extracted
5591 from get_frame_block().
5592 (get_frame_block): Use frame_address_in_block().
5593 (block_innermost_frame): Use frame_address_in_block() to match
5594 the frame pc address against the block boundaries rather than
5595 the frame pc directly. This prevents a failure when a frame pc
5596 is actually a return-address pointing immediately after the end
5597 of the given block.
5598
103a1597 55992002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5600
5601 * MAINTAINERS: Add self under write after approval.
5602
56032002-07-02 Grace Sainsbury <graces@redhat.com>
5604
103a1597
GS
5605 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5606 used in architecture vector. The default is
5607 m68k_local_breakpoint_from_pc.
5608 (m68k_local_breakpoint_from_pc): Add.
5609 (enum): Add register numbers from tm-m68k.h.
5610 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5611 vector.
5612 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5613 GDB_MULTI_ARCH_PARTIAL.
5614 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5615 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5616 m68k-tdep.c.
5617 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5618 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5619 to enum in m68k-tdep.c
5620
7a5a0534
JB
56212002-07-02 Joel Brobecker <brobecker@gnat.com>
5622
5623 * solib-osf.c (open_map): Compute the list of shared libraries
5624 loaded by the inferior, rather than the list of libraries loaded
5625 by GDB itself. Otherwise, GDB ends up reading the symbols from
5626 the wrong shared libraries...
5627
6f558d74
MK
56282002-07-02 Mark Kettenis <kettenis@gnu.org>
5629
b7d15bf7
MK
5630 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5631 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5632 macros.
5633 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5634 Remove functions.
5635 (FRAMELESS_SIGNAL): Remove function.
5636 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5637 i386_linux_saved_pc_after_call): Removed.
5638 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5639 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5640 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5641
6bff26de
MK
5642 * i386-tdep.c (i386_frameless_signal_p): New function.
5643 (i386_frame_chain): Deal with frameless signals.
5644 (i386_sigtramp_saved_sp): New function.
5645 (i386_frame_saved_pc): Deal with frameless signals.
5646 (i386_saved_pc_after_call): Make sure the correct value is
5647 returned just after entry into a sigtramp.
5648 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5649 i386fbsd4_sc_sp_offset): New variables.
5650 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5651 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5652 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5653 similiar to what we already did for sc_pc_offset.
5654 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5655 tdep->sc_sp_offset.
5656
6f558d74
MK
5657 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5658
145564b7
ML
56592002-07-02 Michal Ludvig <mludvig@suse.cz>
5660
5661 * config/i386/tm-x86-64linux.h: New.
5662 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5663 definitions.
5664 * config/i386/nm-x86-64.h: Rename to ...
5665 * config/i386/nm-x86-64linux.h: ... this one.
5666 * config/i386/x86-64linux.mh: Reflect the above change.
5667
3a1e71e3
MK
56682002-07-01 Mark Kettenis <kettenis@gnu.org>
5669
21d0e8a4
MK
5670 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5671 with sigcontext_addr. Add sc_sp_offset.
5672 (i386bsd_sigtramp_saved_pc): Remove prototype.
5673 (i386bsd_sicontext_addr): Add prototype.
5674 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5675 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5676 (i386_svr4_sigtramp_saved_pc): Removed.
5677 (i386_svr4_sigcontext_addr): New function.
5678 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5679 Initialize tdep->sigcontext_addr instead. Initialize
5680 tdep->sc_pc_offset and tdep->sc_sp_offset.
5681 (i386_gdbarch_init): Likewise.
5682 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5683 any more.
5684 (i386bsd_sigtramp_saved_pc): Remove function.
5685 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5686 Initialize tdep->sigcontext_addr instead. Initialize
5687 tdep->sc_pc_offset.
5688 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5689 of tdep->sigtramp_saved_pc.
5690 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5691 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5692 instead.
5693
3a1e71e3
MK
5694 * i386-tdep.c (i386_frameless_function_invocation,
5695 i386_frame_num_args, i386_frame_init_saved_regs,
5696 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5697 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5698 i386_extract_return_value, i386_store_return_value,
5699 i386_extract_struct_value_address, i386_register_virtual_type,
5700 i386_register_convertible, i386_register_convert_to_virtual,
5701 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5702 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5703 static.
5704
52e9098c
MK
57052002-07-01 Mark Kettenis <kettenis@gnu.org>
5706
77b13a25
MK
5707 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5708
52e9098c
MK
5709 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5710 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5711 this macro. Include "value.h".
5712
1b372fff
AS
57132002-06-30 Aidan Skinner <aidan@velvet.net>
5714
5715 * ada-exp.tab.c: remove as it's a generated file
5716 * ada-lex.c: remove as it's a generated file
5717
9c5045b5
MK
57182002-06-30 Mark Kettenis <kettenis@gnu.org>
5719
4a93c5bb
MK
5720 * config/i386/tm-i386.h (struct frame_info, struct
5721 frame_saved_regs, struct value, struct type): Remove forward
5722 declarations.
5723
322d4fe0
MK
5724 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5725 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5726 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5727 (FILL_FPXREGSET): Define.
5728
fdd8263d
MK
5729 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5730
482e577b
MK
5731 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5732 i[3456]86-*-netbsd* case.
5733 * config/i386/tm-obsd.h: Removed.
5734 * config/i386/obsd.mt: Removed.
5735 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5736 core-aout.o.
5737 (MH_CFLAGS): Add -DYYDEBUG=0.
5738
6916549a
MK
5739 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5740 i386nbsd_sc_pc_offset on OpenBSD too.
5741
9c5045b5
MK
5742 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5743 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5744 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5745 define.
5746 * i386bsd-tdep.c: Include "arch-utils.h".
5747 (i386bsd_aout_in_solib_call_trampoline): New function.
5748 (i386bsd_init_abi): Set in_solib_call_trampoline to
5749 i386bsd_aout_in_solib_call_trampoline.
5750 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5751 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5752
aa84d1bb
AC
57532002-06-28 Andrew Cagney <ac131313@redhat.com>
5754
5755 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5756 (struct obstack, struct bcache): Add opaque declarations.
5757 * Makefile.in (macrotab_h): Update
5758
b4d83933
AC
57592002-06-28 Andrew Cagney <ac131313@redhat.com>
5760
5761 * blockframe.c (generic_find_dummy_frame): Change return type to
5762 ``struct regcache''.
5763 (struct dummy_frame): Replace field ``registers'' with regcache, a
5764 struct regcache object.
5765 (generic_find_dummy_frame): Update.
5766 (generic_push_dummy_frame): Update. Use regcache_xfree,
5767 regcache_xmalloc and regcache_cpy.
5768 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5769 regcache_xfree.
5770 (deprecated_generic_find_dummy_frame): Update.
5771 (generic_read_register_dummy): Update. Use
5772 regcache_read_as_address.
5773 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5774 (generic_get_saved_register): Update. Use regcache_read.
5775
08c0b5bc
AC
57762002-06-28 Andrew Cagney <ac131313@redhat.com>
5777
5778 * Makefile.in (objfiles_h): Add $(bcache_h).
5779 * objfiles.h: Include "bcache.h".
5780
5781 * Makefile.in (symtab_h): Remove $(bcache_h).
5782 * symtab.h: Do not include "bcache.h".
5783
1f89801a
AC
57842002-06-28 Andrew Cagney <ac131313@redhat.com>
5785
5786 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5787 generic_func_frame_chain_valid.
5788
b9644b58
DB
57892002-06-28 David O'Brien <obrien@FreeBSD.org>
5790
5791 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5792 * config/i386/tm-fbsd.h: Likewise.
5793
dd486634
AC
57942002-06-28 Andrew Cagney <ac131313@redhat.com>
5795
5796 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5797 generic_unwind_get_saved_register.
5798
0b434a00
AC
57992002-06-27 Andrew Cagney <ac131313@redhat.com>
5800
5801 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5802 * regcache.c (supply_register): Add missing argument to
5803 register_buffer call.
5804
f30e5a77
AC
58052002-06-27 Andrew Cagney <ac131313@redhat.com>
5806
5807 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5808 Solaris /bin/grep does not not like it. From Peter Schauer.
5809
9f064c95
TT
58102002-06-26 Tom Tromey <tromey@redhat.com>
5811
5812 * command.h (add_setshow_cmd): Declare.
5813 (add_setshow_cmd_full): Declare.
5814 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5815 returns void. Use add_setshow_cmd_full.
5816 (add_setshow_cmd_full): New function.
5817 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5818 (add_setshow_boolean_cmd): Likewise.
5819
099c7589
JT
58202002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5821
5822 * config/vax/tm-vax.h: Protect from multiple inclusion.
5823 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5824 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5825 * config/vax/tm-vaxbsd.h: ...here. New file.
5826 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5827
1d049c5e
JT
58282002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5829
5830 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5831 (BELIEVE_PCC_PROMOTION): Remove.
5832 (AP_REGNUM): Move to...
5833 * config/vax/nm-vax.h: ...here.
5834 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5835 (vax_breakpoint_from_pc): New function.
5836 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5837 and gdbarch_believe_pcc_promotion.
5838
4791e091
JT
58392002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5840
5841 * Makefile.in (vax_tdep_h): Define.
5842 (vax-tdep.o): Use $(vax_tdep_h).
5843 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5844 (vax_dump_tdep): New function.
5845 (_initialize_vax_tdep): Register vax_dump_tdep.
5846 * vax-tdep.h: Include osabi.h.
5847 (struct gdbarch_tdep): New.
5848
da130f98
AC
58492002-06-26 Andrew Cagney <cagney@redhat.com>
5850
5851 * frame.h (deprecated_generic_find_dummy_frame): Rename
5852 generic_find_dummy_frame.
5853 * blockframe.c (generic_find_dummy_frame): Make static.
5854 (deprecated_generic_find_dummy_frame): New function.
5855 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5856 generic_find_dummy_frame with deprecated_find_dummy_frame.
5857 (sh64_nofp_frame_init_saved_regs): Ditto.
5858 (sh_fp_frame_init_saved_regs): Ditto.
5859 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5860 (s390_frame_chain): Ditto.
5861 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5862
6300c360
GS
58632002-06-26 Grace Sainsbury <graces@redhat.com>
5864
5865 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5866 gdbarch vector are at the top.
5867 (NUM_REGS): Remove.
5868 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5869 (FRAME_ARGS_ADDRESS): Remove.
5870 (FRAME_LOCALS_ADDRESS): Remove.
5871 (FRAME_NUM_ARGS): Remove.
5872 (FRAME_ARGS_SKIP): Remove.
5873 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5874 (m68k_gdbarch_init): Add gdbarch initializations for macros
5875 undefined in tm-m68k.h
5876
1c617db8
GS
58772002-06-26 Grace Sainsbury <graces@redhat.com>
5878
5879 * monitor.h: Add the function regname to monitor_ops
5880 structure. This way NUM_REGS does not have to be a constant.
5881 * monitor.c (monitor_fetch_register): Added support for regname
5882 function. The function is called if the array regnames is NULL.
5883 (monitor_store_register): Same.
da130f98
AC
5884 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5885 regnames array.
1c617db8
GS
5886 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5887 cpu32bug_cmds.regname to point to new function.
5888 * abug-rom.c (abug_regname): Same as above.
5889 (init_abug_cmds): Same.
5890 * dbug-rom.c (dbug_regname): Same as above.
5891 (init_dbug_cmds): Same.
5892 * remote-est.c (est_regname): Same.
5893 (init_est_cmds): Same.
5894 * rom68k-rom.c (rom68k_regname): Same.
5895 (init_rom68k_cmds): Same.
5896
ea9365bb
TT
58972002-06-25 Tom Tromey <tromey@redhat.com>
5898
5899 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5900
72cec141
AC
59012002-06-25 Andrew Cagney <cagney@redhat.com>
5902
5903 * infrun.c (stop_registers): Change variable's type to ``struct
5904 regcache'''.
5905 (xmalloc_inferior_status): Delete function.
5906 (free_inferior_status): Delete function.
5907 (normal_stop): Use regcache_cpy.
5908 (struct inferior_status): Change type of fields ``stop_registers''
5909 and ``registers'' to ``struct regcache''.
5910 (write_inferior_status_register): Use regcache_write.
5911 (save_inferior_status): Instead of calling
5912 xmalloc_inferior_status, allocate the inf_status buffer directly.
5913 Use regcache_dup_no_passthrough and regcache_dup to save the
5914 buffers.
5915 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5916 Replace the stop_registers regcache instead of overriding it. Use
5917 regcache_xfree. Instead of calling free_inferior_status, xfree
5918 the buffer directly.
5919 (discard_inferior_status): Use regcache_xfree. Instead of calling
5920 free_inferior_status, xfree the buffer directly.
5921 (build_infrun): Use regcache_xmalloc.
5922 (_initialize_infrun): Delete redundant call to build_infrun.
5923
5924 * Makefile.in (infcmd.o): Add $(regcache_h).
5925
5926 * infcmd.c: Include "regcache.h".
5927 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5928 obtain the address of `stop_registers' register buffer.
5929 (print_return_value): Ditto.
5930
5931 * inferior.h (struct regcache): Add opaque declaration.
5932 (stop_registers): Change variable's declared type to ``struct
5933 regcache''.
5934
defc6f8c
TT
59352002-06-24 Tom Tromey <tromey@redhat.com>
5936
c0e624e7
TT
5937 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5938 * target.c (initialize_targets): Fixed typo in
5939 trust-readonly-sections `show' documentation.
5940
defc6f8c
TT
5941 * main.c: Marked all strings with _().
5942
2b236d82
DH
59432002-06-24 Don Howard <dhoward@redhat.com>
5944
5945 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5946 that means max CORE_ADDR+1.
5947 (lookup_mem_region): Ditto.
5948 (mem_info_command): Ditto.
5949
942dc0e9
GS
59502002-06-24 Grace Sainsbury <graces@redhat.com>
5951
5952 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5953 (REGISTER_BYTES_OK): Remove.
5954 (REGISTER_BYTES): Remove.
5955 (STORE_STRUCT_RETURN): Remove.
5956 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5957 (STORE_RETURN_VALUE): Remove.
5958 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5959 (FRAME_CHAIN): Remove.
5960 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5961 (FRAME_SAVED_PC): Remove.
5962 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5963 (m68k_store_struct_return): Add.
5964 (m68k_deprecated_extract_return_value): Add.
5965 (m68k_deprecated_extract_struct_value_address): Add.
5966 (m68k_store_return_value): Add.
5967 (m68k_frame_chain): Add.
5968 (m68k_frameless_function_invocation): Add.
5969 (m68k_frame_saved_pc): Add.
5970 (m68k_gdbarch_init): added set_gdbarch calls for new
5971 functions and deleted macros.
5972
03c30d4d
TT
59732002-06-23 Tom Tromey <tromey@redhat.com>
5974
5975 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5976 (ALLDEPFILES): Likewise.
5977 (udiheaders): Removed.
5978 (udip2soc.o): Likewise.
5979 (udi2go32.o): Likewise.
5980 (udr.o): Likewise.
5981 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5982
37e71372
AC
59832002-06-22 Andrew Cagney <ac131313@redhat.com>
5984
06a6ac57
AC
5985 * infrun.c (_initialize_infrun): Delete unnecessary call to
5986 build_infrun.
5987
37e71372
AC
5988 * regcache.h: Update comments describing the regcache_cpy family
5989 of functions.
5990 (regcache_save, regcache_restore): Delete declaration.
5991 (regcache_save_no_passthrough): Delete declaration.
5992 (regcache_restore_no_passthrough): Delete declaration.
5993 * regcache.c (regcache_save): Delete function.
5994 (regcache_save_no_passthrough): Delete function.
5995 (regcache_restore): Delete function.
5996 (regcache_restore_no_passthrough): Delete function.
5997
78f6d055
AC
59982002-06-21 Andrew Cagney <ac131313@redhat.com>
5999
6000 * config/m68k/tm-m68k.h: Fix typo.
6001 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6002 (m68k_frame_init_saved_regs): Declare.
6003
78b119cb
JB
60042002-06-21 Jim Blandy <jimb@redhat.com>
6005
6006 Remove some vestiges of Harris 88k support.
6007 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6008 register numbering quirk.
6009 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6010 odd symbols occurring in Harris 88k ELF targets.
6011
0fbb3da7
TT
60122002-06-21 Tom Tromey <tromey@redhat.com>
6013
6014 * gdb_locale.h: New file.
6015 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6016 (defs_h): Added gdb_locale.h.
6017 * configure, config.in: Rebuilt.
6018 * configure.in (PACKAGE): Define.
6019 * defs.h: Include gdb_locale.h.
6020 * main.c (captured_main): Call setlocale, bindtextdomain,
6021 textdomain.
6022
456f8b9d
DB
60232002-06-21 Dave Brolley <brolley@redhat.com>
6024
6025 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6026 * config/frv/frv.mt: New file.
6027 * config/frv/tm-frv.h: New file.
6028 * configure.tgt: Support frv-*-*.
6029 * Makefile.in (frv-tdep.o): New target.
6030 * frv-tdep.c: New file.
6031 * NEWS: Mention frv.
6032
cdd463f9
DB
60332002-06-21 Dave Brolley <brolley@redhat.com>
6034
6035 * MAINTAINERS: Add self to "Write After Approval" list.
6036
5d3ed2e3
GS
60372002-06-21 Grace Sainsbury <graces@redhat.com>
6038
6039 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6040 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6041 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6042 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6043 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6044
6045 * m68k-tdep.c: Include arch-utils.h
6046 (m68k_register_raw_size): Add.
6047 (m68k_register_virtual_size): Add.
6048 (m68k_register_virtual_type): Add.
6049 (m68k_register_name): Add.
6050 (m68k_stack_align): Add.
6051 (m68k_register_byte): Add.
6052 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6053 tm-m68k.h.
6054
7f8e7424
GS
60552002-06-21 Grace Sainsbury <graces@redhat.com>
6056
a2c6a6d5 6057 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6058 m68k_find_saved_regs.
6059 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6060 references to it with frame->saved_regs.
7f8e7424
GS
6061 (m68k_gdbarch_init): Added function calls to initialize the
6062 gdbarch structure.
a2c6a6d5
GS
6063 (m68k_fix_call_dummy): Add.
6064 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6065 (CALL_DUMMY): Remove.
6066 (CALL_DUMMY_LENGTH): Remove.
6067 (CALL_DUMMY_START_OFFSET): Remove.
6068 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6069 (FIX_CALL_DUMMY): Remove.
6070 (PUSH_DUMMY_FRAME): Remove.
6071 (POP_FRAME): Remove.
7f8e7424 6072
f461f5cf
PM
60732002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6074
6075 * parse.c (parse_fprintf): New function used to avoid calls to
6076 fprintf in bison parser generated debug code.
6077 * parser-defs.h: Declaration of new parse_fprintf function.
6078 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6079 Set YYDEBUG to 1 by default.
6080 Set YYFPRINTF as parse_fprintf.
6081
7f0c12ed
ML
60822002-06-21 Michal Ludvig <mludvig@suse.cz>
6083
6084 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6085 encoding anymore.
6086 (pointer_encoding, enum ptr_encoding): New.
6087 (execute_cfa_program): Take care about pointer encoding.
6088 (dwarf2_build_frame_info): Only call parse_frame_info for
6089 .debug_frame and .eh_frame.
6090 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6091 fixed augmentation handling, added relative addressing,
6092 ignore duplicate FDEs. Added comments.
19d833a2 6093 * dwarf2cfi.c: Reindented.
7f0c12ed 6094
87c4a039
EZ
60952002-06-20 Elena Zannoni <ezannoni@redhat.com>
6096
6097 * event-top.c (command_handler): Don't use space_at_cmd_start
6098 unless there is sbrk() on the host. Assign time and space data
6099 to union fields of the appropriate length.
6100
1cf877ad
ML
61012002-06-20 Michal Ludvig <mludvig@suse.cz>
6102
6103 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6104 x86_64_register_name. Return type changed to 'const char *'.
6105 (x86_64_register_name2nr): Rename to x86_64_register_number.
6106 (x86_64_gdbarch_init): Update to reflect the change.
6107 * x86-64-tdep.h: Ditto.
6108 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6109 (supply_fpregset): Ditto.
6110
3fadccb3
AC
61112002-06-19 Andrew Cagney <cagney@redhat.com>
6112
6113 * regcache.h: Update copyright.
6114 (struct regcache, struct gdbarch): Add opaque declarations.
6115 (current_regcache): Declare global variable.
6116 (regcache_read, regcache_write): Add gdbarch parameter.
6117 (regcache_save, regcache_save_no_passthrough)
6118 (regcache_restore, regcache_restore_no_passthrough)
6119 (regcache_dup, regcache_dup_no_passthrough)
6120 (regcache_cpy, regcache_cpy_no_passthrough)
6121 (deprecated_grub_regcache_for_registers)
6122 (deprecated_grub_regcache_for_register_valid)
6123 (regcache_valid_p): Add function declarations.
6124
6125 * regcache.c: Update copyright.
6126 (regcache_descr_handle): New global variable.
6127 (struct regcache_descr): Define.
6128 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6129 (regcache_descr, xfree_regcache_descr): New functions.
6130 (struct regcache): Define.
6131 (regcache_xmalloc, regcache_xfree): New functions.
6132 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6133 (regcache_dup, regcache_dup_no_passthrough): New functions.
6134 (regcache_valid_p, regcache_read_as_address): New functions.
6135 (deprecated_grub_regcache_for_registers): New function.
6136 (deprecated_grub_regcache_for_register_valid): New function.
6137 (current_regcache): New global variable.
6138 (register_buffer): Add regcache parameter. Update calls.
6139 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6140 (read_register_gen, write_register_gen): Update register_buffer
6141 call. Test for legacy_p instead of gdbarch_register_read_p or
6142 gdbarch_register_write_p.
6143 (regcache_collect): Update register_buffer call.
6144 (build_regcache): Rewrite. Use deprecated grub functions.
6145 (regcache_save, regcache_save_no_passthrough): New functions.
6146 (regcache_restore, regcache_restore_no_passthrough): New
6147 functions.
6148 (_initialize_regcache): Create the regcache_data_handle. Swap
6149 current_regcache global variable.
6150
6151 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6152 parameter to regcache_read and regcache_write calls.
6153 (sh4_register_read): Ditto.
6154 (sh64_pseudo_register_read): Ditto.
6155 (sh64_register_read): Ditto.
6156 (sh_pseudo_register_write): Ditto.
6157 (sh4_register_write): Ditto.
6158 (sh64_pseudo_register_write): Ditto.
6159 (sh64_register_write): Ditto.
6160
6161 * defs.h (XCALLOC): Define.
6162
152d9db6
GS
61632002-06-19 Grace Sainsbury <graces@redhat.com>
6164
6165 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6166 * m68k-tdep.c (m68k_gdbarch_init): Added.
6167 (m68k_dump_tdep): Added.
6168
170911c7
DJ
61692002-06-19 Daniel Jacobowitz <drow@mvista.com>
6170
6171 * ada-lang.c (fill_in_ada_prototype): Update comment.
6172
2e4ebe70
DJ
61732002-06-19 Daniel Jacobowitz <drow@mvista.com>
6174
6175 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6176 MIPS_ABI_LAST.
6177 (mips_abi_string, mips_abi_strings): New.
6178 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6179 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6180 tdep->mips_abi_string. Honor mips_abi_string. Default to
6181 O32 if no ABI is found.
6182 (mips_dump_tdep): Use mips_abi_strings.
6183 (mips_abi_update): New function.
6184 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6185 ``set mips abi'' and ``show mips abi''. Check the size of
6186 mips_abi_strings.
6187
16775908
AC
61882002-06-19 Andrew Cagney <cagney@redhat.com>
6189
6190 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6191 constant.
6192
5051bfa4 61932002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6194
5051bfa4
JB
6195 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6196 current frame using only the first stack size adjustment. All
6197 subsequent size adjustments are not considered to be part of
6198 the "static" part of the current frame.
6199 Compute the address of the saved registers relative to the
6200 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6201 in use in this frame.
6202
56468235
DH
62032002-06-18 Don Howard <dhoward@redhat.com>
6204
6205 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6206 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6207 suggesting this solution.
6208
0b624158
AC
62092002-06-18 Andrew Cagney <ac131313@redhat.com>
6210
6211 * config/romp/xm-rtbsd.h: Delete file.
6212 * config/romp/rtbsd.mh: Delete file.
6213
221ea385
KS
62142002-06-18 Keith Seitz <keiths@redhat.com>
6215
6216 * breakpoint.c (condition_command): Post breakpoint_modify
6217 when a condition is added to an existing breakpoint.
6218 (commands_command): Likewise for commands.
6219 (set_ignore_count): Likewise for ignore counts.
6220 If no tty, do not simply return, still need to send event
6221 notification.
6222 (ignore_command): Only print a newline if the command came
6223 from a tty.
6224 Don't call breakpoints_changed, since this is now properly
6225 handled by set_ignore_count.
6226
5402eed1
AC
62272002-06-18 Andrew Cagney <cagney@redhat.com>
6228
6229 * MAINTAINERS: Note that cris-elf target can be compiled with
6230 -Werror.
6231 * cris-tdep.c (cris_register_name): Make return type constant.
6232 (cris_breakpoint_from_pc): Ditto.
6233
cc22880b
ML
62342002-06-18 Michal Ludvig <mludvig@suse.cz>
6235
6236 * frame.h (struct frame_info): Change type of context to
6237 'struct context'.
6238
fa88f677
AC
62392002-06-17 Andrew Cagney <cagney@redhat.com>
6240
6241 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6242 pointer.
6243 * gdbarch.h, gdbarch.c: Regenerate.
6244 * config/mips/tm-mips.h (mips_register_name): Update.
6245 * i386-tdep.h (i386_register_name): Update.
6246 * mips-tdep.c (mips_register_name): Update
6247 * alpha-tdep.c (alpha_register_name): Update.
6248 * arch-utils.c (legacy_register_name): Update.
6249 * arch-utils.h (legacy_register_name): Update.
6250 * avr-tdep.c (avr_register_name): Update.
6251 * ia64-tdep.c (ia64_register_name): Update.
6252 * i386-tdep.c (i386_register_name): Update.
6253 * sparc-tdep.c (sparc32_register_name): Update.
6254 (sparc64_register_name): Update.
6255 (sparclite_register_name): Update.
6256 (sparclet_register_name): Update.
6257 * sh-tdep.c (sh_generic_register_name): Update.
6258 (sh_sh_register_name): Update.
6259 (sh_sh3_register_name): Update.
6260 (sh_sh3e_register_name): Update.
6261 (sh_sh_dsp_register_name): Update.
6262 (sh_sh3_dsp_register_name): Update.
6263 (sh_sh4_register_name): Update.
6264 (sh_sh64_register_name): Update.
6265 * s390-tdep.c (s390_register_name): Update.
6266 * rs6000-tdep.c (rs6000_register_name): Update.
6267 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6268 (ns32k_register_name_32382): Update.
6269 * d10v-tdep.c (d10v_ts2_register_name): Update.
6270 (d10v_ts3_register_name): Update.
6271 * xstormy16-tdep.c (xstormy16_register_name): Update.
6272 * vax-tdep.c (vax_register_name): Update.
6273 * v850-tdep.c (v850_register_name): Update.
6274 * m68hc11-tdep.c (m68hc11_register_name): Update.
6275 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6276 (am33_register_name): Update.
6277
ea1e7ef6
GS
62782002-06-17 Grace Sainsbury <graces@redhat.com>
6279
6280 * m68k-tdep.c: Reindented.
6281
9b02dd1b
AC
62822002-06-17 Andrew Cagney <ac131313@redhat.com>
6283
6284 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6285 list of predefined types.
6286
8758dec1
MK
62872002-06-16 Mark Kettenis <kettenis@gnu.org>
6288
b6197528
MK
6289 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6290 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6291 REGISTER_CONVERT_TO_RAW): Remove defines.
6292 (i386_register_virtual_type, i386_register_convertible,
6293 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6294 Remove prototypes.
6295 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6296 macros mentioned above.
6297
82b47e62
MK
6298 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6299 (i386lynx_saved_pc_after_call): Remove prototype.
6300 * i386ly-tdep.c: Include "i386-tdep.h".
6301 (i386lynx_saved_pc_after_call): Make static. Use
6302 read_memory_nobpt instead of read_memory. Use
6303 read_memory_unsigned_integer instead of read_memory_integer.
6304 (i386lynx_init_abi): New function.
6305 (i386lynx_coff_osabi_sniffer): New function.
6306 (_initialize_i386bsd_tdep): New function.
6307
8758dec1
MK
6308 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6309 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6310 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6311 (i386_fix_call_dummy): Remove prototype.
6312 * i386-tdep.c (i386_call_dummy_words): New variable.
6313 (i386_gdbarch_init): Adjust for removal of the
6314 macros mentioned above.
6315
e9e68a56
AC
63162002-06-15 Andrew Cagney <ac131313@redhat.com>
6317
6318 * command.h (add_setshow_auto_boolean_cmd): Replace
6319 add_set_auto_boolean_cmd.
6320 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6321 add_set_auto_boolean_cmd.
6322 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6323 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6324 mask-address'' command.
6325 (show_mask_address): Add cmd parameter.
6326 * remote.c (add_packet_config_cmd): Update. Change type of
6327 set_func and show_func to cmd_sfunc_ftype.
6328 (_initialize_remote): Update `set remote Z-packet'
6329 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6330 (show_remote_protocol_e_packet_cmd): Ditto.
6331 (show_remote_protocol_E_packet_cmd): Ditto.
6332 (show_remote_protocol_P_packet_cmd): Ditto.
6333 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6334 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6335 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6336 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6337 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6338 (show_remote_protocol_Z_packet_cmd): Ditto.
6339 (show_remote_protocol_binary_download_cmd): Ditto.
6340 (show_remote_cmd): Pass NULL to all of above.
6341
fc08ec52
MK
63422002-06-15 Mark Kettenis <kettenis@gnu.org>
6343
6344 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6345 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6346 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6347 POP_FRAME): Remove defines.
6348 (i386_push_arguments, i386_store_struct_return,
6349 i386_extract_return_value, i386_store_return_value,
6350 i386_extract_struct_value_address, i386_push_dummy_frame,
6351 i386_pop_frame): Renove prototypes.
6352 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6353 macros mentioned above.
6354
e707bbc2
AC
63552002-06-15 Andrew Cagney <ac131313@redhat.com>
6356
6357 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6358 add_set_boolean_cmd.
6359 (add_setshow_cmd): New function.
6360 * command.h (add_setshow_boolean_cmd): Replace
6361 add_set_boolean_cmd.
6362 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6363 and ``set rdiromatzero''.
6364 * maint.c (_initialize_maint_cmds): Update commented out code.
6365 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6366 * target.c (initialize_targets): Update `set
6367 trust-readonly-sections'.
6368 * remote.c (_initialize_remote): Update `set remotebreak'.
6369
42fdc8df
MK
63702002-06-15 Mark Kettenis <kettenis@gnu.org>
6371
93924b6b
MK
6372 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6373 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6374 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6375 fit into multi-arch framework.
6376 (i386_breakpoint_from_pc): New function.
6377 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6378 above.
6379
42fdc8df
MK
6380 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6381 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6382 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6383 (i386_frameless_function_invocation, i386_frame_num_args,
6384 i386_frame_init_saved_regs): Remove prototypes.
6385 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6386 macros mentioned above.
6387
9773a94b
AC
63882002-06-15 Andrew Cagney <ac131313@redhat.com>
6389
6390 * cli/cli-decode.c (set_cmd_cfunc): Update.
6391 (set_cmd_sfunc): Update.
6392 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6393 (set_cmd_sfunc, set_cmd_cfunc): Update.
6394 * cli/cli-decode.h: Update.
6395
6e157172
MK
63962002-06-15 Mark Kettenis <kettenis@gnu.org>
6397
6398 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6399 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6400
7f19b9a2
AC
64012002-06-15 Andrew Cagney <ac131313@redhat.com>
6402
6403 * defs.h (auto_boolean): Declare enum.
6404 * command.h (cmd_auto_boolean): Delete enum.
6405 * mips-tdep.c (mask_address_var): Update.
6406 (mips_mask_address_p): Update.
6407 (show_mask_address): Update.
6408 * remote.c (struct packet_config): Update.
6409 (update_packet_config): Update.
6410 (show_packet_config_cmd): Update.
6411 (packet_ok): Update.
6412 (add_packet_config_cmd): Update.
6413 (_initialize_remote):
6414 * command.h: Update.
6415 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6416 (do_setshow_command): Update.
6417 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6418 * cli/cli-decode.h: Update.
6419
1cf88de5
MK
64202002-06-15 Mark Kettenis <kettenis@gnu.org>
6421
22ba8cf2
MK
6422 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6423 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6424 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6425 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6426 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6427 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6428
762c5349
MK
6429 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6430 list of DJGPP COFF targets.
6431
091198bb
MK
6432 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6433 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6434 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6435 (FP0_REGNUM): Remove define.
6436 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6437 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6438 (i386_register_virtual_size): Remove protoype.
6439 * i386-tdep.c (i386_register_virtual_size): Removed.
6440 (i386_extract_return_value, i386_store_return_value): Use
6441 FP0_REGNUM instead of NUM_FREGS to determine whether the
6442 floating-point registers are available.
6443 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6444 Adjust for removal of macros mentioned above.
6445
64462002-06-15 Mark Kettenis <kettenis@gnu.org>
6447
fcc9bf01
MK
6448 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6449 comments.
6450 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6451 Remove prototypes.
6452 (supply_gregset, fill_gregset): Remove use of register keyword and
6453 remove declaration for regmap. Use I386_NUM_GREGS instead of
6454 NUM_REGS and NUM_FREGS.
6455 (FPREGSET_FSAVE_OFFSET): Remove.
6456 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6457 NUM_FREGS to determine whether the floating-point registers are
6458 available.
6459
65e78234
MK
6460 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6461 gnu_store_registers): Replace usage of NUM_GREGS with
6462 I386_NUM_GREGS.
6463
98df6387
MK
6464 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6465 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6466 usage of NUM_GREGS with I386_NUM_GREGS.
6467
099a9414
MK
6468 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6469
57976e88
MK
6470 * i386bsd-nat.c: Include "i386-tdep.h".
6471 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6472 I386_NUM_GREGS.
6473
b335f4a6
MK
6474 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6475 and associated comment. They no longer make any sense, since we
6476 don't use this file anymore on Linux.
6477
1cf88de5
MK
6478 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6479 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6480 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6481 elements in these arrays.
6482 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6483 MAX_NUM_REGS.
6484
daa66587
MK
64852002-06-15 Mark Kettenis <kettenis@gnu.org>
6486
6487 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6488 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6489
26e9b323
AC
64902002-06-14 Andrew Cagney <cagney@redhat.com>
6491
6492 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6493 EXTRACT_RETURN_VALUE.
6494 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6495 EXTRACT_STRUCT_VALUE_ADDRESS.
6496 * gdbarch.h, gdbarch.c: Regenerate.
6497
6498 * values.c (value_being_returned): Handle
6499 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6500 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6501
6502 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6503 * arm-tdep.c (arm_gdbarch_init): Update.
6504 * avr-tdep.c (avr_gdbarch_init): Update.
6505 * cris-tdep.c (cris_gdbarch_init): Update.
6506 * d10v-tdep.c (d10v_gdbarch_init): Update.
6507 * ia64-tdep.c (ia64_gdbarch_init): Update.
6508 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6509 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6510 * s390-tdep.c (s390_gdbarch_init): Update.
6511 * sh-tdep.c (sh_gdbarch_init): Update.
6512 * s390-tdep.c (s390_gdbarch_init): Update.
6513 * sparc-tdep.c (sparc_gdbarch_init): Update.
6514 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6515 * v850-tdep.c (v850_gdbarch_init): Update.
6516 * vax-tdep.c (vax_gdbarch_init): Update.
6517 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6518 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6519
6520 * config/arc/tm-arc.h: Update.
6521 * config/d30v/tm-d30v.h: Update.
6522 * config/fr30/tm-fr30.h: Update.
6523 * config/h8300/tm-h8300.h: Update.
6524 * config/h8500/tm-h8500.h: Update.
6525 * config/i386/tm-i386.h: Update.
6526 * config/i386/tm-ptx.h: Update.
6527 * config/i386/tm-symmetry.h: Update.
6528 * config/i960/tm-i960.h: Update.
6529 * config/m32r/tm-m32r.h: Update.
6530 * config/m68k/tm-delta68.h: Update.
6531 * config/m68k/tm-linux.h: Update.
6532 * config/m68k/tm-m68k.h: Update.
6533 * config/m88k/tm-m88k.h: Update.
6534 * config/mcore/tm-mcore.h: Update.
6535 * config/mips/tm-mips.h: Update.
6536 * config/mn10200/tm-mn10200.h: Update.
6537 * config/pa/tm-hppa.h: Update.
6538 * config/pa/tm-hppa64.h: Update.
6539 * config/sparc/tm-sp64.h: Update.
6540 * config/sparc/tm-sparc.h: Update.
6541 * config/sparc/tm-sparclet.h: Update.
6542 * config/z8k/tm-z8k.h: Update.
6543
5179e78f
AC
65442002-06-14 Andrew Cagney <cagney@redhat.com>
6545
6546 * Makefile.in (i386_linux_tdep_h): Define.
6547 (i386_tdep_h, i387_tdep_h): Define.
6548 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6549 $(i386_tdep_h) and $(i387_tdep_h).
6550 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6551
8201327c
MK
65522002-06-14 Mark Kettenis <kettenis@gnu.org>
6553
edf393ac
MK
6554 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6555 Already covered by the default.
6556
896fb97d
MK
6557 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6558 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6559 (i386_gdbarch_init): Initialize long_double_format and long_double
6560 bit.
6561
8201327c
MK
6562 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6563 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6564 Move these to ...
6565 * config/i386/i386sol2.mh: ... here.
6566 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6567 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6568 (SIGCONTEXT_PC_OFFSET): Remove define.
6569 (IN_SIGTRAMP): Remove define.
6570 * i386-sol2-tdep.c: New file.
6571
6572 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6573 * config/i386/tm-i386nw.h: Removed.
6574
6575 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6576 USE_STRUCT_CONVENTION): Remove defines.
6577 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6578 (get_longjmp_target): Remove prototype.
6579 (IN_SIGTRAMP): Remove define.
6580 (i386bsd_in_sigtramp): Remove prototype.
6581 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6582 function. Update comment accordingly
6583 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6584 (FRAME_SAVED_PC): Remove define.
6585 (i386bsd_frame_saved_pc): Remove prototype.
6586 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6587 GET_LONGJMP_TARGET): Remove defines.
6588 (get_longjmp_target): Remove prototype.
6589 (IN_SIGTRAMP): Remove define.
6590 (i386bsd_in_sigtramp): Remove prototype.
6591 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6592 function. Update comment accordingly
6593 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6594 (FRAME_SAVED_PC): Remove define.
6595 (i386bsd_frame_saved_pc): Remove prototype.
6596 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6597 Remove prototype.
6598 (USE_STRUCT_CONVENTION): Remove prototype.
6599 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6600 declaration.
6601 (_initialize_i386bsd_nat): Revise logic to determine some
6602 constants at compile time when compiling a native GDB. Warn if
6603 things don't match up with what we expect.
6604 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6605 Remove variables.
6606 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6607 to use date stored in `struct gdbarch_tdep'.
6608 (i386bsd_sigcontext_offset): Remove varaible.
6609 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6610 stored in `struct gdbarch_tdep'.
6611 (i386bsd_frame_saved_pc): Make static.
6612 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6613 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6614 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6615 i386fbsd4_sc_pc_offset): New variables.
6616 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6617 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6618 functions.
6619 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6620 functions.
6621 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6622 Modify the value of i386fbsd_sigtramp_start and
6623 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6624 i386fbsd_sigtramp_end.
6625 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6626 function.
6627
6628 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6629 define to i386-linux-tdep.h.
6630 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6631 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6632 defines.
6633 (i386_linux_register_name, i386_linux_register_byte,
6634 i386_linux_register_raw_size): Remove prototypes.
6635 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6636 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6637 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6638 TARGET_WRITE_PC): Remove defines.
6639 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6640 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6641 i386_linux_write_pc): Remove prototypes.
6642 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6643 (get_longjmp_target): Remove prototype.
6644 * i386-linux-tdep.h: New file.
6645 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6646 * i386-linux-tdep.c: Include "i386-tdep.h" and
6647 "i386-linux-tdep.h".
6648 (i386_linux_register_name, i386_linux_register_byte,
6649 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6650 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6651 Make static.
6652 (i386_linux_init_abi): New function.
6653 (_initialize_i386_linux_tdep): New function.
6654
6655 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6656 (i386_saved_pc_after_call): Remove prototype.
6657 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6658 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6659 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6660 (i386_register_name, i386_stab_reg_to_regnum,
6661 i386_dwarf_reg_to_regnum): Remove prototypes.
6662 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6663 SIZEOF_SSE_REGS): Remove defines.
6664 (REGISTER_BYTES): Remove define.
6665 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6666 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6667 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6668 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6669 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6670 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6671 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6672 (get_longjmp_target): Remove prototype.
6673 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6674 (sigtramp_saved_pc): Remove define.
6675 (i386v4_sigtramp_saved_pc): Remove prototype.
6676 * config/i386/tm-go32.h (FRAME_CHAIN,
6677 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6678 (i386go32_frame_saved_pc): Remove prototype.
6679 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6680 (get_longjmp_target): Remove prototype.
6681 * i386-tdep.h: Include "osabi.h".
6682 (enum i386_abi): Removed.
6683 (enum struct_return): New enum.
6684 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6685 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6686 sc_pc_offset members.
6687 (i386_gdbarch_register_os_abi): Remove prototype.
6688 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6689 I386_SSE_NUM_REGS): New defines.
6690 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6691 I386_SSE_SIZEOF_REGS): New defines.
6692 (i386_register_name, i386_register_byte, i386_register_raw_size):
6693 New prototypes.
6694 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6695 (i386bsd_sigtramp_saved_pc): New prototype.
6696 * i386-tdep.c: Don't include "elf-bfd.h".
6697 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6698 i386_frame_chain, i386_saved_pc_after_call): Make static.
6699 (i386_frame_saved_pc): Rewrite to call architecture dependent
6700 function to deal with signal handlers. Make static.
6701 (i386go32_frame_saved_pc): Removed.
6702 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6703 Removed.
6704 (i386_get_longjmp_target): New function.
6705 (default_struct_convention, pcc_struct_convention,
6706 reg_struct_convention, valid_conventions, struct_convention): New
6707 variables.
6708 (i386_use_struct_convention): New function.
6709 (i386v4_sigtramp_saved_pc): Renamed to
6710 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6711 (i386_pc_in_sigtramp): New function.
6712 (i386_abi_names): Removed.
6713 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6714 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6715 Removed.
6716 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6717 i386_gdbarch_register_os_abi): Removed.
6718 (struct i386_abi_handler): Removed.
6719 (i386_abi_handler_list): Removed.
6720 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6721 functions.
6722 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6723 i386_nw_init_abi): New functions.
6724 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6725 Use set_gdbarch_xxx() calls instead of relying on macros for a
6726 number of calls.
6727 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6728 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6729 Register the various architecture variants defined in this file.
6730
ad2f7632
DJ
67312002-06-14 Daniel Jacobowitz <drow@mvista.com>
6732
6733 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6734 (struct main_type): Remove arg_types member. Update comments for
6735 struct field.
6736 (TYPE_ARG_TYPES): Remove.
6737 (TYPE_FN_FIELD_ARGS): Update.
6738 (smash_to_method_type): Update prototype.
6739
6740 * c-typeprint.c (cp_type_print_method_args): Take method type
6741 instead of argument list. Use new argument layout. Simplify.
6742 (c_type_print_args): Use new argument layout. Simplify.
6743 (c_type_print_base): Update call to cp_type_print_method_args.
6744 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6745 argument; use die->type instead. Update call to
6746 smash_to_method_type.
6747 (read_structure_scope): Update call to dwarf2_add_member_fn.
6748 * gdbtypes.c (allocate_stub_method): Update comment.
6749 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6750 Use new argument layout.
6751 (check_stub_method): Use new argument layout. Don't count
6752 void as an argument.
6753 (print_arg_types): Update comments. Use new argument layout.
6754 (recursive_dump_type): Don't print arg_types member.
6755 * hpread.c (hpread_read_struct_type): Use new argument layout.
6756 (fixup_class_method_type): Likewise.
6757 (hpread_type_lookup): Likewise.
6758 * stabsread.c (read_type): Update calls to read_args and
6759 smash_to_method_type.
6760 (read_args): Use new argument layout. Simplify.
6761 * valops.c (typecmp): Use new argument layout. Update parameters
6762 and comments. Simplify.
6763 (hand_function_call): Use new argument layout.
6764 (search_struct_method): Update call to typecmp.
6765 (find_overload_match): Use new argument layout.
6766
6da02953
DJ
67672002-06-13 Daniel Jacobowitz <drow@mvista.com>
6768
6769 * NEWS: Mention multithreaded debug support for gdbserver.
6770
519b2366
DJ
67712002-06-13 Daniel Jacobowitz <drow@mvista.com>
6772
6773 * MAINTAINERS: Mention NEWS.
6774
6c0d6680
DJ
67752002-06-13 Daniel Jacobowitz <drow@mvista.com>
6776
6777 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6778 (struct mips_objfile_private, compare_pdr_entries): New.
6779 (non_heuristic_proc_desc): Read the ".pdr" section if it
6780 is present.
6781
6529d2dd
AC
67822002-06-12 Andrew Cagney <ac131313@redhat.com>
6783
6784 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6785 (arm_debug): New static variable.
6786 (_initialize_arm_tdep): Add ``set debug arm'' command.
6787
26216b98
AC
67882002-06-12 Andrew Cagney <ac131313@redhat.com>
6789
6790 * Makefile.in (sim_arm_h): Define.
6791 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6792 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6793 (arm_register_sim_regno): New function, map an internal REGNUM
6794 onto a simulator register number.
6795 (arm_gdbarch_init): Set register_sim_regno.
6796
814b3ba0
AH
67972002-06-09 Aldy Hernandez <aldyh@redhat.com>
6798
6799 * MAINTAINERS: Add self.
6800
475b0867
JB
68012002-06-11 Jim Blandy <jimb@redhat.com>
6802
919d772c
JB
6803 * source.c (source_info): Mention whether the symtab has
6804 information about preprocessor macros.
6805
475b0867
JB
6806 Call the command `info macro', not `show macro'.
6807 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6808 Fix error message.
6809 (_initialize_macrocmd): Register `info_macro_command' in
6810 `infolist', not `showlist'.
6811
9e364162
DJ
68122002-06-11 Daniel Jacobowitz <drow@mvista.com>
6813
6814 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6815 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6816 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6817 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6818 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6819 unconditionally.
6820 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6821 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6822 (_initialize_mips_tdep): Remove dead code.
6823 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6824 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6825 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6826 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6827 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6828 MIPS_LAST_FP_ARG_REGNUM): Remove.
6829
23aa4c72
ML
68302002-06-11 Michal Ludvig <mludvig@suse.cz>
6831
6832 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6833 (unwind_tmp_obstack_free, parse_frame_info)
6834 (update_context, cfi_read_fp, cfi_write_fp)
6835 (cfi_frame_chain, cfi_init_extra_frame_info)
6836 (cfi_virtual_frame_pointer): Use the above function.
264d1763 6837 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 6838
70eb15a4
CV
68392002-06-11 Corinna Vinschen <vinschen@redhat.com>
6840
6841 * v850-tdep.c (v850_type_is_scalar): New function.
6842 (v850_use_struct_convention): Match current gcc implementation
6843 as close as possible.
6844 (v850_push_arguments): Fix stack_offset handling. Don't write
6845 struct_addr into register. This is done by v850_store_struct_return.
6846 (v850_extract_return_value): Care for structs.
6847 (v850_store_return_value): Ditto.
6848 (v850_store_struct_return): Actually write address.
6849
482a4d06
ML
68502002-06-11 Michal Ludvig <mludvig@suse.cz>
6851
6852 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6853 without debug information too.
6854
d855c300
AC
68552002-06-10 Andrew Cagney <ac131313@redhat.com>
6856
6857 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6858 Make multi-arch pure.
6859 * gdbarch.h, gdbarch.c: Re-generate.
6860 * arm-tdep.c (arm_print_float_info): Update.
6861 * arch-utils.h (default_print_float_info): Update.
6862 * arch-utils.c (default_print_float_info): Update.
6863 * infcmd.c (float_info): Update call.
6864
dd12a101
AC
68652002-06-10 Andrew Cagney <ac131313@redhat.com>
6866
6867 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6868 the front of the initialize list.
6869
101dcfbe
AC
68702002-06-10 Andrew Cagney <ac131313@redhat.com>
6871
6872 * infrun.c (struct inferior_status): Replace fields
6873 selected_frame_address and selected_level with field
6874 selected_frame_id.
6875 (save_inferior_status): Update. Use get_frame_id.
6876 (struct restore_selected_frame_args): Delete.
6877 (restore_selected_frame): Update. Use frame_find_by_id.
6878 (restore_inferior_status): Update.
6879
6880 * breakpoint.h (struct breakpoint): Change type of
6881 watchpoint_frame to frame_id.
6882 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6883 call to get_current_frame.
6884 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6885 get_current_frame.
6886 (watchpoint_check): Use frame_find_by_id.
6887
6888 * frame.h (record_selected_frame): Delete declaration.
6889 * stack.c (record_selected_frame): Delete function.
6890
6891 * frame.h (struct frame_id): Define.
6892 (get_frame_id): Declare.
6893 (frame_find_by_id): Declare.
6894 * frame.c (frame_find_by_id): New function.
6895 (get_frame_id): New function.
6896
304270b6
AV
68972002-06-10 Andrey Volkov <avolkov@transas.com>
6898
6899 * ser-e7kpc.c: Fix duplicated define and call of
6900 _initialize_ser_e7000pc
6901
2f2cf184
DJ
69022002-06-09 Daniel Jacobowitz <drow@mvista.com>
6903
6904 * signals/signals.c (target_signal_from_host): Fix #ifdef
6905 SIGRTMIN case.
6906 (do_target_signal_to_host): Likewise.
6907
caaa3122
DJ
69082002-06-09 Daniel Jacobowitz <drow@mvista.com>
6909
6910 * mips-tdep.c (mips_find_abi_section): New function.
6911 (mips_gdbarch_init): Call it.
6912
6ac5df3a
MK
69132002-06-09 Mark Kettenis <kettenis@gnu.org>
6914
6915 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6916 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6917 after Andrew's 2002-06-08 gdbarch change.
6918
82ea117a
MK
69192002-06-09 Mark Kettenis <kettenis@gnu.org>
6920
6921 * i386-linux-nat.c (suppy_gregset): Don't supply
6922 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6923 register cache.
6924 (fill_gregset): Don't fetch it under the same circumstances.
6925
3c25f8c7
AC
69262002-06-09 Andrew Cagney <cagney@redhat.com>
6927
6928 * Makefile.in (callback_h): Define.
6929 (remote_sim_h): Update path to remote-sim.h.
6930 (remote-rdp.o): Add $(callback_h).
6931 (remote-sim.o): Use $(callback_h).
6932 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6933 * remote-rdp.c: Include "gdb/callback.h".
6934
1029b7fa
MK
69352002-06-09 Mark Kettenis <kettenis@gnu.org>
6936
6937 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6938 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6939
616675d3
AC
69402002-06-08 Andrew Cagney <ac131313@redhat.com>
6941
a3efda28
AC
6942 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6943 * rdi-share/serpardr.c: Ditto.
6944 * rdi-share/unixcomm.c: Ditto.
6945 * rdi-share/serdrv.c: Ditto.
6946 * rdi-share/hostchan.h: Ditto.
6947 * rdi-share/hostchan.c: Ditto.
6948 * rdi-share/host.h: Ditto.
6949 * rdi-share/devsw.c: Ditto.
6950
c5f10366
AC
6951 * objfiles.h: Change type of obj_private to void pointer.
6952 * pa64solib.c: Update copyright. Don't include "assert.h", use
6953 strcmp instead of STREQ, use LONGEST, do not use PTR
6954 * somsolib.c: Ditto.
6955
616675d3
AC
6956 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6957 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6958 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6959
e4b415d9
AC
69602002-06-08 Andrew Cagney <ac131313@redhat.com>
6961
6962 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6963 (default_get_saved_register): Delete function.
6964 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6965 generic_unwind_get_saved_register.
6966 * gdbarch.h, gdbarch.c: Re-generate.
6967
ca0d0b52
AC
69682002-06-08 Andrew Cagney <ac131313@redhat.com>
6969
6970 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6971 generic_func_frame_chain_valid.
6972 * gdbarch.h, gdbarch.c: Re-generate.
6973 * blockframe.c (generic_func_frame_chain_valid): Only check
6974 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6975 passing FP to PC_IN_CALL_DUMMY.
6976 Fix PR gdb/360.
6977
76860b5f
AC
69782002-06-08 Andrew Cagney <ac131313@redhat.com>
6979
6980 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6981 (register_gdbarch_data): Initialize init_p.
6982 (gdbarch_data): Initialize data pointer using the init function.
6983 (init_gdbarch_data): Delete function.
6984 (gdbarch_update_p): Update.
6985 (initialize_non_multiarch): Update.
6986 (struct gdbarch): Add field initialized_p.
6987 * gdbarch.h, gdbarch.c: Re-generate.
6988
8dda9770
ML
69892002-06-07 Michal Ludvig <mludvig@suse.cz>
6990
6991 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6992 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6993 better do the things actually here.
6994 * x86-64-tdep.c (x86_64_register_name2nr): New.
6995 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6996 (x86_64_gdbarch_init): Respect the above change.
6997 * x86-64-tdep.h (x86_64_register_name2nr)
6998 (x86_64_register_nr2name): Add prototypes.
6999 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7000
3d79a47c
MS
70012002-06-06 Michael Snyder <msnyder@redhat.com>
7002
7bd91a28
MS
7003 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7004 Delete extra braces and re-indent.
7005 (d10v_store_return_value): Char return values
3d79a47c
MS
7006 must be shifted over by one byte in R0.
7007 (d10v_extract_return_value): Delete extra braces, re-indent.
7008
095a4c96
EZ
70092002-06-06 Elena Zannoni <ezannoni@redhat.com>
7010
7011 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7012 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7013 (d10v_integer_to_address): Rewrite.
7014 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7015 the d10v specific functions which take care of converting to the
7016 correct space.
7017
e8a77ca4
EZ
70182002-06-06 Elena Zannoni <ezannoni@redhat.com>
7019
7020 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7021 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7022
4f2e4a4f
AC
70232002-06-02 Andrew Cagney <ac131313@redhat.com>
7024
7025 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7026 includes.
7027 * config/tm-linux.h: Ditto.
7028 * config/alpha/tm-alphalinux.h: Ditto.
7029 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7030 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7031 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7032 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7033 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7034 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7035 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7036 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7037 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7038 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7039 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7040 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7041 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7042 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7043 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7044 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7045 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7046 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7047 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7048 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7049 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7050 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7051 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7052 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7053 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7054 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7055 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7056 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7057 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7058 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7059 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7060 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7061 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7062 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7063 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7064 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7065 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7066
ae2ab2ce
AS
70672002-05-04 Aidan Skinner <aidan@velvet.net>
7068
7069 * ada-exp.tab.c: New file
7070 * ada-exp.y: New file
7071 * ada-lang.c: New file
7072 * ada-lang.h: New file
7073 * ada-lex.c: New file
7074 * ada-lex.l: New file
7075 * ada-tasks.c: New file
7076 * ada-typeprint.c: New file
7077 * ada-valprint.c: New file
7078
0ddd0135
JT
70792002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7080
7081 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7082 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7083
750fbacc
JT
70842002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7085
7086 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7087 insetead of ppc-linux-tdep.o.
7088 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7089 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7090
df94e18a
AC
70912002-06-02 Andrew Cagney <ac131313@redhat.com>
7092
7093 2002-05-07 Christian Groessler <chris@groessler.org>
7094 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7095 bit register contents for little endian hosts.
7096
1a38ab75
AC
70972002-06-01 Andrew Cagney <ac131313@redhat.com>
7098
7099 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7100 any maintainer.
7101
8b1632ac
AC
71022002-06-01 Andrew Cagney <ac131313@redhat.com>
7103
7104 * gdbarch.h: Regenerate.
7105
627054c8
AC
71062002-06-01 Andrew Cagney <ac131313@redhat.com>
7107
7108 * MAINTAINERS: Add everyone to write-after-approval list.
7109
4f460812
AC
71102002-06-01 Andrew Cagney <ac131313@redhat.com>
7111
7112 * stack.c (frame_info): Use frame_register_unwind instead of
7113 saved_regs. Mention when the SP is on the stack or in a register.
7114
7115 * frame.h (frame_register_unwind_ftype): Define. Document.
7116 (struct frame_info): Add field register_unwind and
7117 register_unwind_cache.
7118 (frame_register_unwind): Declare.
7119 (generic_unwind_get_saved_register): Declare.
7120
7121 * frame.c (frame_register_unwind): New function.
7122 (generic_unwind_get_saved_register): New function.
7123
7124 * blockframe.c (generic_call_dummy_register_unwind): New function.
7125 (frame_saved_regs_register_unwind): New function.
7126 (set_unwind_by_pc): New function.
7127 (create_new_frame): New function.
7128 (get_prev_frame): New function.
7129
de888f76
AC
71302002-05-30 Andrew Cagney <ac131313@redhat.com>
7131
7132 * a29k-share/: Delete directory.
7133 * remote-vx29k.c: Delete file.
7134
2f2c3626
JT
71352002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7136
7137 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7138 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7139
9ce5c36a
JT
71402002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7141
7142 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7143 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7144 (sparc64nbsd-nat.o)
7145 (sparcnbsd-nat.o)
7146 (sparcnbsd-tdep.o): New dependency lists.
7147 * NEWS: Note new UltraSPARC NetBSD native configuration.
7148 * configure.host (sparc64-*-netbsd*): New host.
7149 * configure.tgt (sparc-*-netbsdelf*)
7150 (sparc-*-netbsd*): Set gdb_target to nbsd.
7151 (sparc64-*-netbsd*): New target.
7152 * sparc64nbsd-nat.c: New file.
7153 * sparcnbsd-nat.c: New file.
7154 * sparcnbsd-tdep.c: New file.
7155 * sparcnbsd-tdep.h: New file.
7156 * config/sparc/nbsd.mt: New file.
7157 * config/sparc/nbsd64.mh: New file.
7158 * config/sparc/nbsd64.mt: New file.
7159 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7160 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7161 (HOST_IPC): Remove.
7162 * config/sparc/nbsdaout.mt: Remove.
7163 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7164 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7165 (HOST_IPC): Remove.
7166 * config/sparc/nbsdelf.mt: Remove.
7167 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7168 sparc-nat.c compatiblity defines.
7169 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7170 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7171 * config/sparc/tm-nbsd64.h: New file.
7172 * config/sparc/tm-nbsdaout.h: Remove.
7173 * config/sparc/xm-nbsd.h: Remove.
7174
ef3cf062
JT
71752002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7176
7177 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7178 * sparc-tdep.c: Include osabi.h.
7179 (gdbarch_tdep): Add osabi member.
7180 (_initialize_sparc_tdep): Use gdbarch_register.
7181 (sparc_gdbarch_init): Use generic OS ABI framework.
7182 (sparc_dump_tdep): New function.
7183
ee8ff470
KB
71842002-05-30 Kevin Buettner <kevinb@redhat.com>
7185
7186 * corefile.c (do_captured_read_memory_integer): Return non-zero
7187 result.
7188 (safe_read_memory_integer): Copy result of memory read when
7189 status is non-zero. Also, add comments.
7190
7b112f9c
JT
71912002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7192
7193 * Makefile.in (ppc_tdep_h): Define.
7194 (ppc-linux-nat.o)
7195 (ppc-linux-tdep.o)
7196 (rs6000-tdep.o): Use $(ppc_tdep_h).
7197 (ppc-sysv-tdep.o)
7198 (ppcnbsd-nat.o)
7199 (ppcnbsd-tdep.o): New dependency lists.
7200 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7201 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7202 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7203 (ppc_sysv_abi_broken_use_struct_convention)
7204 (ppc_sysv_abi_use_struct_convention)
7205 (ppc_sysv_abi_push_arguments): Move to...
7206 * ppc-sysv-tdep.c: ...here.
7207 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7208 * rs6000-tdep.c (process_note_abi_tag_sections)
7209 (get_elfosabi): Remove.
7210 (rs6000_gdbarch_init): Use generic OS ABI framework.
7211 (rs6000_dump_tdep): New function.
7212 (_initialize_rs6000_tdep): Use gdbarch_register.
7213 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7214 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7215 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7216 of ppc-linux-tdep.o.
7217 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7218 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7219 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7220 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7221 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7222 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7223
480dd42a
JB
72242002-05-29 Jim Blandy <jimb@redhat.com>
7225
7226 * macroscope.c (default_macro_scope): Put `void' in empty argument
7227 list.
7228
4182591f
AC
72292002-05-29 Andrew Cagney <ac131313@redhat.com>
7230
7231 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7232 * arch-utils.c: Include "sim-regno.h".
7233 * gdbarch.sh: Don't include "sim-regno.h".
7234 * gdbarch.h, gdbarch.c: Regenerate.
7235 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7236 here.
7237 * arch-utils.h (legacy_register_sim_regno): To here.
7238 * remote-sim.c (legacy_register_sim_regno): Move function from
7239 here.
7240 * arch-utils.c (legacy_register_sim_regno): To here.
7241
8238d0bf
AC
72422002-05-28 Andrew Cagney <ac131313@redhat.com>
7243
7244 * sim-regno.h: New file.
7245 * Makefile.in (sim_regno_h): Define.
7246 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7247 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7248 (legacy_register_sim_regno): New function.
7249 (one2one_register_sim_regno): New function.
7250 (gdbsim_fetch_register): Rewrite.
7251 (gdbsim_store_register): Only store a register when
7252 REGISTER_SIM_REGNO is valid.
7253 * d10v-tdep.c: Include "sim-regno.h".
7254 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7255 (d10v_ts3_register_sim_regno): Ditto.
7256 * gdbarch.sh: Include "sim-regno.h".
7257 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7258 * gdbarch.h, gdbarch.c: Regenerate.
7259 * arch-utils.h (default_register_sim_regno): Delete declaration.
7260 * arch-utils.c (default_register_sim_regno): Delete function.
7261
485721b1
JT
72622002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7263
7264 * ppcnbsd-nat.c: Rewrite.
7265 * ppcnbsd-tdep.c: New file.
7266 * ppcnbsd-tdep.h: New file.
7267 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7268 solib.o, and solib-svr4.o.
7269 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7270 nbsd-tdep.o, and corelow.o.
7271
697f244d
AC
72722002-05-28 Andrew Cagney <ac131313@redhat.com>
7273
7274 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7275 `tr' and `sed'. Mention that `broken' targets are not expected to
7276 build.
7277
f08caad1 72782002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7279
7280 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7281 Let PC point right after the prologue before looking up symbols.
7282
3139facc
MH
72832002-05-27 Martin M. Hunt <hunt@redhat.com>
7284
7285 * i386-tdep.c (i386_register_virtual_type): Return
7286 builtin_type_vec128i for SSE registers.
7287
7288 * gdbtypes.h (builtin_type_vec128i): Declare.
7289
7290 * gdbtypes.c (build_builtin_type_vec128i): New function.
7291 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7292 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7293 (build_gdbtypes): Initialize new builtin vector types.
7294 (_initialize_gdbtypes): Register new vector types with gdbarch.
7295
6e3ba3b8
JT
72962002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7297
7298 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7299 since it has been multi-arch'd.
7300 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7301 Move Alpha and VAX multi-arch news entries to same section
7302 as other multi-arch news.
7303
93d5585d
JT
73042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7305
7306 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7307 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7308 static. Rename some register numbers to put them in ns32k-tdep
7309 private namespace.
7310 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7311 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7312 functions.
7313 (_initialize_ns32k_tdep): Use gdbarch_register.
7314 * ns32k-tdep.h: New file.
7315 * ns32knbsd-tdep.c: New file.
7316 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7317 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7318 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7319 REGISTER_BYTES, REGISTER_BYTE): Remove.
7320 * config/ns32k/tm-ns32k.h: New file.
7321 * config/ns32k/tm-umax.h: Remove.
7322
efb2c70e
JT
73232002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7324
7325 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7326 ns32k_store_struct_return, ns32k_extract_return_value,
7327 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7328 functions.
7329 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7330 ns32k_saved_pc_after_call.
7331 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7332 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7333 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7334 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7335 ns32k_extract_struct_value_address.
7336
7bcc927b
JT
73372002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7338
7339 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7340 ns32k_fix_call_dummy): New.
7341 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7342 ns32k_call_dummy_words.
7343 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7344 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7345 CALL_DUMMY_NARGS): Remove.
7346 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7347
78f9d765
JT
73482002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7349
7350 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7351 ns32k_frame_saved_pc, ns32k_frame_args_address,
7352 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7353 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7354 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7355 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7356 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7357 (BREAKPOINT): Remove..
7358 (FRAME_CHAIN): Define as ns32k_frame_chain.
7359 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7360 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7361 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7362 (FRAME_FIND_SAVED_REGS): Remove.
7363 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7364 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7365 (POP_FRAME): Define as ns32k_pop_frame.
7366
f2c762e0
JT
73672002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7368
7369 * ns32k-tdep.c (ns32k_register_byte_32082,
7370 ns32k_register_byte_32382, ns32k_register_raw_size,
7371 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7372 functions.
7373 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7374 ns32k_register_byte_32382.
7375 * config/ns32k/tm-umax.h: Update copyright years.
7376 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7377 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7378 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7379 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7380 (ns32k_get_enter_addr): Fix prototype.
7381
af137673
JT
73822002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7383
7384 * ns32k-tdep.c: Update copyright years.
7385 (ns32k_register_name_32082): New function.
7386 (ns32k_register_name_32382): Ditto.
7387 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7388 (REGISTER_NAME): Define as ns32k_register_name_32382.
7389 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7390 (REGISTER_NAME): Define as ns32k_register_name_32082.
7391
a8bc7b56
JB
73922002-05-24 Jim Blandy <jimb@redhat.com>
7393
7394 * dwarf2read.c (free_line_header): Use xfree, not free.
7395
83a45910
JT
73962002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7397
7398 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7399 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7400
0db71247
AC
74012002-05-23 Andrew Cagney <ac131313@redhat.com>
7402
7403 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7404
b9e5e4dd
AC
74052002-05-23 Andrew Cagney <ac131313@redhat.com>
7406
7407 From Ross Alexander at NEC Europe:
7408 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7409
de530e84
MS
74102002-05-23 Michael Snyder <msnyder@redhat.com>
7411
7412 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7413 for input, rather than parse_and_eval_address.
7414
b91b96f4
AC
74152002-05-23 Andrew Cagney <ac131313@redhat.com>
7416
7417 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7418 * Makefile.in (sim_d10v_h): Update definition.
7419
8b279e7a
AC
74202002-05-24 Andrew Cagney <cagney@redhat.com>
7421
7422 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7423 change `2002-05-22 Michael Snyder' below.
7424 (d10v_push_arguments): Ditto.
7425 (d10v_extract_return_value): Ditto.
7426
0a3d0425
JB
74272002-05-23 Jim Blandy <jimb@redhat.com>
7428
7429 * macrotab.c (check_for_redefinition): Don't complain if the new
7430 definition is the same as the previous one. Take more arguments
7431 to allow the comparison.
7432 (macro_define_object, macro_define_function): Pass more arguments
7433 to check_for_redefinition.
7434
78eac43e
MS
74352002-05-22 Michael Snyder <msnyder@redhat.com>
7436
7437 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7438 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7439 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7440 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7441 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7442 Add a temp variable to save a call (and a memory read).
7443 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7444 if possible (so that PC_IN_CALL_DUMMY will work).
7445
9bc1edb8
CV
74462002-05-22 Corinna Vinschen <vinschen@redhat.com>
7447
7448 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7449
005ef3d2
ML
74502002-05-22 Michal Ludvig <mludvig@suse.cz>
7451
7452 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7453 fde->cie_ptr.
7454 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7455 (dwarf2_build_frame_info): Add offset to fde->initial_location
7456 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7457 (execute_stack_op): Change type of 'result' from ULONGEST to
7458 CORE_ADDR.
005ef3d2 7459
fcf4f891
JT
74602002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7461
7462 * config/alpha/tm-nbsd.h: Include solib.h.
7463
cfef91e4
JT
74642002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7465
7466 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7467 assumptions about the host's byte order.
7468
9964235a
JT
74692002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7470
7471 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7472 to dependency list.
7473 * alphanbsd-tdep.c: Include solib-svr4.h.
7474 * shnbsd-tdep.c: Ditto.
7475
9eeef8ef
JT
74762002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7477
7478 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7479 nbsd-tdep.h to dependency list.
7480 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7481 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7482 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7483 nbsdaout.mh and nbsdelf.mh consistently.
7484 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7485 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7486 nbsdaout.mt and nbsdelf.mh consistently.
7487 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7488 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7489 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7490 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7491 a.out shared library stuff from here...
7492 * config/nm-nbsdaout.h: ...to here.
7493 * config/tm-nbsd.h: Remove.
7494 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7495 * config/arm/nbsd.mh: Remove.
7496 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7497 nbsd-tdep.o.
7498 * config/arm/nbsdaout.mh: New file.
7499 * config/arm/nbsdelf.mh: New file.
7500 * config/arm/nm-nbsdaout.h: New file.
7501 * config/i386/nbsd.mh: Remove.
7502 * config/i386/nbsd.mt: Remove.
7503 * config/i386/nbsdaout.mh: New file.
7504 * config/i386/nbsdaout.mt: New file.
7505 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7506 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7507 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7508 i386_register_u_addr): Remove.
7509 * config/i386/nm-nbsdaout.h: New file.
7510 * config/i386/nm-nbsdelf.h: Remove.
7511 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7512 (USE_STRUCT_CONVENTION): Remove.
7513 * config/i386/tm-nbsdaout.h: New file.
7514 * config/i386/tm-nbsdelf.h: Remove.
7515 * config/m68k/nbsd.mh: Remove.
7516 * config/m68k/nbsd.mt: Remove.
7517 * config/m68k/nbsdaout.mh: New file.
7518 * config/m68k/nbsdaout.mt: New file.
7519 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7520 * config/m68k/nm-nbsdaout.h: New file.
7521 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7522 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7523 * config/ns32k/nbsd.mh: Remove.
7524 * config/ns32k/nbsd.mt: Remove.
7525 * config/ns32k/nbsdaout.mh: New file.
7526 * config/ns32k/nbsdaout.mt: New file.
7527 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7528 * config/ns32k/nm-nbsdaout.h: New file.
7529 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7530 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7531 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7532 (SVR4_SHARED_LIBS): Remove.
7533 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7534 * config/sparc/nbsd.mh: Remove.
7535 * config/sparc/nbsd.mt: Remove.
7536 * config/sparc/nbsdaout.mh: New file.
7537 * config/sparc/nbsdaout.mt: New file.
7538 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7539 * config/sparc/nbsdelf.mt: New file.
7540 * config/sparc/nm-nbsdaout.h: New file.
7541 * config/sparc/nm-nbsdelf.h: Remove.
7542 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7543 * config/sparc/tm-nbsdaout.h: New file.
7544
257ce470
JT
75452002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7546
7547 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7548 mipsnbsd-tdep.c
7549 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7550
76a6d5fe
JT
75512002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7552
7553 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7554 shnbsd-nat.c.
7555 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7556
45888261
JT
75572002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7558
7559 * NEWS: Note new MIPS NetBSD native configuration.
7560 * configure.host (mips*-*-netbsd*): New host.
7561 * configure.tgt (mips*-*-netbsd*): New target.
7562 * mipsnbsd-nat.c: New file.
7563 * mipsnbsd-tdep.c: New file.
7564 * mipsnbsd-tdep.h: New file.
7565 * config/mips/nbsd.mh: New file.
7566 * config/mips/nbsd.mt: New file.
7567 * config/mips/nm-nbsd.h: New file.
7568 * config/mips/tm-nbsd.h: New file.
7569
70f80edf
JT
75702002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7571
7572 * Makefile.in (SFILES): Add osabi.c.
7573 (COMMON_OBS): Add osabi.o.
7574 (osabi.o): New dependency list.
7575 * osabi.c: New file.
7576 * osabi.h: New file.
7577 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7578
7579 * Makefile.in (alpha_tdep_h): Define and use instead of
7580 alpha-tdep.h.
7581 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7582 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7583 Remove.
7584 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7585 * alpha-tdep.h: Include osabi.h.
7586 (alpha_abi): Remove.
7587 (gdbarch_tdep): Use generic OS ABI framework.
7588 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7589 gdbarch_register_osabi.
7590 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7591 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7592 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7593
7594 * Makefile.in (sh_tdep_h): Add osabi.h.
7595 * sh-tdep.h (sh_osabi): Remove.
7596 (gdbarch_tdep): Use generic OS ABI framework.
7597 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7598 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7599 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7600 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7601
7602 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7603 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7604 gdbarch_register_osabi.
7605 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7606 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7607 (get_elfosabi): Rename to...
7608 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7609 ABI framework support routines.
7610 (arm_gdbarch_init): Use generic OS ABI framework.
7611 (arm_dump_tdep): Likewise.
7612 (_initialize_arm_tdep): Likewise.
7613 * arm-tdep.h: Include osabi.h.
7614 (arm_abi): Remove.
7615 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7616 osabi member.
7617 (arm_gdbarch_register_os_abi): Remove prototype.
7618 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7619 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7620
7621 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7622 * mips-tdep.c: Include osabi.h.
7623 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7624 OS ABI framework.
7625
d194345b
KH
76262002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7627
7628 * h8300-tdep.c: Fix formatting.
7629
70c6b0d1
EZ
76302002-05-20 Elena Zannoni <ezannoni@redhat.com>
7631
7632 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7633 printing vector registers.
7634
165b8e33
AC
76352002-05-19 Andrew Cagney <ac131313@redhat.com>
7636
7637 From Fernando Nasser:
7638 * remote.c (remote_async_open_1): Re-throw the exception when the
7639 connection fails.
7640 (remote_cisco_open): Ditto.
7641 (remote_open_1): Ditto.
7642
36918e70
AC
76432002-05-19 Andrew Cagney <ac131313@redhat.com>
7644
7645 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7646 (remote_start_remote): Add uiout parameter. Pass through to
7647 remote_start_remote_dummy.
7648 (remote_open_1): Use catch_exception instead of catch_errors.
7649 (remote_async_open_1): Ditto.
7650 (remote_cisco_open): Ditto.
7651
ae44c0c4
AC
76522002-05-19 Andrew Cagney <ac131313@redhat.com>
7653
7654 * remote.c (remote_start_remote): Replace PTR with void pointer.
7655 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7656 static.
7657
8efe637d
AC
76582002-05-18 Andrew Cagney <ac131313@redhat.com>
7659
7660 * gdb_indent.sh: Allow the script to be run in the sim directory.
7661
2f1b5984
MK
76622002-05-18 Mark Kettenis <kettenis@gnu.org>
7663
f0f625e2
MK
7664 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7665 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7666
2f1b5984
MK
7667 * corelow.c (core_open): Only call set_gdbarch_from_file if
7668 exec_bfd is NULL.
7669
fc974602
AV
76702002-05-17 Andrey Volkov <avolkov@transas.com>
7671
7672 * h8300-tdep.c: Add support of EXR register
7673 * config/h8300/tm-h8300.h: Ditto.
7674
906709f4
AV
76752002-05-17 Andrey Volkov <avolkov@transas.com>
7676
7677 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7678
6e591d68
AV
76792002-05-17 Andrey Volkov <avolkov@transas.com>
7680
7681 * h8300-tdep.c: Change literal regnums to REGNO.
7682
84f0252a
JB
76832002-05-17 Jim Blandy <jimb@redhat.com>
7684
e0e9281e
JB
7685 * NEWS: Note addition of macro support.
7686
84f0252a
JB
7687 Expand preprocessor macros in C expressions.
7688 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7689 (scan_macro_expansion, scanning_macro_expansion,
7690 finished_macro_expansion): New function declarations.
7691 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7692 variable declarations.
7693 * parser-defs.h (expression_context_pc): New declaration.
7694 * parse.c (expression_context_pc): New variable.
7695 (parse_exp_1): Set expression_context_pc, as well as
7696 expression_context_block.
7697 * c-exp.y (yylex): If we're not already reading the result of a
7698 macro expansion, try to macro-expand the next token. When we're
7699 done scanning a macro expansion, switch back to the mainline text.
7700 Commas and `if's in a macro's expansion don't terminate the input.
7701 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7702 (macro_original_text, macro_expanded_text,
7703 expression_macro_lookup_func, expression_macro_lookup_baton): New
7704 variables.
7705 (scan_macro_expansion, scanning_macro_expansion,
7706 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7707 c_preprocess_and_parse): New functions.
7708 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7709 c_preprocess_and_parse, instead of c_parse.
7710 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7711 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7712
1c509ca8
JR
7713Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7714
7715 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7716 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7717 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7718
2250ee0c
CV
77192002-05-17 Corinna Vinschen <vinschen@redhat.com>
7720
7721 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7722
ab3b8126
JT
77232002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7724
7725 * Makefile.in (sh_tdep_h): Define and use.
7726 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7727 register enum): Move to...
7728 * * sh-tdep.h: ...here.
7729 * sh-tdep.c: Include sh-tdep.h.
7730 * sh3-rom.c: Likewise.
7731 * shnbsd-tdep.c: Likewise.
7732
ed9d4749
MS
77332002-05-16 Michael Snyder <msnyder@redhat.com>
7734
7735 * arm-tdep.c: Spelling fix in comment.
7736
2e276125
JB
77372002-05-16 Jim Blandy <jimb@redhat.com>
7738
6821892e
JB
7739 Add commands for manually expanding macros and showing their
7740 definitions.
7741 * macrocmd.c, macroscope.c, macroscope.h: New files.
7742 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7743 (macroscope_h): New variable.
7744 (HFILES_NO_SRCDIR): Add macroscope.h.
7745 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7746 (macroscope.o, macrocmd.o): New rules.
7747
2e276125
JB
7748 Teach the Dwarf 2 reader to read macro information.
7749 * dwarf2read.c: #include "macrotab.h".
7750 (dwarf_macinfo_buffer): New variable.
7751 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7752 dwarf_macinfo_size.
7753 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7754 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7755 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7756 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7757 dwarf2_macro_spaces_in_definition): New complaints.
7758 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7759 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7760 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7761 the partial symbol table.
7762 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7763 from what's recorded in the partial symbol table.
7764 (read_file_scope): If the compilation unit has a
7765 `DW_AT_macro_info' attribute, read its macro information.
7766 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7767
2f53fe6c
DJ
77682002-05-16 Daniel Jacobowitz <drow@mvista.com>
7769
7770 Fix PR gdb/546
7771 * ser-tcp.c: Don't include <netinet/udp.h>.
7772
2be99286
SC
77732002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7774
7775 * MAINTAINERS: Update my email address.
7776
c9af212b 77772002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
7778
7779 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7780 include file of the same name.
7781
bf5f1a52
CV
77822002-05-16 Corinna Vinschen <vinschen@redhat.com>
7783
7784 * configure.tgt: Mark v850 as multi-arched.
7785 * config/v850/tm-v850.h: Remove file.
7786 * config/v850/v850.mt: Eliminate TM_FILE.
7787
435e042a
CV
77882002-05-16 Corinna Vinschen <vinschen@redhat.com>
7789
7790 * v850-tdep.c: Full multi-arch.
7791 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7792 Define GDB_MULTI_ARCH to 2.
7793
9819c6c8
PM
77942002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7795
7796 * p-exp.y (current_type): New static variable.
7797 Carries the type of the expression at the position that is parsed.
7798 (push_current_type, pop_current_type): Two new functions. Used
7799 to store/restore current_type in expression on specific tokens.
c9af212b
RE
7800 (search_field): New static variable. Set to one after parsing a point
7801 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
7802 (FIELDNAME): New token. After a point only a token belonging to
7803 current_type type definition is allowed.
7804 (all over token rules): reset and change current_type according
7805 to rules.
7806 (exp '[' rule): insert implicit array index field if
7807 exp is a pascal string type.
7808
3a06899a
CV
78092002-05-16 Corinna Vinschen <vinschen@redhat.com>
7810
7811 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7812 frame info. Use frame_info's saved_regs instead of matching member
7813 in extra_frame_info throughout.
7814 (v850_frame_init_saved_regs): New function.
7815 (v850_init_extra_frame_info): Move most functionality into
7816 v850_frame_init_saved_regs().
7817 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7818 (v850_frame_find_saved_regs): Remove declaration.
7819 (FRAME_FIND_SAVED_REGS): Remove definition.
7820 (v850_frame_init_saved_regs): Add declaration.
7821 (FRAME_INIT_SAVED_REGS): Add definition.
7822
6ed14b0e
CV
78232002-05-16 Corinna Vinschen <vinschen@redhat.com>
7824
7825 * v850-tdep.c: Begin multi-arch'ing v850.
7826 (v850_target_architecture_hook): Remove function.
7827 (v850_gdbarch_init): New function. Add code previously in
7828 v850_target_architecture_hook().
7829 (_initialize_v850_tdep): Don't set target_architecture_hook.
7830 Call register_gdbarch_init() instead.
7831
42725910
DJ
78322002-05-16 Daniel Jacobowitz <drow@mvista.com>
7833
7834 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7835 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7836 (fixup_class_method_type): Likewise.
7837
99d9066e
JB
78382002-05-15 Jim Blandy <jimb@redhat.com>
7839
7840 Add macro structures to GDB's symbol tables. Nobody puts anything
7841 in them yet.
7842 * symtab.h (struct symtab): New member: `macro_table'.
7843 * buildsym.h (pending_macros): New global variable.
7844 * buildsym.c: #include "macrotab.h".
7845 (buildsym_init): Initialize `pending_macros'.
7846 (end_symtab): If we found macro information while reading a CU's
7847 debugging info, do build a symtab structure for it. Make the
7848 symtab point to the macro information, and clear the
7849 `pending_macros' pointer which held it while we were reading the
7850 debug info.
7851 (really_free_pendings): Free any pending macro table.
7852 * objfiles.h (struct objfile): New member: `macro_cache'.
7853 * objfiles.c (allocate_objfile): Set allocate and free functions
7854 for the macro cache's objstack.
7855 (free_objfile): Empty the macro cache's obstack.
7856 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7857 set new allocate and free functions for it.
7858 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7859 free functions for the macro cache's objstack. (Why is this
7860 function building its own objfile?)
7861 * symmisc.c (print_objfile_statistics): Print statistics on the
7862 macro bcache.
7863 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7864
c899585b
RE
78652002-05-15 Richard Earnshaw <rearnsha@arm.com>
7866
7867 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7868 (REGISTER_U_ADDR): Delete definition.
7869 (arm_register_u_addr): Delete declaration.
7870
a6cdd8c5
RE
78712002-05-15 Richard Earnshaw <rearnsha@arm.com>
7872
7873 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7874 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7875
c97dcfc7
AC
78762002-05-14 Andrew Cagney <ac131313@redhat.com>
7877
7878 * regcache.c (register_valid): Revise comments refering to "Not
7879 available" and "unavailable".
7880 * frame.c (frame_register_read): Ditto.
7881 * findvar.c (value_of_register): Ditto.
7882
93021b7d
AC
78832002-05-15 Andrew Cagney <cagney@redhat.com>
7884
7885 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7886 (remote-sim.o): Update dependencies.
7887 (d10v-tdep.o): Specify dependencies.
7888 (sim_d10v_h): Define.
7889
a86bc61c
JB
78902002-05-14 Jim Blandy <jimb@redhat.com>
7891
7892 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7893 * macrotab.c (macro_lookup_inclusion, find_definition,
7894 new_macro_table): Same.
7895
7896 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7897 not `! strcmp ()'. This is a dubious improvement.
7898 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7899
7900 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7901 although it's not necessary, to avoid a warning.
7902
2fdde8f8
DJ
79032002-05-14 Daniel Jacobowitz <drow@mvista.com>
7904
7905 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7906 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7907 TYPE_INSTANCE_FLAGS.
7908 (struct main_type): New.
7909 (struct type): Move most members to struct main_type. Change
7910 cv_type and as_type to new type_chain member. Add instance_flags.
7911 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7912 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7913 (finish_cv_type): Remove prototype.
7914 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7915 Set TYPE_CHAIN.
7916 (alloc_type_instance): New function.
7917 (smash_type): New function.
7918 (make_pointer_type, make_reference_type, make_function_type)
7919 (smash_to_member_type, smash_to_method_type): Call smash_type.
7920 (make_qualified_type): New function.
7921 (make_type_with_address_space): Call make_qualified_type.
7922 (make_cv_type): Likewise.
7923 (finish_cv_type): Remove unnecessary function.
7924 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7925 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7926 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7927 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7928 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7929 * hpread.c (hpread_read_struct_type): Likewise.
7930 * stabsread.c (read_struct_type): Likewise.
7931
843fedf4
EZ
79322002-05-14 Elena Zannoni <ezannoni@redhat.com>
7933
7934 * configure.tgt: Add a catch all sh* target, for cases like
7935 sh[2,3,4]-elf and sh-hms.
7936
05a6c72c
KS
79372002-05-14 Keith Seitz <keiths@redhat.com>
7938
7939 * event-loop.c (create_file_handler): Don't do anything but
7940 update data when we are given a fd which we are already
7941 monitoring.
7942
5d085aaf
ML
79432002-05-14 Michal Ludvig <mludvig@suse.cz>
7944
7945 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7946 (update_context): Use __func__ in warnings.
7947
9db8d71f
DJ
79482002-05-14 Daniel Jacobowitz <drow@mvista.com>
7949
7950 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7951 and tcp_close to net_open and net_close.
7952 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7953 using UDP if requested. Don't try to disable Nagle on UDP
7954 sockets.
7955 * remote.c (remote_serial_open): New function. Warn about UDP.
7956 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7957
5dbc6baa
EZ
79582002-05-13 Elena Zannoni <ezannoni@redhat.com>
7959
7960 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7961
cc3023f7
EZ
79622002-05-13 Elena Zannoni <ezannoni@redhat.com>
7963
7964 * configure.tgt: Remove sh-hms target.
7965 * MAINTAINERS: Don't list sh-hms as a separate target.
7966
ec2bcbe7
JB
79672002-05-13 Jim Blandy <jimb@redhat.com>
7968
7969 Add first preprocessor macro-expansion files.
7970 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7971 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7972 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7973 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7974 (COMMON_OBS): Add macrotab.o, macroexp.o.
7975 (macroexp.o, macrotab.o): New rules.
7976
6d531722
AC
79772002-05-13 Andrew Cagney <ac131313@redhat.com>
7978
7979 * config/m88k/tm-m88k.h: Update copyright.
7980 (m88k_target_write_pc): Declare
7981 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7982 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7983 (SHIFT_INST_REGS): Update definition.
7984 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7985 using old definition of TARGET_WRITE_PC.
7986 * regcache.c (generic_target_write_pc): Delete code handling
7987 NNPC_REGNUM.
7988 * gdbarch.sh (NNPC_REGNUM): Delete.
7989 * gdbarch.h, gdbarch.c: Regenerate.
7990
3e3f2739
RE
79912002-05-13 Richard Earnshaw <rearnsha@arm.com>
7992
7993 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7994 builtin reg number.
7995
0004e5a2
DJ
79962002-05-13 Daniel Jacobowitz <drow@mvista.com>
7997
7998 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7999 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8000 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8001 access macros.
8002 * c-typeprint.c (cp_type_print_method_args): Likewise.
8003 (c_type_print_args): Likewise.
8004 * d10v-tdep.c (d10v_push_arguments): Likewise.
8005 (d10v_extract_return_value): Likewise.
8006 * expprint.c (print_subexp): Likewise.
8007 * gdbtypes.c (lookup_primitive_typename): Likewise.
8008 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8009 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8010 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8011 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8012 (TYPE_VECTOR): Likewise.
8013 * hpread.c (hpread_read_struct_type)
8014 (fix_static_member_physnames, fixup_class_method_type)
8015 (hpread_type_lookup): Likewise.
8016 * mdebugread.c (parse_symbol, parse_type): Likewise.
8017 * p-lang.c (is_pascal_string_type): Likewise.
8018 * valops.c (hand_function_call): Likewise.
8019 * x86-64-tdep.c (classify_argument): Likewise.
8020
8021 * hpread.c (hpread_read_function_type)
8022 (hpread_read_doc_function_type): Call replace_type.
8023 * dstread.c (create_new_type): Delete.
8024 (decode_dst_structure, process_dst_function): Call alloc_type.
8025 Use type access macros.
8026
dff95cc7
MK
80272002-05-12 Mark Kettenis <kettenis@gnu.org>
8028
8029 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8030 the're not supported by the current architecture.
8031 (i387_fill_fxsave): Likewise.
8032
bbcd32ad
FF
80332002-05-12 Fred Fish <fnf@redhat.com>
8034
8035 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8036 sect_index_xxx members to index the first slot in section_offsets
8037 if all of the section_offsets are zero.
8038
89cf4787
MK
80392002-05-12 Mark Kettenis <kettenis@gnu.org>
8040
8041 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8042 checked in with last change.
8043
1f77ffc5
MK
80442002-05-12 Mark Kettenis <kettenis@gnu.org>
8045
8046 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8047 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8048 config.sub.
8049
89b8b4a9
DJ
80502002-05-12 Daniel Jacobowitz <drow@mvista.com>
8051
8052 * Makefile.in: Update dependencies.
8053
14a5e767
AC
80542002-05-11 Andrew Cagney <ac131313@redhat.com>
8055
8056 * language.c (local_hex_string_custom): Simplify. Do not depend
8057 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8058
8059 * memattr.c (mem_info_command): Replace calls to
8060 longest_local_hex_string and longest_local_hex_string_custom.
8061 * buildsym.c (make_blockvector): Ditto.
8062 * solib.c (info_sharedlibrary_command): Ditto.
8063 * tracepoint.c (tracepoints_info): Ditto.
8064 * symtab.c (print_msymbol_info): Ditto.
8065
8066 * language.c (local_hex_string): Delete.
8067 (local_hex_string_custom): Delete.
8068 (longest_local_hex_string): Rename to local_hex_string.
8069 (longest_local_hex_string_custom): Rename to
8070 local_hex_string_custom.
8071 * language.h (local_hex_string): Change parameter type to LONGEST.
8072 (local_hex_string_custom): Ditto.
8073 (longest_local_hex_string): Delete declaration.
8074 (longest_local_hex_string_custom): Ditto.
8075
8076 * solib.c: Update copyright.
8077 * memattr.c: Update copyright.
8078
13d01224
AC
80792002-05-11 Andrew Cagney <ac131313@redhat.com>
8080
8081 * arch-utils.h (legacy_register_to_value): Declare.
8082 (legacy_value_to_register): Declare.
8083 (legacy_convert_register_p): Declare.
8084 * arch-utils.c (legacy_register_to_value): New function.
8085 (legacy_value_to_register): New function.
8086 (legacy_convert_register_p): New function.
8087
8088 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8089 (VALUE_TO_REGISTER): Define.
8090 (CONVERT_REGISTER_P): Define.
8091 * gdbarch.h, gdbarch.c: Regenerate.
8092
8093 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8094 VALUE_TO_REGISTER.
8095 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8096 CONVERT_REGISTER_P.
8097
4a1970e4
DJ
80982005-05-11 Daniel Jacobowitz <drow@mvista.com>
8099 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8100
8101 * Makefile.in: Update dependencies for valops.c.
8102 * valops.c: Include "gdb_assert.h".
8103 (typecmp): Skip THIS parameter to methods.
8104 (find_method_list): Remove static_memfuncp argument,
8105 update callers. Check for stub methods.
8106 (find_value_oload_method_list): Don't set *static_memfuncp.
8107 (find_overload_match): Don't check for stub methods. Assert
8108 that methods are not stubbed. Handle static methods.
8109 (value_find_oload_method_list): Remove static_memfuncp argument.
8110 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8111 to the argument list for static stub methods.
8112 * value.h (value_find_oload_method_list): Update prototype.
8113
b2e75d78
AC
81142002-05-11 Andrew Cagney <ac131313@redhat.com>
8115
8116 * arch-utils.h (generic_register_size): Declare.
8117 (generic_register_raw_size, generic_register_virtual_size): Delete
8118 declarations.
8119 * arch-utils.c (generic_register_raw_size): Delete.
8120 (generic_register_size): New function.
8121 (generic_register_virtual_size): Delete.
8122
8123 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8124 default generic_register_size.
8125 * gdbarch.h, gdbarch.c: Re-generate.
8126
8127 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8128 register_virtual_size.
8129 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8130 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8131
451fbdda
AC
81322002-05-11 Andrew Cagney <ac131313@redhat.com>
8133
8134 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8135 * gdbarch.h, gdbarch.c: Regenerate.
8136 * gnu-v3-abi.c: Update copyright.
8137 (vtable_address_point_offset): Update.
8138 (gnuv3_rtti_type): Update.
8139 (gnuv3_baseclass_offset): Update.
8140 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8141 (init_fetch_link_map_offsets): Update.
8142 * remote.c (get_remote_state): Update.
8143
6d2f5cea
DJ
81442002-05-11 Daniel Jacobowitz <drow@mvista.com>
8145
8146 * TODO: Remove value_headof/value_from_vtable_info comment.
8147 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8148 * values.c (value_headof, value_from_vtable_info): Delete.
8149 * value.h (value_from_vtable_info): Delete prototype.
8150
d2324da4
AC
81512002-05-11 Andrew Cagney <ac131313@redhat.com>
8152
8153 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8154 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8155 $(gdb_regex_h).
8156 (gdb_assert_h): Define.
8157 (gdb_wait_h): Define.
8158 (gdb_regex_h): Define.
8159
5c717440
DJ
81602002-05-11 Daniel Jacobowitz <drow@mvista.com>
8161
8162 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8163 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8164
6c7861b3
JT
81652002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8166
8167 * nbsd-tdep.c: Fix comment.
8168
ea5bc2a6
JT
81692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8170
8171 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8172 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8173 (nbsd-tdep.o): New dependency list.
8174 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8175 nbsd-tdep.h.
8176 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8177 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8178 * nbsd-tdep.c: New file.
8179 * nbsd-tdep.h: New file.
8180 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8181 nbsd-tdep.h.
8182 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8183 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8184 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8185 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8186
b28da865
JT
81872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8188
8189 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8190 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8191 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8192 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8193 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8194 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8195
4b8ff1fa
JT
81962002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8197
8198 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8199 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8200 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8201 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8202 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8203 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8204 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8205
dfe6eb1f
JT
82062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8207
8208 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8209 fetch_elfcore_registers to...
8210 * i386nbsd-tdep.c: ...here.
8211 (i386nbsd_use_struct_convention): Rename to...
8212 (i386nbsd_aout_use_struct_convention): ...this.
8213 (i386nbsd_supply_reg): New function.
8214 (i386nbsd_fill_reg): New function.
8215 (fetch_core_registers): Use i386nbsd_supply_reg.
8216 (fetch_elfcore_registers): Likewise.
8217 (_initialize_i386nbsd_tdep): New function.
8218 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8219 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8220 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8221 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8222 (i386nbsd_aout_use_struct_convention): ...this.
8223
20cb8cda
JT
82242002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8225
8226 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8227 (store_inferior_registers): Use shnbsd_fill_reg.
8228 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8229 sh_nbsd_supply_register): Collapse into...
8230 (shnbsd_supply_reg): ...this.
8231 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8232 (shnbsd_fill_reg): ...this.
8233 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8234 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8235 (fetch_core_registers): Use shnbsd_supply_reg.
8236 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8237 (sh_nbsd_core_fns): Rename to...
8238 (shnbsd_core_fns): ...this.
8239 (sh_nbsd_elfcore_fns): Rename to...
8240 (shnbsd_elfcore_fns): ...this.
8241 (sh_nbsd_init_abi): Rename to...
8242 (shnbsd_init_abi): ...this.
8243 (_initialize_sh_nbsd_tdep): Rename to...
8244 (_initialize_shnbsd_tdep): ...this.
8245 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8246 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8247 sh_nbsd_fill_register): Remove prototypes.
8248 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8249
e750d25e
JT
82502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8251
8252 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8253 (i387-nat.o): Delete dependency list.
8254 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8255 (x86-64-linux-nat.o): Likewise.
8256 * i387-nat.c: Delete file, moving contents to...
8257 * i387-tdep.c: ...here.
8258 * i387-nat.h: Rename...
8259 * i387-tdep.h: ...to this.
8260 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8261 * i386-linux-nat.c: Likewise.
8262 * i386bsd-nat.c: Likewise.
8263 * i386gnu-nat.c: Likewise.
8264 * i386nbsd-nat.c: Likewise.
8265 * i386v4-nat.c: Likewise.
8266 * x86-64-linux-nat.c: Likewise.
8267 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8268 * config/i386/go32.mh (NATDEPFILES): Likewise.
8269 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8270 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8271 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8272 * config/i386/linux.mh (NATDEPFILES): Likewise.
8273 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8274 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8275 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8276 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8277
1aee598a
JT
82782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8279
8280 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8281 (alphanbsd-nat.o): Remove dependency list.
8282 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8283 * alphanbsd-nat.c: Delete. Contents moved to...
8284 * alphanbsd-tdep.c: ...here.
8285 (_initialize_alphanbsd_tdep): Register core functions.
8286 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8287
12bcb0fe
JT
82882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8289
8290 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8291 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8292 (alphanbsd-nat.o): Likewise.
8293 (alphabsd-tdep.o): New dependency list.
8294 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8295 (fill_gregset): Use alphabsd_fill_reg.
8296 (supply_fpregset): Use alphabsd_supply_fpreg.
8297 (fill_fpregset): Use alphabsd_fill_fpreg.
8298 (fetch_inferior_registers): Use struct reg and struct fpreg
8299 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8300 and alphabsd_supply_fpreg.
8301 (store_inferior_registers): Use struct reg and struct fpreg
8302 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8303 and alphabsd_fill_fpreg.
8304 * alphabsd-tdep.c: New file.
8305 * alphabsd-tdep.h: New file.
8306 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8307 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8308 alphabsd_supply_fpreg.
8309 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8310 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8311
361d1df0
EC
83122002-05-11 Eric Christopher <echristo@redhat.com>
8313
8314 * mips-tdep.c (mips_double_register_type): Fix thinko.
8315 (mips_single_register_type): Ditto.
8316 * MAINTAINERS: Add self.
8317
92dd7cee
MK
83182002-05-11 Mark Kettenis <kettenis@gnu.org>
8319
8320 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8321 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8322 right thing on architectures with different endianness and/or
8323 integer sizes.
8324
e27da16d
JT
83252002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8326
8327 From Christian Limpach <chris@Pin.LU>
8328 * configure.in: Change sed expression which comments out
8329 NATDEPFILES to also comment out continuation lines.
8330 * configure: Regenerate.
8331
ddde02bd
EZ
83322002-05-10 Elena Zannoni <ezannoni@redhat.com>
8333
8334 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8335 big patch.
8336
1c922164
EZ
83372002-05-10 Elena Zannoni <ezannoni@redhat.com>
8338
8339 * sh-tdep.c: Include correct file.
8340
283150cd
EZ
83412002-05-10 Elena Zannoni <ezannoni@redhat.com>
8342
8343 New support for sh64-elf (sh5) target.
8344
8345 * configure.tgt: For sh64-elf target, default to sh-elf.
8346
8347 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8348 (struct gdbarch_tdep): Add new fields for new registers and ABI
8349 info.
361d1df0 8350
283150cd
EZ
8351 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8352 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8353 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8354 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8355 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8356 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8357 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8358 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8359 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8360 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8361 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8362 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8363 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8364 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8365 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8366 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8367 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8368 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8369 sign_extend, sh64_nofp_frame_init_saved_regs,
8370 sh64_init_extra_frame_info, sh64_get_saved_register,
8371 sh64_extract_struct_value_address, sh64_pop_frame,
8372 sh64_push_arguments, sh64_extract_return_value,
8373 sh64_store_return_value, sh64_show_media_regs,
8374 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8375 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8376 sh_sh64_register_virtual_type,
8377 sh_sh64_register_convert_to_virtual,
8378 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8379 sh64_register_read, sh64_pseudo_register_write,
8380 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8381 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8382 sh64_do_pseudo_register, sh_compact_do_registers_info,
8383 sh64_do_registers_info, sh_gdbarch_init): New functions.
8384
3117ed25
EZ
83852002-05-10 Elena Zannoni <ezannoni@redhat.com>
8386
8387 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8388
2654e6d4
DJ
83892002-05-10 Daniel Jacobowitz <drow@mvista.com>
8390
8391 * linespec.c (decode_line_1): Check for a double quote after
8392 a filename correctly.
8393
9ab3e532
JB
83942002-05-10 Jim Blandy <jimb@redhat.com>
8395
8396 Properly track the size of the current objfile's .debug_line section.
8397 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8398 (DWARF_LINE_SIZE): New macro.
8399 (dwarf2_build_psymtabs_hard): Record the line section's size in
8400 the partial symbol table.
8401 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8402 symbol table.
8403
126fa72d
PS
84042002-05-10 Petr Sorfa <petrs@caldera.com>
8405
8406 * ia64-tdep.c: Handle breakpoints on L instruction type
8407 in MLX instruction bundle by moving the breakpoint to
8408 the third slot (X instruction type) as L holds only data.
8409
1f077a3e
KB
84102002-05-10 Kevin Buettner <kevinb@redhat.com>
8411
8412 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8413 (process_one_symbol): Complain about discarding local symbols
8414 due to a misplaced N_LBRAC entry.
8415
8120c9d5 84162002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8417
8418 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8419 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8420 decrease the depth we are at, in the case of templates.
361d1df0 8421
67b2c998
DJ
84222002-05-09 Daniel Jacobowitz <drow@mvista.com>
8423
8424 * mips-tdep.c (mips_float_register_type): New function.
8425 (mips_double_register_type): New function.
8426 (mips_print_register): Use them.
8427 (do_fp_register_row): Likewise.
8428
fd326606
DJ
84292002-05-09 Daniel Jacobowitz <drow@mvista.com>
8430
6609d9af 8431 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8432 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8433 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8434
bef35864
MS
84352002-05-09 Michael Snyder <msnyder@redhat.com>
8436
8437 * remote-rdp.c (remote_rdp_can_run): Remove.
8438
c55a3f73
TT
84392002-05-09 Tom Tromey <tromey@redhat.com>
8440
8441 * jv-valprint.c (java_val_print): Handle `char' as a special case
8442 of TYPE_CODE_INT.
8443
b8d5e71d
MS
84442002-05-09 Michael Snyder <msnyder@redhat.com>
8445
8446 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8447 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8448 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8449 str r(0123),[sp,#nn].
361d1df0 8450 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8451 order-independent by placing it in a loop.
8452
e2cd42dd
MS
84532002-05-06 Michael Snyder <msnyder@redhat.com>
8454
8455 * stabsread.c (read_type): Add recognition for new attribute:
8456 "@V;" means that an array type is actually a vector.
8457 This is analogous to the vector flag that's been added to dwarf2.
8458
3ce1502b
MK
84592002-05-09 Mark Kettenis <kettenis@gnu.org>
8460
8461 * i386-tdep.h (i386_abi): New enum.
8462 (struct gdbarch_tdep): Replace os_ident member with abi.
8463 (i386_gdbarch_register_os_abi): New prototype.
8464 * i386-tdep.c (i386_abi_names): New array.
8465 (process_note_abi_tag_sections): Removed.
8466 (process_note_sections): New function.
8467 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8468 (struct i386_abi_handler): New struct.
8469 (i386_abi_handler_list): New variable.
8470 (i386_gdbarch_register_os_abi): New function.
8471 (i386_gdbarch_init): Adapt for the changes given above.
8472
084c156a
DJ
84732002-05-08 Daniel Jacobowitz <drow@mvista.com>
8474
8475 * gregset.h: Say "GNU/Linux".
8476
6599f021
EZ
84772002-05-08 Elena Zannoni <ezannoni@redhat.com>
8478
8479 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8480 (build_gdbtypes): Build builtin_type_v2_float.
8481 (_initialize_gdbtypes): Register new builtin type.
8482
40af4b0c
AC
84832002-05-08 Andrew Cagney <ac131313@redhat.com>
8484
8485 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8486 (clear_gdbarch_swap): New function.
8487 (initialize_non_multiarch): Call.
8488 (gdbarch_update_p): Before calling init(), swap out and clear the
8489 existing architecture.
8490 * gdbarch.c: Regenerate.
8491
4fe84f46
JT
84922002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8493
8494 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8495 alphanbsd-tdep.c.
8496
4015edd1
JT
84972002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8498
8499 * sh-nbsd-nat.c: Rename to...
8500 * shnbsd-nat.c: ...this.
8501 * sh-nbsd-tdep.c: Rename to...
8502 * shnbsd-tdep.c: ...this.
8503 * sh-nbsd-tdep.h: Rename to...
8504 * shnbsd-tdep.h: ...this.
8505 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8506 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8507
0e2bd219
RE
85082002-05-08 Richard Earnshaw <rearnsha@arm.com>
8509
8510 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8511 concatenation for command help messages.
8512
13a38d45
JT
85132002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8514
8515 * NEWS: Note new sh*-*-netbsdelf* configuration.
8516 * configure.host: Set gdb_host_cpu to sh for all sh*.
8517 (sh*-*-netbsdelf*): New host.
8518 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8519 (sh*-*-netbsdelf*): New target.
8520 * sh-nbsd-nat.c: New file.
8521 * sh-nbsd-tdep.c: New file.
8522 * sh-nbsd-tdep.h: New file.
8523 * config/sh/nbsd.mh: New file.
8524 * config/sh/nbsd.mt: New file.
8525 * config/sh/nm-nbsd.h: New file.
8526 * config/sh/tm-nbsd.h: New file.
8527
d658f924
JT
85282002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8529
8530 * sh-tdep.c (sh_osabi_names): Declare.
8531 (process_note_abi_tag_sections): New function.
8532 (get_elfosabi): Ditto.
8533 (sh_gdbarch_register_os_abi): Ditto.
8534 (sh_dump_tdep): Ditto.
8535 _initialize_sh_tdep): Use gdbarch_register to register
8536 sh_gdbarch_init and sh_dump_tdep.
8537 * config/sh/tm-sh.h (sh_osabi): Declare.
8538 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8539
848cfffb
AC
85402002-05-07 Andrew Cagney <ac131313@redhat.com>
8541
8542 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8543 (thumb_scan_prologue): Ditto.
8544 (arm_find_callers_reg): Ditto.
8545 (arm_frame_chain): Ditto.
8546 (arm_init_extra_frame_info): Ditto.
8547 (arm_frame_saved_pc): Ditto.
8548 (arm_pop_frame): Ditto.
8549 (arm_push_return_address): New function.
8550 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8551 call_dummy_location, call_dummy_breakpoint_offset_p,
8552 call_dummy_breakpoint_offset, call_dummy_p,
8553 call_dummy_stack_adjust_p, call_dummy_words,
8554 sizeof_call_dummy_words, call_dummy_start_offset,
8555 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8556 call_dummy_address, push_return_address and push_dummy_frame for
8557 generic dummy frames.
8558
e7d717c0
JT
85592002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8560
8561 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8562 size computation for alloca.
8563 (sh_fp_frame_init_saved_regs): Likewise.
8564
7bbcf283
RE
85652002-05-07 Richard Earnshaw <rearnsha@arm.com>
8566
8567 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8568 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8569 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8570 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8571 * remote-rdp.c (remote_rdp_fetch_register): Use
8572 ARM_MAX_REGISTER_RAW_SIZE.
8573 (remote_rdp_store_register): Likewise.
8574
4657573b
ML
85752002-05-07 Michal Ludvig <mludvig@suse.cz>
8576
361d1df0 8577 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8578 added default labels to switch {} statements.
8579 * x86-64-tdep.c: Ditto.
8580 * x86-64-linux-nat.c: Ditto.
8581
010f3b2f
JT
85822002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8583
8584 * solib.h: Protect against multiple inclusion.
8585
debd256d
JB
85862002-05-06 Jim Blandy <jimb@redhat.com>
8587
9ab3e532
JB
8588 Add first preprocessor macro-expansion files.
8589 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8590 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8591 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8592 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8593 (COMMON_OBS): Add macrotab.o, macroexp.o.
8594 (macroexp.o, macrotab.o): New rules.
8595
debd256d
JB
8596 Separate the job of reading the line number info statement program
8597 header (...expialidocious) out into its own function.
8598 * dwarf2read.c (struct line_head, struct filenames, struct
8599 directories): Replace with...
8600 (struct line_header): New structure, containing the full
8601 contents of the statement program header, including the
8602 include directory and file name tables.
8603 (read_file_scope): If we have line number info, instead of just
8604 calling dwarf_decode_lines to do all the work, call
8605 dwarf_decode_line_header first to get a `struct line_header'
8606 containing the data in the statement program header, and then
8607 pass that to dwarf_decode_lines, which will pick up where that
8608 left off. Be sure to clean up the `struct line_header' object.
8609 (dwarf_decode_line_header, free_line_header, add_include_dir,
8610 add_file_name): New functions.
8611 (dwarf_decode_lines): Move all the code to read the statement
8612 program header into dwarf_decode_line_header. Take the line
8613 header it built as the first argument, instead of the offset to
8614 the compilation unit's line number info. Use the new `struct
8615 line_header' type instead of the old structures. No need to do
8616 cleanups here now, since we don't allocate anything.
8617 (dwarf2_statement_list_fits_in_line_number_section,
8618 dwarf2_line_header_too_long): New complaints.
8619
ac3aafc7
EZ
86202002-05-06 Elena Zannoni <ezannoni@redhat.com>
8621
8622 * gdbtypes.c (init_vector_type): New function.
8623 (build_builtin_type_vec128): Simplify the representation of SIMD
8624 registers.
8625 (build_gdbtypes): Initialize new builtin vector types.
8626 (_initialize_gdbtypes): Register new vector types with gdbarch.
8627 (builtin_type_v4_float, builtin_type_v4_int32,
8628 builtin_type_v8_int16, builtin_type_v16_int8,
8629 builtin_type_v2_int32, builtin_type_v4_int16,
8630 builtin_type_v8_int8): New (renamed) SIMD types.
8631
13e49980
MK
86322002-05-06 Mark Kettenis <kettenis@gnu.org>
8633
8634 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8635 (i387_fill_fxsave): Likewise.
8636
997b20b8
AO
86372002-05-05 Alexandre Oliva <aoliva@redhat.com>
8638
8639 * alpha-tdep.c (alpha_extract_return_value): Don't use
8640 non-constant array size in prototype.
8641
535c96ce
AC
86422002-05-04 Andrew Cagney <ac131313@redhat.com>
8643
8644 From Brian Taylor <briant at model dot com>:
8645 * ui-out.c (ui_out_field_core_addr): Use the function
8646 longest_local_hex_string_custom'to format addresses > 32 bits
8647 wide.
8648
8649 * ui-out.c (ui_out_field_core_addr): Update comment.
8650
bedfa57b
AC
86512002-05-04 Andrew Cagney <ac131313@redhat.com>
8652
8653 * stack.c (select_and_print_frame): Make static. Delete the
8654 parameter `level'.
8655 (func_command): Update call.
8656 (select_frame_command): Delete code computing the frame level.
8657 * frame.h (select_and_print_frame): Delete declaration.
8658
f621c63e
AC
86592002-05-04 Andrew Cagney <ac131313@redhat.com>
8660
8661 * sparc-tdep.c (sparc_get_saved_register): Comment why
8662 get_prev_frame call is safe.
8663
0f7d239c
AC
86642002-05-04 Andrew Cagney <ac131313@redhat.com>
8665
8666 * frame.h (select_frame): Delete level parameter.
8667 * stack.c (select_frame): Update. Use frame_relative_level to
8668 obtain the frame's level.
8669 (select_and_print_frame): Update call.
8670 (select_frame_command): Ditto.
8671 (up_silently_base): Ditto.
8672 (down_silently_base): Ditto.
8673 * ocd.c (ocd_start_remote): Ditto.
8674 * remote-rdp.c (remote_rdp_open): Ditto.
8675 * remote-mips.c (mips_initialize): Ditto.
8676 (common_open): Ditto.
8677 * remote-e7000.c (e7000_start_remote): Ditto.
8678 * m3-nat.c (select_thread): Ditto.
8679 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8680 (child_get_current_exception_event): Ditto.
8681 * varobj.c (varobj_create): Ditto.
8682 (varobj_update): Ditto.
8683 (c_value_of_root): Ditto.
8684 * tracepoint.c (finish_tfind_command): Ditto.
8685 * corelow.c (core_open): Ditto.
8686 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8687 * thread.c (info_threads_command): Ditto.
8688 (switch_to_thread): Ditto.
8689 * infrun.c (normal_stop): Ditto.
8690 (restore_selected_frame): Ditto.
8691 (restore_inferior_status): Ditto.
8692 * breakpoint.c (insert_breakpoints): Ditto.
8693 (watchpoint_check): Ditto.
8694 (bpstat_stop_status): Ditto.
8695 (do_enable_breakpoint): Ditto.
8696 * blockframe.c (flush_cached_frames): Ditto.
8697 (reinit_frame_cache): Ditto.
8698
71d6c7b1
AC
86992002-05-04 Andrew Cagney <ac131313@redhat.com>
8700
8701 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8702 maintainer.
8703
cda6c68a
JB
87042002-05-04 Jim Blandy <jimb@redhat.com>
8705
8706 * gdbtypes.c (replace_type): Doc fix.
8707
5c1c87f0
AC
87082002-05-04 Andrew Cagney <ac131313@redhat.com>
8709
8710 * valprint.c (strcat_longest): Delete commented out function.
8711 Update copyright.
8712
cd9bfe15
AC
87132002-05-04 Andrew Cagney <ac131313@redhat.com>
8714
8715 * MAINTAINERS: Mark a29k as deleted.
8716 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8717 Move new configurations to the top.
8718 * configure.tgt: Remove a29k.
8719 * config/a29k/tm-vx29k.h: Delete.
8720 * config/a29k/vx29k.mt: Delete.
8721 * config/a29k/tm-a29k.h: Delete.
8722 * config/a29k/a29k-udi.mt: Delete.
8723 * config/a29k/a29k.mt: Delete.
8724 * a29k-tdep.c: Delete.
8725 * remote-udi.c: Delete.
8726 * remote-mm.c: Delete.
8727 * remote-eb.c: Delete.
8728 * remote-adapt.c: Delete.
8729 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8730 * config/s390/s390x.mt: Ditto.
8731 * config/s390/s390.mt: Ditto.
8732 * config/sparc/sparclynx.mh: Ditto.
8733 * config/sparc/linux.mh: Ditto.
8734 * config/pa/hppaosf.mh: Ditto.
8735 * config/pa/hppabsd.mh: Ditto.
8736 * config/ns32k/nbsd.mt: Ditto.
8737 * config/mips/vr5000.mt: Ditto.
8738 * config/m68k/sun3os4.mh: Ditto.
8739 * config/m68k/nbsd.mt: Ditto.
8740 * config/m68k/m68klynx.mh: Ditto.
8741 * config/m32r/m32r.mt: Ditto.
8742 * config/i386/x86-64linux.mt: Ditto.
8743 * config/i386/nbsdelf.mt: Ditto.
8744 * config/i386/nbsd.mt: Ditto.
8745 * config/i386/i386lynx.mh: Ditto.
8746
bf0c5130
AC
87472002-05-04 Andrew Cagney <ac131313@redhat.com>
8748
8749 * target.c (debug_print_register): New function. Handle oversize
8750 registers.
8751 (debug_to_fetch_registers): Call.
8752 (debug_to_store_registers): Call.
8753
2ae1c2d2
JB
87542002-05-03 Jim Blandy <jimb@redhat.com>
8755
13a393b0
JB
8756 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8757 (read_type): Doc fix.
8758 * gdbtypes.c (replace_type): Doc fix.
8759
2ae1c2d2
JB
8760 * stabsread.c (multiply_defined_struct): New complaint.
8761 (read_struct_type): If the type we were passed isn't empty, or
8762 incomplete, don't read the new struct type into it; complain,
8763 and return the original type unchanged. Take a new `type_code'
8764 argument, which is the type code for the new type.
8765 (read_type): Rather than storing the type's type code here, pass
8766 it as an argument to read_struct_type, and let that take care of
8767 storing it. That way, we don't overwrite the original type code,
8768 so read_struct_type can use it to decide whether we're overwriting
8769 something we shouldn't.
8770 (complain_about_struct_wipeout): New function.
8771
8de9bdc4
AC
87722002-05-03 Andrew Cagney <ac131313@redhat.com>
8773
8774 * gdbarch.sh: Assert that gdbarch is non-NULL.
8775 * gdbarch.c: Regenerate.
8776
f773fdbb
JM
87772002-05-03 Jason Merrill <jason@redhat.com>
8778
8779 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8780 and return NULL.
8781
0e04a514
ML
87822002-05-03 Michal Ludvig <mludvig@suse.cz>
8783
8784 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8785 (x86_64_dwarf2gdb_regno_map_length),
8786 (x86_64_dwarf2_reg_to_regnum): Added.
8787 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8788 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8789 (_initialize_x86_64_tdep): Synced with the change above.
8790 (x86_64_skip_prologue): Reformulated message.
8791
065432a8
PM
87922002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8793
8794 * f-exp.y: Also use new prev_lexptr variable
8795 to improve error reporting. Based on Michael Snyder
8796 2002-04-24 dated patch to c-exp.y.
8797 * jv-exp.y: Likewise.
8798 * m2-exp.y: Likewise.
8799
a3162708
EZ
88002002-05-02 Elena Zannoni <ezannoni@redhat.com>
8801
8802 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8803 we are dealing with vectors.
8804
03620c38
PM
88052002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8806
8807 * config/m68k/tm-nbsd.h: Obvious fix,
8808 correct machine name.
8809
6604db2e
PM
88102002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8811
8812 * p-typeprint.c (pascal_type_print_base): Add support
8813 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8814
0906b739
PM
88152002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8816
8817 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8818 for fondamental pascal 'char' type.
8819
e2625b33
PM
88202002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8821
8822 * p-lang.h (is_pascal_string_type): Declaration changed,
8823 new sixth argument of type char ** added.
361d1df0 8824 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
8825 changed. Args length_pos, length_size, string_pos, char_size
8826 can now be NULL. New argument arrayname set to the field
8827 name of the char array. Return value set to char array
8828 field index plus one.
361d1df0 8829 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
8830 is_pascal_string_type function.
8831
cf17c188
AC
88322002-05-02 Andrew Cagney <cagney@redhat.com>
8833
8834 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8835 <cagney@redhat.com> change.
8836 * gdbarch.c: Regenerate.
8837
52bca491
AC
88382002-05-02 Andrew Cagney <cagney@redhat.com>
8839
8840 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8841 before probing for a new one. Detect errorenous gdbarch_init
8842 functions.
8843 * gdbarch.c: Regenerate.
8844
d5e72505
AC
88452002-05-01 Andrew Cagney <cagney@redhat.com>
8846
8847 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8848 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8849 * config/v850/tm-v850.h: Ditto. Update copyright.
8850
af566d9f
AC
88512002-04-30 Andrew Cagney <ac131313@redhat.com>
8852
8853 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8854 current_gdbarch.
8855
880d85fa
MS
88562002-04-30 Michael Snyder <msnyder@redhat.com>
8857
94c30b78
MS
8858 * arm-tdep.c: Whitespace clean-ups.
8859 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
8860 should have been removed as part of 4/24 change.
8861
6f5987a6
KB
88622002-04-30 Kevin Buettner <kevinb@redhat.com>
8863
8864 * rs6000-tdep.c: Added comment describing how fpscr register
8865 numbers were chosen.
8866
1a113c93
MS
88672002-04-30 Michael Snyder <msnyder@redhat.com>
8868
8869 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8870
9a6f53fe
EZ
88712002-04-29 Elena Zannoni <ezannoni@redhat.com>
8872
8873 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8874 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8875 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8876
11ed25ac
KB
88772002-04-29 Kevin Buettner <kevinb@redhat.com>
8878
8879 From Louis Hamilton <hamilton@redhat.com>:
8880 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8881 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8882 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8883 not bfd-private xcoff data, to determine wordsize.
8884 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8885
ae232405
AC
88862002-04-29 Andrew Cagney <ac131313@redhat.com>
8887
8888 GDB 5.2 released from 5.2 branch.
8889
91fd20f7
ML
88902002-04-29 Michal Ludvig <mludvig@suse.cz>
8891
8892 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8893 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8894 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 8895
2dc5091b
EZ
88962002-04-29 Elena Zannoni <ezannoni@redhat.com>
8897
8898 * rs6000-tdep.c (rs6000_extract_return_value,
8899 rs6000_store_return_value): Handle returning vectors.
8900 (rs6000_gdbarch_init): Use
8901 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8902 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8903 New function.
8904 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8905 vectors.
8906 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8907 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 8908
2b9848d8
PM
89092002-04-24 Pierre Muller <ics.u-strasbg.fr>
8910
8911 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 8912 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
8913 with fprintf_unfiltered (gdb_stderr,...).
8914
f8d17dc5
PM
89152002-04-24 Pierre Muller <ics.u-strasbg.fr>
8916
8917 * remote-array.c (printf_monitor, write_monitor,
361d1df0 8918 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
8919 Replace fprintf (stderr,...
8920 with fprintf_unfiltered (gdb_stderr,....
8921 * remote-es.c: Likewise.
8922 * remote-os9k.c: Likewise.
8923 * remote-st.c: Likewise.
8924
2f2f1ad1
AS
89252002-04-28 Andreas Schwab <schwab@suse.de>
8926
8927 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8928 linux-proc.o and gcore.o.
8929
b6779aa2
AC
89302002-04-26 Michal Ludvig <mludvig@suse.cz>
8931
8932 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8933 code without frame pointers.
8934
7e57f5f4
AC
89352002-04-26 Andrew Cagney <ac131313@redhat.com>
8936
8937 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8938 ON_STACK is needed.
8939
2ceb85d0
BE
89402002-04-26 Ben Elliston <bje@redhat.com>
8941
8942 * target.c (do_xfer_memory): Correct reference to the new option
8943 "trust-readonly-sections".
8944
f5f8a009
EZ
89452002-04-26 Elena Zannoni <ezannoni@redhat.com>
8946
8947 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8948 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8949 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8950 vectors.
8951 (read_array_type): Record the fact that this array type is really a
8952 vector (i.e. are passed in by value).
8953
5868c862
JT
89542002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8955
8956 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8957 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8958 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8959 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8960 * alpha-linux-tdep.c: Include frame.h.
8961 (alpha_linux_sigcontext_addr): New function.
8962 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8963 alpha_linux_sigcontext_addr.
8964 * alpha-osf1-tdep.c: Include gdbcore.h.
8965 (alpha_osf1_sigcontext_addr): New function.
8966 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8967 alpha_osf1_sigcontext_addr.
8968 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8969 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8970
bfb01f37
AC
89712002-04-26 Andrew Cagney <ac131313@redhat.com>
8972
361d1df0 8973 * stack.c (selected_frame_level):
bfb01f37
AC
8974 (select_frame): Do not set selected_frame_level.
8975 * frame.h (selected_frame_level): Delete declaration.
8976
15813d3f
AC
89772002-04-26 Andrew Cagney <ac131313@redhat.com>
8978
8979 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8980 convert_from_func_ptr-addr when AIX / PowerOpen.
8981
6096c27a
AC
89822002-04-25 Andrew Cagney <ac131313@redhat.com>
8983
8984 * valops.c (hand_function_call): Call
8985 generic_save_call_dummy_addr.
8986 * frame.h (generic_save_call_dummy_addr): Declare.
8987 * blockframe.c (struct dummy_frame): Add fields call_lo and
8988 call_hi.
8989 (generic_find_dummy_frame): Check for PC in range call_lo to
8990 call_hi instead of entry_point_address.
8991 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8992 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8993 (generic_save_call_dummy_addr): New function.
8994
f510d44e
DM
89952002-04-24 David S. Miller <davem@redhat.com>
8996
8997 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8998 sparc_skip_prologue.
8999 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9000 information to find prologue when possible.
9001 (sparc_prologue_frameless_p): Call examine_prologue directly.
9002 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9003 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9004 second argument.
9005 (SKIP_PROLOGUE): Likewise.
9006
15d72a92
JT
90072002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9008
9009 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9010 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9011 indicate that the condition it was testing is always true.
9012 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9013 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9014 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9015
accc6d1f
JT
90162002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9017
9018 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9019 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9020 tdep->jb_pc and tdep->jb_elt_size.
9021 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9022 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9023 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9024 * alpha-nat.c (get_longjmp_target): Remove.
9025 (JB_ELEMENT_SIZE): Ditto.
9026 (JB_PC): Ditto.
9027 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9028 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9029 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9030 to alpha_get_longjmp_target.
9031 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9032 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9033 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9034
1bfdc549
AC
90352002-04-25 Andrew Cagney <ac131313@redhat.com>
9036
9037 * README: Update to GDB 5.2.
9038
1bd316f0
AC
90392002-04-25 Andrew Cagney <ac131313@redhat.com>
9040
9041 * gdbarch.sh (LC_ALL): Set to `c'.
9042
2e5ff58c
TR
90432002-04-25 Theodore A. Roth <troth@verinet.com>
9044
9045 * avr-tdep.c: Ran through gdb_indent.sh.
9046
e33ce519
TR
90472002-04-25 Theodore A. Roth <troth@verinet.com>
9048
9049 * MAINTAINERS: Add myself as AVR maintainer.
9050 * NEWS: Note new target avr.
9051
8818c391
TR
90522002-04-25 Theodore A. Roth <troth@verinet.com>
9053
9054 * Makefile.in: Add support for AVR target.
9055 * configure.tgt: Add support for AVR target.
9056 * avr-tdep.c: New file
9057 * config/avr/avr.mt: New file.
9058
79509c2d
TR
90592002-04-25 Theodore A. Roth <troth@verinet.com>
9060
9061 * MAINTAINERS: Add myself to write-after-approval.
9062
dac8068e
PM
90632002-04-24 Pierre Muller <ics.u-strasbg.fr>
9064
9065 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9066 with fprintf_unfiltered (gdb_stderr,....
9067
25bf3106
PM
90682002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9069
9070 Fix PR gdb/508.
9071 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9072
24467a86
PM
90732002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9074
9075 * p-exp.y: Also use new prev_lexptr variable
9076 to improve error reporting. Based on Michael Snyder
9077 2002-04-24 dated patch to c-exp.y.
9078
95b80706
JT
90792002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9080
9081 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9082 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9083 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9084 to 0.
9085 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9086 and struct value.
9087 (FUNCTION_START_OFFSET): Remove.
9088 (BREAKPOINT): Ditto.
9089
e90cc612
JT
90902002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9091
9092 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9093 * NEWS: Ditto.
9094
6c72f9f9
JT
90952002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9096
9097 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9098 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9099 alpha_linux_pc_in_sigtramp.
9100 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9101 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9102 alpha_osf1_pc_in_sigtramp.
9103 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9104 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9105 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9106 alphafbsd_pc_in_sigtramp.
9107 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9108 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9109 alphanbsd_pc_in_sigtramp.
9110 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9111 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9112
5e4f3379
JT
91132002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9114
9115 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9116
da8ca43d
JT
91172002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9118
9119 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9120 alphanbsd-tdep.c.
9121 (alphanbsd-nat.o): New dependency list.
9122 (alphanbsd-tdep.o): Ditto.
9123 * NEWS: Note new native NetBSD/alpha configuration.
9124 * alphanbsd-nat.c: New file.
9125 * alphanbsd-tdep.c: Ditto.
9126 * configure.host (alpha*-*-netbsd*): New host.
9127 * configure.tgt (alpha*-*-netbsd*): New target.
9128 * config/alpha/nbsd.mh: New file.
9129 * config/alpha/nbsd.mt: Ditto.
9130 * config/alpha/nm-nbsd.h: Ditto.
9131 * config/alpha/tm-nbsd.h: Ditto.
9132
36a6271d
JT
91332002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9134
9135 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9136 (alpha-osf1-tdep.o): New dependency list.
9137 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9138 and skip_sigtramp_frame members.
9139 * alpha-linux-tdep.c: Include gdbcore.h.
9140 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9141 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9142 * alpha-osf1-tdep.c: New file.
9143 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9144 alpha-osf1-dep.c.
9145 (alpha_frame_past_sigtramp_frame): New function.
9146 (alpha_dynamic_sigtramp_offset): Ditto.
9147 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9148 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9149 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9150 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9151 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9152 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9153 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9154 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9155 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9156 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9157 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9158 to find_solib_trampoline_target.
9159 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9160 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9161 (SKIP_TRAMPOLINE_CODE): Remove.
9162 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9163 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9164 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9165 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9166 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9167 (PROC_SIGTRAMP_MAGIC): Ditto.
9168 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9169 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9170 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9171 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9172 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9173
2f4bc57b
JT
91742002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9175
9176 * NEWS: Note that Alpha targets are now multi-arch.
9177
665132f9
MS
91782002-04-24 Michael Snyder <msnyder@redhat.com>
9179
9180 * parser-defs.h (prev_lexptr): New external variable.
9181 * parse.c (parse_exp_1): Set prev_lexptr to null before
9182 calling the language-specific parser.
9183 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9184 (yyerror): Use prev_lexptr in error reporting.
9185
32872fa7
DJ
91862002-04-24 Daniel Jacobowitz <drow@mvista.com>
9187
9188 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9189 * gregset.h: If FILL_FPXREGSET is defined, provide
9190 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9191 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9192 is defined, call fill_fpxregset.
9193
57e76fac
MS
91942002-04-24 Roland McGrath <roland@frob.com>
9195
9196 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9197 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9198 (supply_gregset, supply_fpregset): New functions.
9199
9200 * gnu-nat.c (gnu_find_memory_regions): New function.
9201 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9202 (gnu_xfer_memory): Add a cast.
9203
f43845b3
MS
92042002-04-24 Michael Snyder <msnyder@redhat.com>
9205
361d1df0 9206 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9207 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9208 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9209 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9210 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9211 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9212
a0abec03
AC
9213Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9214
9215 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9216 NUM_PSEUDO_REGS can be used.
9217
d7bd68ca
AC
92182002-04-24 Andrew Cagney <ac131313@redhat.com>
9219
9220 * arch-utils.h: Update copyright.
9221
9222 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9223 * gdbarch.h, gdbarch.c: Re-generate.
9224
9225 * inferior.h (IN_SIGTRAMP): Delete definition.
9226 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9227 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9228
9229 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9230 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9231 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9232 (find_proc_framesize): Ditto.
9233 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9234 (alpha_init_extra_frame_info): Ditto.
9235 * infrun.c (handle_inferior_event): Ditto.
9236 (handle_inferior_event): Ditto.
9237 (check_sigtramp2): Ditto.
9238 * blockframe.c (create_new_frame): Ditto.
9239 (get_prev_frame): Ditto.
9240 * ppc-linux-tdep.c: Update comments.
9241 * i386-linux-tdep.c: Update comments.
9242 * breakpoint.c (bpstat_what): Update comment.
9243
4867e41e
DM
92442002-04-24 David S. Miller <davem@redhat.com>
9245
21d83aa5
DM
9246 * i960-tdep.c (register_in_window_p): New function.
9247 (i960_find_saved_register): Use it instead of
9248 REGISTER_IN_WINDOW_P.
9249 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9250
4867e41e
DM
9251 * symtab.h (find_stab_function_addr): Kill extern.
9252 * minsyms.c (find_stab_function_addr): Remove from here...
9253 * dbxread.c: ... to here, and mark it static.
9254
69cdf6a2
DM
92552002-04-20 David S. Miller <davem@redhat.com>
9256
9257 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9258 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9259
5a595886
DM
92602002-04-21 David S. Miller <davem@redhat.com>
9261
9262 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9263 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9264 (vx_write_register): Likewise.
9265
1da1a192
JB
92662002-04-23 J. Brobecker <brobecker@gnat.com>
9267
9268 * source.c (is_regular_file): New function.
9269 (openp): Check wether file to open is a regular file
9270 to avoid opening directories.
9271
baa6f10b
JT
92722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9273
9274 * findvar.c (extract_signed_integer): Cast printf argument
9275 to suppress format warning.
9276 (extract_unsigned_integer): Likewise.
9277 * infcmd.c (registers_info): Likewise.
9278 * top.c (get_prompt_1): Likewise.
9279 * valops.c (value_assign): Likewise.
9280 * valprint.c (print_decimal): Likewise.
9281
b2c4da81
L
92822002-04-22 H.J. Lu (hjl@gnu.org)
9283
9284 * c-exp.y (typebase): Support
361d1df0 9285
b2c4da81
L
9286 [long|long long|short] [signed|unsigned] [int|]
9287
9288 and
9289
9290 signed [long|long long|short] int
9291
f267bd6a
JT
92922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9293
9294 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9295 and vax-tdep.h.
9296 * vax-tdep.h: New file.
9297 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9298 Make several routines static.
9299 (vax_get_saved_register): New function.
9300 (vax_gdbarch_init): New function.
9301 (_initialize_vax_tdep): Register vax_gdbarch_init.
9302 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9303 Remove macros now under the control of gdbarch.
9304
da3c6d4a
MS
93052002-04-22 Michael Snyder <msnyder@redhat.com>
9306
11d3b27d
MS
9307 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9308 Some whitespace and coding standards tweaks.
da3c6d4a 9309
a33f7558
JT
93102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9311
9312 * vax-tdep.c: Include regcache.h.
9313 (vax_call_dummy_words): New.
9314 (sizeof_vax_call_dummy_words): New.
9315 (vax_fix_call_dummy): New function.
9316 (vax_saved_pc_after_call): Ditto.
9317 * config/vax/tm-vax.h: Don't include regcache.h.
9318 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9319 (CALL_DUMMY): Remove.
9320 (CALL_DUMMY_WORDS): Define.
9321 (SIZEOF_CALL_DUMMY_WORDS): Define.
9322 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9323
47a73475
MS
93242002-04-18 Michael Snyder <msnyder@redhat.com>
9325
9326 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9327
52efde73
JT
93282002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9329
9330 * vax-tdep.c (vax_frame_chain): New function.
9331 (vax_push_dummy_frame): Ditto.
9332 (vax_pop_frame): Ditto.
9333 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9334 (FRAMELESS_FUNCTION_INVOCATION): Use
9335 generic_frameless_function_invocation_not.
9336 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9337 (POP_FRAME): Use vax_pop_frame.
9338
ea74468c
JT
93392002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9340
9341 * vax-tdep.c (vax_store_struct_return): New function.
9342 (vax_extract_return_value): Ditto.
9343 (vax_store_return_value): Ditto.
9344 (vax_extract_struct_value_address): Ditto.
9345 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9346 vax_store_struct_return.
9347 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9348 (STORE_RETURN_VALUE): Use vax_store_return_value.
9349 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9350
5516aa92
JT
93512002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9352
9353 * vax-tdep.c (vax_frame_saved_pc): New function.
9354 (vax_frame_args_address_correct): Ditto.
9355 (vax_frame_args_address): Ditto.
9356 (vax_frame_locals_address): Ditto.
9357 (vax_frame_num_args): Move code to be in proximity to
9358 other frame-related functions.
9359 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9360 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9361 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9362 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9363 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9364
36af0b35
L
93652002-04-22 H.J. Lu (hjl@gnu.org)
9366
9367 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9368 includedir.
9369
ab62c900
JT
93702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9371
9372 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9373 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9374 (FRAME_INIT_SAVED_REGS): New macro.
9375
7232b100
JT
93762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9377
9378 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9379
b70d2aee
JT
93802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9381
9382 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9383 where needed.
9384 (fetch_osf_core_registers): Likewise.
9385 (supply_gregset): Likewise.
9386
a0e8a2d1 93872002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9388
a0e8a2d1
JB
9389 * symfile.h (get_section_index): Define.
9390 * symfile.c (get_section_index): New function.
9391 * mdebugread.c (SC_IS_SBSS): New macro.
9392 (SC_IS_BSS): Return true for the scBss storage class only, as
9393 the scSBss storage class refers to the .sbss section.
9394 (parse_partial_symbols): Discard the symbols which associated
9395 section does not exist.
9396 Make sure to use the .sbss section index for symbols which
9397 storage class is scBss, rather than using the .bss section index.
9398
51eb8b08
JT
93992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9400
9401 * vax-tdep.c: Update copyright years.
9402 (vax_register_name): New function.
9403 (vax_register_byte): Ditto.
9404 (vax_register_raw_size): Ditto.
9405 (vax_register_virtual_size): Ditto.
9406 (vax_register_virtual_type): Ditto.
9407 * config/vax/tm-vax.h: Update copyright years.
9408 (REGISTER_NAMES): Remove.
9409 (REGISTER_NAME): Define.
9410 (REGISTER_BYTE): Use vax_register_byte.
9411 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9412 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9413 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9414
6cc1c0a8
AC
94152002-04-21 Andrew Cagney <ac131313@redhat.com>
9416
9417 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9418 declaration
9419 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9420
9319a2fe
DM
94212002-04-21 David S. Miller <davem@redhat.com>
9422
9423 * arch-utils.c (generic_prologue_frameless_p): Kill
9424 SKIP_PROLOGUE_FRAMELESS_P code.
9425 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9426 references.
9427 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9428 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9429 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9430 references.
9431 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9432 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9433 (sparc_gdbarch_init): Pass it to
9434 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9435
e9ed6d01
JT
94362002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9437
9438 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9439 (alphabsd-nat.o): New dependency list.
9440
36012033
JT
94412002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9442
9443 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9444 alphafbsd-tdep.c.
9445 (alpha-linux-tdep.o): New dependency list.
9446 (alphafbsd-tdep.o): Likewise.
9447
3379287a
JT
94482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9449
9450 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9451 to here...
9452 * alpha-tdep.c: ...from here.
9453 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9454
4bcbd6cb
JT
94552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9456
9457 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9458 prototype from here...
9459 * alpha-tdep.h: ...to here.
9460
b31da25e
AC
94612002-04-21 Andrew Cagney <ac131313@redhat.com>
9462
9463 * frame.h (selected_frame_level): Document as deprecated.
9464 (frame_relative_level): Declare.
9465 * stack.c (frame_relative_level): New function.
9466 (selected_frame_level): Document as deprecated.
9467 (select_frame): Do not set the selected_frame_level.
9468
9469 * stack.c (frame_info, record_selected_frame): Update.
9470 (frame_command, current_frame_command): Update.
9471 (up_silently_base, up_command, down_silently_base): Update.
9472 (down_command): Update.
9473 * inflow.c (kill_command): Update.
9474 * tracepoint.c (finish_tfind_command): Update.
9475 * corelow.c (core_open): Update.
9476 * thread.c (info_threads_command): Update.
9477 (do_captured_thread_select): Update.
9478 * infcmd.c (finish_command): Update.
9479 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9480
9c1d6fe5
JT
94812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9482
9483 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9484
ab89facf
AC
94852002-04-21 Andrew Cagney <ac131313@redhat.com>
9486
9487 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9488 type const.
9489
82a4efa1
JT
94902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9491
9492 * alphafbsd-tdep.c: Update copyright years. Include
9493 alpha-tdep.h.
9494 (alphafbsd_use_struct_convention): Make static.
9495 (alphafbsd_init_abi): New function.
9496 (_initialize_alphafbsd_tdep): New function.
9497 * config/alpha/tm-fbsd.h: Update copyright years.
9498 (USE_STRUCT_CONVENTION): Remove.
9499
44dffaac
JT
95002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9501
9502 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9503 an Alpha ABI variant.
9504 (alpha_abi_handler_list): Declare.
9505 (alpha_gdbarch_register_os_abi): New function.
9506 (alpha_gdbarch_init): Give registered ABI variant handlers a
9507 chance to tweak the gdbarch once we have set up defaults.
9508 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9509
65585be4
JT
95102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9511
9512 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9513 to standard_coerce_float_to_double.
9514 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9515
d9b023cc
JT
95162002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9517
9518 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9519 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9520 from gdbarch_tdep rather than a constant.
9521 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9522 the default text address for all Alpha Unix ABIs.
9523 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9524 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9525
dc129d82
JT
95262002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9527
9528 * alpha-tdep.h: New file. Includes several Alpha target constants
9529 taken from...
9530 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9531 let gdbarch deal with.
9532 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9533 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9534 to dependency list.
9535 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9536 Alpha target register names.
9537 * alphabsd-nat.c: Likewise.
9538 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9539 Alpha target register names. Make serveral routines static.
9540 (alpha_get_saved_register): New function.
9541 (alpha_abi_names): New.
9542 (process_note_abi_tag_sections): New function.
9543 (get_elfosabi): New function.
9544 (alpha_gdbarch_init): New function.
9545 (alpha_dump_tdep): New function.
9546 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9547
d49d1e0a
AC
95482002-04-21 Andrew Cagney <ac131313@redhat.com>
9549
9550 * frame.c (find_saved_register): Delete #ifdef
9551 HAVE_REGISTER_WINDOWS code.
9552 * config/sparc/tm-sparc.h: Update comments.
9553 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9554
92e8c9ed
AC
95552002-04-21 Andrew Cagney <ac131313@redhat.com>
9556
9557 * i960-tdep.c (i960_find_saved_register): New function.
9558 (i960_get_saved_register): New function.
9559 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9560 (i960_get_saved_register): Declare.
9561 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9562
e1925118
DM
95632002-04-20 David S. Miller <davem@redhat.com>
9564
9565 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9566
29673b29
AC
95672002-04-20 Andrew Cagney <ac131313@redhat.com>
9568
9569 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9570 instead of NUM_PSEUDO_REGS.
9571
6c86dcd5
DM
95722002-04-20 David S. Miller <davem@redhat.com>
9573
9574 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9575 GDB_MULTI_ARCH_PARTIAL
9576 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9577 define, let tm-sp64.h do it.
9578
aa40ec90
JT
95792002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9580
9581 * frame.c (find_saved_register): Avoid a NULL pointer
9582 dereference and actually walk the frame list.
9583
0f79675b
AC
95842002-04-20 Andrew Cagney <ac131313@redhat.com>
9585
9586 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9587 sorted in most most-recent-used order. Document.
9588 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9589
f91305dd 95902002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9591
9592 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9593 instead of ->prev.
9594 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9595 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9596 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9597 instead of ->prev.
9598
73d322b1
EZ
95992002-04-19 Elena Zannoni <ezannoni@redhat.com>
9600
9601 Fix PR gdb/471.
9602 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9603 (build_builtin_type_vec128): Ditto.
9604 (append_composite_type_field): Fix calculation of type length in
9605 union case.
9606
ccd9a834
EZ
96072002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9608
9609 * config/djgpp/README: Update.
9610
9611 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9612 compiler warnings.
9613
a57f9e49
JT
96142002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9615
9616 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9617 (alpha_setup_arbitrary_frame): ...to this.
9618 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9619 for alpha_setup_arbitrary_frame.
9620
f4f9705a
AC
96212002-04-18 Andrew Cagney <cagney@redhat.com>
9622
9623 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9624 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9625
f4f9705a
AC
9626 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9627 * target.h (memory_breakpoint_from_pc): Update declaration.
9628 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9629
9630 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9631 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9632 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9633 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9634 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9635 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9636 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9637 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9638 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9639 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9640 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9641 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9642
9643 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9644 const pointer.
9645 * monitor.c (monitor_insert_breakpoint): Ditto.
9646 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9647
9648 * config/mcore/tm-mcore.h: Update copyright.
9649 * mem-break.c: Ditto.
9650 * xstormy16-tdep.c: Ditto.
9651
29f319b8
PM
96522002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9653
9654 * p-exp.y: Add precedence rule for '^' token.
9655 This removes the shift/reduce conflicts.
9656 Remove the comment concerning these shift/reduce conflicts.
9657
ebeac11a
EZ
96582002-04-18 Elena Zannoni <ezannoni@redhat.com>
9659
9660 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9661 (registers_powerpc_nofp): New register set for processors
9662 without floating point unit.
9663
27c31547
DM
96642002-04-18 David S. Miller <davem@redhat.com>
9665
9666 * MAINTAINERS: Add myself to write-after-approval.
9667
47a73475
MS
96682002-04-17 Michael Snyder <msnyder@redhat.com>
9669
9670 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9671
953836b2
AC
96722002-04-17 Andrew Cagney <ac131313@redhat.com>
9673
9674 * rs6000-tdep.c (frame_initial_stack_address): Use
9675 frame_register_read to read the alloca_reg.
9676
8b0d4340
AC
96772002-04-17 Andrew Cagney <ac131313@redhat.com>
9678
9679 * frame.c (find_saved_register): Find saved registers in the next
9680 not prev frame.
9681 Fix PR gdb/365.
9682
d8864532
AC
96832002-04-17 Andrew Cagney <ac131313@redhat.com>
9684
9685 * gdbarch.sh (LANG): Set to ``c''.
9686
36cc83a3 96872002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9688
36cc83a3 9689 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9690
2f4150cc 96912002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9692
9693 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9694 Update copyright.
9695
628703c6 9696 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9697 Also fix PR gdb/391.
361d1df0 9698
56157b4a
AC
96992002-04-14 Andrew Cagney <ac131313@redhat.com>
9700
9701 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9702 * aclocal.m4, configure: Re-generate.
9703 Fix PR gdb/391.
361d1df0 9704
6d1e3329
EZ
97052002-04-14 Elena Zannoni <ezannoni@redhat.com>
9706
9707 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9708 instead of tm_print_insn.
9709
cb06fa07
EZ
97102002-04-14 Elena Zannoni <ezannoni@redhat.com>
9711
9712 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9713
f208ba17
AC
97142002-04-14 Andrew Cagney <ac131313@redhat.com>
9715
9716 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9717 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9718 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9719
20f01a46
DH
97202002-04-12 Don Howard <dhoward@redhat.com>
9721
9722 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9723 max_user_call_depth.
9724 (init_cmd_lists): Initialize the new value;
9725 * cli/cli-script.c (execute_user_command): Limit the call depth of
9726 user defined commands. This avoids a core-dump when user commands
9727 are infinitly recursive.
9728
a88376a3
KB
97292002-04-12 Kevin Buettner <kevinb@redhat.com>
9730
9731 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9732 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9733 from tdep struct instead of DEFAULT_LR_SAVE.
9734 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9735 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9736 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9737
f2172603
MS
97382002-04-12 Michael Snyder <msnyder@redhat.com>
9739
694f61fb 9740 * Remote.c: Spelling fix.
20fe79c8
MS
9741 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9742 If no symbol found for "sbrk", try "_sbrk".
9743 (make_output_phdrs): Use bfd_section_name.
9744 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9745 * eval.c: Indentation fix-ups.
169a7369
MS
9746 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9747 in case it gets applied to an address that is already
9748 in the instruction space.
de74f71f
MS
9749 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9750 * symfile.c: Fix indentation, long lines.
f2172603
MS
9751 * source.c: White space fix-up.
9752
cda5a58a
AC
97532002-04-12 Andrew Cagney <cagney@redhat.com>
9754
9755 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9756 * frame.c (frame_register_read): New function. Return non-zero on
9757 success.
9758 (read_relative_register_raw_bytes_for_frame): Delete.
9759 (read_relative_register_raw_bytes): Delete.
9760 * frame.h (frame_register_read): Declare.
9761 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9762 * sh-tdep.c: Ditto.
9763 * infcmd.c (do_registers_info): Ditto.
9764 * hppa-tdep.c: Ditto.
9765 * rs6000-tdep.c: Ditto.
9766 * h8500-tdep.c: Ditto.
9767 * mips-tdep.c: Ditto.
9768 * h8300-tdep.c: Ditto.
9769 * z8k-tdep.c: Ditto.
9770
2ea5f656
KB
97712002-04-12 Kevin Buettner <kevinb@redhat.com>
9772
9773 From Jimi X <jimix@watson.ibm.com>:
9774 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9775 64-bit SysV ABI.
9776
27b15785
KB
97772002-04-12 Kevin Buettner <kevinb@redhat.com>
9778
9779 From Jimi X <jimix@watson.ibm.com>:
9780 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9781 bfd info.
9782
5d57ee30
KB
97832002-04-12 Kevin Buettner <kevinb@redhat.com>
9784
9785 From Jimi X <jimix@watson.ibm.com>:
9786 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9787 register sets for these processor variants.
9788
bc1e36ca
DJ
97892002-04-11 Daniel Jacobowitz <drow@mvista.com>
9790
bc1e36ca
DJ
9791 * regformats/reg-ppc.dat: Support FPSCR.
9792
e3f36dbd
KB
97932002-04-11 Kevin Buettner <kevinb@redhat.com>
9794
9795 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9796 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9797 Add fpscr as an invalid/unfetchable register.
9798 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9799 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9800 (fill_fpregset): Add support for register fpscr.
9801 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9802 (fill_gregset): Account for the fact that register ``mq'' might
9803 not exist.
9804 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9805 (registers_power): Add fpscr to register set at slot 71.
9806 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9807 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9808
943c9c25
MS
98092002-04-11 Michael Snyder <msnyder@redhat.com>
9810
9811 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9812 * configure: Regenerate.
9813 * config.in: Regenerate.
9814 * acconfig.h: Add define for _SYSCALL32.
9815 * core-sol2.c: Remove #define _SYSCALL32.
9816 * solib-legacy.c: Remove #define _SYSCALL32.
9817
d8c0a2e7
AC
98182002-04-10 Andrew Cagney <ac131313@redhat.com>
9819
9820 * stack.c (select_frame): Cleanup internal error message, do not
9821 use %p.
9822
7cc19214
AC
98232002-04-10 Andrew Cagney <ac131313@redhat.com>
9824
9825 * stack.c (select_frame): Check that selected_frame and the
9826 specified level are as expected.
9827 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9828 Update copyright.
9829 * frame.h (struct frame_info): Add field `level'. Update
9830 copyright.
9831 Work-in-progress PR gdb/464.
9832
67a2b77e
AC
98332002-04-10 Andrew Cagney <ac131313@redhat.com>
9834
9835 * maint.c (maint_print_section_info): Rename print_section_info.
9836 (print_bfd_section_info, print_objfile_section_info): Update.
9837 * inferior.h (struct gdbarch): Add opaque declaration.
9838 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9839 * gdbarch.h: Regenerate.
9840
8cfda98c
ML
98412002-04-10 Michal Ludvig <mludvig@suse.cz>
9842
9843 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9844 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9845 (kernel_u_size): Added.
9846 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9847 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9848
ca439ad2 98492002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 9850
ca439ad2
JI
9851 * valarith.c (find_size_for_pointer_math): New function, either returns
9852 the size for a pointer's target, returns 1 for void *, or errors for
9853 incomplete types.
9854 (value_add, value_sub): use find_size_for_pointer_math.
9855
2f2893d9
DJ
98562002-04-09 Daniel Jacobowitz <drow@mvista.com>
9857
9858 * linux-low.c (linux_look_up_symbols): New hook.
9859 (linux_target_ops): Add linux_look_up_symbols.
9860 * remote-utils.c (decode_address): New function.
9861 (look_up_one_symbol): New function.
9862 * server.c (handle_query): Call target look_up_symbols hook.
9863 * server.h (look_up_one_symbol): Add prototype.
9864 * target.h (struct target_ops): Add look_up_symbols hook.
9865
96cb11df
AC
98662002-04-09 Andrew Cagney <ac131313@redhat.com>
9867
9868 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9869 override FP_REGNUM with frame->fp. Update copyright.
9870 * parse.c (num_std_regs, std_regs): Delete.
9871 (target_map_name_to_register): Do not search std_regs. Update
9872 function description.
9873 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9874 declarations. Update copyright.
9875 Fix PR gdb/251.
361d1df0 9876
97658e92
DJ
98772002-04-09 Daniel Jacobowitz <drow@mvista.com>
9878
9879 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9880 after the last symbol in a block.
9881
6044e3eb
PM
98822002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9883
9884 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9885 is non zero as a found symbol.
9886
0406ec40
AC
98872002-04-08 Andrew Cagney <ac131313@redhat.com>
9888
9889 * findvar.c: Include "builtin-regs.h".
9890 (value_of_register): Call value_of_builtin_reg when applicable.
9891 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9892 (target_map_name_to_register): Call
9893 builtin_reg_map_name_to_regnum.
9894 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9895 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9896 (builtin_regs_h): Define.
9897 (builtin-regs.o): New target.
9898 (findvar.o): Add $(builtin_regs_h).
9899 * builtin-regs.c, builtin-regs.h: New files.
9900 * std-regs.c: New file.
9901 Partial fix for PR gdb/251.
9902
56a6dfb9
KB
99032002-04-08 Kevin Buettner <kevinb@redhat.com>
9904
9905 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9906 it's no longer required.
9907
3a808432
AC
99082002-04-08 Andrew Cagney <ac131313@redhat.com>
9909
9910 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9911
7c40d541
KB
99122002-04-08 Kevin Buettner <kevinb@redhat.com>
9913
9914 From Jimi X <jimix@watson.ibm.com>:
9915 * rs6000-tdep.c (rs6000_software_single_step): Use
9916 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9917 and size. Use target_insert_breakpoint() and
9918 target_remove_breakpoint() to insert and remove breakpoints
9919 instead of explicit memory reads and writes.
9920
cc9836a8
KB
99212002-04-08 Kevin Buettner <kevinb@redhat.com>
9922
9923 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9924 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9925 ELF_OBJECT_FORMAT ifdef.
9926
7495d1dc
KB
99272002-04-08 Kevin Buettner <kevinb@redhat.com>
9928
9929 From Jimi X <jimix@watson.ibm.com>:
9930 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9931
4288e836
KB
99322002-04-08 Kevin Buettner <kevinb@redhat.com>
9933
9934 From Jimi X <jimix@watson.ibm.com>:
9935 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9936 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9937
a4e4e501
MK
99382002-04-07 Mark Kettenis <kettenis@gnu.org>
9939
9940 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9941 s/asprintf/xasprintf/.
9942 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9943
006defba
AC
99442002-04-07 Andrew Cagney <ac131313@redhat.com>
9945
9946 I believe Jeff Law denies responsability for this one:
9947 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9948 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9949 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9950 Work-around for PR gdb/366.
9951
7aa83cac
EZ
99522002-04-07 Elena Zannoni <ezannoni@redhat.com>
9953
9954 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9955 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9956 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9957
cf1fcca1
EZ
99582002-04-07 Elena Zannoni <ezannoni@redhat.com>
9959
9960 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9961 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9962 information.
9963
3f289e6f
AC
99642002-04-07 Andrew Cagney <ac131313@redhat.com>
9965
9966 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9967 maintainer.
9968
129188f6
AC
99692002-04-07 Andrew Cagney <ac131313@redhat.com>
9970
9971 * README (Reporting Bugs in GDB): Document the bug web page as the
9972 prefered way of submitting bugs.
9973 Fix PR gdb/402.
9974
1200cd6e
AC
99752002-04-06 Andrew Cagney <ac131313@redhat.com>
9976
9977 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9978 -1. Update comment.
9979 * gdbarch.h, gdbarch.c: Re-generate.
9980
2853c33c
AS
99812002-04-07 Andreas Schwab <schwab@suse.de>
9982
9983 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9984 buffer to regcache_collect.
9985
c2169756
AC
99862002-04-06 Andrew Cagney <ac131313@redhat.com>
9987
9988 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9989 * gdbarch.c, gdbarch.h: Re-generate.
9990
25f1b008
AC
99912002-04-06 Andrew Cagney <ac131313@redhat.com>
9992
9993 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9994 declaration. Fix -Werror.
9995
59263426
DJ
99962002-04-05 Daniel Jacobowitz <drow@mvista.com>
9997
9998 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9999 * gdbarch.c: Regenerate.
10000
f5db4da3
MS
100012002-04-05 Michael Snyder <msnyder@redhat.com>
10002
80f8a6eb
MS
10003 * breakpoint.c (clear_command): Rewrite middle section to
10004 combine two loops with identical control conditions.
10005 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10006 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10007
ad3dcc5c
L
100082002-04-05 H.J. Lu (hjl@gnu.org)
10009
10010 * solib-svr4.c (bkpt_names): Add "__start".
10011
f32e7a74
AC
100122002-04-04 Andrew Cagney <ac131313@redhat.com>
10013
10014 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10015 as test for 64 bit target.
10016
8227c0ff
AC
100172002-04-05 Andrew Cagney <ac131313@redhat.com>
10018
10019 * h8500-tdep.c (h8500_write_fp): Delete function.
10020 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10021 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10022 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10023 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10024 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10025 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10026 (s390_write_fp):
10027 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10028 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10029 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10030 (d10v_write_fp): Delete function.
10031 * inferior.h (write_fp, generic_target_write_fp): Delete
10032 declarations.
10033 * regcache.c (generic_target_write_fp): Delete function.
10034 (write_fp): Delete function.
10035 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10036 * gdbarch.h, gdbarch.c: Regenerate.
10037 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10038 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10039 (sparc64_write_fp): Delete declaration.
10040 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10041 (h8500_write_fp): Delete declaration.
10042
2757dd86
AC
100432002-04-04 Andrew Cagney <ac131313@redhat.com>
10044
10045 * sparc-tdep.c (sparc64_write_fp): Delete.
10046 (sparc_push_dummy_frame): Replace write_fp call with code to store
10047 the FP directly.
10048 (sparc_gdbarch_init): Do not initialize write_fp.
10049
c69255e1
KB
100502002-04-05 Kevin Buettner <kevinb@redhat.com>
10051
10052 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10053 clause.
10054
ae767bfb
JB
100552002-03-29 Jim Blandy <jimb@redhat.com>
10056
10057 * stack.c (get_selected_block): Add new argument `addr_in_block',
10058 used to return the exact code address we used to select the block,
10059 not just the block.
10060 * blockframe.c (get_frame_block, get_current_block): Same.
10061 * frame.h (get_frame_block, get_current_block,
10062 get_selected_block): Update declarations.
10063 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10064 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10065
84d2ac95
MS
100662002-04-05 Michael Snyder <msnyder@redhat.com>
10067
10068 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10069 warning message.
10070
596aa3bf
JB
100712002-04-05 J. Brobecker <brobecker@gnat.com>
10072
10073 * utils.c (xfullpath): New function.
10074 * defs.h (xfullpath): Add declaration.
10075 * source.c (openp): Use xfullpath in place of gdb_realpath to
10076 avoid resolving the basename part of filenames when the
10077 associated file is a symbolic link. This fixes a potential
10078 inconsistency between the filenames known to GDB and the
10079 filenames it prints in the annotations.
10080 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10081 to be able to match a filename with either the real filename, or
10082 the name of any symbolic link to this file.
10083 (lookup_partial_symtab): Ditto.
10084
c02f5703
MS
100852002-04-04 Michael Snyder <msnyder@redhat.com>
10086
10087 * breakpoint.c: Add support for hardware breakpoints in overlays.
10088 (overlay_events_enabled): New state variable.
10089 (insert_breakpoints): Use overlay_events_enabled to decide
10090 whether to attempt to set a breakpoint at the overlay load addr.
10091 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10092 (remove_breakpoint): Use overlay_events_enabled to decide
10093 whether breakpoints need to be removed from overlay load addr.
10094 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10095 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10096 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10097 disable_overlay_breakpoints): Update overlay_events_enabled.
10098
5fb290d7
DJ
100992002-04-04 Daniel Jacobowitz <drow@mvista.com>
10100
10101 * dwarf2read.c (struct function_range): New.
10102 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10103 (check_cu_functions): New.
10104 (read_file_scope): Initialize global function lists.
10105 Call dwarf_decode_line after processing children.
10106 (read_func_scope): Add to global function list.
10107 (dwarf_decode_lines): Call check_cu_functions everywhere
10108 record_line is called. Call record_line with a linenumber
10109 of 0 to mark sequence ends.
10110
7b3fabf0
ML
101112002-04-04 Michal Ludvig <mludvig@suse.cz>
10112
361d1df0 10113 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10114 change sync with glibc.
10115
bce58c09
JB
101162002-04-03 Jim Blandy <jimb@redhat.com>
10117
10118 * configure.in: Call AC_C_INLINE.
10119 * configure: Regenerated.
361d1df0 10120
2fccf04a
DJ
101212002-04-01 Daniel Jacobowitz <drow@mvista.com>
10122
10123 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10124 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10125
2d1bfe2e
MK
101262002-03-31 Mark Kettenis <kettenis@gnu.org>
10127
a5941fbf
MK
10128 * NEWS: Mention gcore support on FreeBSD/i386.
10129
a90cd31d
MK
10130 * fbsd-proc.c: New file.
10131 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10132 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10133
2d1bfe2e
MK
10134 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10135 while statement.
10136
9eb6e5a1
JB
101372002-03-29 Jim Blandy <jimb@redhat.com>
10138
10139 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10140 unescaped newlines in string literals, but newer ones don't. So
10141 escape them.
10142
f02df580
MS
101432002-03-26 Michael Snyder <msnyder@redhat.com>
10144 Andrew Cagney <cagney@redhat.com>
10145
361d1df0 10146 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10147 restore file to memory.
10148 * cli/cli-dump.h: New file.
10149 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10150 * NEWS: Mention new commands.
f02df580 10151
109f874e
MS
101522002-03-28 Michael Snyder <msnyder@redhat.com>
10153
10154 * symfile.c (symbol_file_add): Move test for null symbols to later.
10155
520f6ade
AC
101562002-03-27 Andrew Cagney <ac131313@redhat.com>
10157
10158 From veksler at il.ibm.com:
10159 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10160 the xstrduped original path.
10161 Fix PR gdb/417.
10162
d4654627
MS
101632002-03-27 Michael Snyder <msnyder@redhat.com>
10164
10165 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10166 * infcmd.c (_initialize_infcmd): Ditto.
10167 * language.c (_initialize_language): Ditto.
10168 * symfile.c (_initialize_symfile): Ditto.
10169 * top.c (_init_main): Ditto.
10170 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10171
6be8bc0c
EZ
101722002-03-27 Elena Zannoni <ezannoni@redhat.com>
10173
10174 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10175 vector registers handling.
10176 (skip_prologue): Handle new AltiVec instructions. Fill in new
10177 fields of frame data.
10178 (frame_get_saved_regs): Fill in information for AltiVec registers.
10179
12af6855
JB
101802002-03-27 Jim Blandy <jimb@redhat.com>
10181
10182 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10183 a function; leave this macro here to invoke that function.
10184 (symbol_init_mangled_name): Declaration for that function.
10185 * symtab.c (symbol_init_mangled_name): New function.
10186
dc672865
AC
101872002-03-27 Andrew Cagney <ac131313@redhat.com>
10188
10189 * valarith.c: Replace strerror with safe_strerror.
10190 * tracepoint.c: Ditto.
10191 * lin-lwp.c: Ditto.
10192 * go32-nat.c: Ditto.
10193 * inflow.c: Ditto.
10194 * gnu-nat.c: Ditto.
10195
d96429cd
AS
101962002-03-27 Andreas Schwab <schwab@suse.de>
10197
10198 * event-top.c (command_line_handler): Remove useless if.
10199
7e336ba1
AJ
102002002-03-27 Andreas Jaeger <aj@suse.de>
10201
10202 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10203 comment.
10204
de220d0f
ML
102052002-03-27 Michal Ludvig <mludvig@suse.cz>
10206
10207 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10208 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10209 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10210 (x86_64_linux_dr_get_status, supply_gregset),
10211 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10212 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10213 (x86_64_register_info_table): Add.
10214 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10215 (x86_64_register_raw_size, x86_64_register_virtual_type),
10216 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10217 general x86_64_register_info_table.
10218 (i386_gdbarch_init): gdbarch_register_bytes is now set
10219 dynamicaly during initialization.
10220 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10221 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10222
0e98d0a7
DJ
102232002-03-27 Daniel Jacobowitz <drow@mvista.com>
10224
10225 * gdbserver/server.c (main): Call target_signal_to_host_p
10226 and target_signal_to_host on signals received from the remote.
10227 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10228 target_signal_from_host on signals sent to the remote.
10229 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10230 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10231
3130066b
DJ
102322002-03-27 Daniel Jacobowitz <drow@mvista.com>
10233
10234 * signals/signals.c: Include "server.h" in gdbserver build.
10235 (target_signal_from_name): Don't use STREQ.
10236 (_initialize_signals): Likewise. Don't include function in
10237 gdbserver build.
10238
9aedf4f4
DJ
102392002-03-27 Daniel Jacobowitz <drow@mvista.com>
10240
10241 * signals.c: Moved to...
10242 * signals/signals.c: Here.
7e336ba1 10243 * Makefile (signals.o): Update.
9aedf4f4 10244
3fa41cdb
JL
102452002-03-26 Jeff Law (law@redhat.com)
10246
10247 * somread.c (som_symtab_read): Remove some commented out code and
10248 updated related comments. Do not set the minimal symbol table to
10249 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10250 in a dynamic executable.
10251 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10252 where we are unable to find the minimal symbol for the given
10253 PC value.
10254
ee677e8d
MS
102552002-03-25 Jeff Law (law@redhat.com)
10256
10257 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10258
e76e1718
ML
102592002-03-25 Michal Ludvig <mludvig@suse.cz>
10260
10261 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10262
18a642a1
AC
102632002-03-23 Andrew Cagney <ac131313@redhat.com>
10264
10265 * command.h: Update copyright.
10266 (struct cmd_list_element): Replace definition with opaque
10267 declaration.
10268 (enum cmd_types): Document that it will eventually be moved to
10269 cli/cli-decode.h
10270 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10271 (MALLOCED_REPLACEMENT): Delete macro.
10272 * Makefile.in (cli_decode_h): Add $(command_h).
10273 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10274 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10275 * completer.c: Include "cli/cli-decode.h".
10276 * maint.c: Include "cli/cli-decode.h".
10277 * cli/cli-decode.h: Include "command.h".
10278 (enum command_class): Delete.
10279 (enum cmd_types): Comment out.
10280 (enum cmd_auto_boolean): Delete.
10281 (enum var_types): Delete.
10282
b2875cc0
AC
102832002-03-23 Andrew Cagney <ac131313@redhat.com>
10284
10285 * cli/cli-decode.c: Include "gdb_assert.h".
10286 (add_set_or_show_cmd): New static function.
10287 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10288 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10289 all fields, such as func, from the set command.
10290
3b45974e
AC
102912002-03-23 Andrew Cagney <ac131313@redhat.com>
10292
10293 * MAINTAINERS (sh-elf): Change warning flag to -w.
10294
823ca731
AC
102952002-03-23 Andrew Cagney <cagney@redhat.com>
10296
10297 * defs.h (error): Add printf format attribute.
10298 * thread-db.c (thread_from_lwp): Fix error format string.
10299 * stack.c (parse_frame_specification): Ditto.
10300 * cli/cli-decode.c (undef_cmd_error): Ditto.
10301 * scm-lang.c (scm_lookup_name): Ditto.
10302 * tracepoint.c (trace_error): Ditto.
10303 * remote-utils.c (usage): Ditto.
10304 * remote.c (compare_sections_command): Ditto.
10305 Fix PR gdb/328.
10306
0e101458
AC
103072002-03-22 Andrew Cagney <ac131313@redhat.com>
10308
10309 * gdbtypes.c (append_composite_type_field): New function.
10310 (init_composite_type): New function.
10311 * gdbtypes.h (append_composite_type_field): Declare.
10312 (init_composite_type): Ditto.
10313
8e0662df
EZ
103142002-03-22 Elena Zannoni <ezannoni@redhat.com>
10315
10316 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10317 function.
8e0662df
EZ
10318 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10319 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10320 structure returning convention for SYSV ABI case, but not
10321 for GNU/Linux, FreeBSD, or NetBSD.
10322
3121eff0
DJ
103232002-03-22 Daniel Jacobowitz <drow@mvista.com>
10324
10325 * symtab.h (lookup_block_symbol): Add mangled_name argument
10326 to prototype.
10327
10328 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10329 with new mangled_name argument.
10330 * linespec.c (decode_line_1): Likewise.
10331 * valops (value_of_this): Likewise.
10332 * symtab.c (lookup_transparent_type): Likewise.
10333 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10334 (lookup_symbol): If we are given a mangled name, pass it down
10335 to lookup_symbol_aux.
10336 (lookup_block_symbol): If we are given a mangled name to check
10337 against, only return symbols which match it.
10338
349b409f
CF
103392002-03-22 Christopher Faylor <cgf@redhat.com>
10340
10341 * win32-nat.c (child_create_inferior): Check for proper shell to use
10342 here, in case the user changes it on the fly.
10343 (_initialize_inftarg): Remove shell path considerations.
10344
2a873819
EZ
103452002-03-21 Elena Zannoni <ezannoni@redhat.com>
10346
10347 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10348 for gdbarch_max_register_raw_size and max_register_virtual_size.
10349 Adjust copyright year.
10350
a1b9830c
DJ
103512002-03-21 Daniel Jacobowitz <drow@mvista.com>
10352
10353 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10354 in a function to cover the entire beginning of the function
10355 as well if it does not already.
10356
8b5790f2
TR
103572002-03-21 Tom Rix <trix@redhat.com>
10358
10359 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10360 (rs6000_ptrace64): Renamed from ptrace64.
10361
bdbe5747
MH
103622002-03-20 Martin M. Hunt <hunt@redhat.com>
10363
10364 * gdbserver/remote-utils.c (remote_open): Don't call
10365 getprotobyname, we're all using TCP here so just use
10366 IPPROTO_TCP.
7e336ba1 10367 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10368
103692002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10370
bdbe5747
MH
10371 * regcache.c (_initialize_regcache): No need to call
10372 build_regcache() at this time; it gets called whenever
10373 the gdbarch changes.
10374
7781cd62
DB
103752002-03-20 David O'Brien <obrien@FreeBSD.org>
10376
10377 * sparc-nat.c: Include sys/param.h where possible.
10378
f65ca430
DJ
103792002-03-20 Daniel Jacobowitz <drow@mvista.com>
10380
10381 Fix PR gdb/422.
10382 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10383 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10384 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10385 complex types.
10386 * stabsread.c (rs6000_builtin_type): Likewise.
10387 (read_sun_floating_type): Likewise.
10388
0c867556
PS
103892002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10390
10391 * stabsread.c (read_member_functions): Remove skip code for duplicate
10392 constructor/destructor methods. Use standard parsing for these
10393 methods and just do not chain them to the list of methods after
10394 parsing.
10395
12b9c64f
AO
103962002-03-19 Alexandre Oliva <aoliva@redhat.com>
10397
10398 * coffread.c: Remove redundant static declarations. Replace
10399 occurrences of `PTR' with `void *'.
10400 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10401 * top.h (quit_cover): Likewise.
10402 * defs.h (catch_errors): Likewise.
10403
349c5d5f
AC
104042002-03-18 Andrew Cagney <ac131313@redhat.com>
10405
10406 * defs.h (XMALLOC): Define.
10407 * gdb-events.sh (XMALLOC): Delete macro.
10408 * gdb-events.c, gdb-events.h: Regenerate.
10409 * gdbarch.sh (XMALLOC): Delete macro.
10410 * gdbarch.c: Regenerate.
10411 * serial.c (XMALLOC): Delete macro.
10412 * ui-file.c (XMALLOC): Ditto.
10413 * ser-unix.h (XMALLOC): Ditto.
10414 * sh-tdep.c (XMALLOC): Ditto.
10415 * ui-out.c (XMALLOC): Ditto.
10416 * utils.c (XMALLOC): Ditto.
10417 * i386-tdep.c (XMALLOC): Ditto.
10418 * gdb-events.c (XMALLOC): Ditto.
10419 * d10v-tdep.c (XMALLOC): Ditto.
10420 * cli-out.c (XMALLOC): Ditto.
10421
10422 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10423 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10424 * ui-file.c, ui-out.c: Ditto.
10425
7d0766f3
AC
104262002-03-18 Andrew Cagney <ac131313@redhat.com>
10427
10428 * command.h (struct cmd_list_element): Add field context.
10429 (set_cmd_context, get_cmd_context): Declare.
10430 * cli/cli-decode.h: Ditto.
10431 * cli/cli-decode.c (get_cmd_context): New function.
10432 (set_cmd_context): New function.
10433 (add_cmd): Initialize context.
10434 Part of fixing PR gdb/145 and PR gdb/146.
10435
5913bcb0
AC
104362002-03-17 Andrew Cagney <ac131313@redhat.com>
10437
1868c04e
AC
10438 * cli/cli-decode.c (cmd_type): New function.
10439 * command.h (cmd_type): Declare.
10440 * infrun.c (set_schedlock_func): Call function cmd_type.
10441 * kod.c (kod_set_os): Call cmd_type.
10442 * cris-tdep.c (cris_version_update): Use function cmd_type.
10443 (cris_mode_update, cris_abi_update): Ditto.
10444
5913bcb0
AC
10445 * command.h: (execute_cmd_post_hook): Declare.
10446 (execute_cmd_pre_hook): Declare.
10447 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10448 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10449 functions. Execute pre/post hook while ensuring that afterwords
10450 hook_in is cleared.
10451 * top.c (execute_command): Use execute_cmd_post_hook, and
10452 execute_cmd_pre_hook to execute pre/post commands.
10453 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10454 hook_stop_stub.
10455 (hook_stop_stub): Call execute_cmd_pre_hook.
10456
b51450c9
AC
104572002-03-17 Andrew Cagney <ac131313@redhat.com>
10458
10459 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10460 set'' and this leads to a core dump. Move xstrdup of
10461 operating_system to after check that it is not NULL.
10462
f66c9f11
AC
104632002-03-17 Andrew Cagney <ac131313@redhat.com>
10464
8e694ecf
AC
10465 * kod.c (kod_set_os): Remove unnecessary check that
10466 ``command->type'' is set_cmd.
10467
f66c9f11
AC
10468 * valprint.c (set_input_radix): Use input_radix.
10469 (set_output_radix): Use output_radix.
10470 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10471 isn't reverted.
10472
9d01611c
AC
104732002-03-16 Andrew Cagney <ac131313@redhat.com>
10474
10475 * value.h (struct value): Delete field ``substring_addr''. Change
10476 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10477 force_core_addr_align and force_pointer_aligh.
10478
10479 * value.h (struct value): Fix typo in above change.
9d01611c 10480
4156bb53
PS
104812002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10482
10483 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10484 to fix internal_error from ``maintenance print architecture''.
10485
0e5e3ea6
PS
104862002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10487
10488 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10489 for gcc versions after gcc-2.8.1.
10490
9b013045
PS
104912002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10492
10493 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10494 for method resolution. Restore adjustment of ``this'' pointer after
10495 calling value_struct_elt, which was accidentally removed during the
10496 HP merge.
10497
376c9600
AC
104982002-03-15 Andrew Cagney <ac131313@redhat.com>
10499
10500 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10501 value_of_register.
10502 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10503 get_saved_register.
10504 * value.h (value_of_register): Update.
10505
a4db0f07
RH
105062002-03-14 Richard Henderson <rth@redhat.com>
10507
10508 * configure.in: Detect declaration for canonicalize_file_name.
10509 * utils.c (canonicalize_file_name): Declare, if needed.
10510 (gdb_realpath): Prefer realpath if available and usable.
10511 * config.in, configure: Rebuild.
10512
96383835
RH
105132002-03-14 Richard Henderson <rth@redhat.com>
10514
10515 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10516 a constant array bound.
10517
10518 * MAINTAINERS: Add myself to write-after-approval.
10519
75245b24
MS
105202002-03-14 Michael Snyder <msnyder@redhat.com>
10521
10522 * symfile.c (syms_from_objfile): Return immediately if no syms.
10523 (symbol_file_add): Return immediately if no syms.
10524 (find_sym_fns): Return immediately if no syms.
10525
e641a1ca
ML
105262002-03-13 Michal Ludvig <mludvig@suse.cz>
10527
10528 * gdbserver/remote-util.c (remote_open): Print remote-side's
10529 IP address when remote debugging over the network.
7e336ba1 10530
df08bfec
DB
105312002-03-12 David O'Brien <obrien@FreeBSD.org>
10532
10533 * config/sparc/fbsd.mh: Fix copyright.
10534 * config/sparc/fbsd.mt: Likewise.
10535
9a57864f
RE
105362002-03-11 Richard Earnshaw <rearnsha@arm.com>
10537
10538 * MAINTAINERS: Fix typo in name of gdb warnings option.
10539 (x86-64): Fix formating so that this can be parsed by awk.
10540
dd7bf85e
DJ
105412002-03-10 Daniel Jacobowitz <drow@mvista.com>
10542
10543 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10544 * defs.h: Include "gdb/signals.h".
10545 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10546
33a0a2ac
ML
105472002-03-10 Michal Ludvig <mludvig@suse.cz>
10548
10549 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10550 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10551 from x86-64-tdep.h
10552
dd824b04
DJ
105532002-03-10 Daniel Jacobowitz <drow@mvista.com>
10554 Don Howard <dhoward@redhat.com>
10555
10556 * mips-tdep.c (ST0_FR): Define.
10557 (mips2_fp_compat): New function, temporarily disabled.
10558 (mips_read_fp_register_single): New function.
10559 (mips_read_fp_register_double): New function.
10560 (mips_print_register): Use them.
10561 (do_fp_register_row): Likewise.
10562
6a41ff59
AC
105632002-03-09 Andrew Cagney <ac131313@redhat.com>
10564
10565 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10566 approval''.
10567
4ea09c10
PS
105682002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10569
10570 * stabsread.c (read_member_functions): Fix is_stub test for
10571 static member functions, improve comment.
10572
6ccc741d
RE
105732002-03-07 Richard Earnshaw <rearnsha@arm.com>
10574
10575 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10576 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10577 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10578 commands that set boolean values.
10579 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10580 (arm_rdi_resume): Always initialize PC.
10581 (arm_rdi_open): Don't use rslt as a boolean.
10582 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10583 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10584 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10585 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10586
438013df
AO
105872002-03-06 Alexandre Oliva <aoliva@redhat.com>
10588
10589 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10590 * configure: Rebuilt.
10591
70ed8774
SC
105922002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10593
10594 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10595 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10596
5ba2abeb
AC
105972002-03-06 Andrew Cagney <ac131313@redhat.com>
10598
10599 * cli/cli-decode.c (set_cmd_completer): New function.
10600 * command.h (set_cmd_completer): Declare.
10601 * cli/cli-decode.h (set_cmd_completer): Ditto.
10602
10603 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10604 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10605 * win32-nat.c (_initialize_inftarg): Ditto.
10606 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10607 * proc-api.c (_initialize_proc_api): Ditto.
10608 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10609 * source.c (_initialize_source): Ditto.
10610 * exec.c (_initialize_exec): Ditto.
10611 * solib.c (_initialize_solib): Ditto.
10612 * top.c (init_main): Ditto.
10613 * tracepoint.c (_initialize_tracepoint): Ditto.
10614 * symfile.c (_initialize_symfile): Ditto.
10615 * printcmd.c (_initialize_printcmd): Ditto.
10616 * infcmd.c (_initialize_infcmd): Ditto.
10617 * corefile.c (_initialize_core): Ditto.
10618
f779ca99
AC
106192002-03-05 Andrew Cagney <ac131313@redhat.com>
10620
10621 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10622
01a3934b
AC
106232002-03-05 Andrew Cagney <ac131313@redhat.com>
10624
10625 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10626
37057839
AC
106272002-03-05 Andrew Cagney <ac131313@redhat.com>
10628
10629 * NEWS: Update headings, 5.2 has branched.
10630
c6ecbae5
DJ
106312002-03-04 Daniel Jacobowitz <drow@mvista.com>
10632
10633 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10634 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10635 (register_addr, REGISTER_RAW_SIZE): Likewise.
10636 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10637 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10638
e9f30c21
ML
106392002-03-03 Michal Ludvig <mludvig@suse.cz>
10640
10641 * MAINTAINERS (x86-64): Add myself.
10642 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10643 changed value_ptr -> struct value *
10644
54394ac3
DB
106452002-03-01 David O'Brien <obrien@FreeBSD.org>
10646
10647 * configure.host (sparc64-*-freebsd): Add.
10648 * configure.tgt: Likewise.
10649 * config/sparc/fbsd.mh: New file.
10650 * config/sparc/fbsd.mt: Likewise.
10651 * config/sparc/nm-fbsd.h: Likewise.
10652 * config/sparc/tm-fbsd.h: Likewise.
10653
bfe95955
DJ
106542002-03-01 Daniel Jacobowitz <drow@mvista.com>
10655
10656 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10657 regformats/reg-s390x.dat.
10658
f33c6cbf
AC
106592002-03-01 Andrew Cagney <ac131313@redhat.com>
10660
10661 * utils.c: Add FIXME explaining true/false problem.
10662
5ecaa7dd
AC
106632002-02-28 Andrew Cagney <ac131313@redhat.com>
10664
10665 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10666
2a251cc2
MC
106672002-02-28 Michael Chastain <mec@shout.net>
10668
10669 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10670
6a8031a3 106712002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10672
10673 * gdbserver/linux-s390-low.c: New file.
10674 * regformats/reg-s390.dat: New file.
10675 * regformats/reg-s390x.dat: New file.
10676 * gdbserver/configure.srv: Add S/390.
10677 * gdbserver/Makefile.in: Add S/390.
10678 * configure.tgt: Enable gdbserver for S/390.
10679
ac469903
EZ
106802002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10681
10682 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10683 first line of the doc string for "info dos", except at the end of
10684 the sentence, since the short help stops at the first period.
10685
985cb1a3
JM
106862002-02-28 Jason Merrill <jason@redhat.com>
10687
10688 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10689
c570663e
FF
106902002-02-27 Fred Fish <fnf@redhat.com>
10691
10692 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10693 comment (dumy -> dummy).
10694
43630227
PS
106952002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10696
10697 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10698
b84911e8
RB
106992002-02-27 Rodney Brown <rbrown64@csc.com.au>
10700
10701 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10702
58caa3dc
DJ
107032002-02-27 Daniel Jacobowitz <drow@mvista.com>
10704
10705 * gdbserver/acconfig.h: New file.
10706 * gdbserver/i387-fp.c: New file.
10707 * gdbserver/i387-fp.h: New file.
10708 * gdbserver/linux-x86-64.c: New file.
10709 * regformats/reg-x86-64.dat: New file.
10710 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10711 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10712 * gdbserver/configure.in: Add support for regsets.
10713 * gdbserver/config.in: Regenerate.
10714 * gdbserver/configure: Regenerate.
10715 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10716 * gdbserver/linux-low.h: New file.
10717 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10718 for regsets.
10719 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10720 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10721 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10722 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10723 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10724 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10725 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10726 "i387-fp.h". Add PTRACE_GETREGS and friends.
10727 * gdbserver/regcache.c (supply_register): New function.
10728 (supply_register_by_name): New function.
10729 (collect_register): New function.
10730 (collect_register_by_name): New function.
10731
93652174
DJ
107322002-02-27 Daniel Jacobowitz <drow@mvista.com>
10733
10734 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10735 (config.status): Add configure.srv dependency.
10736 (server_h): Add config.h dependency.
10737
a02e4a61
DJ
107382002-02-27 Daniel Jacobowitz <drow@mvista.com>
10739
10740 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10741 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10742 * gdbserver/configure.srv: Change i386-*-linux* to use
10743 reg-i386-linux.o.
10744
ce0eebec
AC
107452002-02-26 Andrew Cagney <ac131313@redhat.com>
10746
10747 * x86-64-tdep.c: Re-indent. Update copyright date.
10748
82dbc5f7
AC
107492002-02-26 Andrew Cagney <ac131313@redhat.com>
10750
10751 From Michal Ludvig <mludvig@suse.cz>:
10752 * x86-64-tdep.c (value.h): Delete.
10753 (gdb_assert.h): Include.
10754 (x86_64_register_convert_to_virtual,
10755 x86_64_register_convert_to_raw ): Add check which lets only
10756 floating-point values to be converted.
10757 (value_push): Delete.
10758 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10759 (i386_gdbarch_init): Number of register_bytes fixed.
10760
e4621584
AC
107612002-02-26 Andrew Cagney <ac131313@redhat.com>
10762
10763 * MAINTAINERS: Add x86-64 target.
10764
81a9a963
AC
107652002-02-26 Andrew Cagney <ac131313@redhat.com>
10766
10767 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10768 * osfsolib.c (solib_map_sections): Ditto.
10769 * irix5-nat.c (solib_map_sections): Ditto.
10770 * corelow.c (gdb_check_format): Ditto.
10771 * symfile.c (symfile_bfd_open): Ditto.
10772 * solib.c (solib_map_sections): Ditto.
10773 Fix PR gdb/354.
7e336ba1 10774
0f017ab9
AC
107752002-02-26 Andrew Cagney <ac131313@redhat.com>
10776
10777 * remote.c (_initialize_remote): By default, disable ``e'' and
10778 ``E'' step out-of-range packets.
10779
75738c29
AS
107802002-02-26 Andreas Schwab <schwab@suse.de>
10781
10782 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10783 m68k_linux_frame_saved_pc.
10784 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10785 in_sigtramp.
10786 (SIGCONTEXT_PC_OFFSET): Remove.
10787 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10788 m68k_linux_sigtramp_saved_pc): New functions.
10789 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10790 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10791 (UCONTEXT_PC_OFFSET): Define.
10792 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10793 non-RT and RT signal trampolines.
10794
7e8ed687
RE
107952002-02-26 Richard Earnshaw <rearnsha@arm.com>
10796
10797 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10798 (TARGET_NBPG, STACK_END_ADDR): Delete
10799 (VARIABLES_INSIDE_BLOCK): Delete.
10800
6972bc8b
AC
108012002-02-25 Andrew Cagney <ac131313@redhat.com>
10802
10803 * utils.c (perror_with_name): Make string parameter constant.
10804 (print_sys_errmsg): Ditto.
10805 (query): Ditto.
10806 * defs.h (perror_with_name): Update.
10807 (print_sys_errmsg): Update.
10808 (query): Update.
10809
aa32f823
DJ
108102002-02-25 Daniel Jacobowitz <drow@mvista.com>
10811
10812 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10813 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10814
19caaa45
PS
108152002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10816
10817 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10818 if it already matches the current architecture from the exec file.
10819 Include arch-utils.h for gdbarch_info_init prototype.
10820 * Makefile.in (rs6000-nat.o): Update dependencies.
10821
d951901f
EZ
108222002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10823
10824 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10825 list of exported variables.
10826
7ea81414
DJ
108272002-02-24 Daniel Jacobowitz <drow@mvista.com>
10828
10829 * gdbserver/configure.srv: New file.
10830 * gdbserver/configure.in: Use configure.srv instead
10831 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10832 from it.
10833 * gdbserver/configure: Regenerated.
10834 * gdbserver/terminal.h: New file.
10835 * gdbserver/Makefile.in: Update for configure changes. Remove
10836 more unneeded include paths.
10837
080fe24b
AC
108382002-02-24 Andrew Cagney <ac131313@redhat.com>
10839
10840 From wiz at danbala:
10841 * config/sparc/tm-sp64.h: Fix grammar and typos.
10842 Fix PR gdb/287.
10843
8605d56e
AC
108442002-02-24 Andrew Cagney <ac131313@redhat.com>
10845
10846 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
10847 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10848 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10849 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
10850 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10851 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10852 * s390-tdep.c: Ditto.
92362027
AC
10853 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10854 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10855 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10856 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10857 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10858 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10859 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10860 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10861 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10862 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 10863 Fix PR gdb/378.
7e336ba1 10864
8ed32cc0
AC
108652002-02-23 Andrew Cagney <ac131313@redhat.com>
10866
a3007b6f
AC
10867 * lin-thread.c: Delete file.
10868 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10869 to gdb_proc_service.h.
10870 * configure: Re-generate.
10871
50a9e2f1
AC
10872 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10873 * serial.c (serial_open): Delete check for "ocd".
10874 Fix PR gdb/349.
10875
8b6e7932
AC
10876 * Makefile.in (linux-thread.o): Delete target.
10877 * linux-thread.c: Delete file.
10878
d155c46b
AC
10879 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10880 renamed SH files to be consistent.
10881
8ed32cc0
AC
10882 * symtab.c (sort_search_symbols): Use xfree.
10883
0e18d038
RE
108842002-02-23 Richard Earnshaw <rearnsha@arm.com>
10885
10886 * arm-linux-tdep.c (arm_linux_init_abi): Register
10887 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10888 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10889 definition with undef, since we don't want the sysvr4 definition.
10890 (SKIP_TRAMPOLINE_CODE): Likewise.
10891
27aac7ff
AC
108922002-02-23 Andrew Cagney <ac131313@redhat.com>
10893
10894 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10895
10896 * configure.in: (AC_CHECK_FUNCS) Added test for
10897 canonicalize_file_name Regenerated.
10898 * config.in, configure: Regenerated.
10899 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10900 defined use canonicalize_file_name.
7e336ba1 10901
65a6e0ee
MC
109022002-02-23 Michael Chastain <mec@shout.net>
10903
10904 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10905
47b95330
AC
109062002-02-23 Andrew Cagney <ac131313@redhat.com>
10907
10908 * README: Remove references to cygnus.com.
10909 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10910 dot com'' form. Remove references to cygnus.com and sourceware.
10911
696f451b
AC
109122002-02-23 Andrew Cagney <ac131313@redhat.com>
10913
10914 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10915 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10916 1003.1-2001 no longer allows "head -1".
10917 * gdb/Makefile.in (version.c): Likewise.
10918 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10919 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10920 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10921
bbaca940
AC
109222002-02-23 Andrew Cagney <ac131313@redhat.com>
10923
10924 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10925 * command.h (cmd_cfunc_eq): Declare.
10926 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10927
10928 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10929 ``struct cmd_list_element *''.
10930 * cli/cli-cmds.c (is_complete_command): Update. Use
10931 cmd_cfunc_eq.
10932 * top.c (execute_command): Pass the command to
10933 is_complete_command.
10934 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10935
b8b8b047
AC
109362002-02-23 Andrew Cagney <ac131313@redhat.com>
10937
10938 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10939 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10940 architecture defines.
10941 * s390-tdep.c (s390_gdbarch_init): Likewise.
10942
19d3fc80
RE
109432002-02-23 Richard Earnshaw <rearnsha@arm.com>
10944
10945 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10946 (arm_linux_push_arguments): Likewise.
10947 (arm_linux_init_abi): Register them. Also register linux-specific
10948 call_dummy_words.
10949 (find_minsym_and_objfile): Use strcmp, not STREQ.
10950 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10951 (arm_linux_call_dummy_words): Delete declaration.
10952 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10953 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10954 declarations.
10955 (LOWEST_PC): Delete.
10956
3ab13650
PS
109572002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10958
10959 * maint.c (print_section_info): Do not prepend `0x' to filepos
10960 output, it will be handled by local_hex_string_custom.
10961
19d3fc80 109622002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
10963
10964 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10965 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10966 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10967
d85a5daf
JB
109682002-02-22 Jim Blandy <jimb@redhat.com>
10969
10970 Indicate that the bcache functions don't change the strings
10971 they're passed.
10972 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10973 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10974
eeb25b8a
PM
109752002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10976
10977 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10978
6badb179
CF
109792002-02-21 Christopher Faylor <cgf@redhat.com>
10980
10981 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10982 find the complete path to a loaded DLL.
10983
e8717518
FF
109842002-02-21 Fred Fish <fnf@redhat.com>
10985
10986 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10987 that marks the end of the range of a function, enter a line number
10988 entry that has a line number of zero and a PC offset that matches
10989 the end of the function. This starts a range of PC's for which no
10990 line number information is known.
10991 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10992 PC's for which no line number info is found (line number is zero)
10993 then we didn't find any valid line information.
10994 * symtab.h: Document use of zero line number entry.
10995
9abe5450
EZ
109962002-02-21 Elena Zannoni <ezannoni@redhat.com>
10997
10998 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10999 (have_ptrace_getvrregs): Define for run time checks.
11000 (gdb_vrregset_t): New type for Altivec register handling.
11001 (fetch_register, store_register): Fetch/store altivec register
11002 when needed.
11003 (fetch_altivec_register, store_altivec_register): New functions.
11004 (supply_vrregset, fill_vrregset): New functions.
11005 (fetch_altivec_registers, store_altivec_registers): New functions.
11006 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11007 registers as well.
11008
aaa38bb5
AJ
110092002-02-21 Jiri Smid <smid@suse.cz>
11010
11011 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11012
b34db576
RE
110132002-02-21 Richard Earnshaw <rearnsha@arm.com>
11014
11015 * Makefile.in (armnbsd-nat.o): Update dependencies.
11016 * armnbsd-nat.c (supply_gregset): New function. Common code to
11017 supply the integer register set.
11018 (supply_fparegset): New function. Similar for FPA registers.
11019 (fetch_regs, fetch_fp_regs): Use them.
11020 (fetch_core_registers): Likewise.
11021 (fetch_elfcore_registers): New function.
11022 (arm_netbsd_elfcore_fns): New core-file type specification.
11023 (_initialize_arm_netbsd_nat): Register it.
11024
3e56fc4b
RE
110252002-02-21 Richard Earnshaw <rearnsha@arm.com>
11026
11027 * armnbsd-nat.c: Include gdbcore.h.
11028 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11029 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11030 'void' to declaration, to shut up ARI.
11031 (fetch_core_registers): Make static. Rewrite using supply_register.
11032 (arm_netbsd_core_fns): New core-file type specification.
11033 (_initialize_arm_netbsd_nat): New function.
11034
097f6b0b
CF
110352002-02-21 Christopher Faylor <cgf@redhat.com>
11036
11037 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11038 value.
11039
c914e0cc
CF
110402002-02-20 Christopher Faylor <cgf@redhat.com>
11041
11042 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11043 fails.
11044
385fa495
DJ
110452002-02-20 Daniel Jacobowitz <drow@mvista.com>
11046
11047 * jv-exp.y (parse_number): Change type of implicit longs
11048 to builtin_type_uint64.
11049
e5f1222d
DJ
110502002-02-20 Daniel Jacobowitz <drow@mvista.com>
11051
11052 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11053 to be an integer instead of a `union wait'.
11054
75c9abc6
DJ
110552002-02-20 Daniel Jacobowitz <drow@mvista.com>
11056
11057 * mips-linux-nat.c: Call the operating system GNU/Linux.
11058 * mips-linux-tdep.c: Likewise.
11059 * mips-tdep.c: Likewise.
11060
551792a5
DJ
110612002-02-20 Daniel Jacobowitz <drow@mvista.com>
11062
11063 Fix PR gdb/265.
11064 * jv-exp.y (parse_number): Handle 64-bit integers.
11065
ee6e2b82
DJ
110662002-02-20 Daniel Jacobowitz <drow@mvista.com>
11067
11068 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11069 AC_STDC_HEADERS to AC_HEADER_STDC.
11070 * gdbserver/configure: Regenerated.
11071
a48442a0
RE
110722002-02-20 Richard Earnshaw <rearnsha@arm.com>
11073
11074 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11075 is defined.
11076 * sparc-tdep.c (get_longjmp_target): Likewise.
11077
fe419ffc
RE
110782002-02-20 Richard Earnshaw <rearnsha@arm.com>
11079
11080 * News: Add news about ARM and Multi-arch. Mention the new target
11081 arm*-*-netbsd*.
11082
5832ed7e
JB
110832002-02-19 Jim Blandy <jimb@redhat.com>
11084
11085 * stabsread.c (error_type_complaint): Improve error message.
11086
84563040
DJ
110872002-02-19 Daniel Jacobowitz <drow@mvista.com>
11088
11089 * gdbserver/README: Update documentation.
11090 * gdbserver/configure.in: Update configury to match documentation.
11091 * gdbserver/Makefile.in: Likewise.
11092 * gdbserver/configure: Regenerated.
11093 * gdbserver/aclocal.m4: New file, generated by aclocal.
11094 * gdbserver/config.in: New file, generated by autoheader.
11095
375fd65b
RE
110962002-02-19 Richard Earnshaw <rearnsha@arm.com>
11097
11098 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11099 armnbsd-nat.c.
11100
08216dd7
RE
111012002-02-19 Richard Earnshaw <rearnsha@arm.com>
11102
11103 * arm-tdep.h (enum arm_float_model): New enum.
11104 (struct gdbarch_tdep): Add fp_model.
11105 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11106 up floating-point conversions until we know the floating-point model
11107 in use by the inferior. Don't complain about being unable to
11108 determine the ABI of the inferior when we don't have one.
11109 (arm_extract_return_value): Support different floating-point models.
11110 (arm_store_return_value): Likewise.
aaa38bb5 11111 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11112 ARM_FLOAT_SOFT.
11113 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11114
65d6d66a
PS
111152002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11116
11117 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11118 of ``current_gdbarch''.
11119
47221191
RE
111202002-02-19 Richard Earnshaw <rearnsha@arm.com>
11121
11122 * armnbsd-nat.c : ANSIfy all function declarations.
11123 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11124 (fetch_inferior_registers): Re-implement in terms of above.
11125 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11126 (store_inferior_registers): Re-implement in terms of above.
11127
fdf39c9a
RE
111282002-02-19 Richard Earnshaw <rearnsha@arm.com>
11129
aaa38bb5 11130 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11131 kernel.
11132 * arm-linux-tdep.c: Likewise.
11133 * config/arm/tm-linux.h: Likewise.
11134
93247f88
RE
111352002-02-19 Richard Earnshaw <rearnsha@arm.com>
11136
11137 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11138 * config/arm/nbsd.mt (TM_FILE): Delete.
11139 * config/arm/tm-nbsd.h: Delete.
11140
d7b486e7
RE
111412002-02-19 Richard Earnshaw <rearnsha@arm.com>
11142
11143 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11144 Initialize CALL_DUMMY_LENGTH.
11145
41d39a95
RE
111462002-02-19 Richard Earnshaw <rearnsha@arm.com>
11147
11148 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11149 function.
11150 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11151 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11152 defines one thing and that is incorrect for this port.
11153 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11154
e1195560
PM
111552002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11156
11157 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11158
c1748f97
PM
111592002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11160
11161 * win32-nat.c (display_selector): New function. Displays information
11162 about the information returned by GetThreadSelectorEntry API function.
11163 (display_selectors): New function. Displays the infomation of
11164 the selector given as argument, or of CS, DS ans FS selectors
11165 if no argument is given.
11166 ( _initialize_inftarg): Add "w32" as info prefix command.
11167 Add "info w32 selector" as command calling display_selectors.
11168
e41e6bbf
PM
111692002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11170
11171 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11172 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11173 if not defined.
11174
0d3a9f48
RE
111752002-02-18 Richard Earnshaw <rearnsha@arm.com>
11176
11177 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11178
3fb4b924
RE
111792002-02-18 Richard Earnshaw <rearnsha@arm.com>
11180
11181 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11182 (arm_fix_call_dummy): Call it.
11183 (arm_call_dummy_breakpoint_offset): Delete.
11184 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11185 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11186
7f55af32
AC
111872002-02-18 Andrew Cagney <ac131313@redhat.com>
11188
11189 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11190 Default to func_frame_chain_valid.
11191 * gdbarch.h, gdbarch.c: Re-generate.
11192 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11193
05f13b9c
EZ
111942002-02-18 Elena Zannoni <ezannoni@redhat.com>
11195
11196 * ppc-linux-nat.c: Update copyright.
11197 (fetch_register, store_register): Add tid parameter, don't compute
11198 tid here.
11199 (fetch_ppc_registers, store_ppc_registers): Add tid
11200 parameter. Pass it along to callees.
11201 (fetch_inferior_registers, store_inferior_registers): Compute tid
11202 here, and pass it to calleed functions.
11203 (fill_gregset, supply_fpregset): Clean up formatting.
11204
d7afb4c9
RE
112052002-02-18 Richard Earnshaw <rearnsha@arm.com>
11206
11207 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11208 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11209
9df628e0
RE
112102002-02-18 Richard Earnshaw <rearnsha@arm.com>
11211
11212 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11213 * gdbarch.c gdbarch.h: Regenerate.
11214 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11215 function.
11216 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11217 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11218 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11219
11220 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11221 * arm-tdep.c (arm_get_longjmp_target): New function.
11222 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11223 this to a positive value register arm_get_longjmp_target as the
11224 longjmp handler.
11225 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11226 (arm_linux_init_abi): Set up longjmp description in tdep.
11227 * armnbsd-nat.c (get_longjmp_target): Delete.
11228 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11229 description in tdep.
11230 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11231 (get_longjmp_target): Delete declaration.
11232 (GET_LONGJMP_TARGET): Delete.
11233 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11234 (GET_LONGJMP_TARGET): Delete.
11235
57bc8964
KB
112362002-02-17 Kevin Buettner <kevinb@redhat.com>
11237
11238 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11239 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11240 of ``current_gdbarch''.
11241
83d31a92
TT
112422002-02-17 Tom Tromey <tromey@redhat.com>
11243
11244 * cli/cli-cmds.c (compare_strings): New function.
11245 (complete_command): Only print each unique item once.
11246 * completer.h (complete_line): Declare.
11247 * completer.c (complete_line): New function.
11248 (line_completion_function): Use it.
11249
17ef5d92
AC
112502002-02-16 Andrew Cagney <ac131313@redhat.com>
11251
11252 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11253 * gdbarch.h, gdbarch.c: Re-generate.
11254
491b8946
DJ
112552002-02-16 Daniel Jacobowitz <drow@mvista.com>
11256
11257 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11258
112592002-02-16 Daniel Jacobowitz <drow@mvista.com>
11260
11261 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11262 * valops.c (value_arg_coerce): Don't take the address of a reference
11263 to convert an argument to a reference.
11264
dfe7f3ac
CF
112652002-02-15 Christopher Faylor <cgf@redhat.com>
11266
11267 * win32-nat.c (get_image_name): New function.
11268 (handle_load_dll): Use get_image_name function.
11269 (get_child_debug_event): Avoid registering debug events until possibly
11270 execed process is started.
11271 (child_create_inferior): Allow invocation via shell so that command
11272 line redirection, etc. works ok.
11273 (_initialize_inftarg): Add new command: "set shell" to control whether
11274 a shell is used to start a process.
11275
1d33e73a
DJ
112762002-02-15 Daniel Jacobowitz <drow@mvista.com>
11277
11278 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11279 instead of find_register_by_number.
11280 (cannot_store_register): Likewise.
11281
48cd0caa
PM
112822002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11283
aaa38bb5 11284 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11285 fprintf_unfiltered (gdb_stderr, ...).
11286
8656e7d8
DJ
112872002-02-15 Daniel Jacobowitz <drow@mvista.com>
11288
11289 * gdbserver/gdbserver.1: Document --attach.
11290
66e810cd
RE
112912002-02-15 Richard Earnshaw <rearnsha@arm.com>
11292
11293 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11294 descriptions.
11295 * arm-tdep.c (arm_default_arm_le_breakpoint)
11296 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11297 (arm_default_thumb_be_breakpoint): New. Initialize them from
11298 traditional breakpoint defines.
11299 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11300 (arm_gdbarch_init): Initialize new breakpoint variables.
11301 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11302 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11303 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11304 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11305 code out to ...
11306 (arm_netbsd_init_abi_common): ... here; new function.
11307 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11308 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11309 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11310 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11311
97e03143
RE
113122002-02-15 Richard Earnshaw <rearnsha@arm.com>
11313
11314 * arm-tdep.h (enum arm_abi): New enum.
11315 (struct gdbarch_tdep): New structure.
11316 (LOWEST_PC): Provide a default.
11317 (arm_gdbarch_register_os_abi): Declare new function.
11318 * arm-tdep.c (arm_abi_names): New array.
11319 (process_note_abi_tag_sections): New function.
11320 (get_elfosabi): New function.
11321 (arm_gdbarch_register_os_abi): New function.
11322 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11323 support for that ABI has been built in, then call the appropriate
11324 configuration routine. Use gdbarch_num_regs() to get the number
11325 of registers.
11326 (arm_dump_tdep): New function.
11327 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11328 place-holder functions.
11329 (_initialize_arm_tdep): Register them.
11330 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11331
11332 * armnbsd-tdep.c: New file.
11333 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11334 * config/arm/nbsd.mt (TDEPFILES): Add it.
11335 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11336
11337 * armnbsd-nat.c: Include regcache.h.
11338 * Makefile.in (armnbsd-nat.o): Update dependency list.
11339
11340 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11341
ad68be46
DJ
113422002-02-14 Daniel Jacobowitz <drow@mvista.com>
11343
11344 * gdbserver/Makefile.in: Fix typos in target rules.
11345
003d6d1d
DJ
113462002-02-14 Daniel Jacobowitz <drow@mvista.com>
11347
aaa38bb5 11348 Fix part of PR gdb/267.
003d6d1d
DJ
11349 * linespec.c (find_methods): Handle constructors specially for now.
11350
6b230f1b
CV
113512002-02-14 Corinna Vinschen <vinschen@redhat.com>
11352
11353 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11354 handling.
11355 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11356 standard_coerce_float_to_double().
11357
1ea98d12
CF
113582002-02-14 Christopher Faylor <cgf@redhat.com>
11359
11360 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11361 GDBINIT_FILENAME.
11362
dd47e6fd
EZ
113632002-02-14 Elena Zannoni <ezannoni@redhat.com>
11364
11365 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11366 find_variant_by_name, because it confuses the multiarch
11367 framework. Return NULL if there isn't an architecture with the
11368 user supplied name, instead of forcing a different one without
11369 recording the change with the multiarch machinery.
11370 (find_variant_by_name): Delete.
11371
d7e39b9e
PS
113722002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11373
11374 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11375 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11376
76e42a4f
MH
113772002-02-13 Martin M. Hunt <hunt@redhat.com>
11378
aaa38bb5 11379 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11380 print_frame_info_listing_hook, set current_source_symtab.
11381
0a30fbc4
DJ
113822002-02-14 Daniel Jacobowitz <drow@mvista.com>
11383
11384 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11385 and remove unused $(INCLUDE_DIR).
11386 Add regcache.c to OBS.
11387 Add generated register protocol files to clean target.
11388 Update dependencies for new objects, obsolete old target code.
11389
11390 * gdbserver/linux-low.c: Remove all platform-specific code to
11391 new files. Remove various dead code. Update to use regcache
11392 functionality.
11393 * gdbserver/remote-utils.c (fromhex): Add return statement
11394 to quiet warning.
11395 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11396 constant.
11397 (input_interrupt): Add integer parameter to match prototype
11398 of a signal handler.
11399 (outreg): Use register_data ().
11400 (prepare_resume_reply): Use gdbserver_expedite_regs.
11401 * gdbserver/server.c (main): Dynamically allocate own_buf because
11402 PBUFSIZ is no longer constant. Use registers_to_string () and
11403 registers_from_string ().
11404 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11405 for error (), fatal (), and warning (). Update definition of
11406 PBUFSIZ to use regcache functionality. Add include guard.
11407 * gdbserver/utils.c (fatal): Add missing ``const''.
11408 (warning): New function.
11409
11410 * regformats/regdat.sh: Include "regcache.h" in generated files.
11411 Provide init_registers () function.
11412 * regformats/regdef.h: Add prototype for set_register_cache ().
11413 Add include guard.
11414
11415 * gdbserver/linux-arm-low.c: New file.
11416 * gdbserver/linux-i386-low.c: New file.
11417 * gdbserver/linux-ia64-low.c: New file.
11418 * gdbserver/linux-m68k-low.c: New file.
11419 * gdbserver/linux-mips-low.c: New file.
11420 * gdbserver/linux-ppc-low.c: New file.
11421 * gdbserver/linux-sh-low.c: New file.
11422
11423 * gdbserver/regcache.c: New file.
11424 * gdbserver/regcache.h: New file.
11425
11426 * gdbserver/low-linux.c: Removed obsolete file.
11427
4cc841d0
DJ
114282002-02-14 Daniel Jacobowitz <drow@mvista.com>
11429
11430 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11431 * config/i386/linux.mt: Likewise.
11432 * config/ia64/linux.mt: Likewise.
11433 * config/m68k/linux.mh: Likewise.
11434 * config/powerpc/linux.mh: Likewise.
11435 * config/mips/linux.mt: Likewise.
11436
11437 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11438
11439 * config/i386/i386lynx.mh: Mark gdbserver variables
11440 as (currently) obsolete for this target.
11441 * config/i386/nbsd.mt: Likewise.
11442 * config/i386/nbsdelf.mt: Likewise.
11443 * config/m32r/m32r.mt: Likewise.
11444 * config/m68k/m68klynx.mh: Likewise.
11445 * config/m68k/nbsd.mt: Likewise.
11446 * config/m68k/sun3os4.mh: Likewise.
11447 * config/mips/vr5000.mt: Likewise.
11448 * config/ns32k/nbsd.mt: Likewise.
11449 * config/pa/hppabsd.mh: Likewise.
11450 * config/pa/hppaosf.mh: Likewise.
11451 * config/powerpc/nbsd.mt: Likewise.
11452 * config/rs6000/rs6000lynx.mh: Likewise.
11453 * config/s390/s390.mt: Likewise.
11454 * config/s390/s390x.mt: Likewise.
11455 * config/sparc/sparclynx.mh: Likewise.
11456 * config/sparc/sun4os4.mh: Likewise.
11457 * config/i386/x86-64linux.mt: Likewise.
11458 * config/sparc/linux.mh: Likewise.
11459
a85f51e7
DJ
114602002-02-14 Daniel Jacobowitz <drow@mvista.com>
11461
11462 * configure.tgt: Configure gdbserver only for known working
11463 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11464 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11465 SUBDIRS if it is configured. Update comment for ${nativefile}.
11466 * configure: Regenerated.
11467
65554fef
MS
114682002-02-13 Michael Snyder <msnyder@redhat.com>
11469
670a52db
MS
11470 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11471
6dbdc4a3
MS
11472 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11473 (default_gcore_mach): Just return 0, work around a problem in bfd.
11474 (default_gcore_target): OK to return NULL if exec_bfd is null.
11475 (make_mem_sec): Use a cast, avoid a warning.
11476
11477 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11478 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11479 sizeof (host pointer) != sizeof (target pointer)).
11480 (procfs_make_note_section): Avoid overflow in psargs string.
11481
aaa38bb5 11482 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11483 implementation return an error.
11484
114852002-02-13 Rodney Brown <rbrown64@csc.com.au>
11486
11487 * procfs.c (procfs_make_note_section): Provide a default definition
11488 (for alpha-dec-osf4.0f). Fix typos.
11489
1e4d76e7
EZ
114902002-02-13 Elena Zannoni <ezannoni@redhat.com>
11491
11492 * linux-proc.c: Add include of regcache.h.
11493 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11494
b6d1a1d5
AC
114952002-02-13 Andrew Cagney <ac131313@redhat.com>
11496
11497 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11498 * memattr.c (create_mem_region): Disallow useless empty region.
11499 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11500 non-overlapping.
b6d1a1d5 11501
6c6ea35e
MC
115022002-02-13 Michael Chastain <mec@shout.net>
11503
11504 * defs.h: Kill CONST_PTR.
11505 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11506 * c-lang.c (c_builtin_types): Likewise.
11507 * ch-lang.c (ch_builtin_types): Likewise.
11508 * f-lang.c (f_builtin_types): Likewise.
11509 * language.c (unknown_builtin_types): Likewise.
11510 * m2-lang.c (m2_builtin_types): Likewise.
11511 * p-lang.c (pascal_builtin_types): Likewise.
11512 * scm-lang.c (c_builtin_types): Likewise.
11513
3e0b0f48
KS
115142002-02-13 Keith Seitz <keiths@redhat.com>
11515
11516 * arm-tdep.h (arm_get_next_pc): Add declaration.
11517
67255d04
RE
115182002-02-13 Richard Earnshaw <rearnsha@arm.com>
11519
11520 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11521 with other related struct-returning functions.
11522 (arm_extract_struct_value_address): New function.
11523 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11524 initialize float_format, double_format and long_double_format as
11525 appropriate to the endianness of the target.
11526 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11527 (arm_use_struct_convention): Delete declaration.
11528 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11529
079777f6
KS
115302002-02-13 Keith Seitz <keiths@redhat.com>
11531
11532 * defs.h (core_addr_to_string_nz): New function.
11533
34588f23
MK
115342002-02-13 Mark Kettenis <kettenis@gnu.org>
11535
11536 Apply missing bits of 2002-01-15 patch.
11537 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11538 (fill_fpregset): Use i387_fill_fsave.
11539
49b563f9
KS
115402002-02-12 Keith Seitz <keiths@redhat.com>
11541
49b563f9
KS
11542 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11543 (core_addr_to_string_nz): New function.
11544
aeb98c60
RE
115452002-02-11 Richard Earnshaw <rearnsha@arm.com>
11546
11547 * arm-linux-nat.c: Really include arm-tdep.h.
11548 * config/arm/tm-linux.h (struct type, struct value): Declare.
11549
65554fef
MS
115502002-02-11 Michael Snyder <msnyder@redhat.com>
11551
11552 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11553 (gcore section): Ifdef for Solaris and Unixware only.
11554 (procfs_do_thread_registers): Unixware needs one lwpstatus
11555 per thread (not one prstatus or pstatus).
11556 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11557 not over all gdb threads. For unixware, call elfcore_write_pstatus
11558 once before iterating over threads.
11559
34e8f22d
RE
115602002-02-11 Richard Earnshaw <rearnsha@arm.com>
11561
11562 * arm-tdep.h: New file.
11563 * arm-tdep.c: Include arm-tdep.h.
11564 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11565 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11566 (arm_print_float_info, arm_register_type, convert_to_extended)
11567 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11568 (arm_extract_return_value, arm_register_name): Make static.
11569 (arm_software_single_step): Similarly. Fix types in declaration.
11570 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11571 (arm_store_return_value, arm_store_struct_return): New functions.
11572 (arm_gdbarch_init): Register the above functions. Also register
11573 call_dummy_start_offset, sizeof_call_dummy_words,
11574 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11575 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11576 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11577 prologue_cache.saved_regs here, rather than ...
11578 (_initialize_arm_tdep): ... here.
11579 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11580 declarations.
11581 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11582 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11583 (arm_print_float_info, arm_register_type, convert_to_extended)
11584 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11585 (arm_extract_return_value, arm_register_name): Delete declarations.
11586 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11587 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11588 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11589 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11590 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11591 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11592 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11593 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11594 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11595 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11596 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11597 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11598 interface.
11599 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11600 * remote-rdi.c remote-rdp.c: Likewise.
11601 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11602 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11603 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11604 definition.
11605
11606 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11607 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11608 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11609 from non-ARM_ prefixed definitions.
11610 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11611 all uses of above.
11612 * remote-rdi.c remote-rdp.c: Likewise.
11613 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11614
148754e5
RE
116152002-02-11 Richard Earnshaw <rearnsha@arm.com>
11616
11617 * arm-tdep.c (arm_frameless_function_invocation)
11618 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11619 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11620 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11621 (arm_pop_frame, arm_get_next_pc): Make static.
11622 (arm_gdbarch_init): Register above in gdbarch structure.
11623 (arm_read_fp): Renamed from arm_target_read_fp.
11624 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11625 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11626 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11627 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11628 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11629 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11630 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11631 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11632 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11633 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11634 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11635
434d2d4f
DJ
116362002-02-10 Daniel Jacobowitz <drow@mvista.com>
11637
11638 * symtab.c (compare_search_syms): New function.
11639 (sort_search_symbols): New function.
11640 (search_symbols): Sort symbols after searching rather than
11641 before.
11642
55241689
AC
116432002-02-10 Andrew Cagney <ac131313@redhat.com>
11644
11645 * NEWS: Linux -> GNU/Linux.
11646
028c194b
AC
116472002-02-10 Andrew Cagney <ac131313@redhat.com>
11648
11649 * gdbarch.sh: For for level one methods, disallow a definition
11650 when partially multi-arched. Add comments explaining rationale.
11651 * gdbarch.h: Re-generate.
11652
6acf50cd
AC
116532002-02-10 Andrew Cagney <ac131313@redhat.com>
11654
11655 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11656 multi-arch partial.
aaa38bb5 11657
50248794
AC
116582002-02-10 Andrew Cagney <ac131313@redhat.com>
11659
11660 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11661 field. Use diff -u.
11662 * gdbarch.c: Re-generate.
11663
c30e0066
AC
116642002-02-10 Andrew Cagney <ac131313@redhat.com>
11665
9b56c5f3 11666 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11667 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11668 partial.
11669
6e6d6484
AC
116702002-02-10 Andrew Cagney <ac131313@redhat.com>
11671
11672 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11673 multi-arch partial.
11674 (PUSH_ARGUMENTS): Switch to using predefault.
11675 * gdbarch.c: Regenerate.
11676
c203844d
AC
116772002-02-10 Andrew Cagney <ac131313@redhat.com>
11678
11679 * valops.c (PUSH_ARGUMENTS): Delete definition.
11680 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11681 partial. Default to default_push_arguments.
11682 * gdbarch.h, gdbarch.c: Regenerate.
11683
b5a2688f
AC
116842002-02-09 Andrew Cagney <ac131313@redhat.com>
11685
11686 * defs.h (throw_exception): Rename return_to_top_level. Update
11687 comments.
11688 * utils.c (error_stream, internal_verror, quit): Ditto.
11689 * top.c (throw_exception, catcher): Ditto.
11690 * sparclet-rom.c (sparclet_load): Ditto.
11691 * remote.c (interrupt_query, minitelnet): Ditto.
11692 * remote-sds.c (interrupt_query): Ditto.
11693 * remote-mips.c (mips_error, mips_kill): Ditto.
11694 * ocd.c (interrupt_query): Ditto.
11695 * monitor.c (monitor_interrupt_query): Ditto.
11696 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11697 * target.h: Update comment.
aaa38bb5 11698
b5a2688f 11699 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11700
2fa5c1e0
AC
117012002-02-09 Andrew Cagney <ac131313@redhat.com>
11702
11703 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11704 default_double_format.
11705 * gdbarch.h, gdbarch.c: Re-generate.
11706 * findvar.c (floatformat_unknown): Delete variable definition.
11707 * doublest.h (floatformat_unknown): Delete variable declaration.
11708
da966255
JB
117092002-02-09 Jim Blandy <jimb@redhat.com>
11710
11711 * stabsread.c (read_type): Add code to parse Sun's syntax for
11712 prototyped function types.
11713
123a4891
AC
117142002-02-09 Andrew Cagney <ac131313@redhat.com>
11715
11716 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11717 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11718
fb39c8f3
PS
117192002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11720
11721 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11722 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11723 now _initialize_xcoffsolib gets called again and overrides the
11724 commands from solib.c in a native configuration.
11725
0b87a11d
MK
117262002-02-09 Mark Kettenis <kettenis@gnu.org>
11727
11728 * doublest.c (store_typed_floating): Don't try to return a value.
11729 Fixes PR gdb/290.
11730
bdc2fc72
JB
117312002-02-08 Jim Blandy <jimb@redhat.com>
11732
11733 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11734 is prototyped and has no arguments, print its argument list as
11735 `(void)'.
11736
da69bbcf
CD
117372002-02-08 Chris Demetriou <cgd@broadcom.com>
11738
11739 * MAINTAINERS (write-after-approval): Add myself.
11740 (paper-trail): I've escaped!
aaa38bb5 11741
b69571f5
CF
117422002-02-08 Christopher Faylor <cgf@redhat.com>
11743
11744 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11745 changes.
11746 (_initialize_check_for_gdb_ini): Ditto.
11747
f6871398
MH
117482002-02-08 Martin M. Hunt <hunt@redhat.com>
11749
11750 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11751 xaprintf -> xasprintf.
11752
4e52d31c
PM
117532002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11754
11755 * win32-nat.c: Remove use of printf and sprintf functions.
11756
39bbf761
RE
117572002-02-08 Richard Earnshaw <rearnsha@arm.com>
11758
11759 * arm-tdep.c (arm_frame_chain_valid): Make static.
11760 (arm_push_arguments): Likewise.
11761 (arm_gdbarch_init): New function.
11762 (_initialize_arm_tdep): Call it.
11763 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11764 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11765 (FRAME_CHAIN_VALID): Delete.
11766 (arm_frame_chain_valid): Delete declaration.
11767 (PUSH_ARGUMENTS): Delete.
11768 (arm_push_arguments): Delete declaration.
11769 (CALL_DUMMY_P): Delete.
11770
9c9532c9
CV
117712002-02-08 Andrew Cagney <ac131313@redhat.com>
11772 Corinna Vinschen <vinschen@redhat.com>
11773
11774 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11775 on builtin float types.
11776
4e8f7a8b
DJ
117772002-02-08 Daniel Jacobowitz <drow@mvista.com>
11778
11779 * utils.c: Include <curses.h> before "bfd.h".
11780 * tui/tui-hooks.c: Likewise.
11781 * tui/tui.c: Likewise.
11782 * tui/tuiCommand.c: Likewise.
11783 * tui/tuiData.c: Likewise.
11784 * tui/tuiDataWin.c: Likewise.
11785 * tui/tuiDisassem.c: Likewise.
11786 * tui/tuiGeneralWin.c: Likewise.
11787 * tui/tuiIO.c: Likewise.
11788 * tui/tuiLayout.c: Likewise.
11789 * tui/tuiRegs.c: Likewise.
11790 * tui/tuiSource.c: Likewise.
11791 * tui/tuiSourceWin.c: Likewise.
11792 * tui/tuiStack.c: Likewise.
11793 * tui/tuiWin.c: Likewise.
11794
cd4bffcf
EZ
117952002-02-07 Elena Zannoni <ezannoni@redhat.com>
11796
11797 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11798 to include space for pseudoregs as well. Update loops accordingly.
11799 (sh_fp_frame_init_saved_regs): Ditto.
11800 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11801
26806ce2
AC
118022002-02-07 Andrew Cagney <ac131313@redhat.com>
11803
11804 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11805 Add Richard Earnshaw to Arm maintainers.
11806
97fdab62
AC
118072002-02-07 Andrew Cagney <ac131313@redhat.com>
11808
a6b98203
AC
11809 * defs.h (warning_begin): Delete declaration.
11810
97fdab62
AC
11811 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11812 Delete macro.
11813
78b29b40
MS
118142002-02-07 Michael Snyder <msnyder@redhat.com>
11815
aaa38bb5 11816 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
11817 Logic bug, remove misplaced else.
11818
d8849953
KD
118192002-02-07 Klee Dienes <klee@apple.com>
11820
11821 * fork-inferior.c (fork_inferior): Add '!' to the list of
11822 characters that need to be quoted when building a string for the
11823 shell. Quote '!' specifically with a backslash, since CSH chokes
11824 when trying to evaluate "str!str".
aaa38bb5 11825
095778a0
NC
118262002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11827
11828 * rdi-share/host.h: Only provide a typedef for bool if it is not
11829 defined.
11830
1900040c
MS
118312002-02-04 Michael Snyder <msnyder@redhat.com>
11832
11833 * breakpoint.h (enum bptype): Add new overlay event bp type.
11834 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 11835
1900040c
MS
11836 * breakpoint.c (create_internal_breakpoint): New function.
11837 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11838 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11839 (create_thread_event_breakpoint): Ditto.
11840 (create_solib_event_breakpoint): Ditto.
11841 (create_overlay_event_breakpoint): New function.
11842 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11843 (update_breakpoints_after_exec): Delete and re-initialize
11844 overlay event breakpoints after an exec. Add FIXME comment
11845 about longjmp breakpoint.
11846 (print_it_typical): Ignore overlay event breakpoints.
11847 (print_one_breakpoint): Ditto.
11848 (mention): Ditto.
11849 (bpstat_what): Do not stop for overlay event breakpoints.
11850 (delete_breakpoint): Don't delete overlay event breakpoints.
11851 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11852 (breakpoint_re_set): Re-create overlay event breakpoint.
11853
11854 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11855 (overlay_manual_command): Disable overlay breakpoints.
11856 (overlay_off_command): Disable overlay breakpoints.
11857
082fc60d
RE
118582002-02-06 Richard Earnshaw <rearnsha@arm.com>
11859
11860 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11861 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11862 to here from config/tm-arm.h.
11863 (coff_sym_is_thumb): Make static.
11864 (arm_elf_make_msymbol_special): New function.
11865 (arm_coff_make_msymbol_special): New function.
11866 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11867 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11868 (coff_sym_is_thumb): Delete declaration.
11869 (arm_elf_make_msymbol_special): Declare.
11870 (arm_coff_make_msymbol_special): Declare.
11871 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11872 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11873
039c5766
RE
118742002-02-06 Richard Earnshaw <rearnsha@arm.com>
11875
11876 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11877
118782002-02-06 Richard Earnshaw <rearnsha@arm.com>
11879
11880 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11881 * gdbarch.c gdbarch.h: Regenerate.
11882 * arch-utils.c (default_print_float_info): New function.
11883 * arch-utils.h (default_print_float_info): Prototype it.
11884 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11885 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11886 (PRINT_FLOAT_INFO): Document it.
11887
11888 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11889 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11890 (PRINT_FLOAT_INFO): Define.
11891
58fa08f0
PM
118922002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11893
aaa38bb5 11894 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
11895 Add typecast to sprintf argument to suppress a warning.
11896
7393af7c
PM
118972002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11898
58fa08f0 11899 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
11900 to allow easier handling of pass state.
11901 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11902 that gives exception name and address.
11903 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 11904 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 11905 exceptions added.
aaa38bb5
AJ
11906 (child_continue): Correctly report continue_status.
11907 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 11908 TARGET_SIGNAL_0 (new default value).
aaa38bb5 11909 (child_resume): consider sig argument passed to decide if
7393af7c
PM
11910 the exception should be passed to debuggee or not.
11911
6af4589c
MS
119122002-02-05 Michael Snyder <msnyder@redhat.com>
11913
11914 * regcache.c (fetch_register): Call target_fetch_register
11915 only if we don't call FETCH_PSEUDO_REGISTER.
11916 (store_register): Call target_store_register only if we
11917 don't call STORE_PSEUDO_REGISTER.
11918
a2cf933a
EZ
119192002-02-05 Elena Zannoni <ezannoni@redhat.com>
11920
11921 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11922 ELF_MAKE_MSYMBOL_SPECIAL.
11923 * gdbarch.c, gdbarch.h: Regenerate.
11924 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 11925 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
11926 * elfread.c (elf_symtab_read): Compile use of
11927 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11928 multiarched.
11929 * coffread.c (coff_symtab_read): Ditto, for
11930 COFF_MAKE_MSYMBOL_SPECIAL.
11931
6bb7be43
JB
119322002-02-05 Jim Blandy <jimb@redhat.com>
11933
11934 * solib-svr4.c (svr4_truncate_ptr): New function.
11935 (svr4_relocate_section_addresses): Do the address arithmetic with
11936 the appropriate truncation for target addresses, even when
11937 CORE_ADDR is larger than a target address.
11938
e18651ec
DJ
119392002-02-05 Daniel Jacobowitz <drow@mvista.com>
11940
11941 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11942 to (int *).
11943
6b2725be
DJ
119442002-02-05 Daniel Jacobowitz <drow@mvista.com>
11945
11946 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11947 code.
11948
fca9e603
DJ
119492002-02-05 Daniel Jacobowitz <drow@mvista.com>
11950
11951 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11952
6c537a52
DJ
119532002-02-05 Daniel Jacobowitz <drow@mvista.com>
11954
11955 * gdbserver/linux-low.c: Remove unused include files.
11956
d844cde6
DJ
119572002-02-05 Daniel Jacobowitz <drow@mvista.com>
11958
11959 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11960 (read_inferior_memory): Use it.
11961 (write_inferior_memory): Likewise.
11962
d07c63e7
DJ
119632002-02-05 Daniel Jacobowitz <drow@mvista.com>
11964
11965 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11966 grubbing through sys_errlist.
11967
da6d8c04
DJ
119682002-02-05 Daniel Jacobowitz <drow@mvista.com>
11969
11970 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11971
5b421780
PM
119722002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11973 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11974
9f60d481
AC
119752002-02-04 Andrew Cagney <ac131313@redhat.com>
11976
11977 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11978 (do_sfunc, set_cmd_sfunc): New functions.
11979
11980 * command.h (struct cmd_list_element): Add field func.
11981 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11982 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11983 * cli/cli-decode.h: Ditto.
11984
11985 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11986 (help_all, help_cmd_list): Ditto.
11987 (find_cmd, complete_on_cmdlist): Ditto.
11988 * top.c (execute_command): Ditto.
11989
11990 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11991 function.sfunc.
11992
11993 * infcmd.c (notice_args_read): Fix function signature.
11994
11995 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11996 * cli/cli-decode.c (add_set_cmd): Ditto.
11997 * utils.c (initialize_utils): Ditto.
11998 * maint.c (_initialize_maint_cmds): Ditto.
11999 * infrun.c (_initialize_infrun): Ditto.
12000 * demangle.c (_initialize_demangler): Ditto.
12001 * remote.c (add_packet_config_cmd): Ditto.
12002 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12003 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12004 * proc-api.c (_initialize_proc_api): Ditto.
12005 * kod.c (_initialize_kod): Ditto.
12006 * valprint.c (_initialize_valprint): Ditto.
12007 * top.c (init_main): Ditto.
12008 * infcmd.c (_initialize_infcmd): Ditto.
12009 * corefile.c (_initialize_core): Ditto.
12010 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12011 * arch-utils.c (initialize_current_architecture): Ditto.
12012 (_initialize_gdbarch_utils): Ditto.
12013 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12014
12015 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12016 * wince.c (_initialize_inftarg): Ditto.
12017 * symfile.c (_initialize_symfile): Ditto.
12018 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12019 * language.c (_initialize_language): Ditto.
12020 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12021
f9ba0717
MS
120222002-02-04 Michael Snyder <msnyder@redhat.com>
12023
12024 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12025
0c74b2a7
DJ
120262002-02-04 Daniel Jacobowitz <drow@mvista.com>
12027
12028 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12029 Add rules for building the register data files.
12030
c638789f
DJ
120312002-02-04 Daniel Jacobowitz <drow@mvista.com>
12032
12033 * regformats/regdat.sh: Add braces to the definition of
12034 expedite_regs_${arch}.
12035
db253027
DJ
120362002-02-04 Daniel Jacobowitz <drow@mvista.com>
12037
12038 * regformats/regdef.h (struct reg): Add comment describing the
12039 requirements for offset and size fields.
12040
206be19c
AS
120412002-02-04 Andreas Schwab <schwab@suse.de>
12042
12043 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12044 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12045
181c1381
RE
120462002-02-04 Richard Earnshaw <rearnsha@arm.com>
12047
12048 * gdbarch.sh (copyright): Update years in generated header.
12049 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12050 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12051 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12052 * dbxread.c: Likewise.
12053 * dwarfread.c: Likewise.
12054 * elfread.c: Likewise.
12055 * somread.c: Likewise.
12056
12057 * arm-tdep.c (arm_smash_text_address): New function.
12058 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12059
fa4ba8da
PM
120602002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12061
12062 Add support for hardware watchpoints on win32 native.
aaa38bb5 12063 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12064 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12065 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12066 of debug registers.
12067 (debug_registers_changed): New variable. Reflects when debug registers
12068 are changed and need to be written to inferior.
aaa38bb5 12069 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12070 was set, used when new threads are created.
12071 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12072 i386-nat code.
12073 (thread_rec): Set dr array if id is the thread of current_event .
12074 (child_continue, child_resume): Change the debug registers for all
12075 threads if debug_registers_changed.
12076 (child_add_thread): Change the debug registers if debug_registers_used.
12077 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12078 Link nm.h to new nm-cygwin.h file.
12079 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12080 of hardware registers.
12081
a73c86fb
AC
120822002-02-03 Andrew Cagney <ac131313@redhat.com>
12083
12084 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12085 Restore behavour broken by 2002-01-20 Andrew Cagney
12086 <ac131313@redhat.com> IEEE_FLOAT removal.
12087
acf5ed49
DJ
120882002-02-03 Daniel Jacobowitz <drow@mvista.com>
12089
12090 * c-valprint.c (c_val_print): Pass a proper valaddr to
12091 cp_print_class_method.
12092 * valops.c (search_struct_method): If there is only one method
12093 and args is NULL, return that method.
12094
493d28d5
DJ
120952002-02-03 Daniel Jacobowitz <drow@mvista.com>
12096
12097 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12098 accessing tag_name directly.
12099
7495dfdb
DJ
121002002-02-03 Daniel Jacobowitz <drow@mvista.com>
12101
12102 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12103 of accessing tag_name directly.
12104
dd6bda65
DJ
121052002-02-03 Daniel Jacobowitz <drow@mvista.com>
12106
12107 PR gdb/280
12108 * gdbtypes.c (replace_type): New function.
12109 * gdbtypes.h (replace_type): Add prototype.
12110 * stabsread.c (read_type): Use replace_type.
12111
88fe217c
RE
121122002-02-03 Richard Earnshaw <rearnsha@arm.com>
12113
12114 * Makefile.in (memattr.o): Add missing dependencies rule.
12115
e5d66720
PS
121162002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12117
12118 * breakpoint.c (break_at_finish_command): Really export.
12119 (break_at_finish_at_depth_command): Ditto.
12120 (tbreak_at_finish_command): Ditto.
12121 * hppa-tdep.c: Include completer.h.
12122 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12123 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12124
fffee0be
AC
121252002-02-01 Andrew Cagney <ac131313@redhat.com>
12126
12127 * utils.c (do_write): New function.
12128 (error_stream): Rewrite combining the code from error_begin and
12129 verror.
12130 (verror): Rewrite using error_stream.
12131 (error_begin): Delete function.
12132
255e7dbf
AC
121332002-02-01 Andrew Cagney <ac131313@redhat.com>
12134
12135 * utils.c (error_begin): Make static.
12136 * defs.h (error_begin): Delete declaration.
12137
12138 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12139 (decode_line_1): Use cplusplus_error instead of error_begin,
12140 cplusplus_hint and return_to_top_level.
12141 * coffread.c (coff_symfile_read): Use error instead of error_begin
12142 and return_to_top_level.
12143 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12144
ddfe3c15
AC
121452002-02-01 Andrew Cagney <ac131313@redhat.com>
12146
12147 * language.h (type_error, range_error): Make string parameter
12148 constant.
12149 * language.c (warning_pre_print): Delete extern declaration.
12150 * dwarfread.c (warning_pre_print): Ditto.
12151 * language.c (type_error, range_error): Rewrite to use verror and
12152 vwarning instead of warning_begin.
12153
03ac34d5
MS
121542002-02-01 Michael Snyder <msnyder@redhat.com>
12155
261c4ca2
MS
12156 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12157 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12158
e00d1dc8
AC
121592002-02-01 Andrew Cagney <ac131313@redhat.com>
12160
12161 * command.h (NO_FUNCTION): Delete macro.
12162 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12163 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12164 * tracepoint.c (_initialize_tracepoint): Ditto.
12165 * cli/cli-decode.c (add_set_cmd): Ditto.
12166 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12167
76b79d6e
DJ
121682002-02-01 Daniel Jacobowitz <drow@mvista.com>
12169
12170 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12171 Update ``this'' pointer when calling virtual functions.
12172
799f9e91
MS
121732002-02-01 Michael Snyder <msnyder@redhat.com>
12174
c7bd442c 12175 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12176 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12177
3cf384d4
DJ
121782002-02-01 Daniel Jacobowitz <drow@mvista.com>
12179
12180 * regformats/reg-arm.dat: New file.
12181 * regformats/reg-i386.dat: New file.
12182 * regformats/reg-ia64.dat: New file.
12183 * regformats/reg-m68k.dat: New file.
12184 * regformats/reg-mips.dat: New file.
12185 * regformats/reg-ppc.dat: New file.
12186 * regformats/reg-sh.dat: New file.
12187 * regformats/regdef.h: New file.
12188 * regformats/regdat.sh: New file.
12189
0defa245
RE
121902002-02-01 Richard Earnshaw <reanrsha@arm.com>
12191
12192 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12193 (arm_frame_args_address, arm_frame_locals_address): New functions.
12194 (arm_frame_num_args): New function.
12195 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12196 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12197 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12198
405f26e6
MS
121992002-01-31 Michael Snyder <msnyder@redhat.com>
12200
502fd408
MS
12201 * breakpoint.c (break_at_finish_command): Export.
12202 (break_at_finish_at_depth_command): Export.
12203 (tbreak_at_finish_command): Export.
d6020d45 12204 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12205 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12206 "txbreak" commands, which are HPPA specific.
502fd408 12207
7d35e135
MS
12208 * printcmd.c (disassemble_command): Remove an ancient
12209 artifact of an old merge.
12210
aaa38bb5 12211 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12212 Define enum constant values for overlay mode.
12213 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12214 (overlay_is_mapped, overlay_auto_command,
12215 overlay_manual_command): Ditto.
d874f1e2 12216
aaa38bb5
AJ
12217 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12218 breakpoint_here_p, breakpoint_inserted_here_p,
12219 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12220 describe_other_breakpoints, check_duplicates, clear_command):
12221 Coding standard fixes.
12222
8add0441 12223 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12224 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12225 code: check bfd SEC_READONLY flag for section.
12226
e351066e
AC
122272002-01-31 Andrew Cagney <ac131313@redhat.com>
12228
7d35e135 12229 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12230
8a48e967
DJ
122312002-01-30 Daniel Jacobowitz <drow@mvista.com>
12232
12233 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12234 data symbols, since we search based on textlow and texthigh.
12235 (find_pc_sect_symtab): Likewise.
12236
f5a96129
AC
122372002-01-30 Andrew Cagney <ac131313@redhat.com>
12238
12239 * defs.h (vwarning): Declare.
f5a96129
AC
12240 * utils.c (vwarning): New function.
12241 (warning): Call vwarning.
12242 (warning_begin): Delete function.
12243
12244 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12245 the warning message.
12246 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12247 warning_begin.
12248
cefd4ef5
MS
122492002-01-30 Michael Snyder <msnyder@redhat.com>
12250
1a703748
MS
12251 * NEWS: Mention "set trust-readonly-sections" command.
12252 Mention generate-core-file command.
cefd4ef5 12253
3a11626d
MS
122542002-01-15 Michael Snyder <msnyder@redhat.com>
12255
12256 * target.c: New command, "set trust-readonly-sections on".
12257 (do_xfer_memory): Honor the suggestion to trust readonly sections
12258 by reading them from the object file instead of from the target.
12259 (initialize_targets): Register command "set trust-readonly-sections".
12260
d1c7e53b
AC
122612002-01-29 Andrew Cagney <ac131313@redhat.com>
12262
12263 * parse.c (target_map_name_to_register): Simplify, search regs and
12264 pseudo-regs using a single loop.
12265
e2c9a72c
AC
122662002-01-30 Andrew Cagney <ac131313@redhat.com>
12267
12268 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12269
69824b4e
MK
122702002-01-15 Rodney Brown <rbrown64@csc.com.au>
12271
12272 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12273 * config/i386/i386v42mp.mh: Add i387-nat.o .
12274 * i386v4-nat.c: Include i387-nat.h.
12275 (supply_fpregset): Use i387_supply_fsave.
12276 (fill_fpregset): Use i387_fill_fsave.
12277
6eb69eab
RE
122782002-01-30 Richard Earnshaw <rearnsha@arm.com>
12279
12280 * arm-tdep.c (arm_call_dummy_words): Define.
12281 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12282 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12283 (CALL_DUMMY_WORDS): Define.
12284 (arm_call_dummy_words): Declare.
12285 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12286 (arm_linux_call_dummy_words): Declare.
12287
9852326a
AS
122882002-01-30 Andreas Schwab <schwab@suse.de>
12289
12290 * m68klinux-nat.c: Fix last change to use regcache_collect
12291 instead of referencing registers[] directly.
12292
977a3030
AC
122932002-01-29 Andrew Cagney <ac131313@redhat.com>
12294
12295 * parse.c (target_map_name_to_register): Delete code wrapped in
12296 #ifdef REGISTER_NAME_ALIAS_HOOK.
12297
2076c72b
MS
122982002-01-28 Michael Snyder <msnyder@redhat.com>
12299
12300 * regcache.c (legacy_read_register_gen): Need to be able to
12301 read pseudo-register as well as real register.
12302 (legacy_write_register_gen): Ditto.
12303
8fcc723b
AC
123042002-01-28 Andrew Cagney <ac131313@redhat.com>
12305
12306 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12307 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12308 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12309 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12310 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12311 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12312 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12313 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12314 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12315 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12316 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12317 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12318 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12319 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12320 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12321 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12322 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12323 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12324 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12325 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12326
afe64c1a
AC
123272002-01-28 Andrew Cagney <ac131313@redhat.com>
12328
12329 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12330 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12331 (initialize_current_architecture): Update target_byte_order using
12332 information from BFD.
aaa38bb5 12333 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12334 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12335
75bc7ddf
AC
123362002-01-28 Andrew Cagney <ac131313@redhat.com>
12337
12338 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12339 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12340
12341 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12342 #ifdef INVALID_FLOAT.
12343 * infcmd.c (do_registers_info): Ditto.
12344 * values.c (unpack_double): Ditto. Add comment.
12345
12346 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12347 already commented out.
12348
0280a90a
AS
123492002-01-26 Andreas Schwab <schwab@suse.de>
12350
12351 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12352 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12353 registers and add support for PTRACE_GETREGS.
12354
7072a954
AC
123552002-01-24 Andrew Cagney <ac131313@redhat.com>
12356
12357 GDB 5.1.1 released from 5.1 branch.
12358 * NEWS: Add 5.1.1 news.
12359 * README: Sync with 5.1 branch.
12360
86f902e0
FF
123612002-01-23 Fred Fish <fnf@redhat.com>
12362
12363 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12364 stabstring on initial malloc. Reallocing will copy it for us,
12365 if necessary.
12366
8af51c36
EZ
123672002-01-23 Elena Zannoni <ezannoni@redhat.com>
12368
aaa38bb5 12369 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12370 (HFILES_NO_SRCDIR): Remove hpread.h.
12371 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12372 (hpread.o): Update dependencies.
12373 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12374
12375 * hp-psymtab-read.c: Remove file.
12376 * hp-symtab-read.c: Remove file.
12377 * hpread.h: Remove file.
12378
12379 * hpread.c: Merge all contents of hp-psymtab-read.c,
12380 hp-symtab-read.c and hpread.h into this file, as it was prior to
12381 January 1999.
12382
12383 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12384 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12385 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12386 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12387
dc5cfeb6
EZ
123882002-01-23 Elena Zannoni <ezannoni@redhat.com>
12389
12390 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12391 fill_gregset): Call gdbarch_tdep() just once, assign result to
12392 variable and use that, instead of calling the function several
12393 times.
12394
ea87b71b
AO
123952002-01-24 Alexandre Oliva <aoliva@redhat.com>
12396
12397 * configure.host: Accept sparcv9 as alias for sparc64.
12398 * configure.tgt: Likewise.
12399
13fc0c2f
KB
124002002-01-22 Kevin Buettner <kevinb@redhat.com>
12401
12402 * solib-aix5.c (build_so_list_from_mapfile)
12403 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12404 arguments is not reversed.
12405 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12406 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12407
7bd872fe
EZ
124082002-01-22 Elena Zannoni <ezannoni@redhat.com>
12409
12410 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12411 modified version of obsolete sh_fetch_pseudo_register.
12412 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12413 (sh4_register_read): New function.
12414 (sh_pseudo_register_write): New function. Renamed and modified
12415 version of obsolete sh_store_pseudo_register.
12416 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12417 (sh4_register_write): New function.
12418 (sh_gdbarch_init): Remove setting of gdbarch function
12419 fetch_pseudo_register and store_pseudo_register. Remove setting of
12420 register_convert_to_raw, register_convert_to_virtual,
12421 register_convertible.
12422 (sh_sh4_register_convertible): Delete. No longer needed. All is
12423 taken care by architecture specific functions
12424 register_read/register_write.
12425 (sh_sh4_register_convert_to_virtual): Make static.
12426 (sh_sh4_register_convert_to_raw): Ditto.
12427
069e84fd
AC
124282002-01-22 Andrew Cagney <ac131313@redhat.com>
12429
12430 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12431 (floatformat_is_nan, floatformat_mantissa): Ditto.
12432
12433 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12434 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12435 builtin_type_ieee_double_little,
12436 builtin_type_ieee_double_littlebyte_bigword,
12437 builtin_type_m68881_ext, builtin_type_i960_ext,
12438 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12439 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12440 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12441 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12442
211a4f69
CV
124432002-01-22 Corinna Vinschen <vinschen@redhat.com>
12444
12445 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12446 parameter. Set frameless flag if it exists and depended of
12447 whether the scanned function is frameless or not.
12448 (xstormy16_skip_prologue): If function is frameless, return
12449 result of xstormy16_scan_prologue().
12450 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12451 call.
12452
f81353e4
EZ
124532002-01-21 Elena Zannoni <ezannoni@redhat.com>
12454
12455 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12456 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12457 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12458 sh_sh4_register_byte, sh_sh4_register_raw_size,
12459 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12460 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12461 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12462 sh_store_pseudo_register, sh_do_pseudo_register): Call
12463 gdbarch_tdep() just once, assign result to variable and use that,
12464 instead of calling the function several times.
12465
63c73a17
MK
124662002-01-20 Mark Kettenis <kettenis@gnu.org>
12467
12468 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12469 macros instead of LAST_FPU_CTRL_REGNUM.
12470 (store_register): Likewise.
12471
39ad761d
JB
124722002-01-21 Jim Blandy <jimb@redhat.com>
12473
12474 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12475 is up-to-date before running the program, not just when a program
12476 exits.
12477
3d74b771
FF
124782002-01-21 Fred Fish <fnf@redhat.com>
12479
12480 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12481 when we have found all instructions we are looking for.
12482
966fbf70
RE
124832002-01-21 Richard Earnshaw <rearnsha@arm.com>
12484
12485 * arm-tdep.c (arm_register_name): New function.
12486 (arm_registers_names): Make static.
12487 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12488 (arm_register_name): Declare.
12489 (REGISTER_NAME): Use it.
12490
c3b4394c
RE
124912002-01-21 Richard Earnshaw <rearnsha@arm.com>
12492 Kevin Buettner <kevinb@redhat.com>
12493
12494 Convert arm targets to new FRAME interface.
12495 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12496 (arm_frame_find_save_regs): Delete.
12497 (arm_frame_init_saved_regs): New.
12498 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12499 Allocate extra_info as required. Convert all uses of fsr.regs
12500 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12501 to use extra_info.
12502 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12503 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12504 (check_prologue_cache, save_prologue_cache): Likewise.
12505 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12506 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12507 (FRAME_FIND_SAVED_REGS): Delete.
12508 (arm_frame_find_saved_regs): Delete prototype.
12509 (arm_frame_init_saved_regs): New prototype.
12510 (FRAME_INIT_SAVED_REGS): Define.
12511
61d99182
AC
125122002-01-20 Andrew Cagney <ac131313@redhat.com>
12513
12514 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12515
6aaea291
AC
125162002-01-20 Andrew Cagney <ac131313@redhat.com>
12517
12518 From Jeff Law <law@redhat.com>:
12519 * infttrace.c: Include <sys/pstat.h>.
12520 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12521 exec file if the ttrace equivalent fails.
12522
15f698d2
AC
125232002-01-20 Andrew Cagney <ac131313@redhat.com>
12524
12525 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12526 (closeLogFile): Ditto.
12527
f86ddd7c
MC
125282002-01-20 Michael Chastain <mec@shout.net>
12529
12530 * top.c (print_gdb_version): Bump copyright year to 2002.
12531
904507ce
AC
125322002-01-20 Andrew Cagney <ac131313@redhat.com>
12533
12534 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12535 Zannoni and Eli Zaretskii.
12536
d7f0b9ce
DJ
125372002-01-20 Daniel Jacobowitz <drow@mvista.com>
12538
12539 * buildsym.c: Update copyright years.
12540 * c-typeprint.c: Likewise.
12541 * dwarf2read.c: Likewise.
12542 * f-typeprint.c: Likewise.
12543 * gdbtypes.c: Likewise.
12544 * gdbtypes.h: Likewise.
12545 * hp-symtab-read.c: Likewise.
12546 * hpread.c: Likewise.
12547 * mdebugread.c: Likewise.
12548 * p-typeprint.c: Likewise.
12549
3fd3d7d2
AC
125502002-01-20 Andrew Cagney <ac131313@redhat.com>
12551
12552 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12553 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12554 byte-order selectable.
12555 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12556 * arch-utils.c: Ditto.
12557 (set_endian): Ditto.
12558 (set_endian_from_file): Ditto.
12559 * gdbserver/low-sim.c (create_inferior): Ditto.
12560 * gdbarch.sh: Ditto.
12561 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12562 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12563 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12564 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12565 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12566 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12567 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12568 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12569 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12570 macro definition.
12571 * config/mips/tm-wince.h: Remove #undef of macro
12572 TARGET_BYTE_ORDER_SELECTABLE.
12573 * config/sh/tm-wince.h: Ditto.
12574
b02dede2
DJ
125752002-01-20 Daniel Jacobowitz <drow@mvista.com>
12576
12577 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12578 member function fields. Add accessor macro
12579 TYPE_FN_FIELD_ARTIFICIAL.
12580 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12581 * c-typeprint.c (c_type_print_base): Skip artificial member
12582 functions.
12583
c3643761
DJ
125842002-01-20 Daniel Jacobowitz <drow@mvista.com>
12585
12586 * f-typeprint.c: Delete unused function f_type_print_args.
12587 * p-typeprint.c: Delete unused function pascal_type_print_args.
12588
8176bb6d
DJ
125892002-01-20 Daniel Jacobowitz <drow@mvista.com>
12590
12591 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12592 comment. Add ``artificial'' to ``union field_location''.
12593
12594 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12595
12596 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12597 * mdebugread.c (parse_symbol): Likewise.
12598 * stabsread.c (define_symbol): Likewise.
12599 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12600 initializing TYPE_FIELD_BITPOS to n (obsolete).
12601 (hpread_doc_function_type): Likewise.
12602 * hpread.c (hpread_function_type): Likewise.
12603
7fd60527
AC
126042002-01-20 Andrew Cagney <ac131313@redhat.com>
12605
12606 * configure.in (host_makefile_frag): Only require a host makefile
12607 fragment when a native build.
12608 * configure: Re-generate.
12609
c2f05ac9
AC
126102002-01-20 Andrew Cagney <ac131313@redhat.com>
12611
12612 * doublest.h (floatformat_from_type): Declare.
12613 * doublest.c (floatformat_from_type): New function.
12614 (convert_typed_floating): Use.
12615
12616 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12617 call to function floatformat_from_type.
12618
12619 * gdbarch.sh (IEEE_FLOAT): Delete.
12620 * gdbarch.h, gdbarch.c: Re-generate.
12621 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12622 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12623 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12624 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12625 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12626 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12627 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12628 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12629 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12630 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12631 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12632 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12633
12634 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12635 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12636 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12637 * sh-tdep.c (sh_gdbarch_init): Ditto.
12638 * mips-tdep.c (mips_gdbarch_init): Ditto.
12639 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12640 * cris-tdep.c (cris_gdbarch_init): Ditto.
12641
abf22e64
AJ
126422002-01-20 Jiri Smid <smid@suse.cz>
12643
12644 * configure.host, configure.tgt: Support x86-64.
12645 * NEWS: Note new target x86-64.
12646
b7c4cbf8
AJ
12647 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12648 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12649 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12650 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12651 x86-64-linux-nat.o): Fix dependencies.
12652
82600034
AC
126532002-01-19 Andrew Cagney <ac131313@redhat.com>
12654
12655 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12656 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12657 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12658 * config/sparc/xm-sun4os4.h: Delete file.
12659 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12660
bbe5c628
AC
126612002-01-19 Andrew Cagney <ac131313@redhat.com>
12662
12663 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12664 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12665 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12666 * config/i386/i386lynx.mh (XM_FILE): Delete.
12667 * config/rs6000/xm-rs6000ly.h: Delete file.
12668 * config/sparc/xm-sparclynx.h: Delete file.
12669 * config/m68k/xm-m68klynx.h: Delete file.
12670 * config/i386/xm-i386lynx.h: Delete file.
12671 * config/xm-lynx.h: Delete file.
12672 * config/djgpp/fnchange.lst: Update.
12673
f8453e34
JT
126742002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12675
12676 * alpha-tdep.c (alpha_register_byte): New function.
12677 (alpha_register_raw_size): Ditto.
12678 (alpha_register_virtual_size): Ditto.
12679 (alpha_skip_prologue_internal): Renamed from
12680 alpha_skip_prologue.
12681 (alpha_skip_prologue): New version that calls
12682 alpha_skip_prologue_internal.
12683 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12684 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12685 second argument from alpha_skip_prologue.
12686 (REGISTER_BYTE): Use alpha_register_byte.
12687 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12688 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12689 (FRAMELESS_FUNCTION_INVOCATION): Use
12690 generic_frameless_function_invocation_not.
12691 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12692 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12693
52d9e613
AC
126942002-01-19 Andrew Cagney <ac131313@redhat.com>
12695
12696 * config/mips/xm-news-mips.h: Delete file.
12697 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12698
12699 * config/m88k/xm-m88k.h: Delete file.
12700 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12701 * config/m88k/xm-delta88v4.h: Ditto.
12702 * config/m88k/xm-delta88.h: Ditto.
12703
12704 * config/alpha/xm-fbsd.h: Delete file.
12705 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12706
12707 * config/sparc/xm-sparc.h: Delete file.
12708 * Makefile.in (xm-sun4os4.h): Delete dependency.
12709 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12710 * config/sparc/xm-sun4os4.h: Ditto.
12711 * config/sparc/xm-linux.h: Ditto.
12712
12713 * config/i386/xm-windows.h: Delete file.
12714
2d1b2124
AC
127152002-01-19 Andrew Cagney <ac131313@redhat.com>
12716
12717 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12718 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12719
ee1f65f0
JT
127202002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12721
12722 * alpha-tdep.c (alpha_call_dummy_words): New.
12723 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12724 (CALL_DUMMY_P): Define.
12725 (CALL_DUMMY_WORDS): Define.
12726 (SIZEOF_CALL_DUMMY_WORDS): Define.
12727
98081e55
PB
127282002-01-19 Per Bothner <per@bothner.com>
12729
12730 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12731 isn't NULL, which can happen with some gcj-3.x-produced code.
12732
0d056799
JT
127332002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12734
12735 * alpha-tdep.c (alpha_register_virtual_type): New function.
12736 (alpha_init_frame_pc_first): Ditto.
12737 (alpha_fix_call_dummy): Ditto.
12738 (alpha_store_struct_return): Ditto.
12739 (alpha_extract_struct_value_address): Ditto.
12740 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12741 alpha_register_virtual_type.
12742 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12743 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12744 alpha_extract_struct_value_address.
12745 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12746 (INIT_FRAME_PC): Use init_frame_pc_noop.
12747 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12748
4604bcad
MK
127492002-01-19 Mark Kettenis <kettenis@gnu.org>
12750
12751 * i386gnu-nat.c: Include "i386-tdep.h".
12752 (fetch_fpregs): Simplify code dealing with uninitialized floating
12753 point states such that it doesn't require FP7_REGNUM.
12754
140f9984
JT
127552002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12756
abf22e64
AJ
12757 * alpha-tdep.c (frame_extra_info): New.
12758 (alpha_find_saved_regs): Make static. Use
140f9984
JT
12759 frame->extra_info.
12760 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
12761 (alpha_frame_saved_pc): Use frame->extra_info.
12762 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12763 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
12764 (init_extra_frame_info): Rename to...
12765 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 12766 (alpha_print_extra_frame_info): New function.
140f9984
JT
12767 (alpha_frame_locals_address): Ditto.
12768 (alpha_frame_args_address): Ditto.
abf22e64 12769 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
12770 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12771 alpha_frame_args_address.
abf22e64 12772 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 12773 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
12774 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12775 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
12776 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12777 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12778
d734c450
JT
127792002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12780
12781 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12782 (alpha_cannot_fetch_register): Ditto.
12783 (alpha_cannot_store_register): Ditto.
12784 (alpha_register_convertible): Ditto.
12785 (alpha_use_struct_convention): Ditto.
12786 * config/alpha/tm-alpha.h: Update copyright years.
12787 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12788 (INNER_THAN): Use core_addr_lessthan.
12789 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12790 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12791 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12792 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12793 (FRAME_CHAIN): Remove unnecessary cast.
12794
b4ceaee6
AC
127952002-01-18 Andrew Cagney <ac131313@redhat.com>
12796
12797 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12798 obsolete.
12799
0a65a603
AC
128002002-01-18 Andrew Cagney <ac131313@redhat.com>
12801
12802 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12803 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12804 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12805 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12806 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12807 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12808 * x86-64-linux-nat.c: Ditto.
12809
636a6dfc
JT
128102002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12811
abf22e64 12812 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
12813 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12814 (REGISTER_NAME): Define.
12815
acceddb6
JT
128162002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12817
12818 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12819
ec32e4be
JT
128202002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12821
12822 * alpha-tdep.c: Update copyright years.
12823 (alpha_next_pc): New function.
12824 (alpha_software_single_step): Ditto.
12825 * config/alpha/tm-alpha.h: Add prototype for
12826 alpha_software_single_step.
12827
e771a871
JT
128282002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12829
12830 * alphabsd-nat.c: Update copyright years.
12831 (fill_gregset): Use regcache_collect.
12832 (fill_fpregset): Likewise.
12833 (fetch_inferior_registers): Only fetch integer registers
12834 if requested to do so.
12835 (store_inferior_registers): Only store integer registers
12836 if requested to do so.
12837
7708fa01
AC
128382002-01-17 Andrew Cagney <ac131313@redhat.com>
12839
12840 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12841 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12842 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12843 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12844 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12845 * config/arm/linux.mh (XDEPFILES): Delete.
12846 * config/arm/nbsd.mh (XDEPFILES): Delete.
12847 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12848 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12849 * config/i386/i386m3.mh (XDEPFILES): Delete.
12850 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12851 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12852 * config/i386/fbsd.mh (XDEPFILES): Delete.
12853 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12854 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12855 * config/i386/i386v4.mh (XDEPFILES): Delete.
12856 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12857 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12858 * config/i386/i386aix.mh (XDEPFILES): Delete.
12859 * config/i386/go32.mh (XDEPFILES): Delete.
12860 * config/i386/cygwin.mh (XDEPFILES): Delete.
12861 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12862 * config/i386/i386mach.mh (XDEPFILES): Delete.
12863 * config/i386/i386v32.mh (XDEPFILES): Delete.
12864 * config/i386/linux.mh (XDEPFILES): Delete.
12865 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12866 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12867 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12868 * config/i386/i386sco.mh (XDEPFILES): Delete.
12869 * config/i386/i386v.mh (XDEPFILES): Delete.
12870 * config/i386/nbsd.mh (XDEPFILES): Delete.
12871 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12872 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12873 * config/i386/symmetry.mh (XDEPFILES): Delete.
12874 * config/i386/obsd.mh (XDEPFILES): Delete.
12875 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12876 * config/ia64/linux.mh (XDEPFILES): Delete.
12877 * config/ia64/aix.mh (XDEPFILES): Delete.
12878 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12879 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12880 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12881 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12882 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12883 * config/m68k/linux.mh (XDEPFILES): Delete.
12884 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12885 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12886 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12887 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12888 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12889 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12890 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12891 * config/m88k/delta88.mh (XDEPFILES): Delete.
12892 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12893 * config/m88k/m88k.mh (XDEPFILES): Delete.
12894 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12895 * config/mips/linux.mh (XDEPFILES): Delete.
12896 * config/mips/irix6.mh (XDEPFILES): Delete.
12897 * config/mips/irix5.mh (XDEPFILES): Delete.
12898 * config/mips/irix4.mh (XDEPFILES): Delete.
12899 * config/mips/irix3.mh (XDEPFILES): Delete.
12900 * config/mips/decstation.mh (XDEPFILES): Delete.
12901 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12902 (NATDEPFILES): Move core-aout.o to here.
12903 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12904 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12905 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12906 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12907 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12908 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12909 * config/pa/hpux11.mh (XDEPFILES): Delete.
12910 * config/powerpc/aix.mh (XDEPFILES): Delete.
12911 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12912 * config/powerpc/linux.mh (XDEPFILES): Delete.
12913 * config/romp/rtbsd.mh: Rename XDEPFILES.
12914 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12915 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12916 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12917 * config/s390/s390.mh (XDEPFILES): Delete.
12918 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12919 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12920 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12921 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12922 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12923 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12924 * config/sparc/linux.mh (XDEPFILES): Delete.
12925 * config/vax/vaxult.mh (XDEPFILES): Delete.
12926 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12927 * Makefile.in (DEPFILES): Remove XDEPFILES.
12928
375fc983
AC
129292002-01-17 Andrew Cagney <ac131313@redhat.com>
12930
12931 * utils.c (internal_verror): Fix comments, default is yes not no.
12932 Update queries to match. Default to quit and dump core.
12933
8926118c
AC
129342002-01-17 Andrew Cagney <ac131313@redhat.com>
12935
12936 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12937 copyright.
12938 * defs.h, event-top.c, gdbcmd.h: Ditto.
12939 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12940 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12941 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12942 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12943 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12944 * mi/mi-main.c:Ditto.
12945
12946 * stack.c, symfile.c: Update copyright.
12947
45b7b345
DJ
129482002-01-17 Daniel Jacobowitz <drow@mvista.com>
12949
db728ff7
DJ
12950 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12951 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12952 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12953 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 12954
db728ff7
DJ
129552002-01-17 Daniel Jacobowitz <drow@mvista.com>
12956
12957 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12958 * gdbserver/low-lynx.c (myattach): Likewise.
12959 * gdbserver/low-nbsd.c (myattach): Likewise.
12960 * gdbserver/low-sim.c (myattach): Likewise.
12961 * gdbserver/low-sparc.c (myattach): Likewise.
12962 * gdbserver/low-sun3.c (myattach): Likewise.
12963
12964 * gdbserver/low-linux.c (myattach): New function.
45b7b345 12965
db728ff7 12966 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
12967 (main): Handle "--attach".
12968
8de3c354
AC
129692002-01-16 Andrew Cagney <ac131313@redhat.com>
12970
12971 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12972 maintainer.
12973
b0129042
DJ
129742002-01-15 Daniel Jacobowitz <drow@mvista.com>
12975
12976 * c-typeprint.c (is_type_conversion_operator): Add additional
12977 check for non-conversion operators.
12978
ba8679fb 129792002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
12980
12981 * linux-proc.c: Add "info proc" command, a la procfs.c.
12982 (read_mapping): New function, abstract and re-use code.
12983 (linux_find_memory_regions): Use new func read_mapping.
12984 (linux_info_proc_cmd): New function, implement "info proc".
12985 (_initialize_linux_proc): Add new command "info proc".
12986
e4f9b4d5
MS
129872002-01-15 Michael Snyder <msnyder@redhat.com>
12988
12989 * symfile.c (generic_load): Use bfd_map_over_sections method
12990 instead of manipulating bfd structure members directly.
12991 (add_section_size_callback): New function, bfd sections callback
12992 used by generic_load.
12993 (load_sections_callback): New function, bfd sections callback
12994 used by generic_load.
12995
08cf96df
EZ
129962002-01-15 Elena Zannoni <ezannoni@redhat.com>
12997
abf22e64 12998 [Based on work by Jim Blandy]
08cf96df
EZ
12999 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13000 (builtin_type_vec128): Export.
13001 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13002 types.
13003 (builtin_type_vec128): New builtin type for 128 bit vector
13004 registers.
13005 (build_gdbtypes): Initialize builtin_type_v16qi and
13006 builtin_type_v8hi. Create the vec128 register builtin type
13007 structure.
13008 (build_builtin_type_vec128): New function.
abf22e64 13009 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13010 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13011 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13012 AltiVec register to new builtin type.
13013
d7242108
DJ
130142001-01-15 Daniel Jacobowitz <drow@mvista.com>
13015
13016 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13017 to make_cv_type.
13018
4ee3352d
AC
130192002-01-14 Andrew Cagney <ac131313@redhat.com>
13020
13021 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13022 CLEAN_UP_REGISTER_VALUE.
13023 * regcache.c (supply_register): Update only call.
13024
f015b2e7
AC
130252002-01-14 Andrew Cagney <ac131313@redhat.com>
13026
13027 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13028 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13029 a29k-*-vxworks* targets as obsolete.
13030
356ae49d
MS
130312002-01-14 Michael Snyder <msnyder@redhat.com>
13032
13033 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13034 until we can resolve portability issues.
13035 * gregset.h: Remove references to fpxregs.
13036 * gcore.c (gcore_command): Initialize note_sec to NULL.
13037
ade8f45e
AC
130382002-01-13 Andrew Cagney <ac131313@redhat.com>
13039
13040 * signals.c (target_signal_to_name): Rewrite. Only use
13041 signals[].name when in bounds and non-NULL.
abf22e64 13042
89c49e7a
AC
130432002-01-13 Andrew Cagney <ac131313@redhat.com>
13044
13045 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13046 * signals.c (target_signal_to_name): Verify that SIG is within the
13047 bounds of the signals array.
13048
4daa9f9f
AC
130492002-01-13 Andrew Cagney <ac131313@redhat.com>
13050
13051 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13052
ba4bbdcb
KS
130532002-01-13 Keith Seitz <keiths@redhat.com>
13054
13055 * stack.c (print_frame_info_base): Print the frame's pc
13056 only if when print_frame_info_listing_hook is not defined.
13057
575bbeb6
KS
130582002-01-13 Keith Seitz <keiths@redhat.com>
13059
13060 * varobj.c (varobj_set_value): Make sure that there were no
13061 errors evaluating the object before attempting to set its
13062 value.
13063 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13064 so this offset adjustment is no longer necessary.
13065 (create_child): Don't set the error flag if the child is
13066 a CPLUS_FAKE_CHILD.
13067 (value_of_child): If value_fetch_lazy fails, return NULL
13068 so that callers will be notified that an error occurred.
13069 (c_value_of_variable): Delay check of variable's validity
13070 until later. We actually want all structs and unions to have
13071 the value "{...}".
13072 Do not return "???" for variables which could not be evaluated.
13073 This error condition must be returned to the caller so that it
13074 can get the error condition from gdb.
13075 (cplus_name_of_child): Adjust index for vptr before figuring
13076 out the name of the child.
13077 (cplus_value_of_child): If a child's (real) parent is not valid,
13078 don't even bother trying to give a value for it. Just return
13079 an error. Change all instances in this function.
13080 (cplus_type_of_child): If our parent is one of the "fake"
13081 parents, we need to get at the type of the real parent, and
13082 derive the child's true type using this information.
13083
b76898ab
AC
130842002-01-13 Andrew Cagney <ac131313@redhat.com>
13085
13086 From 2002-01-09 John Marshall <johnm@falch.net>:
13087 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13088 sources.redhat.com, and tweak some related URLs which had
13089 suffered from linkrot.
13090
b6649e88
AC
130912002-01-13 Andrew Cagney <ac131313@redhat.com>
13092
13093 From Jeff law:
13094 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13095 structures passed in registers.
13096
82cc5033
EZ
130972002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13098
13099 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13100 white space which prevented compilation. Reported by DSK
13101 <dsk@student.unsw.edu.au>.
13102
ba5f2f8a
MS
131032002-01-11 Michael Snyder <msnyder@redhat.com>
13104
fbd35540
MS
13105 * symfile.c (build_section_addr_info_from_section_tab):
13106 Use bfd access method instead of manipulating bfd directly.
13107 (syms_from_objfile): Ditto.
13108 (simple_overlay_update_1): Ditto.
13109 (simple_overlay_update): Ditto.
13110 (generic_load): Ditto.
13111 (overlay_unmapped_address): FIXME comment, bfd access methods.
13112 (sections_overlap): FIXME comment, bfd access methods.
13113 (pc_in_mapped_range): FIXME comment, bfd access methods.
13114 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13115 (section_is_mapped): FIXME comment, bfd access methods.
13116 (section_is_overlay): FIXME comment, bfd access methods.
13117
ba5f2f8a
MS
13118 * symfile.c (generic_load): Whitespace and long line cleanups.
13119 Remove duplicate variable, change several local variables to
13120 more appropriate data types.
13121 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13122
17df2af6
AC
131232002-01-12 Andrew Cagney <ac131313@redhat.com>
13124
13125 From Peter Schauer:
13126 * language.c (longest_local_hex_string_custom): Use phex_nz to
13127 convert NUM to a hex string.
13128
ec920329
EZ
131292002-01-12 Elena Zannoni <ezannoni@redhat.com>
13130
13131 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13132 the function.
538a76d6 13133 Update Copyright year.
ec920329 13134
3abd2e01
AC
131352002-01-12 Andrew Cagney <ac131313@redhat.com>
13136
13137 * language.c (longest_raw_hex_string): Delete unused function.
13138
b21b22e0
PS
131392002-01-11 Petr Sorfa <petrs@caldera.com>
13140
13141 * MAINTAINERS (write-after-approval): Add myself.
13142 * dwarf2read.c (read_tag_string_type): Handling of
13143 DW_AT_byte_size.
13144 (read_tag_string_type): FORTRAN fix to prevent propagation of
13145 first string size.
13146 (set_cu_language): Handling of DW_LANG_Fortran95
13147
747fe712
RE
131482002-01-11 Richard Earnshaw <rearnsha@arm.com>
13149
13150 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13151 GETPID(inferior_ptid).
13152 (store_inferior_registers): Likewise.
13153
f1bea926
JM
131542002-01-10 Jason Merrill <jason@redhat.com>
13155
13156 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13157 Fix DW_OP_minus.
13158
ae940673
AC
131592002-01-10 Andrew Cagney <ac131313@redhat.com>
13160
13161 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13162 and bfd/elf32-sh-nbsd.c.
13163
00546b04
MS
131642002-01-10 Michael Snyder <msnyder@redhat.com>
13165
352ed7b4
MS
13166 * NEWS: Mention --pid and corefile/proc-id behavior change.
13167
c18be923
MS
13168 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13169 * gcore.c: Include cli/cli-decode.h instead of command.h.
13170
00546b04
MS
13171 * main.c (captured_main): Add new command line option "--pid".
13172 If the second command line argument (following the symbol-file)
13173 begins with a digit, try to attach to it before trying to open
13174 it as a corefile.
13175 (print_gdb_help): Document the "--pid" argument.
13176
db60ec62
EZ
131772002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13178
13179 * completer.c (command_completer): New function.
13180
13181 * completer.h <command_completer>: Add prototype.
13182
13183 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13184 completer for the "help" command.
13185
39c22d1a
JM
131862002-01-09 Jason Merrill <jason@redhat.com>
13187
13188 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13189
c564377f
MS
131902002-01-09 Michael Snyder <msnyder@redhat.com>
13191
975aec09
MS
13192 * i386-linux-nat.c (fill_fpxregset): Make global.
13193 (store_fpxregset): Ditto.
13194
db4a10fa
MS
13195 * gregset.h (gdb_fpxregset_t): Define.
13196 (supply_fpxregset): Prototype.
13197 (fill_fpxregset): Prototype.
13198
c564377f
MS
13199 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13200
c3d45d70
RE
132012002-01-09 Richard Earnshaw <rearnsha@arm.com>
13202
13203 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13204 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13205 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13206
fcc87af1
AC
132072002-01-09 Andrew Cagney <ac131313@redhat.com>
13208
13209 * MAINTAINERS: Update target maintainer rules so that any
13210 Maintainer can approve a tested patch for a maintenance-only
13211 target.
13212
dd96c05b
RE
132132002-01-09 Richard Earnshaw <rearnsha@arm.com>
13214
d4297db9 13215 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13216
d4297db9 13217 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13218 IN_SIGTRAMP.
13219
145fdc6e
MS
132202002-01-08 Michael Snyder <msnyder@redhat.com>
13221
13222 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13223 real name of the executable, rather than the /proc name.
13224
be4d1333
MS
132252002-01-03 Michael Snyder <msnyder@redhat.com>
13226
13227 Implement a "generate-core-file" command in gdb, save target state.
13228 * gcore.c: New file. Implement new command 'generate-core-file'.
13229 Save a corefile image of the current state of the inferior.
13230 * linux-proc.c: Add linux-specific code for saving corefiles.
13231 * target.h (struct target_ops): Add new target vectors for saving
13232 corefiles; to_find_memory_regions and to_make_corefile_notes.
13233 (target_find_memory_regions): New macro.
13234 (target_make_corefile_notes): New macro.
13235 * target.c (update_current_target): Inherit new target methods.
13236 (dummy_find_memory_regions): New place-holder method.
13237 (dummy_make_corefile_notes): New place-holder method.
13238 (init_dummy_target): Initialize new dummy target vectors.
13239 * exec.c (exec_set_find_memory_regions): New function.
13240 Allow the exec_ops vector for memory regions to be taken over.
13241 (exec_make_note_section): New function, target vector method.
13242 * defs.h (exec_set_find_memory_regions): Export prototype.
13243 * procfs.c (proc_find_memory_regions): New function, corefile method.
13244 (procfs_make_note_section): New function, corefile method.
13245 (init_procfs_ops): Set new target vector pointers.
13246 (find_memory_regions_callback): New function.
13247 (procfs_do_thread_registers): New function.
13248 (procfs_corefile_thread_callback): New function.
13249 * sol-thread.c (sol_find_memory_regions): New function.
13250 (sol_make_note_section): New function.
13251 (init_sol_thread_ops): Initialize new target vectors.
13252 * inftarg.c (inftarg_set_find_memory_regions): New function.
13253 Allow to_find_memory_regions vector to be taken over.
13254 (inftarg_set_make_corefile_notes): New function.
13255 Allow to_make_corefile_notes vector to be taken over.
13256 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13257 interface layer if not target_has_execution (may be a corefile).
13258 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13259 * config/sparc/sun4sol2.mh: Ditto.
13260 * config/alpha/alpha-linux.mh: Ditto.
13261 * config/arm/linux.mh: Ditto.
13262 * config/i386/x86-64linux.mh: Ditto.
13263 * config/ia64/linux.mh: Ditto.
13264 * config/m68k/linux.mh: Ditto.
13265 * config/mips/linux.mh: Ditto.
13266 * config/powerpc/linux.mh: Ditto.
13267 * config/sparc/linux.mh: Ditto.
13268
c6b92abd
MS
132692002-01-07 Michael Snyder <msnyder@redhat.com>
13270
13271 * arm-linux-nat.c: Remove references to regcache.c internal data
13272 (registers[] and register_valid[]).
13273
4b09dc8c
MS
132742002-01-07 Michael Snyder <msnyder@redhat.com>
13275
abf22e64
AJ
13276 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13277 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13278 symbol file and shlibs.
13279 * Makefile.in: Add rule for linux-proc.o.
13280 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13281 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13282 * config/arm/linux.mh: Ditto.
13283 * config/i386/linux.mh: Ditto.
13284 * config/i386/x86-64linux.mh: Ditto.
13285 * config/ia64/linux.mh: Ditto.
13286 * config/m68k/linux.mh: Ditto.
13287 * config/mips/linux.mh: Ditto.
13288 * config/powerpc/linux.mh: Ditto.
13289 * config/sparc/linux.mh: Ditto.
13290
c25b74ac
PM
132912002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13292
13293 * win32-nat.c: Add i386-tdep.h dependency.
13294
94cd915f
MS
132952002-01-07 Michael Snyder <msnyder@redhat.com>
13296
c7cccb76
MS
13297 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13298 instead of bfd_get_arch_size. Don't bail out just because
13299 there's no exec_bfd.
abf22e64 13300
34c0bd93
MS
13301 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13302 * p-valprint.c (pascal_object_print_value): Ditto.
13303 * somread.c (som_symtab_read): Ditto.
13304 * symfile.c (simple_free_overlay_region_table): Ditto.
13305 * valops.c (value_assign): Ditto.
13306
21c1c920
MS
13307 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13308 use tilde_expand and strerror for opening save-tracepoints file.
13309
5bbd998e
MS
13310 * thread-db.c (thread_db_new_objfile): Indendation fix.
13311
94cd915f
MS
13312 * infptrace.c (GDB_MAX_ALLOCA): New define.
13313 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13314 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13315 can be overridden with whatever value is appropriate to the host).
13316 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13317 alloca to allocate potentially large buffer.
13318 * rs6000-nat.c (child_xfer_memory): Ditto.
13319 * symm-nat.c (child_xfer_memory): Ditto.
13320 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13321
494e8a93
JSC
133222002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13323
13324 From Nick Clifton <nickc@redhat.com>
13325 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13326
d0e1d48e
MS
133272002-01-07 Michael Snyder <msnyder@redhat.com>
13328
abf22e64 13329 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13330 Don't use exec_bfd if it's NULL.
13331
290b2c7a
MK
133322002-01-06 Mark Kettenis <kettenis@gnu.org>
13333
abf22e64 13334 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13335
aef21287
AC
133362002-01-06 Andrew Cagney <ac131313@redhat.com>
13337
13338 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13339 * gnu-nat.c: Ditto.
13340
30efa627
AC
133412002-01-06 Andrew Cagney <ac131313@redhat.com>
13342
13343 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13344 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13345 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13346 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13347 z8k-coff have not been multi-arched. Update z8k-coff build
13348 status.
13349
9b4ff276
AC
133502002-01-06 Andrew Cagney <ac131313@redhat.com>
13351
13352 * MAINTAINERS: Mark a29k target as obsolete.
13353 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13354 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13355 comments.
13356 * NEWS: Note that a29k targets are obsolete.
13357 * a29k-tdep.c: Mark as obsolete.
13358 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13359 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13360 a29k-*-vxworks* targets as obsolete.
13361 * remote-adapt.c: Obsolete.
13362 * remote-eb.c: Obsolete.
13363 * remote-mm.c: Obsolete.
13364 * remote-udi.c: Obsolete.
13365 * config/a29k/a29k-udi.mt: Obsolete.
13366 * config/a29k/a29k.mt: Obsolete.
13367 * config/a29k/tm-a29k.h: Obsolete.
13368 * config/a29k/tm-vx29k.h: Obsolete.
13369 * config/a29k/vx29k.mt: Obsolete.
13370
a9011d31
AC
133712002-01-05 Andrew Cagney <ac131313@redhat.com>
13372
13373 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13374 with BFD_ENDIAN_BIG.
13375
9299404e
AC
133762002-01-05 Andrew Cagney <ac131313@redhat.com>
13377
13378 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13379 * configure, config.in: Re-generate.
13380 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13381 * defs.h: Do not include <endian.h>.
13382
7e89e357
JT
133832002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13384
13385 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13386 * config.in: Regenerate.
13387 * configure.in: Update copyright years.
13388 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13389 * configure: Regenerate.
13390 * i386bsd-nat.c: Update copyright years.
13391 (fill_gregset): Use regcache_collect.
13392 (fetch_inferior_registers): Only fetch integer registers
13393 if requested to do so. Add support for XMM registers
13394 using PT_GETXMMREGS.
13395 (store_inferior_registers): Only store integer registers
13396 if requested to do so. Add support for XMM registers
13397 using PT_SETXMMREGS.
13398 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13399 (store_inferior_registers): Remove.
13400 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13401 (fetch_elfcore_registers): New function.
13402 (i386nbsd_elfcore_fns): New.
13403 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13404 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13405 i386bsd-nat.o.
13406 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13407 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13408 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13409 * config/i386/tm-nbsd.h: Update copyright years.
13410 (HAVE_SSE_REGS): Define.
13411 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13412 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13413 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13414 (SIGCONTEXT_PC_OFFSET): Remove.
13415 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13416
a752853e
AC
134172002-01-05 Andrew Cagney <ac131313@redhat.com>
13418
13419 * configure.tgt: Remove powerpc-*-macos* target.
13420 * config/m68k/xm-mpw.h: Delete file.
13421 * config/xm-mpw.h: Delete file.
13422 * ser-mac.c: Delete file.
13423 * mpw-make.sed: Delete file.
13424 * mpw-config.in: Delete file.
13425 * mac-xdep.c: Delete file.
13426 * mac-gdb.r: Delete file.
13427 * mac-defs.h: Delete file.
13428 * mac-nat.c: Delete file.
13429 * config/powerpc/macos.mh: Delete file.
13430 * config/powerpc/macos.mt: Delete file.
13431 * config/powerpc/nm-macos.h: Delete file.
13432 * config/powerpc/tm-macos.h: Delete file.
13433 * source.c (openp, open_source_file): Remove obsolete code.
13434 * top.c (gdb_readline): Ditto.
13435 * utils.c (query): Ditto.
13436 * event-top.c (display_gdb_prompt): Ditto.
13437 * Makefile.in (ser-mac.o): Delete obsolete target.
13438 * NEWS: Update.
13439
d7449b42
AC
134402002-01-04 Andrew Cagney <ac131313@redhat.com>
13441
13442 * defs.h (BIG_ENDIAN): Delete macro definition.
13443 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13444 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13445 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13446 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13447 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13448 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13449 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13450 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13451 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13452 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13453 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13454 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13455 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13456 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13457 * gdbarch.c: Re-generate.
13458
356374e8
DJ
134592002-01-04 Daniel Jacobowitz <drow@mvista.com>
13460
13461 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13462 for core files.
13463
a2b8f8f8
JT
134642002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13465
13466 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13467
12466af9
AC
134682002-01-04 Andrew Cagney <ac131313@redhat.com>
13469
13470 * value.h (value_ptr): Delete typedef.
13471
3549ab40
JT
134722002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13473
13474 * i386nbsd-nat.c: Update copyright years.
13475 Include i386-tdep.h.
13476
fedbd091
EZ
134772002-01-04 Elena Zannoni <ezannoni@redhat.com>
13478
13479 * stabsread.c: Update copyright years.
13480
13481 From Debashis Mahata <debashis.mahata@wipro.com>:
13482 (read_struct_fields): Deal with Sun C compiler erroneous stab
13483 output for structs and unions.
fec8b34f 13484 Fix PR gdb/269.
fedbd091 13485
eb43544b
DJ
134862002-01-04 Daniel Jacobowitz <drow@mvista.com>
13487
13488 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13489 prototype.
13490
1514d34e
DJ
134912002-01-04 Daniel Jacobowitz <drow@mvista.com>
13492
13493 * cp-abi.c: Fix whitespace.
13494 (baseclass_offset): New wrapper function.
13495 * cp-abi.h (baseclass_offset): Add prototype.
13496 (struct cp_abi_ops): Add baseclass_offset pointer.
13497
13498 * valops.c (vb_match): Move to...
13499 * gnu-v2-abi.c (vb_match): here.
13500 * valops.c (baseclass_offset): Move to...
13501 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13502
13503 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13504
13505 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13506 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13507 * hpacc-abi.c (init_hpacc_ops): Likewise.
13508
7f8c9282
DJ
135092002-01-04 Daniel Jacobowitz <drow@mvista.com>
13510
13511 * valops.c (find_overload_match): Accept obj as a
13512 reference parameter. Update it before returning.
13513 * value.h (find_overload_match): Update prototype.
13514 * eval.c (evaluate_subexp_standard): Pass object to
13515 find_overload_match by reference.
13516
f23631e4
AC
135172002-01-03 Andrew Cagney <ac131313@redhat.com>
13518
13519 * valarith.c: Replace value_ptr with struct value pointer. Remove
13520 register attribute from value declarations.
13521 * valops.c: Ditto.
13522 * value.h: Ditto.
13523 * scm-lang.c (scm_lookup_name): Ditto.
13524
79e10fab 135252002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13526
79e10fab
AC
13527 Abstract the functionality of iterating over mapped memory
13528 regions into a general purpose iterator function.
abf22e64 13529 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13530 iterator for memory sections.
13531 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13532 (solib_mappings_callback): New function, callback for above.
13533 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13534 (info_mappings_callback): New function, callback for above.
13535
13536 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13537
c5ad026a
MK
135382002-01-01 Mark Kettenis <kettenis@gnu.org>
13539
d2a7c97a
MK
13540 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13541 * i386-tdep.c: Include "elf-bfd.h".
13542 (process_note_abi_tag_sections): New function.
13543 (i386_gdbarch_init): Add code to recognize various OS/ABI
13544 combinations.
13545
c5ad026a
MK
13546 * maint.c (_initialize_maint_cmds): Add missing \ in
13547 string-literal.
13548
a1a5b71e 13549For older changes see ChangeLog-2001
c906108c
SS
13550\f
13551Local Variables:
13552mode: change-log
13553left-margin: 8
13554fill-column: 74
13555version-control: never
13556End:
This page took 0.967363 seconds and 4 git commands to generate.