* acconfig.h (HAVE_PREAD64): Add.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
eb784848
DJ
12002-11-25 Daniel Jacobowitz <drow@mvista.com>
2
3 * acconfig.h (HAVE_PREAD64): Add.
4 * configure.in: Check for pread64.
5 * config.in: Regenerated.
6 * configure: Regenerated.
7 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
8 * linux-proc.c (linux_proc_xfer_memory): New function.
9 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
10
933c6fe4
DC
112002-11-25 David Carlton <carlton@math.stanford.edu>
12
13 * dwarf2read.c (scan_partial_symbols): Descend into namespace
14 pdi's with no name.
15
158a8022
AC
162002-11-25 Andrew Cagney <ac131313@redhat.com>
17
18 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
19 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
20
481d0f41
JB
212002-11-25 Jim Blandy <jimb@redhat.com>
22
e8289572
JB
23 * symfile.c (init_objfile_sect_indices): New function.
24 (default_symfile_offsets): Move the section-index-initializing
25 stuff into init_objfile_sect_indices, and call that.
26
b29c9944
JB
27 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
28 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
29
13de58df
JB
30 * symfile.c (syms_from_objfile): Adjust indentation.
31
481d0f41
JB
32 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
33 || info_verbose isn't true.
34
7d6a26a7
AC
352002-11-24 Andrew Cagney <ac131313@redhat.com>
36
37 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
38 default to get_frame_base.
39 * gdbarch.h, gdbarch.c: Regenerate.
40 * arch-utils.c (default_frame_address): Delete function.
41 * arch-utils.h (default_frame_address): Delete declaration
42
6abe1021
PM
432002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
44
45 * varobj.c (find_frame_addr_in_frame_chain):
46 Use get_frame_base instead of FRAME_FP,
47 obvious fix.
48
c193f6ac
AC
492002-11-19 Andrew Cagney <ac131313@redhat.com>
50
51 * frame.h (FRAME_FP): Delete macro.
52 (get_frame_base): New function declaration.
53 * frame.c (get_frame_base): New function.
54 (get_frame_id): Use ->frame.
55 (frame_find_by_id): Rewrite to use get_frame_id.
56 * blockframe.c: Use get_frame_base instead of FRAME_FP.
57 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
58 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
59 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
60 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
61 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
62 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
63
e5d2af14
AC
642002-11-24 Andrew Cagney <ac131313@redhat.com>
65
66 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
67
931d12c6
AC
682002-11-24 Andrew Cagney <ac131313@redhat.com>
69
70 * frame.c (set_unwind_by_pc): Revert change below, use
71 PC_IN_CALL_DUMMY.
72 (get_prev_frame): Ditto.
73
5e0f933e
AC
742002-11-24 Andrew Cagney <ac131313@redhat.com>
75
76 * dummy-frame.c (pc_in_dummy_frame): New function.
77 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
78 (find_dummy_frame): Update comment.
79 (generic_pop_current_frame): Use get_frame_type.
80 * dummy-frame.h (pc_in_dummy_frame): Declare.
81 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
82 (create_new_frame): Use pc_in_dummy_frame.
83 (get_prev_frame): Use pc_in_dummy_frame.
84 (frame_saved_regs_register_unwind): Use get_prev_frame.
85 (deprecated_generic_get_saved_register): Use get_prev_frame.
86
7d8547c9
AC
872002-11-23 Andrew Cagney <ac131313@redhat.com>
88
89 * blockframe.c (find_frame_addr_in_frame_chain): Move function
90 from here ...
91 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
92 (varobj_create): Note that frame ID should be used.
93 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
94
0225421b
AC
952002-11-23 Andrew Cagney <ac131313@redhat.com>
96
97 * breakpoint.c: Include "gdb_assert.h".
98 (deprecated_frame_in_dummy): Assert that generic dummy frames are
99 not being used.
100 * Makefile.in (breakpoint.o): Update dependencies.
101 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
102 deprecated_frame_in_dummy.
103 * stack.c (print_frame_info_base): Ditto.
104 (frame_info): Ditto.
105 (print_frame_info_base): Ditto. Delete dead code.
106
32eeb91a
AS
1072002-11-23 Andreas Schwab <schwab@suse.de>
108
109 * Makefile.in (m68k_tdep_h): Define.
110 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
111 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
112 * m68k-tdep.c: Move register number enum ...
113 * m68k-tdep.h: ... to this new file and rename the constants from
114 E_* to M68K_*. All uses changed.
115 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
116 * abug-rom.c: Include "m68k-tdep.h". Use
117 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
118 * cpu32bug-rom.c: Likewise.
119 * dbug-rom.c: Likewise.
120 * m68k-tdep.c: Likewise.
121 * m68klinux-nat.c: Likewise.
122 * remote-est.c: Likewise.
123 * rom68k-rom.c: Likewise.
124 * config/m68k/tm-linux.h: Likewise.
125
9648bac8
AC
1262002-11-23 Andrew Cagney <ac131313@redhat.com>
127
128 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
129 dummy frame initialization code.
130 * mips-tdep.c (mips_gdbarch_init): Ditto.
131
91a175b3
CF
1322002-11-22 Christopher Faylor <cgf@redhat.com>
133
134 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
135 attach will hang.
136
f4ded5b1
AC
1372002-11-22 Andrew Cagney <ac131313@redhat.com>
138
139 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
140 to default_frame_address.
141 * gdbarch.h, gdbarch.c: Re-generate.
142
143 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
144 or frame_locals_address to default_frame_address.
145 * m68k-tdep.c (m68k_gdbarch_init): Update.
146 * i386-tdep.c (i386_gdbarch_init): Update.
147 * frv-tdep.c (frv_gdbarch_init): Update.
148 * sh-tdep.c (sh_gdbarch_init): Update.
149 * v850-tdep.c (v850_gdbarch_init): Update.
150 * sparc-tdep.c (sparc_gdbarch_init): Update.
151 * mips-tdep.c (mips_gdbarch_init): Update.
152 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
153 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
155
156 * cris-tdep.c (cris_frame_args_address): Delete function.
157 (cris_frame_locals_address): Delete function.
158 (cris_gdbarch_init): Do not set frame_args_address or
159 frame_locals_address.
160
f7c1e0f3
MS
1612002-11-22 Michael Snyder <msnyder@redhat.com>
162
163 * thread-db.c (thread_db_load): Tell the user what's going on
164 if dlopen fails on libthread_db.
165
03dac896
AS
1662002-11-23 Andreas Schwab <schwab@suse.de>
167
168 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
169 invariant return values.
170
7a67d0fe
AS
1712002-11-22 Andreas Schwab <schwab@suse.de>
172
173 * valops.c (value_slice): Move declaration of `offset' to avoid
174 warning.
175
5633f842
CF
1762002-11-22 Christopher Faylor <cgf@redhat.com>
177
178 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
179 (struct so_stuff): Add end_addr field.
180 (register_loaded_dll): Calculate and store end address of loaded dll.
181 (solib_address): New function.
182 (child_solib_loaded_library_pathname): Pass carefully constructed
183 section info to safe_symbol_file_add rather than ignoring it.
184 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
185 DLL is loaded.
186 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
187 (child_create_inferior): Fix a compiler warning.
188 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
189 (solib_address): Declare new function.
190
d85fe7f7
AS
1912002-11-22 Andreas Schwab <schwab@suse.de>
192
193 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
194 and FPS registers.
195
8308e54c
DJ
1962002-11-21 Daniel Jacobowitz <drow@mvista.com>
197
198 * maint.c (_initialize_maint_cmds): Fix typo. From
199 Francesco Potorti` <pot@gnu.org>.
200
8997bd5e
AC
2012002-11-21 Andrew Cagney <cagney@redhat.com>
202
203 * mips-tdep.c (mips_dump_tdep): Delete references to
204 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
205 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
206 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
207 * printcmd.c (build_address_symbolic): Delete calls to
208 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
209 (address_info): Ditto.
210 Fix PR gdb/773.
211
4e87b832
KD
2122002-11-19 Klee Dienes <kdienes@apple.com>
213 Adam Fedor <fedor@gnu.org>
214
215 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
216 the ability to explicitly specify the quote characters and word
217 break characters; if NULL is specified for either, use the old
218 behavior of using the characters used by the completer.
219 (skip_chars): New function. Convenience wrapper around
220 skip_quoted_chars to provide the original skip_chars behavior.
221 * completer.h (skip_quoted_chars): Add prototype.
222
9ba8d803
AC
2232002-11-19 Andrew Cagney <ac131313@redhat.com>
224
225 Problems reported by Paul Eggert.
226 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
227
0a595803
AS
2282002-11-19 Andreas Schwab <schwab@suse.de>
229
230 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
231 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
232 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
233 (m68k_linux_frame_saved_pc): Move to ...
234 * m68klinux-tdep.c: ... here. New file.
235 * Makefile.in (m68klinux-tdep.o): Add dependencies.
236 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
237
e8afa4d7
AF
2382002-11-19 Adam Fedor <fedor@gnu.org>
239
240 * objc-exp.y: Revert to old skip_quoted usage.
241
a76c9d72
AF
2422002-11-19 Adam Fedor <fedor@gnu.org>
243
244 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
245 (objc_lang_h): Define.
246 (YYFILES): Add objc-exp.tab.c.
247 (local-maintainer-clean): Remove objc-exp.tab.c.
248 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
249
fd0e9d45
PM
2502002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
251
252 * p-exp.y (typecast rule): Add automatic dereference of
253 pascal classes if needed.
254 (THIS): Set current_type.
255 Automatically dereference pascal classes.
256 (typebase rule): Add ^typebase recognition.
257
82eeeb94
AF
2582002-11-18 Adam Fedor <fedor@gnu.org>
259
260 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
261 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
262 (op_name): Handle OP_OBJC_SELF.
263 * Makefile.in (expprint.o): Add additional depends.
264
646df18d
AF
2652002-11-18 Adam Fedor <fedor@gnu.org>
266
267 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
268 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
269 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
270 * objc-exp.y: Likewise.
271
379b85df
AF
2722002-11-18 Adam Fedor <fedor@gnu.org>
273
274 * gdb/parser-defs.h: (struct objc_class_str): New structure
275 for parsing ObjC classes.
276
85cf597a
AC
2772002-11-18 Andrew Cagney <ac131313@redhat.com>
278
279 * stack.c (frame_relative_level): Copy function from here ...
280 * frame.c (frame_relative_level): ...to here.
281
5a203e44
AC
2822002-11-18 Andrew Cagney <ac131313@redhat.com>
283
284 * frame.h (enum frame_type): Define.
285 (get_frame_type): Declare.
286 (struct frame_info): Add field `type'. Delete field
287 signal_handler_caller.
288 (deprecated_set_frame_signal_handler_caller): Declare.
289 * frame.c (get_frame_type): New function.
290 (deprecated_set_frame_type): New function.
291 (create_new_frame): Set the frame's type.
292 (get_prev_frame): Similar.
293 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
294 * s390-tdep.c: Ditto.
295 * m68klinux-nat.c: Ditto.
296 * ns32k-tdep.c: Ditto.
297 * x86-64-linux-tdep.c: Ditto.
298 * vax-tdep.c: Ditto.
299 * rs6000-tdep.c: Ditto.
300 * ppc-linux-tdep.c: Ditto.
301 * i386-interix-tdep.c: Ditto.
302 * mips-tdep.c: Ditto.
303 * m68k-tdep.c: Ditto.
304 * hppa-tdep.c: Ditto.
305 * ia64-tdep.c: Ditto.
306 * cris-tdep.c: Ditto.
307 * arm-tdep.c: Ditto.
308 * alpha-tdep.c: Ditto.
309 * i386-tdep.c: Ditto.
310 * stack.c: Ditto.
311 * ada-lang.c: Ditto.
312 * blockframe.c: Update.
313 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
314 deprecated_set_frame_type instead of signal_handler_caller.
315 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
316 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
317 * breakpoint.h: Delete FIXME suggesting get_frame_type.
318
bf4ae8b2
KD
3192002-11-18 Klee Dienes <kdienes@apple.com>
320
321 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
322
a672ef13
KD
3232002-11-18 Klee Dienes <kdienes@apple.com>
324
325 * buildsym.c (pop_context): Add comment.
326
0c5e171a
KD
3272002-11-18 Klee Dienes <kdienes@apple.com>
328
329 * buildsym.h (pop_context): Convert to function, defined in
330 buildsym.c.
331 * buildsym.c: Include gdb_assert.h.
332 (pop_context): Implement as C function. Add check for stack
333 underflow.
334 * dbxread.c (process_one_symbol): Complain and stop processing
335 that symbol if we are already at the top of the context stack for
336 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
337 when processing N_RBRAC.
338
8a1f4c4c
DJ
3392002-11-16 Daniel Jacobowitz <drow@mvista.com>
340
341 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
342 define.
343 (struct target_waitstatus): Add opaque definition.
344 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
345 * exec.c (init_exec_ops): Likewise.
346 * fork-child.c (clone_and_follow_inferior): Remove.
347 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
348 * inferior.h (clone_and_follow_inferior): Remove prototype.
349 * infrun.c (follow_fork_mode_both): Remove.
350 (follow_fork_mode_kind_names): Remove commented out "both".
351 (follow_inferior_fork): Remove follow_fork_mode_both support.
352 * inftarg.c (child_clone_and_follow_inferior): Remove.
353 (child_post_follow_inferior_by_clone): Remove.
354 (init_child_ops): Don't set to_clone_and_follow_inferior
355 or to_post_follow_inferior_by_clone.
356 * target.c (default_clone_and_follow_inferior): Remove.
357 (cleanup_target): Don't set to_clone_and_follow_inferior
358 or to_post_follow_inferior_by_clone.
359 (find_default_clone_and_follow_inferior): Remove.
360 (init_dummy_target): Don't set to_clone_and_follow_inferior.
361 (debug_to_clone_and_follow_inferior): Remove.
362 (debug_to_post_follow_inferior_by_clone): Remove.
363 (setup_target_debug): Don't set to_clone_and_follow_inferior
364 or to_post_follow_inferior_by_clone.
365 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
366 and to_post_follow_inferior_by_clone.
367 (child_clone_and_follow_inferior): Remove prototype.
368 (child_post_follow_inferior_by_clone): Remove prototype.
369 (target_clone_and_follow_inferior): Remove macro.
370 (target_post_follow_inferior_by_clone): Remove macro.
371 (find_default_clone_and_follow_inferior): Remove prototype.
372
47932f85
DJ
3732002-11-16 Daniel Jacobowitz <drow@mvista.com>
374
375 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
376 inferior_has_vforked, and inferior_has_execd instead of
377 target_has_forked, target_has_vforked, and target_has_execd.
378 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
379 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
380 (CHILD_WAIT): Define.
381 (child_wait): Add prototype.
382 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
383 Add prototype.
384 (hpux_has_vforked): Likewise, from child_has_vforked.
385 (hpux_has_execd): Likewise, from child_has_execd.
386 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
387 (not_same_real_pid, child_wait): New, copied from inftarg.c.
388 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
389 and hpux_has_syscall_event instead of the target hooks.
390 * infrun.c (inferior_has_forked, inferior_has_vforked)
391 (inferior_has_execd): New functions.
392 * inftarg.c (not_same_real_pid): Remove.
393 (child_wait): Remove references to not_same_real_pid,
394 target_has_forked, target_has_vforked, target_has_execd,
395 and target_has_syscall_event.
396 (child_has_forked, child_has_vforked, child_has_execd)
397 (child_has_syscall_event): Remove.
398 (init_child_ops): Remove references to child_has_forked,
399 child_has_vforked, child_has_execd, and child_has_syscall_event.
400 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
401 (hpux_has_vforked): Likewise, from child_has_vforked.
402 (hpux_has_execd): Likewise, from child_has_execd.
403 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
404 * target.c (cleanup_target): Remove references to
405 to_has_forked, to_has_vforked, to_has_execd, and
406 to_has_syscall_event.
407 (update_current_target): Likewise.
408 (setup_target_debug): Likewise.
409 (debug_to_has_forked): Remove.
410 (debug_to_has_vforked): Remove.
411 (debug_to_has_execd): Remove.
412 (debug_to_has_syscall_event): Remove.
413 * target.h (struct target_ops): Remove to_has_forked.
414 to_has_vforked, to_has_execd, and to_has_syscall_event.
415 (child_has_forked, child_has_vforked, child_has_execd)
416 (child_has_syscall_event): Remove prototypes.
417 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
418 prototypes.
419 (target_has_forked, target_has_vforked, target_has_execd)
420 (target_has_syscall_event): Remove macros.
421
4088142a
DJ
4222002-11-16 Daniel Jacobowitz <drow@mvista.com>
423
424 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
425 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
426 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
427 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
428 * target.c (cleanup_target): Remove reference to
429 to_can_follow_vfork_prior_to_exec.
430 (update_current_target): Likewise.
431 (debug_to_can_follow_vfork_prior_to_exec): Remove.
432 (setup_target_debug): Remove reference to
433 to_can_follow_vfork_prior_to_exec.
434 * target.h (struct target_ops): Remove
435 to_can_follow_vfork_prior_to_exec.
436 (child_can_follow_vfork_prior_to_exec): Remove prototype.
437 (target_can_follow_vfork_prior_to_exec): Remove definition.
438 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
439 define.
440 * infrun.c (follow_vfork_when_exec): Remove.
441 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
442 (follow_exec): Likewise.
443 (handle_inferior_event): Likewise.
444 (keep_going): Likewise.
445
18cde8d5
AC
4462002-11-15 Andrew Cagney <cagney@redhat.com>
447
448 * frame.c (generic_unwind_get_saved_register): Make static.
449 * frame.h (generic_unwind_get_saved_register): Delete declaration.
450 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
451 defaults to generic_unwind_get_saved_register.
452 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
453 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
454 * frv-tdep.c (frv_gdbarch_init): Ditto.
455 * i386-tdep.c (i386_gdbarch_init): Ditto.
456 * s390-tdep.c (s390_gdbarch_init): Ditto.
457 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
458 * v850-tdep.c (v850_gdbarch_init): Ditto.
459 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
460 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
461 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
462
a6b063af
AC
4632002-11-15 Andrew Cagney <cagney@redhat.com>
464
465 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
466 i386-tdep.c.
467
f407986f
AC
4682002-11-15 Andrew Cagney <cagney@redhat.com>
469
470 * frame.h (sigtramp_saved_pc): Delete declaration.
471 * blockframe.c (sigtramp_saved_pc): Delete function.
472 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
473 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
474 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
475 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
476
f18c5a73
AC
4772002-11-15 Andrew Cagney <ac131313@redhat.com>
478
479 * frame.c (frame_pc_unwind): New function.
480 (frame_saved_regs_pc_unwind): New function.
481 (frame_register_unwind): Pass unwind_cache instead of
482 register_unwind_cache.
483 (set_unwind_by_pc): Add unwind_pc parameter, set.
484 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
485 (get_prev_frame): Ditto.
486 * frame.h (frame_pc_unwind_ftype): Declare.
487 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
488 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
489 (frame_pc_unwind): Declare.
490 * dummy-frame.c (dummy_frame_pc_unwind): New function.
491 (struct dummy_frame): Add comment mentioning that values are for
492 previous frame.
493 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
494 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
495 (generic_file_frame_chain_valid): Ditto.
496 * stack.c (frame_info): Ditto.
497
d9285969 4982002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
499
500 * linespec.c (locate_first_half): New function.
501 (decode_line_1): Move code into locate_first_half.
502
d741b867
AC
5032002-11-15 Andrew Cagney <ac131313@redhat.com>
504
505 * complaints.h: Add comment explaining how to eliminate a
506 deprecated_complain call.
24382c5c 507 * complaints.h: Fix spelling errors.
d741b867 508
82d03c99
DC
5092002-11-15 David Carlton <carlton@math.stanford.edu>
510
511 * printcmd.c: Remove #include "disasm.h".
512
c97eb5d9
AC
5132002-11-14 Andrew Cagney <ac131313@redhat.com>
514
515 * frame.h: Move the most relevant interface functions to the start
516 of the file.
517
524d7c18
AC
5182002-11-14 Andrew Cagney <ac131313@redhat.com>
519
520 * regcache.h (deprecated_registers): Rename registers.
521 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
522 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
523 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
524 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
525 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
526 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
527 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
528 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
529 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
530 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
531 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
532 * v850ice.c: Update.
533
6411e720
AC
534Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
535
536 * utils.c (gdb_realpath): Add comment mentioning realpath with a
537 NULL buffer.
538
73937e03
AC
5392002-11-13 Andrew Cagney <cagney@redhat.com>
540
541 * regcache.h (deprecated_read_register_bytes): Rename
542 read_register_bytes.
543 (deprecated_write_register_bytes): Rename write_register_bytes.
544 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
545 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
546 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
547 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
548 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
549 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
550 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
551 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
552 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
553 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
554 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
555 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
556 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
557 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
558
fb0cd46e
JB
5592002-11-13 Jim Blandy <jimb@redhat.com>
560
561 * findvar.c (read_var_value): Doc fix.
562
2d28509a
AC
5632002-11-13 Andrew Cagney <cagney@redhat.com>
564
565 * regcache.c (struct regcache): Replace passthough_p with
566 readonly_p.
567 (regcache_xmalloc): Initialize readonly_p.
568 (build_regcache): Initialize readonly_p.
569 (regcache_save): New function.
570 (regcache_restore): New function.
571 (regcache_cpy): Re-implement using regcache_save and
572 regcache_restore.
573 (regcache_raw_read): Update.
574 (regcache_cooked_read): When a read-only cache, checked for cached
575 pseudo register values.
576 (regcache_raw_write): Assert that the cache is not read-only.
577 Remove code handling a non-passthrough cache.
578 * regcache.h (regcache_save): Declare.
579 (regcache_restore): Declare.
580
067df2e5
AC
5812002-11-13 Andrew Cagney <cagney@redhat.com>
582
583 * regcache.c (struct regcache_descr): Add fields
584 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
585 (init_legacy_regcache_descr): Compute the size of a cooked
586 register cache and then assign that to sizeof_raw_registers. Set
587 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
588 (init_legacy_regcache_descr): Ditto.
589
51b1fe4e
AC
5902002-11-13 Andrew Cagney <cagney@redhat.com>
591
592 * regcache.c (register_buffer): Move to near start of file, update
593 description.
594 (regcache_raw_read): Use.
595 (regcache_raw_write): Use.
596 (struct regcache): Rename raw_registers to registers and
597 raw_register_valid_p to register_valid_p.
598 (regcache_xmalloc): Update.
599 (regcache_xfree): Update.
600 (register_buffer): Update.
601 (regcache_cpy): Update.
602 (regcache_cpy_no_passthrough): Update.
603 (regcache_valid_p): Update.
604 (deprecated_grub_regcache_for_registers): Update.
605 (deprecated_grub_regcache_for_register_valid): Update.
606 (set_register_cached): Update.
607 (regcache_raw_write): Update.
608
80b4c677
PM
6092002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
610
611 * p-exp.y (name_not_typename): Use copy_name to
612 set current_type variable for fields of THIS.
613
0f3fafde
DJ
6142002-11-12 Daniel Jacobowitz <drow@mvista.com>
615
616 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
617 * monitor.c (init_base_monitor_ops): Likewise.
618 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
619 * remote-array.c (init_array_ops): Likewise.
620 * remote-e7000.c (init_e7000_ops): Likewise.
621 * remote-es.c (init_es1800_ops): Likewise.
622 (init_es1800_child_ops): Likewise.
623 * remote-rdp.c (init_remote_rdp_ops): Likewise.
624 * remote-sim.c (init_gdbsim_ops): Likewise.
625 * remote-st.c (init_st2000_ops): Likewise.
626 * sol-thread.c (init_sol_core_ops): Likewise.
627 (init_sol_thread_ops): Likewise.
628 * v850ice.c (init_850ice_ops): Likewise.
629 * win32-nat.c (init_child_ops): Likewise.
630 * wince.c (init_child_ops): Likewise.
631
82c0260e
AC
6322002-11-12 Andrew Cagney <ac131313@redhat.com>
633
634 * utils.c (gdb_realpath): Make rp a constant pointer.
635
70d35819
AC
6362002-11-12 Andrew Cagney <ac131313@redhat.com>
637
638 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
639 a constant buffer; cannonicalize_file_name(); realpath() with a
640 pathconf() defined buffer, xstrdup().
641
9835a8b0
AC
6422002-11-12 Andrew Cagney <ac131313@redhat.com>
643
644 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
645 to hang2.C; hang3.c to hang3.C.
646
3f47be5c
EZ
6472002-11-11 Elena Zannoni <ezannoni@redhat.com>
648
649 * findvar.c (read_var_value): Reenable TLS code.
650
6512002-11-11 Elena Zannoni <ezannoni@redhat.com>
652 Jim Blandy <jimb@redhat.com>
653
654 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
655 * target.c (update_current_target): Add
656 to_get_thread_local_address.
657 * target.h (to_get_thread_local_address): Export.
658 (target_get_thread_local_address): Define.
659 (target_get_thread_local_address_p): Define.
660 * thread-db.c: Include solib-svr4.h.
661 (td_thr_tls_get_addr_p): Define.
662 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
663 (thread_db_get_thread_local_address): New function.
664 (init_thread_db_ops): Initialize to_get_thread_local_address.
665 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
666 * configure: Regenerate.
667 * config.in: Regenerate.
668
636b1a6d
DC
6692002-11-11 David Carlton <carlton@math.stanford.edu>
670
671 * linespec.c (set_flags): New function.
672 (decode_line_1): Move code into set_flags.
673
44fe14ab
DC
6742002-11-11 David Carlton <carlton@math.stanford.edu>
675
676 * linespec.c (decode_line_1): Move chunks of code to separate
677 functions.
678 (initialize_defaults): New function.
679 (decode_indirect): New function.
680
e6f181f5
AC
6812002-11-11 Andrew Cagney <ac131313@redhat.com>
682
8971b011
AC
683 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
684 instead of void_code_ptr.
685 (sigtramp_saved_pc): Ditto.
686
e6f181f5
AC
687 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
688 i386_fp_regnum_p.
689
01ad7f36
DJ
6902002-11-10 Daniel Jacobowitz <drow@mvista.com>
691
692 * gdbtypes.h (struct main_type): Move artificial flag out of
693 loc. New member of ``struct field'' named static_kind. Reduce
694 overloaded meaning of bitsize.
695 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
696 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
697 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
698
699 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
700 new fields.
701 (template_to_fixed_record_type, template_to_static_fixed_type)
702 (to_record_with_fixed_variant_part): Likewise.
703 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
704 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
705 * dwarfread.c (struct_type, enum_type): Likewise.
706 * hpread.c (hpread_read_enum_type)
707 (hpread_read_function_type, hpread_read_doc_function_type)
708 (hpread_read_struct_type): Likewise.
709 * mdebugread.c (parse_symbol): Likewise.
710
bf1e52be
AC
7112002-11-10 Andrew Cagney <ac131313@redhat.com>
712
713 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
714 * stack.c (print_frame_info_base): Update.
715 (print_frame_info_base, frame_info): Update.
716 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
717 (sparc_frame_saved_pc): Update.
718 * ada-lang.c (find_printable_frame): Update.
719 * breakpoint.c (deprecated_frame_in_dummy): Update.
720
ce556f85
MK
7212002-11-09 Mark Kettenis <kettenis@gnu.org>
722
723 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
724 defined.
725 (regmap): Extend to cover all registers.
726 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
727 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
728 definitions.
729 (fetch_register, sore_register): Simplify.
730 (old_fetch_inferior_registers, old_store_inferior_registers):
731 Remove functions.
732 (cannot_fetch_register, cannot_store_register): Change
733 implementation to use regmap array to decide which registers
734 cannot be fetched/stored. This removes $orig_eax from the
735 registers that cannot be fetched/stored.
736 (fetch_inferior_registers): Call fetch_register directly instead
737 of calling old_fetch_inferior_registers.
738 (store_inferior_registers): Call store_register directly instead
739 of calling old_store_inferior_registers.
740 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
741 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
742 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
743
932bb524
KD
7442002-11-09 Klee Dienes <kdienes@apple.com>
745
746 * i387-tdep.c (i387_supply_register): When called with NULL as a
747 buffer, mark the register as not provided (to mirror the behavior
748 of supply_register).
749 (i387_supply_fxsave): Ditto.
750 (i387_supply_fsave): Ditto (inherits the behavior from
751 i387_supply_register).
752
ebe68b27
KD
7532002-11-09 Klee Dienes <kdienes@apple.com>
754
755 * blockframe.c (sigtramp_saved_pc): Use
756 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
757 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
758 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
759
15220c65
AC
7602002-11-09 Andrew Cagney <ac131313@redhat.com>
761
762 * frame.c (get_prev_frame): Test prev_p to identify a previously
763 unwound frame. Initialize prev_p.
764 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
765 comment.
766
95adb866
AC
7672002-11-09 Andrew Cagney <ac131313@redhat.com>
768
769 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
770 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
771 more comments. Zap dead code.
772
e71ecd70
MK
7732002-11-09 Mark Kettenis <kettenis@gnu.org>
774
775 * infcmd.c (print_vector_info, print_float_info): Move code that
776 checks whether the target has any registers and whether there is a
777 selected frame up, such that it is also used if a target provides
778 multi-arch definitions of these functions.
779
c525330d
AC
7802002-11-08 Andrew Cagney <ac131313@redhat.com>
781
72bdd927
AC
782 * Makefile.in (DESTDIR): Define.
783 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
784 prefix.
785
c525330d
AC
786 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
787 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
788
38c968cf
AC
7892002-11-08 Andrew Cagney <ac131313@redhat.com>
790
791 * i386-linux-tdep.c: Include "reggroups.h".
792 (i386_linux_register_reggroup_p): New function.
793 (i386_linux_init_abi): Set register_reggroup_p to
794 i386_linux_register_reggroup_p.
795 * i386-tdep.h (i386_register_reggroup_p): Declare.
796 * i386-tdep.c: Include "reggroups.h".
797 (i386_init_reggroups): New function.
798 (i386_add_reggroups): New function.
799 (i386_register_reggroup_p): New function.
800 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
801 (_initialize_i386_tdep): Call i386_init_reggroups.
802 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
803 specific reggroups.
804
19e33363
MK
8052002-11-09 Mark Kettenis <kettenis@gnu.org>
806
371a6e84
MK
807 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
808 request that's available in *BSD.
809
94ba925a
MK
810 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
811
19e33363
MK
812 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
813 FDOFF_REGNUM.
814
8779790c
AC
8152002-11-08 Andrew Cagney <ac131313@redhat.com>
816
817 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
818 * dummy-frame.c (find_dummy_frame): Rename
819 generic_find_dummy_frame, make static. Return the dummy frame
820 instead of the regcache.
821 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
822 (cached_find_dummy_frame): New function. Use find_dummy_frame.
823 (dummy_frame_register_unwind): Rename
824 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
825 * dummy-frame.h (dummy_frame_register_unwind): Rename
826 generic_call_dummy_register_unwind.
827
8674b74f
MK
8282002-11-08 Mark Kettenis <kettenis@gnu.org>
829
830 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
831 except the inclusion of "i386/tm-i386.h", to...
832 * config/i386/nm-i386v42mp.h: ...here.
833 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
834
4c1e7e9d
AC
8352002-11-08 Andrew Cagney <ac131313@redhat.com>
836
837 * Makefile.in (frame.o): Update dependencies.
838 * blockframe.c (current_frame, frame_obstack_alloc)
839 (frame_saved_regs_zalloc, get_current_frame)
840 (set_current_frame, create_new_frame)
841 (set_unwind_by_pc, get_next_frame)
842 (flush_cached_frames, reinit_frame_cache)
843 (frame_saved_regs_register_unwind)
844 (deprecated_generic_get_saved_register)
845 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
846 (_initialize_blockframe): Move frame code from here...
847 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
848 "annotate.h" and "dummy-frame.h".
849 (_initialize_frame): New function.
850
921e78cf
JB
8512002-11-08 Jim Blandy <jimb@redhat.com>
852
853 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
854 when we finish a function a context.
855 * buildsym.h (outermost_context_p): New macro.
856 (Bug analyzed by David Edelsohn.)
857
9c1412c1
AC
8582002-11-08 Andrew Cagney <ac131313@redhat.com>
859
860 * blockframe.c: Include "dummy-frame.h".
861 (struct dummy_frame, dummy_frame_stack)
862 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
863 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
864 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
865 (generic_save_call_dummy_addr, generic_pop_current_frame)
866 (generic_pop_dummy_frame, generic_fix_call_dummy)
867 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
868 dummy frame code from here...
869 * dummy-frame.c: ...to here. New file.
870 * dummy-frame.h: New file.
871 (generic_call_dummy_register_unwind): Declare.
872 (generic_find_dummy_frame): Declare.
873 * Makefile.in (SFILES): Add dummy-frame.c.
874 (dummy-frame.o): Specify dependencies.
875 (dummy_frame_h): Define.
876 (COMMON_OBS): Add dummy-frame.o.
877 (blockframe.o): Update dependencies.
878
208d8187
JB
8792002-11-08 Jim Blandy <jimb@redhat.com>
880
881 * dwarf2read.c (read_func_scope): Restore local_symbols and
882 param_symbols after we finish the function context. (Based on a
883 patch from David Edelsohn.)
884
413dad4d
DC
8852002-11-08 David Carlton <carlton@math.stanford.edu>
886
887 * linespec.c (symbol_found): New function.
888 (minsym_found): New function.
889 (decode_line_1): Separate out some code into separate functions.
890
5512c44a
JB
8912002-11-08 Joel Brobecker <brobecker@gnat.com>
892
893 * i386-tdep.c (i386_frameless_signal_p): Make non static for
894 the benefit of the interix target.
895 * i386-tdep.h (i386_frameless_signal_p): Declare.
896
1b33ef47
AC
8972002-11-08 Andrew Cagney <ac131313@redhat.com>
898
899 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
900 declaration that snuck in from change below.
901
23a34459
AC
9022002-11-06 Andrew Cagney <cagney@redhat.com>
903
904 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
905 all callers.
906 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
907 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
908 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
909 (i386_mxcsr_regnum_p): new function. Use instead of
910 MXCSR_REGNUM_P.
911 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
912 (i386_sse_regnum_p): Declare.
913 (i386_mxcsr_regnum_p): Declare.
914 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
915 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
916 (IS_FP_REGNUM): Update definition.
917 (IS_FPU_CTRL_REGNUM): Update definition..
918 (IS_SSE_REGNUM): Update definition..
919 * i386v-nat.c (register_u_addr): Update.
920 * go32-nat.c (fetch_register): Update.
921 (store_register): Update.
922
d709c020
JB
9232002-11-07 Joel Brobecker <brobecker@gnat.com>
924
925 Preparation work to convert the hppa targets to multiarch partial.
926
927 * hppa-tdep.c: Add new functions replacing macro bodies from
928 config/pa/tm-hppa.h. These function will be used to initialize
929 the gdbarch structure. Import some comments from tm-hppa.h,
930 and place them where appropriate, to avoid loosing them when
931 we cleanup this file.
932 (hppa_reg_struct_has_addr): New function.
933 (hppa_inner_than): New function.
934 (hppa_stack_align): New function.
935 (hppa_pc_requires_run_before_use): New function.
936 (hppa_instruction_nullified): New function.
937 (hppa_register_byte): New function.
938 (hppa_register_virtual_type): New function.
939 (hppa_store_struct_return): New function.
940 (hppa_cannot_store_register): New function.
941 (hppa_frame_args_address): New function.
942 (hppa_frame_locals_address): New function.
943 (hppa_smash_text_address): New function.
944 (hppa_coerce_float_to_double): New function. Requires the inclusion
945 of "language.h".
946
947 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
948
949 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
950 gdbarch-eligible macro to a call to the new associated function
951 created in hppa-tdep.c.
952 (INNER_THAN): Likewise.
953 (STACK_ALIGN): Likewise.
954 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
955 (INSTRUCTION_NULLIFIED): Likewise.
956 (REGISTER_BYTE): Likewise.
957 (REGISTER_VIRTUAL_TYPE): Likewise.
958 (STORE_STRUCT_RETURN): Likewise.
959 (CANNOT_STORE_REGISTER): Likewise.
960 (FRAME_ARGS_ADDRESS): Likewise.
961 (FRAME_LOCALS_ADDRESS): Likewise.
962 (SMASH_TEXT_ADDRESS): Likewise.
963 (COERCE_FLOAT_TO_DOUBLE): Likewise.
964 (ABOUT_TO_RETURN): Delete, as no longer used.
965
83c31e7d
FN
9662002-11-07 Fernando Nasser <fnasser@redhat.com>
967
968 * printcmd.c (disassemble_command): Remove obsolete function.
969 (_initialize_printcmd): Do not create disassemble command here.
970 * cli/cli-cmds.c (disassemble_command): New function. Implements
971 disassemble command.
972 (init_cli_cmds): Create disassemble command here instead.
973
0ec30a36
AC
9742002-11-07 Andrew Cagney <ac131313@redhat.com>
975
976 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
977
e600bd34
AC
9782002-11-07 Andrew Cagney <ac131313@redhat.com>
979
980 * regcache.h (regcache_cooked_read_using_offset_hack)
981 (regcache_cooked_write_using_offset_hack): Delete declarations.
982 (register_changed): Delete declaration.
983 * regcache.c (regcache_cooked_read_using_offset_hack)
984 (regcache_cooked_write_using_offset_hack): Delete functions.
985 (cooked_xfer_using_offset_hack): Delete function.
986 (register_changed): Delete function.
987
568f8739
JB
9882002-11-07 Jim Blandy <jimb@redhat.com>
989
990 * macroscope.c: #include "complaints.h".
991 (sal_macro_scope): Cope with filenames that appear in the symtabs,
992 but not in the macro table.
993 * Makefile.in (macroscope.o): Record dependency.
994
b0718b7b
JB
9952002-11-07 Joel Brobecker <brobecker@gnat.com>
996
997 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
998
2b9e5f3f
AC
9992002-11-07 Andrew Cagney <ac131313@redhat.com>
1000
1001 * regcache.c (deprecated_registers_fetched): Update.
1002 * regcache.h (deprecated_registers_fetched): Rename
1003 registers_fetched.
1004 * remote-vxsparc.c (vx_read_register): Update.
1005 * remote-vxmips.c (vx_read_register): Update.
1006 * remote-vx68.c (vx_read_register): Update.
1007 * irix5-nat.c (fetch_core_registers): Update.
1008 * mipsm3-nat.c (fetch_inferior_registers): Update.
1009 * sun3-nat.c (fetch_inferior_registers): Update.
1010 * symm-nat.c (fetch_inferior_registers): Update.
1011 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1012 (fetch_core_registers): Update.
1013 (fetch_kcore_registers): Update.
1014 * mips-nat.c (fetch_inferior_registers): Update.
1015 * corelow.c (get_core_registers): Update.
1016 * a68v-nat.c (fetch_inferior_registers): Update.
1017
e6e68f1f
JB
10182002-11-06 Joel Brobecker <brobecker@gnat.com>
1019
1020 Put in place the framework necessary for multiarching the hppa targets.
1021 * hppa-tdep.c (hppa_gdbarch_init): New function.
1022 (hppa_dump_tdep): New function.
1023 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1024 tdep structure dumper.
1025 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1026 until the multi-arching conversion has partially been completed.
1027
492254e9
AC
10282002-11-06 Andrew Cagney <ac131313@redhat.com>
1029
1030 * valops.c (value_assign): Merge lval_register case into
1031 lval_reg_frame_relative. Use frame_register and
1032 regcache_cooked_write instead of get_saved_register and
1033 write_register_bytes. After flushing the register cache, try to
1034 re-select the selected frame.
1035
8262ee23
AC
10362002-11-06 Andrew Cagney <ac131313@redhat.com>
1037
1038 * regcache.h (deprecated_register_valid): Rename register_valid.
1039 * regcache.c: Update.
1040 * ia64-aix-nat.c: Update.
1041 * i386gnu-nat.c: Update.
1042 * alpha-nat.c: Update.
1043 * sparc-nat.c: Update.
1044 * lynx-nat.c: Update.
1045 * remote-mips.c: Update.
1046
4facf7e8
JB
10472002-11-06 Joel Brobecker <brobecker@gnat.com>
1048
1049 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1050 to end of file, to be more consistent with the pratice followed
1051 by other targets.
1052
f9418c0f
AC
10532002-11-06 Andrew Cagney <ac131313@redhat.com>
1054
1055 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1056 (print_float_info): Print registers in float_reggroup.
1057 (print_vector_info): Print registers in vector_reggroup.
1058 (default_print_registers_info): When all, print registers in
1059 all_reggroup. Otherwize, print registers in general_reggroup.
1060 (registers_info): Rewrite. Add support for register groups.
1061 Eliminate a goto.
1062
3fe235a7
EZ
10632002-11-06 Elena Zannoni <ezannoni@redhat.com>
1064
1065 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1066 ages.
1067 (symtab_symbol_info): Remove eons old ifdeffed out code.
1068 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1069 command.
1070
ef944135
TR
10712002-11-06 Theodore A. Roth <troth@openavr.org>
1072
1073 * c-exp.y: Add missing semi-colons.
1074 * f-exp.y: Add missing semi-colons.
1075 * m2-exp.y: Add missing semi-colons.
1076 * p-exp.y: Add missing semi-colons.
1077 Add empty action to start rule to avoid a type clash error when
1078 building with bison >= 1.50.
1079
f8302a57
JB
10802002-11-06 Jim Blandy <jimb@redhat.com>
1081
1082 * macrotab.h (struct macro_source_file): Doc fix.
1083
6e382aa3
JJ
10842002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1085
1086 * varobj.c (child_exists, cplus_number_of_children): Change
1087 STREQ macro references to strcmp.
1088 (cplus_name_of_child): Change code to handle the fact that
1089 fields are not necessarily contiguous with regards to their
1090 access control. This is a fix for PR gdb/792.
1091
a216a322
AC
10922002-11-05 Andrew Cagney <ac131313@redhat.com>
1093
1094 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1095 * gdbarch.h, gdbarch.c: Regnerate.
1096 * frame.h (frame_register): Declare.
1097 * frame.c (frame_register): New function.
1098 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1099 GET_SAVED_REGISTER, otherwize call
1100 generic_unwind_get_saved_register.
1101 (frame_register_read): Use frame_register instead of
1102 get_saved_register.
1103
7d5b6fdd
EZ
11042002-11-05 Elena Zannoni <ezannoni@redhat.com>
1105
1106 From Jim Ingham <jingham@apple.com>:
1107 * event-top.c (gdb_disable_readline): New function.
1108 (_initialize_event_loop): Move comment.
1109
b7c64260
EZ
11102002-11-05 Elena Zannoni <ezannoni@redhat.com>
1111
1112 * event-loop.c (start_event_loop): Add comment.
1113 Update copyright.
1114
c2e1b8f2
AC
11152002-11-05 Andrew Cagney <ac131313@redhat.com>
1116
1117 * infcmd.c (default_print_registers_info): Do not call
1118 PRINT_REGISTER_HOOK.
1119
87647bb0
AC
11202002-11-05 Andrew Cagney <ac131313@redhat.com>
1121
1122 * sparc-tdep.c (sparc_print_register_hook): Make static.
1123 (sparc_print_registers_info): New function.
1124 (sparc_do_registers_info): New function.
1125 (sparclet_print_registers_info): New function.
1126 (sparclet_do_registers_info): New function.
1127 (do_sparc_print_registers_info): New function.
1128 (sparc_print_registers): New static function, clone of infcmd.c's
1129 default_print_registers_info.
1130 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1131 (sparclet_do_registers_info): Declare.
1132 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1133 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1134 Re-define.
1135 (sparc_do_registers_info): Declare.
1136 (PRINT_REGISTER_HOOK): Delete macro.
1137 (sparc_print_register_hook): Delete declaration.
1138
8155455b
DC
11392002-11-05 David Carlton <carlton@math.stanford.edu>
1140
1141 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1142 functions.
1143 (lookup_symbol_aux_local): New function.
1144 (lookup_symbol_aux_symtabs): New function.
1145 (lookup_symbol_aux_psymtabs): New function.
1146
29924310
DC
11472002-11-05 David Carlton <carlton@math.stanford.edu>
1148
1149 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1150 previous values of 'objfile' and 'block'.
1151
cc303028
PM
11522002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1153
1154 * values.c (value_change_enclosing_type): Set
1155 enclosing_type field correctly also for the case where
1156 more memory needs to be allocated.
1157
1d70089a
MK
11582002-11-03 Mark Kettenis <kettenis@gnu.org>
1159
f16a25ae
MK
1160 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1161 of puts_filtered.
1162
1d70089a
MK
1163 * i387-tdep.c (i387_print_float_info): Replace calls to
1164 register_read and deprecated_read_register_gen with calls to
1165 frame_register_read, and make the necessary adjustments to the
1166 surrounding code.
1167
7e20f3fb
AC
11682002-11-02 Andrew Cagney <ac131313@redhat.com>
1169
1170 * gdbarch.sh (register_reggroup_p): Allow default value.
1171 * gdbarch.h, gdbarch.c: Regenerate.
1172
192dbe33
AC
11732002-11-02 Andrew Cagney <ac131313@redhat.com>
1174
1175 * regcache.h: Add coment indicating replacements for deprecated
1176 functions.
1177
b59ff9d5
AC
11782002-11-02 Andrew Cagney <cagney@redhat.com>
1179
1180 * reggroups.h, reggroups.c: New files.
1181 * regcache.c: Include "reggroups.h".
1182 (enum regcache_dump_what): Add `regcache_dump_groups'.
1183 (regcache_dump): Contract size of the "Type" column. When
1184 specified, dump the register's groups.
1185 (maintenance_print_register_groups): New function.
1186 (_initialize_regcache): Add command `maint print register-groups'.
1187 * Makefile.in (COMMON_OBS): Add reggroups.o
1188 (SFILES): Add reggroups.c.
1189 (reggroups_h): Define.
1190 (regcache.o, gdbarch.o): Update dependencies.
1191 (reggroups.o): Specify dependencies.
1192 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1193 Add opaque declaration for `struct reggroup' in generated .h file.
1194 Include "reggroups.h" in generated .c file.
1195 gdbarch.h, gdbarch.c: Re-generate.
1196
4caf0990
AC
11972002-11-02 Andrew Cagney <cagney@redhat.com>
1198
1199 * regcache.h (deprecated_read_register_gen): Rename
1200 read_register_gen.
1201 (deprecated_write_register_gen): Rename write_register_gen.
1202 * i387-tdep.c: Update.
1203 * x86-64-linux-nat.c: Update
1204 * wince.c: Update.
1205 * thread-db.c: Update.
1206 * win32-nat.c: Update.
1207 * mips-tdep.c: Update.
1208 * d10v-tdep.c: Update.
1209 * cris-tdep.c: Update.
1210 * remote-sim.c: Update.
1211 * remote-rdi.c: Update.
1212 * remote-rdp.c: Update.
1213 * frame.c: Update.
1214 * target.c: Update.
1215 * blockframe.c: Update.
1216 * x86-64-tdep.c: Update.
1217 * xstormy16-tdep.c: Update.
1218 * sh-tdep.c: Update.
1219 * s390-tdep.c: Update.
1220 * rs6000-tdep.c: Update.
1221 * sparc-tdep.c: Update.
1222 * i386-tdep.c: Update.
1223 * dwarf2cfi.c: Update.
1224 * regcache.c: Update.
1225
7a7adcdf
JB
12262002-11-01 Joel Brobecker <brobecker@gnat.com>
1227
1228 New interix-specific files:
1229 * config/i386/nm-interix.h: New file.
1230 * config/i386/interix.mh: New file.
1231 * config/i386/interix.mt: New file.
1232 * i386-interix-nat.c: New file.
1233 * i386-interix-tdep.c: New file.
1234
bdcdd535
AC
12352002-11-01 Andrew Cagney <cagney@redhat.com>
1236
1237 * frame.h (deprecated_generic_get_saved_register): Rename
1238 generic_get_saved_register.
1239 * blockframe.c (deprecated_generic_get_saved_register): Update.
1240 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1241 (xstormy16_frame_saved_register): Update.
1242 * sh-tdep.c (sh_gdbarch_init): Update.
1243 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1244 * ia64-tdep.c (ia64_get_saved_register): Update.
1245 * cris-tdep.c (cris_gdbarch_init): Update.
1246 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1247 * arm-tdep.c (arm_gdbarch_init): Update.
1248
2a4b7c45
DJ
12492002-10-31 Daniel Jacobowitz <drow@mvista.com>
1250
1251 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1252
ef17e74b
DJ
12532002-10-31 Daniel Jacobowitz <drow@mvista.com>
1254
1255 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1256 trampolines in sigaction.
1257
4904ba5b
AC
12582002-10-31 Andrew Cagney <cagney@redhat.com>
1259
1260 * h8300-tdep.c: Include "gdb_assert.h".
1261 (h8300_print_register): Add gdbarch, file and frame parameters.
1262 Use frame_read_unsigned_register to read the register's value.
1263 Use fprintf_filtered to display output.
1264 (h8300_print_registers_info): Replace h8300_do_registers_info.
1265 (h8300_gdbarch_init): Set print_registers_info.
1266
f908a0eb
AC
12672002-10-31 Andrew Cagney <cagney@redhat.com>
1268
1269 * frame.c (frame_read_unsigned_register): New function.
1270 (frame_read_signed_register): New function.
1271 * frame.h (frame_read_unsigned_register): Declare.
1272 (frame_read_signed_register): Declare.
1273
c5646e11
AC
12742002-10-31 Andrew Cagney <cagney@redhat.com>
1275
1276 * h8500-tdep.c (h8500_print_registers_info): New static function,
1277 clone of infcmd.c's default_print_registers_info.
1278 (h8500_do_registers_info): New funtion.
1279 (h8500_print_register_hook): Rename print_register_hook, make
1280 static.
1281
1282 * config/h8500/tm-h8500.h: Update copyright.
1283 (DEPRECATED_DO_REGISTERS_INFO): Define.
1284 (h8500_do_registers_info: Declare.
1285 (PRINT_REGISTER_HOOK): Delete macro.
1286 (print_register_hook): Delete function.
1287
0bdd672b
AC
12882002-10-31 Andrew Cagney <cagney@redhat.com>
1289
1290 * z8k-tdep.c (z8k_print_register_hook): Make static.
1291 (z8k_print_registers_info): New static function, clone of
1292 infcmd.c's default_print_registers_info.
1293 (z8k_do_registers_info): New function. Wrap
1294 z8k_print_registers_info.
1295 * config/z8k/tm-z8k.h: Update copyright.
1296 (PRINT_REGISTER_HOOK): Delete macro.
1297 (z8k_print_register_hook): Delete declaration.
1298 (DEPRECATED_DO_REGISTERS_INFO): Define.
1299 (z8k_do_registers_info): Declare.
1300
bf9c25dc
JB
13012002-10-30 Joel Brobecker <brobecker@gnat.com>
1302
1303 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1304 as this is already provided by value.h, and was actually causing
1305 a compilation error because of a conflict in parameter type
1306 declaration due to a missing const keyword.
1307 (low_text_segment_addres): Fix a compilation warning.
1308
2c665b51
DJ
13092002-10-29 Daniel Jacobowitz <drow@mvista.com>
1310
1311 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1312 registers without a name.
1313 (mips_linux_cannot_store_register): Don't store registers without
1314 a name.
1315
e70ea697
DC
13162002-10-28 David Carlton <carlton@math.stanford.edu>
1317
1318 * symtab.c (find_addr_symbol): Delete. (It was already commented
1319 out.)
1320 * symtab.h: Delete prototype for find_addr_symbol.
1321
903ad3a6
AC
13222002-10-26 Andrew Cagney <cagney@redhat.com>
1323
1324 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1325 DO_REGISTERS_INFO.
1326 gdbarch.h, gdbarch.c: Re-generate.
1327 * infcmd.c (default_print_registers_info): Update reference.
1328 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1329 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1330 * sh-tdep.c (sh_gdbarch_init): Ditto.
1331 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1332 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1333
ab91194c
MK
13342002-10-26 Mark Kettenis <kettenis@gnu.org>
1335
e3033f15
MK
1336 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1337 cfi_init_extra_frame_info.
1338 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1339 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1340
b83b026c
MK
1341 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1342 target where necessary. Add more comments and remove the ones
1343 that don't provide any useful information.
1344
267bf4bb
MK
1345 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1346 deprecated_read_register_dummy with
1347 frame_unwind_unsigned_register.
1348
751f1375
MK
1349 * i386-tdep.c (i386_extract_struct_value_address): Use
1350 regcache_raw_read_unsigned instead of
1351 regcache_cooked_read_unsigned since we know that the register
1352 we're reading isn't a pseudo register. Rename variable 'val' into
1353 the more descriptive 'addr'.
1354
26abbdc4
MK
1355 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1356 (x86_64_push_return_address): Add comment.
1357 (x86_64_pop_frame): Make static.
1358 (examine_argument): Clarify comment.
1359 (x86_64_skip_prologue): Make prolog_expact variable static.
1360
9f1549cc
MK
1361 * dwarf2cfi.c: Fix some formatting problems.
1362 (context_cpy, read_encoded_pointer): Clarify comments.
1363
ab91194c
MK
1364 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1365 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1366 i386 target back into x86_64_gdbarch_init. Add some comments and
1367 remove meaningless ones.
1368
72367fb4
AC
13692002-10-25 Andrew Cagney <cagney@redhat.com>
1370
1371 * complaints.h (struct deprecated_complaint): Rename `struct
1372 complaint'.
1373 * complaints.c (complain): Update.
1374 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1375 incorrect comment indicating that "symfile.h" was being included
1376 for the `struct complaint' definition.
1377 * remote-vx.c: Update.
1378 * objc-lang.c: Update.
1379 * xcoffread.c: Update.
1380 * hpread.c: Update.
1381 * mdebugread.c: Update.
1382 * stabsread.c: Update.
1383 * dwarf2read.c: Update.
1384 * dwarfread.c: Update.
1385 * elfread.c: Update.
1386 * coffread.c: Update.
1387 * stabsread.h: Update.
1388 * dbxread.c: Update.
1389 * buildsym.c: Update.
1390 * gdbtypes.c: Update.
1391 * macrotab.c: Update.
1392
1f2baacc
MK
13932002-10-25 Mark Kettenis <kettenis@gnu.org>
1394
0c1a73d6
MK
1395 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1396 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1397 (x86_64_init_abi): ...new function.
1398
6aee4d54 1399 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1400 * i386v-nat.c: Include "i386-tdep.h".
1401
8f9cbe01
AC
14022002-10-25 Andrew Cagney <cagney@redhat.com>
1403
5f11f355
AC
1404 * gdbtypes.c (address_space_name_to_int): Update.
1405 (address_space_int_to_name): Update.
1406 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1407 multi-arch predicate.
1408 (address_class_name_to_type_flags): Ditto.
1409 * gdbarch.h, gdbarch.c: Re-generate.
1410
8f9cbe01
AC
1411 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1412
e8d96a5d
MH
14132002-10-24 Martin M. Hunt <hunt@redhat.com>
1414
1415 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1416
fe39c653
EZ
14172002-10-24 Elena Zannoni <ezannoni@redhat.com>
1418
1419 * symtab.h (INIT_SAL): Delete macro.
1420 (init_sal): Export.
1421 * symtab.c (init_sal): New function.
1422
1423 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1424 to init_sal function call.
1425 (find_sal_from_funcs_and_line): Ditto.
1426 (all_sals_for_line): Ditto.
1427 * breakpoint.c (create_internal_breakpoint): Ditto.
1428 (create_fork_vfork_event_catchpoint): Ditto.
1429 (create_exec_event_catchpoint): Ditto.
1430 (parse_breakpoint_sals): Ditto.
1431 (watch_command_1): Ditto.
1432 (handle_gnu_4_16_catch_command): Ditto.
1433 (clear_command): Ditto.
1434 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1435 * infcmd.c (run_stack_dummy): Ditto.
1436 * infrun.c (process_event_stop_test): Ditto.
1437 (check_sigtramp2): Ditto.
1438 (step_over_function): Ditto.
1439 * linespec.c (decode_line_2): Ditto.
1440 (decode_line_1): Ditto.
1441 * source.c (line_info): Ditto.
1442 * symtab.c (find_pc_sect_line): Ditto.
1443
baed091b
ML
14442002-10-24 Michal Ludvig <mludvig@suse.cz>
1445
1446 * dwarf2cfi.c (struct context)
1447 (struct context_reg): Moved to dwarf2cfi.h
1448 (context_alloc, frame_state_alloc, context_cpy):
1449 Made extern instead of static, removed prototypes.
1450 * dwarf2cfi.h (struct context)
1451 (struct context_reg): New, moved from dwarf2cfi.c
1452 (context_alloc, frame_state_alloc, context_cpy):
1453 New prototypes.
1454 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1455 Changed from static to extern.
1456 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1457 (LINUX_SIGCONTEXT_FP_OFFSET)
1458 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1459 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1460 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1461 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1462 set_gdbarch_*() calls now use x86-64 specific functions
1463 instead of DWARF2 CFI ones.
1464 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1465 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1466 (x86_64_init_extra_frame_info): New prototypes.
1467
c38da1af
DC
14682002-10-23 David Carlton <carlton@math.stanford.edu>
1469
1470 * linespec.c: #include "parser-defs.h".
1471 Delete prototype for find_template_name_end.
1472 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1473
fb9b6b35
JJ
14742002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1475
1476 * NEWS: add recent mi fixes.
1477 * varobj.c (struct varobj): Add new "updated" flag.
1478 (new_variable): Default "updated" flag to 0.
1479 (varobj_set_value): Set "updated" flag to 1 if value
1480 changes.
1481 (varobj_update): Check varobj "updated" flag before
1482 comparing old and refreshed values. Fix for
1483 PR gdb/702.
1484
8da065d5
DC
14852002-10-23 David Carlton <carlton@math.stanford.edu>
1486
1487 * parse.c (parse_exp_1): Use BLOCK_START.
1488 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1489 SYMBOL_BLOCK_VALUE.
1490 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1491
87f2f08c
DC
14922002-10-23 David Carlton <carlton@math.stanford.edu>
1493
1494 * symtab.c: Delete cplusplus_hint.
1495 Delete prototype for find_template_name_end.
1496
88cda038
EZ
14972002-10-23 Elena Zannoni <ezannoni@redhat.com>
1498
1499 * symtab.h: Update comment.
1500
2625d86c
MS
15012002-10-23 Michael Snyder <msnyder@redhat.com>
1502
1503 * printcmd.c (address_info): Restore quotes in output.
1504 * valops.c (value_of_local): Restore quotes in error message.
1505
9cc0d196
EZ
15062002-10-23 Elena Zannoni <ezannoni@redhat.com>
1507
1508 * symtab.c (symbol_demangled_name): New function.
1509 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1510 turning most of it into a function.
1511 (symbol_demangled_name): Export.
1512
19de93d0
MS
15132002-10-23 Michael Snyder <msnyder@redhat.com>
1514
1515 * valops.c (value_of_local): Restore quotes in error message.
1516
89aad1f9
EZ
15172002-10-23 Elena Zannoni <ezannoni@redhat.com>
1518
1519 * symtab.c (symbol_init_language_specific): New function.
1520 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1521 turning most of it into a function.
1522 (symbol_init_language_specific): Export.
1523
d9fa45fe
DC
15242002-10-23 David Carlton <carlton@math.stanford.edu>
1525
1526 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1527 (dwarf_attr_name): Ditto.
1528 (dwarf_type_encoding_name): Ditto.
1529 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1530 (process_die): Handle DW_TAG_namespace,
1531 DW_TAG_imported_declaration, DW_TAG_imported_module.
1532 (read_namespace): New function.
1533
1045b512
JB
15342002-10-22 Joel Brobecker <brobecker@gnat.com>
1535
1536 * configure.in: Define NEW_PROC_API on Interix too.
1537 * configure: Regenerate.
1538
15392002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1540
1541 * configure: Regenerate using the proper version of autoconf.
1542
3987b9d4
EZ
15432002-10-21 Elena Zannoni <ezannoni@redhat.com>
1544
1545 * findvar.c (read_var_value): Temporarily disable TLS code, until
1546 complete TLS support is added.
1547
9d774e44
EZ
15482002-10-21 Jim Blandy <jimb@redhat.com>
1549 Elena Zannoni <ezannoni@redhat.com>
1550
1551 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1552 for thread local storage locations.
1553 (struct symbol): Add objfile field.
1554 (SYMBOL_OBJFILE): Define.
1555 * dwarf2read.c (is_thread_local): New static variable.
1556 (new_symbol): If variable is in thread local fill in address class
1557 and objfile appropriately.
1558 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1559 stack operation.
1560 * printcmd.c (address_info): Print the information for thread
1561 local storage variable.
1562 * findvar.c (read_var_value): In case of thread local variable,
1563 defer to the target vector code to compute address.
1564
bc4a16ae
EZ
15652002-10-21 Elena Zannoni <ezannoni@redhat.com>
1566
1567 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1568 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1569
407caf07
EZ
15702002-10-21 Elena Zannoni <ezannoni@redhat.com>
1571
1572 * symtab.h (address_class): Rename
1573 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1574 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1575 * printcmd.c (address_info): Ditto.
1576 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1577
005328e3
MK
15782002-10-20 Mark Kettenis <kettenis@gnu.org>
1579
afdb036a
MK
1580 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1581 DBREG_DRX macro to acces debug registers.
1582
ca02e098
MK
1583 * Makefile.in (i386obsd-tdep.o): New target.
1584
03cc47f7
MK
1585 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1586 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1587
005328e3
MK
1588 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1589 * config/i386/obsd.mt: New file.
1590 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1591 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1592 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1593 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1594 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1595 * i386obsd-tdep.c: New file.
1596
9c96f9f2
AF
15972002-10-19 Adam Fedor <fedor@gnu.org>
1598
1599 * objc-exp.y (name_not_typename): Fix invalid comment.
1600
ce1ed485
MK
16012002-10-20 Mark Kettenis <kettenis@gnu.org>
1602
1603 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1604 to allocate partial syms and macro byte caches.
1605
1efc7aaa
DC
16062002-10-18 David Carlton <carlton@math.stanford.edu>
1607
1608 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1609
7e1d63ec
AF
16102002-10-18 Adam Fedor <fedor@gnu.org>
1611
1612 * stabsread.c (find_name_end): New function.
1613 (define_symbol): Use it.
1614
6e8d29a9
DJ
16152002-10-18 Daniel Jacobowitz <drow@mvista.com>
1616
1617 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1618 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1619 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1620 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1621
1efc7aaa 16222002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1623
1624 * symfile.h: Add opaque declaration for struct obstack.
1625 Declare obsavestring to take a const char *.
1626 * symfile.c (obsavestring): Make first argument a const char *.
1627
1aeae86e
AF
16282002-10-16 Adam Fedor <fedor@gnu.org>
1629
1630 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1631 names when matching breakpoints in current file.
1632
8b2dbe47
KB
16332002-10-16 Kevin Buettner <kevinb@redhat.com>
1634
1635 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1636 (read_tag_pointer_type): Add address class support.
1637 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1638 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1639 New methods.
1640 * gdbarch.h, gdbarch.c: Regenerate.
1641 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1642 (make_type_with_address_space, recursive_type_dump): Add address
1643 class support.
1644 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1645 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1646 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1647
74451869
KD
16482002-10-16 Klee Dienes <kdienes@apple.com>
1649
1650 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1651 to get the last character of a char[] buffer, not
1652 name[sizeof(vptr_name)-1].
1653
ff4cb3e8
AF
16542002-10-14 Adam Fedor <fedor@gnu.org>
1655
1656 * symtab.h: New objc_specific struct.
1657 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1658 (SYMBOL_DEMANGLED_NAME): Likewise.
1659
da2cf7e0
AF
16602002-10-14 Adam Fedor <fedor@gnu.org>
1661
1662 * symfile.c (init_filename_language_table): Add ObjC file extension.
1663
4a351cef
AF
16642002-10-14 Adam Fedor <fedor@gnu.org>
1665
1666 * utils.c (puts_filtered_tabular): New function.
1667 (fprintf_symbol_filtered): Get ObjC demangled name.
1668 * defs.h (puts_filtered_tabular): Declared.
1669
9750e763
KB
16702002-10-14 Kevin Buettner <kevinb@redhat.com>
1671
1672 * c-lang.h (c_type_print_varspec_prefix): Delete.
1673 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1674 ``need_post_space'' parameter. Adjust all callers.
1675
eee771c1
DJ
16762002-10-14 Daniel Jacobowitz <drow@mvista.com>
1677
1678 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1679 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1680 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1681 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1682
46c82446
AF
16832002-10-13 Adam Fedor <fedor@gnu.org>
1684
1685 * source.c (print_source_lines): Update comments.
1686
d069f99d
AF
16872002-10-13 Adam Fedor <fedor@gnu.org>
1688
1689 * valops.c (value_of_local): New function.
1690 (value_of_this): Use it.
1691 * value.h (value_of_local): Declared.
1692
53c551b7
AF
16932002-10-13 Adam Fedor <fedor@gnu.org>
1694
1695 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1696 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1697
eb392fbf
AF
16982002-10-12 Adam Fedor <fedor@gnu.org>
1699
1700 * language.c (binop_result_type): Add language_objc to case.
1701 (integral_type): Likewise.
1702 (character_type): Likewise.
1703 (string_type): Likewise.
1704 (boolean_type): Likewise.
1705 (structured_type): Likewise.
1706 (binop_type_check): Likewise.
1707
e2b23ee9
AF
17082002-10-11 Adam Fedor <fedor@gnu.org>
1709
1710 * printcmd.c (address_info): Print 'self' for ObjC.
1711
b01ab485
AF
17122002-10-11 Adam Fedor <fedor@gnu.org>
1713
1714 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1715 OP_SELF.
1716
806e6073
AF
17172002-10-11 Adam Fedor <fedor@gnu.org>
1718
1719 * language.h (CAST_IS_CONVERSION): Add language_objc.
1720
50f85cdf
AF
17212002-10-11 Adam Fedor <fedor@gnu.org>
1722
1723 * defs.h (enum language): Add language_objc.
1724
0d540cdf
KD
17252002-10-11 Klee Dienes <kdienes@apple.com>
1726
69266111 1727 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1728 * gdbcore.h (read_memory_typed_address): Add prototype.
1729 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1730 to read a value destined for a CORE_ADDR, not read_memory_integer.
1731 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1732 (f77_get_dynamic_lowerbound): Ditto.
1733
d5dc7960
MH
17342002-10-11 Martin M. Hunt <hunt@redhat.com>
1735
1736 * utils.c (string_to_core_addr): After turning string into
1737 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1738 which will do necessary sign-extension, etc.
1739
8343f86c
DJ
17402002-10-11 Daniel Jacobowitz <drow@mvista.com>
1741
1742 * c-exp.y (THIS): Delete token and grammar rule.
1743 (yylex): Don't return THIS.
1744 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1745 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1746 * demangle.c (cplus_markers): Update comment. Put '$'
1747 first. Remove CPLUS_MARKER.
1748 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1749 * jv-exp.y (THIS): Delete token and grammar rule.
1750 (yylex): Don't return THIS.
1751 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1752 * objc-exp.y (THIS): Delete token and grammar rule.
1753 (yylex): Don't return THIS.
1754 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1755 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1756 (read_member_functions): Likewise for opname.
1757 (read_tilde_fields): Use is_cplus_marker.
1758
1759 * defs.h (CPLUS_MARKER): Don't define.
1760 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1761 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1762 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1763 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1764 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1765
1766 * config/i386/tm-i386v4.h: Delete file.
1767 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1768 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1769 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1770 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1771 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1772 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1773 * config/i386/i386v4.mt (TM_FILE): Likewise.
1774 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1775
967c0d83
MM
17762002-10-10 Marko Mlinar <markom@opencores.org>
1777
1778 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1779 accidentially not commited 2002-10-09
1780 * gdbarch.h, gdbarch.c: Re-generate.
1781
f74fa174
MM
17822002-10-09 Marko Mlinar <markom@opencores.org>
1783
1784 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1785 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1786 * gdbarch.h, gdbarch.c: Re-generate.
1787
57349743
JB
17882002-10-08 Petr Sorfa <petrs@caldera.com>
1789
1790 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1791
1792 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1793 so we can work on more than one compilation unit at a time. This
1794 helps prepare GDB to handle inter-CU die references.
1795 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1796 the code to be defined before struct comp_unit_head.
1797 (comp_unit_head): Added new members - offset, cu_head,
1798 begin_die, next and dwarf2_abbrevs.
1799 (dwarf2_abbrevs): Removed single static var; now member of
1800 struct comp_unit_head.
1801 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1802 members.
1803 (psymtab_to_symtab_1): Changed to work with the new
1804 struct comp_unit_head.
1805 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1806 constructs the dwarf2_abbrevs[] inside the cu_header.
1807 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1808 dwarf2_abbrev table to clean up.
1809 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1810 handling of dwarf2_abbrevs inside the cu_header.
1811 (read_partial_die): Now supports the call to the new
1812 dwarf2_lookup_abbrev.
1813 (read_full_die): Now supports the call to the new
1814 dwarf2_lookup_abbrev.
1815
4092aadb
CF
18162002-10-06 Christopher Faylor <cgf@redhat.com>
1817
1818 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1819 insure that shell variables, such as "transformed_name" are propagated
1820 to later shell statements in rule.
1821
af0b2512
MK
18222002-10-06 Mark Kettenis <kettenis@gnu.org>
1823
1824 * config/i386/nm-i386sco.h: Add protection against
1825 multiple-inclusion. Include "i386/nm-i386v.h".
1826 (REGISTER_U_ADDR): Remove define.
1827 (i386_register_u_addr): Remove prototype.
1828
d6020d45
MS
18292002-10-04 Michael Snyder <msnyder@redhat.com>
1830
1831 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1832 before treating it as a single-step event.
1833
7248f48e
AF
18342002-10-03 Adam Fedor <fedor@gnu.org>
1835
1836 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1837 (objc_demangle): Remove assignment in if statements, Replace
1838 free with xfree.
1839 (add_msglist): Likewise.
1840 (end_msglist): Likewise.
1841 (complare_selectors): Likewise.
1842 (selectors_info): Likewise.
1843 (compare_classes): Likewise.
1844 (classes_info): Likewise.
1845 (print_object_command): Likewise.
1846 (find_objc_msgcall_submethod): Replace PTR with void *.
1847 * objc-lang.h: Remove check for __STDC__.
1848
52c6a6ac
JJ
18492002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1850
1851 * ui-out.h (ui_out_field_fmt_int): New prototype.
1852 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1853 of field width and alignment.
1854 * stack.c (print_frame_info_base): When printing frame level, use
1855 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1856 PR gdb/192
1857
7e3cec17
JJ
18582002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1859
1860 * MAINTAINERS: Add self to Write After Approval list.
1861
a58dd373
EZ
18622002-10-02 Elena Zannoni <ezannoni@redhat.com>
1863
1864 * infcmd.c (interrupt_target_command_wrapper): Delete.
1865 (interrupt_target_command): Make non static.
1866 (nofp_registers_info): Make static.
1867 * stack.c (return_command_wrapper): Delete.
1868 (return_command): Make non static.
1869
cee6ddeb
EZ
18702002-10-02 Elena Zannoni <ezannoni@redhat.com>
1871
1872 * event-top.c (gdb_setup_readline): New function. Code moved from
1873 _initialize_event_loop().
1874 (_initialize_event_loop): Call gdb_setup_readline().
1875
c4ed33b9
AC
18762002-10-02 Andrew Cagney <ac131313@redhat.com>
1877
1878 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1879 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1880 * gdbarch.h, gdbarch.c: Re-generate.
1881
cef4f5dd
DJ
18822002-10-02 Daniel Jacobowitz <drow@mvista.com>
1883
1884 Fix PR gdb/778
1885 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1886 before recursing.
1887 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1888 of fill_in_vptr_fieldno.
1889
36dc181b 18902002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 1891
36dc181b
EZ
1892 * inferior.h (registers_info, stepi_command, nexti_command,
1893 continue_command, interrupt_target_command): Export from infcmd.c.
1894 * frame.h (args_info, selected_frame_level_changed_hook,
1895 return_command): Export from stack.c.
1896 * v850ice.c (stepi_command, nexti_command, continue_command): use
1897 prototypes from inferior.h.
1898 * tracepoint.c (registers_info, args_info, locals_info): Use
1899 prototypes from frame.h and inferior.h.
1900 * Makefile.in (mi-main.o): Add dependency on frame.h.
1901
6f99cb26
AC
19022002-10-02 Andrew Cagney <ac131313@redhat.com>
1903
da3eff49
AC
1904 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1905 value in register 3 adjusted by ppc_gp0_regnum.
1906
6f99cb26
AC
1907 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1908
da615bee
MM
19092002-10-02 Marko Mlinar <markom@opencores.org>
1910
1911 * MAINTAINERS: Add myself to the Write After Approval list.
1912
d154bee2
AO
19132002-10-01 Alexandre Oliva <aoliva@redhat.com>
1914
62a49b2c
AO
1915 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1916 of the section for the N64 ABI, fixed.
1917
d154bee2
AO
1918 * config/mips/tm-irix6.h: Include solib.h.
1919
ed348acc
EZ
19202002-10-01 Elena Zannoni <ezannoni@redhat.com>
1921
1922 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1923 GNU operators.
1924
da0f9dcd
AC
19252002-10-01 Andrew Cagney <ac131313@redhat.com>
1926
1927 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1928 and that "mi0" syntax has been removed.
1929
bdf64bac
DC
19302002-09-30 David Carlton <carlton@math.stanford.edu>
1931
1932 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1933 * ppc-sysv-tdep.c: #include "gdb_string.h".
1934 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1935 pacify GCC.
1936
54c2a1e6
AC
19372002-10-01 Andrew Cagney <ac131313@redhat.com>
1938
1939 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1940 "vrsave"'s register number.
1941
cedea778
AC
19422002-09-30 Andrew Cagney <ac131313@redhat.com>
1943
1944 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1945 use frame_unwind_signed_register to obtain the PC.
1946 (mips_frame_chain): Handle a generic dummy frame.
1947 (mips_init_extra_frame_info): When a generic dummy frame, don't
1948 re-compute the frame base.
1949 (mips_pop_frame): Handle generic dummy frames.
1950 (mips_gdbarch_init): When generic dummy frames, set
1951 use_generic_dummy_frames, push_dummy_frame to
1952 generic_push_dummy_frame, pc_in_call_dummy to
1953 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1954 generic_save_dummy_frame_tos.
1955
68315eb8
AC
19562002-09-30 Andrew Cagney <ac131313@redhat.com>
1957
1958 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1959 against TOP when TOP was explictly set.
1960 (generic_push_dummy_frame): Set TOP to zero.
1961
3b8630c3
EZ
19622002-09-30 Elena Zannoni <ezannoni@redhat.com>
1963
1964 * event-loop.c (start_event_loop): Rename variable 'result' to
1965 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1966
28ee05e9
KS
19672002-09-30 Keith Seitz <keiths@redhat.com>
1968
1969 * gdb-events.sh (selected_thread_changed): New event.
1970 * gdb-events.c: Regenerated.
1971 * gdb-events.h: Regenerated.
1972
6eecb1c8
HPN
19732002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1974
1975 * MAINTAINERS: Add self to Write After Approval list.
1976
92df71f0
FN
19772002-09-30 Fernando Nasser <fnasser@redhat.com>
1978
3b8630c3
EZ
1979 * disasm.c: New file.
1980 * disasm.h: New file.
92df71f0
FN
1981 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1982 (compare_lines): Ditto.
1983 (dump_insns): Ditto.
3b8630c3
EZ
1984 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1985 argument.
92df71f0 1986 (do_assembly_only): Ditto.
3b8630c3
EZ
1987 (do_disassembly): Renamed to gdb_disassembly and moved to
1988 disasm.c. Sdded uiout argument.
1989 * Makefile.in: Add new files. Reorder SFILES list. Update
1990 dependencies. Include libgdb.a later in the insight executable.
92df71f0 1991
0c22854d
AC
19922002-09-29 Andrew Cagney <ac131313@redhat.com>
1993
1994 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1995 bfd/elf64-alpha-fbsd.c.
1996
e67f2023
AC
19972002-09-29 Andrew Cagney <ac131313@redhat.com>
1998
1999 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2000 i386gnu-tdep.c.
2001
89396210
AC
20022002-09-29 Andrew Cagney <ac131313@redhat.com>
2003
2004 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2005 __FUNCTION__.
2006 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2007 function name.
2008 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2009 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2010 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2011 (S_msg_sig_post_reply): Ditto.
2012
7079c36c
CV
20132002-09-28 Corinna Vinschen <vinschen@redhat.com>
2014
89396210
AC
2015 * sh-tdep.c (sh_use_struct_convention): Use definition according
2016 to ABI.
7079c36c
CV
2017 (sh_push_arguments): Store in register with correct endianess.
2018 (sh_default_store_return_value): Ditto.
2019 (sh_gdbarch_init): Set sizeof long double to 8.
2020
975ac915
MK
20212002-09-27 Mark Kettenis <kettenis@gnu.org>
2022
2023 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2024 Fix some whitespace problems.
2025
9bbe19fb
DC
20262002-09-27 David Carlton <carlton@math.stanford.edu>
2027
2028 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2029 (mcore-tdep.o): Ditto.
2030 (ns32k-tdep.o): Ditto.
2031 (ns32knbsd-tdep.o): Ditto.
2032 (sh3-rom.o): Ditto.
2033 (vax-tdep.o): Ditto.
2034 * cris-tdep.c: #include "gdb_string.h"
2035 * mcore-tdep.c: Ditto.
2036 * ns32k-tdep.c: Ditto.
2037 * ns32knbsd-tdep.c: Ditto.
2038 * sh3-rom.c: Ditto.
2039 * vax-tdep.c: Ditto.
2040
43b2fdc7
DC
20412002-09-27 David Carlton <carlton@math.stanford.edu>
2042
2043 * config/djgpp/fnchange.lst: Add entries for
2044 gdb/testsuite/gdb.c++/m-static files.
2045
e8cfbbd9
JW
20462002-09-27 Jim Wilson <wilson@redhat.com>
2047
2048 * MAINTAINERS: Add myself to the Write After Approval list.
2049
43b2fdc7 20502002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2051
2052 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2053
2054
9f3b7f07
AC
20552002-09-26 Andrew Cagney <ac131313@redhat.com>
2056
2057 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2058 frame.
2059
11269d7e
AC
20602002-09-26 Andrew Cagney <ac131313@redhat.com>
2061
2062 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2063 (rs6000_struct_return_address): Delete variable.
2064 (rs6000_store_struct_return): Update.
2065 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2066 deprecated_extract_struct_value_address.
2067 (rs6000_frame_align): New function.
2068 (rs6000_gdbarch_init): Set frame_align.
2069
f15ab4a7
AC
20702002-09-26 Andrew Cagney <ac131313@redhat.com>
2071
2072 From Grace Sainsbury <graces@redhat.com>:
2073 * Makefile.in (gdbtk-main.o): New target.
2074 (gdb.o): New target.
2075 (main_h): Define.
2076 (main.o): Update dependencies.
2077 (gdb$(EXEEXT)): Add gdb.o.
2078 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2079 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2080 (SUBDIR_GDBTK_CLEAN): Set.
2081 (install-gdbtk): Install the insight binary.
2082 (uninstall-gdbtk): New target.
2083 (all-gdbtk, clean-gdbtk): New rule.
2084 * top.c (use_windows): Default to zero.
2085 * main.c: Include "main.h".
2086 (main): Delete.
2087 (struct captured_main_args): Delete.
2088 (gdb_main): New function.
2089 * main.h: New file.
2090 * gdb.c: New File.
2091
e36180d7
AC
20922002-09-25 Andrew Cagney <cagney@redhat.com>
2093
2094 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2095 (frame_map_regnum_to_name): New function.
2096 (frame_map_name_to_regnum): New function.
2097 * frame.h (frame_map_name_to_regnum): Declare.
2098 (frame_map_regnum_to_name): Declare.
2099 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2100 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2101 * parse.c: Do not include "builtin-regs.h".
2102 (target_map_name_to_register): Delete function.
2103 (write_dollar_variable): Use frame_map_name_to_regnum.
2104 * parser-defs.h (target_map_name_to_register): Delete declaration.
2105 * expprint.c: Include "frame.h".
2106 (print_subexp): Use frame_map_regnum_to_name.
2107 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2108 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2109
8b69000d
AC
21102002-09-25 Andrew Cagney <ac131313@redhat.com>
2111
2112 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2113 wasn't saved, and the next innermost frame is a dummy, return the
2114 dummy frame's link register.
2115
046ca86a
JB
21162002-09-24 Jim Blandy <jimb@redhat.com>
2117
2118 Fix from Paul Breed:
2119 * main.c (captured_main): Add a `break' after the case for 'b'.
2120
94b66fa7
KS
21212002-09-24 Keith Seitz <keiths@redhat.com>
2122
2123 * varobj.c (c_type_of_child): Use get_target_type instead
2124 of TYPE_TARGET_TYPE.
2125
c214a6fd
FN
21262002-09-22 Fernando Nasser <fnasser@redhat.com>
2127
53cb0458
FN
2128 * source.c (get_current_or_default_source_symtab_and_line): Remove
2129 function.
2130 (set_default_source_symtab_and_line): New function. Attempts to
2131 determine a source file to list lines from if one is not currently
2132 defined.
2133 (get_current_source_symtab_and_line): Initialize sal.pc and
2134 sal.end fields.
2135 (set_current_source_symtab_and_line): Mark argument as const.
2136 * source.h: Update declarations and comments.
2137 * linespec.c (decode_line_1): Replace call to removed routine above.
2138 * stack.c (print_frame_info_base): Ditto.
2139 * cli/cli-cmds.c (edit_command): Ditto.
2140 (list_command): Ditto.
2141
21422002-09-22 Fernando Nasser <fnasser@redhat.com>
2143
d6020d45 2144 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2145 sal.pc and sal.end fields.
c214a6fd
FN
2146 (get_current_or_default_source_symtab_and_line): Ditto.
2147 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2148 so we do not cause a new source symtab to be searched for (reverting an
2149 unintentional change from the 2002-09-20 patch).
2150 * scm-lang.c (scm_unpac): Ditto.
2151
cc3b68a5
AC
21522002-09-21 Andrew Cagney <cagney@redhat.com>
2153
2154 * complaints.c (symfile_explanations): Remove new-line from
2155 ``isolated_message''.
2156 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2157 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2158
5835abe7
NC
21592002-09-20 Nick Clifton <nickc@redhat.com>
2160
2161 * NEWS: Announce that V850EA ISA is no longer supported.
2162 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2163
a15ef5f5
DC
21642002-09-20 David Carlton <carlton@math.stanford.edu>
2165
06ba1b39
DC
2166 * Makefile.in (c-lang.o): Correct dependencies.
2167 (utils.o): Gather dependencies.
2168 (charset.o): Move.
a15ef5f5
DC
2169 * c-lang.c: #include "gdb_string.h"
2170
87885426
FN
21712002-09-20 Fernando Nasser <fnasser@redhat.com>
2172
2173 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2174 * cli/cli-cmds.c (list_command): New function. Implements the new
2175 cli edit command.
2176 (_init_cli_cmds): Add new command definition.
2177 * gdb.1: Document edit command.
2178 * doc/gdb.texinfo: Document edit command.
2179
21802002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2181
2182 * source.c: Make global variables current_source_symtab and
2183 current_source_line static.
2184 (list_command): Moved to cli/cli-cmds.c.
2185 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2186 (get_first_line_listed): New accessor function.
2187 (get_lines_to_list): New accessor function.
2188 (get_current_source_symtab_and_line): New function. Retrieves the
2189 position in the source code that we consider current.
2190 (get_current_or_default_source_symtab_and_line): New function.
2191 Like the above but attempts to determine a default position if one
2192 is not currently defined.
2193 (set_current_source_symtab_and_line): New function. Sets the source
2194 code position considered current and returns the previously set one.
2195 (clear_current_source_symtab_and_line): Reset stored information about
2196 a current source line.
2197 (_initialize_source): Remove registration for the "list" command and
2198 its alias.
2199 * source.h: Add declarations for the new functions above.
2200 * symtab.h: Remove declarations for the global variables mentioned
2201 above.
2202 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2203 obtain current source line.
2204 * linespec.c (decode_line_1): Ditto.
2205 * macroscope.c (default_macro_scope): Ditto.
2206 * scm-lang.c (scm_unpac): Ditto.
2207 * stack.c (print_frame_info_base): Ditto.
2208 * symfile.c (clear_symtab_users): Ditto.
2209 * symtab.c (decode_line_spec): Ditto.
2210 * cli/cli-cmds.c (list_command): Moved here from source.c.
2211 (ambiguous_line_spec): Moved here from source.c.
2212 (_init_cli_cmds): Add definition for "list" and its alias.
2213 * Makefile.in: Update dependencies.
2214
ddd216ea
CV
22152002-09-20 Corinna Vinschen <vinschen@redhat.com>
2216
2217 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2218 with what gcc thinks is correct.
2219
6d305052
CV
22202002-09-20 Corinna Vinschen <vinschen@redhat.com>
2221
2222 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2223 multiple register push instruction.
2224
234b45d4
KB
22252002-09-19 Jim Blandy <jimb@redhat.com>
2226
2227 Add support for distinct host and target character sets.
2228 * charset.c, charset.h: New files.
2229 * c-exp.y: #include "charset.h".
2230 (yylex): Convert character and string literals to the target
2231 character set, before returning them as the semantic value of the
2232 token.
2233 * c-lang.c: #include "charset.h".
2234 (c_emit_char): Use charset-specific methods to recognize
2235 characters with backslash escape forms, to decide which characters
2236 to print literally and which to print using numeric escape
2237 sequences, and to convert target characters to host characters
2238 before printing.
2239 * utils.c: #include "charset.h".
2240 (no_control_char_error): New function.
2241 (parse_escape): Use charset-specific methods to recognize
2242 backslash escapes, parse `control character' notation, and convert
2243 characters from the host character set to the target character set.
2244 * configure.in: Set the default host character set.
2245 Check where to find iconv, and what its argument types might be.
2246 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2247 * Makefile.in (SFILES): List charset.c.
2248 (COMMON_OBS): List charset.o.
2249 (charset.o): New rule.
2250 (charset_h): New header dependency variable.
2251 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2252 (LIBICONV): New variable, set by configure.
2253 (CLIBS): Include $(LIBICONV) here.
2254 * aclocal.m4, config.in, configure: Regenerated.
2255
525d6a61
JB
22562002-09-19 Joel Brobecker <brobecker@gnat.com>
2257
2258 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2259 bison 1.35 warning.
2260
3ed93867
RE
22612002-09-19 Richard Earnshaw <rearnsha@arm.com>
2262
2263 * gdb_mbuild.sh: New file.
2264
437666f8
AC
22652002-09-19 Andrew Cagney <ac131313@redhat.com>
2266
2267 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2268
389e51db
AC
22692002-09-18 Andrew Cagney <ac131313@redhat.com>
2270
2271 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2272 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2273 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2274 valops.c, value.h: Revert previous change.
2275
3b4efeaa
MS
22762002-09-18 Michael Snyder <msnyder@redhat.com>
2277
2278 Preliminary support for Objective-C:
2279 * defs.h (language_objc): New enum value.
2280 (puts_filtered_tabular): Declaration only, exported from utils.c.
2281 (skip_quoted): Delete, declared in completer.h.
2282 * c-exp.y: Include completer.h.
2283 * p-exp.y: Ditto.
2284 * jv-exp.y: Ditto.
2285 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2286 New operator enum values.
2287 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2288 * language.c (binop_result_type): Handle language_objc case.
2289 (integral_type, character_type, string_type, boolean_type,
2290 structured_type, binop_type_check): Ditto.
2291 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2292 (struct objc_specific): Add to general_symbol_info.
2293 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2294 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2295 * parser-defs.h (struct objc_class_str): New struct type.
2296 (start_msglist, end_msglist, add_msglist): Declaration only,
2297 exported from objc-lang.c.
2298 * value.h (value_of_local, value_nsstring,
2299 call_function_by_hand_expecting_type): Exported from valops.c.
2300 * valops.c (find_function_addr): Export.
2301 (call_function_by_hand_expecting_type): New function.
2302 (value_of_local): New function.
2303 * symfile.c (init_filename_language_table): Add ".m" extension
2304 for Objective-C.
2305 * utils.c (puts_filtered_tabular): New function.
2306 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2307 (set/show demangle): Extend help-string to refer to ObjC.
2308 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2309 * stabsread.c (symbol_reference_defined): Objective-C symbols
2310 may contain colons: make allowances when scanning stabs strings
2311 for colons.
2312 (objc_find_colon): New function.
2313 * printcmd.c (address_info): If language == objc then print
2314 "self" instead of "this".
2315 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2316 OP_NSSTRING, and OP_SELF.
2317 (prefixify_subexp): Ditto.
2318 * source.c (print_source_lines): Mention objc in comment.
2319 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2320 method names.
2321
b9caf505
AC
23222002-09-18 Andrew Cagney <ac131313@redhat.com>
2323
2324 * complaints.h: Update copyright.
2325 (struct complaints): Declare.
2326 (struct complaint): Make `message' constant.
2327 (internal_complaint): Declare.
2328 (complaint): Declare.
2329 (complaint_root): Delete declaration.
2330 (symfile_complaints): Delete declaration.
2331 (struct complaints): Add opaque declaration.
2332 (clear_complaints): Add a complaints parameter.
2333 * complaints.c: Update copyright.
2334 (enum complaint_series): Define.
2335 (complaint_root): Delete.
2336 (struct complaints): Define.
2337 (complaint_sentinel, symfile_complaint_book): New variables.
2338 (symfile_explanations, symfile_complaints): New variables.
2339 New variables.
2340 (get_complaints): New function.
2341 (vcomplaint): New function.
2342 (complaint): New function.
2343 (internal_complaint): New function.
2344 (complain): Call vcomplain with symfile_complaint.
2345 (clear_complaints): Rewrite.
2346 (_initialize_complaints): Use add_setshow_command.
2347 * Makefile.in (complaints.o): Update dependencies.
2348 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2349 to call to clear_complaints.
2350 (new_symfile_objfile, reread_symbols): Ditto.
2351 (oldsyms_complaint): Delete.
2352 (empty_symtab_complaint, unknown_option_complaint): Delete.
2353 (free_named_symtabs): Use complaint instead of complain.
2354
d2e6263c
MS
23552002-09-18 Michael Snyder <msnyder@redhat.com>
2356
5fb2031a
AC
2357 Contributed by Apple Computer, Inc. Merged with current sources
2358 by Adam Fedor <fedor@doc.com> [cagney].
2359
d2e6263c
MS
2360 * objc-lang.c: First clean-up round: comments, indentation.
2361 * objc-lang.h: Ditto.
2362 * objc-lang.y: Ditto.
2363
dec43320
AC
23642002-09-18 Andrew Cagney <ac131313@redhat.com>
2365
2366 * maint.c (maintenance_internal_error): Print the parameter as the
2367 error message.
2368 (maintenance_internal_warning): New function.
2369 (_initialize_maint_cmds): Add command `maint internal-warning'.
2370
2371 * defs.h (internal_warning, internal_vwarning): Declare.
2372 * utils.c (struct internal_problem): Define.
2373 (internal_vproblem): New function.
2374 (internal_warning): New function.
2375 (internal_vwarning): New function.
2376 (internal_warning_problem, internal_error_problem): New variables.
2377 (internal_verror): Just call internal_vproblem.
2378
b81654f1
MS
23792002-09-18 Michael Snyder <msnyder@redhat.com>
2380
2381 * objc-lang.c: New file, support for Objective-C.
2382 Preliminary check-in, not yet integrated into gdb.
2383 * objc-lang.h: New file.
2384 * objc-exp.y: New file.
2385
0542c381
AC
23862002-09-18 Andrew Cagney <ac131313@redhat.com>
2387
7bda5e4a
AC
2388 * infrun.c (signal_stop_update): Convert definition to ISO C.
2389 (signal_print_update): Ditto.
2390 (signal_pass_update): Ditto.
2391 * inflow.c (terminal_save_ours): Ditto.
2392
5247b418
AC
2393 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2394 comments.
2395
fc60962c
AC
2396 * config/djgpp/fnchange.lst: Handle name clashes between
2397 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2398 bfd/coff-tic80.c.
2399
0542c381
AC
2400 * i386-linux-tdep.h: Fix tipo.
2401
5b924b9b
AF
24022002-09-18 Adam Fedor <fedor@gnu.org>
2403
2404 * MAINTAINERS: Add myself to the Write After Approval list.
2405
5afc051b
JB
24062002-09-18 Jim Blandy <jimb@redhat.com>
2407
2408 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2409 texthigh and textlow to reader-specific structs caused
2410 objfile_relocate to miss them. This is fixable, but the work that
2411 the change was supposed to prepare GDB for never got done anyway.
2412
eb944380
DC
24132002-09-18 David Carlton <carlton@math.stanford.edu>
2414
2415 * MAINTAINERS: Alphabetize Write After Approval list.
2416
948e66d9
DJ
24172002-09-18 Daniel Jacobowitz <drow@mvista.com>
2418
2419 Fix PR gdb/709
2420 * values.c (value_static_field): Call read_var_value.
2421
dc604539
AC
24222002-09-18 Andrew Cagney <ac131313@redhat.com>
2423
2424 * valops.c (hand_function_call): Align the initial stack pointer
2425 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2426 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2427 return value.
2428 * mips-tdep.c (mips_frame_align): New function.
2429 (mips_gdbarch_init): Set frame_align.
2430 * gdbarch.sh (FRAME_ALIGN): New method.
2431 * gdbarch.h, gdbarch.c: Re-generate.
2432
cb7e422f
ML
24332002-09-18 Michal Ludvig <mludvig@suse.cz>
2434
2435 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2436 registers.
2437
a094c6fb
AC
24382002-09-17 Andrew Cagney <ac131313@redhat.com>
2439
2440 * NEWS: Mention that MIPS $fp behavior changed.
2441 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2442 reference to FP_REGNUM.
2443 (mipsnbsd_cannot_store_register): Ditto.
2444 * mips-linux-nat.c: Update copyright.
2445 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2446 (mips_linux_cannot_store_register): Ditto.
2447 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2448 * config/mips/tm-mips.h: Update copyright.
2449 (FP_REGNUM): Delete macro.
2450 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2451 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2452 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2453 (mips_r3041_reg_names, mips_r3051_reg_names)
2454 (mips_r3081_reg_names): Replace "fp" with "".
2455 Fix PR gdb/480.
2456
45cf40d1
TR
24572002-09-17 Theodore A. Roth <troth@verinet.com>
2458
2459 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2460 generic_read_register_dummy() (PR gdb/703).
2461 (avr_push_return_address): #if 0 out unused vars.
2462 (avr_gdbarch_init): Enable use of avr_push_return_address().
2463
c7e701b5
MS
24642002-09-17 Michael Snyder <msnyder@redhat.com>
2465
d76ba2a5 2466 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2467 RTE will take care of it.
2468
20bcf01c
AC
24692002-09-17 Andrew Cagney <ac131313@redhat.com>
2470
2471 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2472 invalid, return SP_REGNUM.
2473
009a9971 24742002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2475
2476 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2477 point registers without sign extension.
2478
135c175f
AC
24792002-09-17 Andrew Cagney <cagney@redhat.com>
2480
2481 * blockframe.c (deprecated_read_register_dummy): Rename
2482 generic_read_register_dummy.
2483 * frame.c (frame_unwind_signed_register): New function.
2484 (frame_unwind_unsigned_register): New function.
2485 * frame.h (frame_unwind_signed_register): Declare.
2486 (frame_unwind_unsigned_register): Declare.
2487 (deprecated_read_register_dummy): Rename
2488 generic_read_register_dummy.
2489
2490 * h8300-tdep.c (h8300_frame_chain): Update.
2491 (h8300_frame_saved_pc): Update.
2492 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2493 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2494 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2495 (s390_frame_chain): Update.
2496 * v850-tdep.c (v850_find_callers_reg): Update.
2497 (v850_frame_saved_pc): Update.
2498 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2499 (m32r_find_callers_reg): Update.
2500 (m32r_frame_saved_pc): Update.
2501 * sh-tdep.c (sh_find_callers_reg): Update.
2502 (sh64_get_saved_pr): Update.
2503 (sh_init_extra_frame_info): Update.
2504 (sh_init_extra_frame_info): Update.
2505 (sh64_init_extra_frame_info): Update.
2506 (sh64_init_extra_frame_info): Update.
2507 * mcore-tdep.c (mcore_find_callers_reg): Update.
2508 (mcore_frame_saved_pc): Update.
2509 (mcore_init_extra_frame_info): Update.
2510 * i386-tdep.c (i386_frame_saved_pc): Update.
2511 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2512 (ia64_init_extra_frame_info): Update.
2513 (ia64_init_extra_frame_info): Update.
2514 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2515 * cris-tdep.c (cris_init_extra_frame_info): Update.
2516 * avr-tdep.c (avr_frame_chain): Update.
2517 (avr_init_extra_frame_info): Update.
2518 (avr_frame_saved_pc): Update.
2519 * arm-tdep.c (arm_find_callers_reg): Update.
2520 (arm_init_extra_frame_info): Update.
2521 (arm_frame_saved_pc): Update.
2522
a741e514
TT
25232002-09-17 Tom Tromey <tromey@redhat.com>
2524
2525 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2526 is "'".
2527
d1a8e808
CV
25282002-09-17 Corinna Vinschen <vinschen@redhat.com>
2529
2530 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2531 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2532 NEXT_PROLOGUE_INSN.
2533 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2534 NEXT_PROLOGUE_INSN.
2535
d9025a18
JB
25362002-09-16 Joel Brobecker <brobecker@gnat.com>
2537
2538 * osfsolib.c: Remove file, replaced by solib-osf.c.
2539 * Makefile.in: Remove compilation rules for osfsolib.c.
2540
1b2ef1b6
DC
25412002-09-16 David Carlton <carlton@math.stanford.edu>
2542
2543 * cp-valprint.c (cp_print_class_method): Correct args to
2544 check_stub_method_group.
2545
928e48af
CV
25462002-09-16 Corinna Vinschen <vinschen@redhat.com>
2547
2548 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2549 `set architecture'. Unify naming convention of functions.
2550 (h8300_skip_prologue): Improve prologue analysis.
2551 (h8300_push_arguments): Rewritten to more closely match GCC's
2552 bizarre argument-passing behavior, along with the comment describing
2553 said behavior.
2554 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2555 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2556 sim, remote-e7000.c, remote-hms.c and remote.c
2557
5e3397bb
MK
25582002-09-15 Mark Kettenis <kettenis@gnu.org>
2559
2560 * i386-tdep.c (gdb_print_insn_i386): Removed.
2561 (i386_print_insn): New function.
2562 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2563 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2564 tm_print_insn_info.
2565
f710f4fc
MK
25662002-09-14 Mark Kettenis <kettenis@gnu.org>
2567
2568 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2569 zero.
2570
db54fef4
CV
25712002-09-14 Corinna Vinschen <vinschen@redhat.com>
2572
2573 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2574 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2575 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2576
2becadee
CF
25772002-09-13 Christopher Faylor <cgf@redhat.com>
2578
2579 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2580
de17c821
DJ
25812002-09-13 Daniel Jacobowitz <drow@mvista.com>
2582
2583 * gdbtypes.c (check_stub_method): Make static.
2584 (check_stub_method_group): New function.
2585 * gdbtypes.h: Update prototypes.
2586 * cp-support.c: New file.
2587 * cp-support.h: New file.
2588
2589 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2590 (update_method_name_from_physname): New function.
2591 (read_member_functions): Correct method names for operators
2592 and v3 constructors/destructors. Separate v2 constructors and
2593 destructors.
2594 * Makefile.in (stabsread.o): Update dependencies.
2595 (SFILES): Add cp-support.c.
2596 (COMMON_OBS): Add cp-support.o.
2597 (cp_support_h, cp-support.o): Add.
2598
2599 * cp-valprint.c (cp_print_class_method): Call
2600 check_stub_method_group instead of check_stub_method. Remove
2601 extraneous QUITs.
2602 * p-valprint.c (pascal_object_print_class_method): Likewise.
2603 * valops.c (search_struct_method): Likewise.
2604 (find_method_list, value_struct_elt_for_reference): Likewise.
2605
e76cff22
AC
26062002-09-13 Andrew Cagney <cagney@redhat.com>
2607
2608 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2609 * gdbarch.h, gdbarch.c: Regenerate.
2610
905abb3f
AC
26112002-09-13 Andrew Cagney <ac131313@redhat.com>
2612
2613 * frame.c (find_saved_register): Delete function.
2614 * frame.h (find_saved_register): Delete declaration.
2615 Fix PR gdb/631.
2616
64159455
AC
2617Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2618
2619 * mips-tdep.c (read_next_frame_reg): Re-hack using
2620 frame_register_unwind.
2621
795e1e11
AC
2622Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2623
2624 * mips-tdep.c (mips_get_saved_register): Re-hack using
2625 frame_register_unwind.
2626
5720643c
JB
26272002-09-12 Joel Brobecker <brobecker@gnat.com>
2628
2629 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2630 vector. Will be useful for Interix.
2631 * gdbarch.h, gdbarch.c: Regenerate.
2632
2633 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2634 name of the malloc function by NAME_OF_MALLOC.
2635
3bada2a2
JB
26362002-09-12 Joel Brobecker <brobecker@gnat.com>
2637
2638 * value.h (find_function_in_inferior): Add const keyword to
2639 one of the parameters. Allows us to invoke this function with
2640 a const char *.
2641 * valops.c (find_function_in_inferior): Likewise.
2642
3db26b01
JB
26432002-09-12 Joel Brobecker <brobecker@gnat.com>
2644
2645 * exec.c (xfer_memory): Fix compilation warning with old versions
2646 of GCC.
2647 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2648
17c5ed2c
DC
26492002-09-12 David Carlton <carlton@math.stanford.edu>
2650
2651 * symtab.h: Run through gdb_indent.h.
2652 Add 2002 to Copyright year list.
2653
ecd1107e
AM
26542002-09-12 Alan Modra <amodra@bigpond.net.au>
2655
2656 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2657 mach constants.
2658 * MAINTAINERS: Add myself to write after approval list.
2659
e64f66d1
JB
26602002-09-11 J. Brobecker <brobecker@gnat.com>
2661
2662 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2663
f9395794
JB
26642002-09-11 J. Brobecker <brobecker@gnat.com>
2665
2666 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2667 Interix.
2668
1a303dec
MS
26692002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2670
2671 * procfs.c (do_detach): Clear current signal, not just fault.
2672 Corrects problem with breakpoint trap signal leaking to detached
2673 process on Tru64.
2674
c0219d42
MS
26752002-09-10 Michael Snyder <msnyder@redhat.com>
2676
2677 * buildsym.c (finish_block): Protect against null pointer.
2678
9d84ac84
AC
26792002-09-10 Andrew Cagney <cagney@redhat.com>
2680
2681 * infcmd.c (default_print_registers_info): Send all output to
2682 ``file'' instead of ``gdb_stdout''.
2683
77d8f2b4
MS
26842002-09-10 Michael Snyder <msnyder@redhat.com>
2685
2686 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2687 LONGEST, and use signed register read (addresses are sign-
2688 extended for mips).
2689
99656a61
SC
26902002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2691
2692 * event-loop.c (gdb_do_one_event): Make public.
2693 * event-loop.h (gdb_do_one_event): Declare.
2694
da12f4d8
JL
26952002-09-10 Jeff Law <law@redhat.com>
2696
2697 * infttrace.c (child_resume): Simplify and rework to avoid
2698 TT_PROC_CONTINUE.
2699
d0aee0c4
FF
27002002-09-09 Fred Fish <fnf@intrinsity.com>
2701
2702 * printcmd.c (print_scalar_formatted): "len" is the number of
2703 target bytes, NOT the number of target bits.
2704
7cb3ec5e
EZ
27052002-09-09 Elena Zannoni <ezannoni@redhat.com>
2706
2707 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2708 * top.c (init_main): Set rl_terminal_name.
2709
4dc81987
AS
27102002-09-08 Aidan Skinner <aidan@velvet.net>
2711
2712 * ada-lang.c (ada_array_bound, ada_type_match,
2713 _initialize_ada_language): Fix K&R definitions.
2714 * ada-tasks.c (get_current_task): Fix K&R definitions.
2715 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2716
842330b4
CF
27172002-09-07 Christopher Faylor <cgf@redhat.com>
2718
2719 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2720 Add XP.
2721
43156d82
MK
27222002-09-06 Mark Kettenis <kettenis@gnu.org>
2723
66da5fd8
MK
2724 * i386-tdep.c (i386_register_virtual_type,
2725 i386_register_convertible, i386_register_convert_to_virtual,
2726 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2727 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2728 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2729 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2730 Don't set push_arguments twice.
2731
4b218c18
MK
2732 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2733 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2734 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2735 sigtramp_end to NULL.
2736 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2737 defines.
2738 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2739
4cc314d5
MK
2740 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2741 whitespace.
2742
43156d82
MK
2743 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2744 * gdbarch.h, gdbarch.c: Re-generate.
2745 * blockframe.c (find_pc_sect_partial_function): Convert to use
2746 SIGTRAMP_START_P predicate.
2747
6672060b
MS
27482002-09-05 Michael Snyder <msnyder@redhat.com>
2749
a90c3637
MS
2750 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2751 generic_dummy_frame method and old method. Also distinguish
2752 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2753 (arm_extract_return_value): Use new regcache method.
a90c3637 2754
6672060b
MS
2755 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2756 adjustment that doesn't conform to the ABI.
2757 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2758 saved regcache, not from current regcache.
2759
299ffc64
AC
27602002-09-05 Andrew Cagney <ac131313@redhat.com>
2761
2762 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2763 * README: Update.
2764
a3a2ee65
JT
27652002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2766
2767 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2768 if arm_apcs_32 is false.
2769
2bc7eea9
AC
27702002-09-04 Andrew Cagney <ac131313@redhat.com>
2771
2772 GDB 5.3 branch created.
2773
8a55a7c5
TR
27742002-09-03 Theodore A. Roth <troth@verinet.com>
2775
2776 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2777 generic_unwind_get_saved_register.
2778
e26fb1d7
DC
27792002-09-03 David Carlton <carlton@math.stanford.edu>
2780
2781 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2782 argument (PR gdb/653). Update call to smash_to_method_type.
2783 (read_structure_scope): Update call to dwarf2_add_member_fn.
2784
30d52491
ML
27852002-09-03 Michal Ludvig <mludvig@suse.cz>
2786
2787 * x86-64-linux-tdep.c: Include gdb_string.h
2788 * x86-64-linux-nat.c: Ditto.
2789
06891d83
JT
27902002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2791
2792 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2793 when YYDEBUG is set to 1.
2794 * c-exp.y: Likewise.
2795 * f-exp.y: Likewise.
2796 * jv-exp.y: Likewise.
2797 * m2-exp.y: Likewise.
2798 * p-exp.y: Likewise.
2799
7d400e77
JT
28002002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2801
2802 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2803 dependency list.
2804 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2805 solib_svr4_fetch_link_map_offsets to
2806 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2807 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2808 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2809 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2810 solib-svr4.o, and solib-legacy.o.
2811 * config/i386/tm-nbsd.h: Include solib.h.
2812
704a27c4
JT
28132002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2814
2815 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2816 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2817 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2818 comment noting that this needs its own target configuration.
2819 * config/i386/nbsd.mt: New file.
2820 * config/i386/nbsdaout.mt: Remove.
2821 * config/i386/nbsdelf.mt: Ditto.
2822 * config/i386/tm-nbsdaout.h: Ditto.
2823
d66198e1
JT
28242002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2825
2826 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2827 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2828 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2829 tdep->sigtramp_end.
2830 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2831 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2832 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2833
3cac699e
JT
28342002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2835
2836 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2837 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2838 * i386-tdep.h (i386bsd_init_abi): New prototype.
2839 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2840 function declaration.
2841 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2842 for NetBSD-a.out or NetBSD-ELF.
2843 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2844 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2845 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2846 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2847 and nbsd-tdep.h.
2848 (i386nbsd_pc_in_sigtramp): New function.
2849 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2850 i386nbsd_pc_in_sigtramp.
2851 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2852 and i386nbsdelf_init_abi OS ABI handlers.
2853 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2854 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2855
7010ca0a
MK
28562002-09-02 Mark Kettenis <kettenis@gnu.org>
2857
2858 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2859 registers if the target really has them.
2860
6dd93b72
JT
28612002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2862
2863 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2864 than nbsd-tdep.h.
2865
2ca8ae21
JT
28662002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2867
2868 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2869 list.
2870 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2871 (alphanbsd_skip_sigtramp_frame): New functions.
2872 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2873 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2874 to alphanbsd_sigcontext_addr.
2875
3d9b49b0
JT
28762002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2877
2878 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2879 list.
2880 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2881 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2882 nbsd_pc_in_sigtramp.
2883 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2884 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2885 * nbsd-tdep.c: Include gdb_string.h.
2886 (nbsd_pc_in_sigtramp): New function.
2887 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2888 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2889 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2890 ppcnbsd_pc_in_sigtramp.
2891 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2892 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2893 shnbsd_pc_in_sigtramp.
2894 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2895 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2896 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2897
c860120c
PM
28982002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2899
2900 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2901 watchpoints to NULL.
2902 (insert_breakpoints): set val field of watchpoints if NULL.
2903
2904
c7612d53
JB
29052002-08-29 Jim Blandy <jimb@redhat.com>
2906
2907 * symtab.c (lookup_symbol_aux): In the cases where we find a
2908 minimal symbol of an appropriate name and use its address to
2909 select a symtab to read and search, use `name' (as passed to us)
2910 as the demangled name when searching the symtab's global and
2911 static blocks, not the minsym's name.
2912
66609862
KS
29132002-08-29 Keith Seitz <keiths@redhat.com>
2914
2915 * stack.c (print_frame_info_base): Always set current_source_symtab
2916 and current_source_line.
2917
151fefe2
JB
29182002-08-29 Donn Terry <donnte@microsoft.com>
2919
2920 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2921
bfb3754e
KS
29222002-08-28 Keith Seitz <keiths@redhat.com>
2923
2924 * stack.c (select_frame): Add FIXME concerning selected-frame
2925 events.
2926 (select_frame_command): Send selected-frame-level-changed
2927 event notification, but only if the level actually changed.
2928 (up_silently_base): Add selected-frame-level-changed event
2929 notification.
2930 (down_silently_base): Likewise.
2931
e822a2a0
AC
29322002-08-28 Andrew Cagney <ac131313@redhat.com>
2933
2934 * Makefile.in: Update dependencies for all gdb/*.c files.
2935
309367d4
TT
29362002-08-27 Tom Tromey <tromey@redhat.com>
2937
2938 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2939 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2940 Update dependencies.
2941 * i387-tdep.c: Include gdb_string.h.
2942 * osabi.c: Likewise.
2943 * i386-linux-nat.c: Likewise.
2944 * lin-lwp.c: Likewise.
2945 * ax-gdb.c: Likewise.
2946 * signals/signals.c: Likewise.
2947 * jv-valprint.c: Likewise.
2948 * p-lang.c: Likewise.
2949 * c-valprint.c: Likewise.
2950 * cp-abi.c: Likewise.
2951
e1507482
EZ
29522002-08-27 Elena Zannoni <ezannoni@redhat.com>
2953
2954 * cli/cli-script.h (copy_command_lines): Export.
2955 * breakpoint.c: Include cli/cli-script.h.
2956 * Makefile.in (breakpoint.o): Update dependencies.
2957
c6510018
MS
29582002-08-26 Michael Snyder <msnyder@redhat.com>
2959
2960 * breakpoint.c (insert_breakpoints): Protect all references
2961 to 'process_warning'. Shorten long lines.
2962
c2b8ed2c
MS
29632002-08-26 Joel Brobecker <brobecker@gnat.com>
2964
2965 * cli/cli-script.c (copy_command_lines): New function.
2966 * defs.h (copy_command_lines): Export.
2967 * testsuite/gdb.base/commands.exp: New tests for commands
2968 attached to a temporary breakpoint, and for commands that
2969 delete the breakpoint they are attached to.
2970
29712002-08-26 Michael Snyder <msnyder@redhat.com>
2972
2973 * breakpoint.c (bpstat_stop_status): Instead of copying the
2974 pointer to the breakpoint commands struct, make a new copy
2975 of the struct and point to that.
2976 (bpstat_clear): Free the commands struct.
2977 (bpstat_clear_actions): Free the commands struct.
2978 (bpstat_do_actions): Free the command actions. Also execute
2979 the local cleanups, instead of deleting them.
2980 (delete_breakpoint): Leave the commands field of the bpstat
2981 chain alone -- it will be freed later.
2982
64b84175
KB
29832002-08-26 Kevin Buettner <kevinb@redhat.com>
2984
2985 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2986 deleted in 2002-08-20 commit. This function is still used by
2987 ppc-linux-nat.c.
2988
55970da6
KS
29892002-08-26 Keith Seitz <keiths@redhat.com>
2990
2991 * gdb-events.sh: Add selected-frame-level-changed event.
2992 * gdb-events.c: Regenerated.
2993 * gdb-events.h: Regenerated.
2994
a790ad35
SC
29952002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2996
2997 Fix PR gdb/393:
2998 * inflow.c (terminal_save_ours): New function to save terminal
2999 settings.
3000 * inferior.h (terminal_save_ours): Declare.
3001 * target.c (debug_to_terminal_save_ours): New function.
3002 (cleanup_target): Defaults to_terminal_save_ours.
3003 (update_current_target): Inherit to_terminal_save_ours.
3004 (setup_target_debug): Set to_terminal_save_ours.
3005 * target.h (target_terminal_save_ours): New to save terminal settings.
3006 (target_ops): New member to_terminal_save_ours.
3007 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3008 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3009 * inftarg.c (init_child_ops): Likewise.
3010 * m3-nat.c (init_m3_ops): Likewise.
3011 * procfs.c (init_procfs_ops): Likewise.
3012 * wince.c (init_child_ops): Likewise.
3013 * win32-nat.c (init_child_ops): Likewise.
3014 * sol-thread.c (init_sol_thread_ops): Likewise.
3015
c00dcbe9
MK
30162002-08-26 Mark Kettenis <kettenis@gnu.org>
3017
3d7f4f49
MK
3018 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3019 use regcache_* functions.
3020 (i386_gdbarch_init): Set store_return_value instead of
3021 deprecated_store_return_value.
3022
c00dcbe9
MK
3023 * regcache.c (regcache_raw_write_signed,
3024 regcache_raw_write_unsigned): New functions.
3025 * regcache.h (regcache_raw_write_signed,
3026 regcache_raw_write_unsigned): New prototypes.
3027
0e0d15ca
AC
30282002-08-25 Andrew Cagney <ac131313@redhat.com>
3029
3030 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3031 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3032 source file dependencies. Cleanup corresponding generator rules.
3033
d3b22ed5
AC
30342002-08-25 Andrew Cagney <ac131313@redhat.com>
3035
3036 * regcache.h (register_offset_hack): Declare.
3037 (regcache_cooked_read_using_offset_hack): Declare.
3038 (regcache_cooked_write_using_offset_hack): Declare.
3039
3040 * regcache.c (register_offset_hack): New function.
3041 (regcache_cooked_read_using_offset_hack): New function.
3042 (regcache_cooked_write_using_offset_hack): New function.
3043 (regcache_dump): Check that the registers, according to their
3044 offset, are packed hard against each other.
3045 (cooked_xfer_using_offset_hack): New function.
3046
bb425013
AC
30472002-08-25 Andrew Cagney <ac131313@redhat.com>
3048
3049 * regcache.c (struct regcache_descr): Add field register_type.
3050 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3051 in as a parameter
3052 (init_regcache_descr): Initialize register_type. Pass the descr
3053 to init_legacy_regcache_descr. Use register_type instead of
3054 REGISTER_VIRTUAL_TYPE.
3055 (register_type): New function.
3056 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3057 * regcache.h (register_type): Declare.
3058
d0403e00
AC
30592002-08-25 Andrew Cagney <ac131313@redhat.com>
3060
3061 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3062 instead of deprecated_store_return_value. Fix fallout from
3063 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3064
0ed04cce
AC
30652002-08-25 Andrew Cagney <ac131313@redhat.com>
3066
3067 * regcache.c (max_register_size): New function.
3068 (init_legacy_regcache_descr): Ensure that max_register_size is
3069 large enough for REGISTER_VIRTUAL_SIZE.
3070 * regcache.h (max_register_size): Declare.
3071
46d79c04
AC
30722002-08-24 Andrew Cagney <ac131313@redhat.com>
3073
3074 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3075 store_return_value.
3076 (e500_extract_return_value): Change type of valbuf pointer to
3077 void.
3078
853c7bd0
MK
30792002-08-24 Mark Kettenis <kettenis@gnu.org>
3080
cd87e769
MK
3081 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3082 workaround.
3083
853c7bd0
MK
3084 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3085 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3086 long long) to prevent compiler warning on 64-bit systems.
3087
ebba8386
AC
30882002-08-23 Andrew Cagney <cagney@redhat.com>
3089
3090 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3091 (DEPRECATED_STORE_RETURN_VALUE): New method.
3092 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3093 * gdbarch.h, gdbarch.c: Re-generate.
3094
3095 * values.c (set_return_value): Pass current_regcache to
3096 STORE_RETURN_VALUE.
3097 * arch-utils.h (legacy_store_return_value): Declare.
3098 * arch-utils.c (legacy_store_return_value): New function.
3099 (legacy_extract_return_value): Update parameters.
3100
3101 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3102 STORE_RETURN_VALUE.
3103 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3104 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3105 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3106 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3107 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3108 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3109 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3110 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3111 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3112 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3113
3114 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3115 * i386-tdep.c (i386_extract_return_value): Update.
3116 * arch-utils.c (legacy_extract_return_value): Update.
3117 * frv-tdep.c (frv_gdbarch_init): Update.
3118 * cris-tdep.c (cris_gdbarch_init): Update.
3119 * d10v-tdep.c (d10v_gdbarch_init): Update.
3120 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3121 * m68k-tdep.c (m68k_gdbarch_init): Update.
3122 * mcore-tdep.c (mcore_gdbarch_init): Update.
3123 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3124 * s390-tdep.c (s390_gdbarch_init): Update.
3125 * sparc-tdep.c (sparc_gdbarch_init): Update.
3126 * sh-tdep.c (sh_gdbarch_init): Update.
3127 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3128 * v850-tdep.c (v850_gdbarch_init): Update.
3129 * avr-tdep.c (avr_gdbarch_init): Update.
3130 * ia64-tdep.c (ia64_gdbarch_init): Update.
3131 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3132 * vax-tdep.c (vax_gdbarch_init): Update.
3133 * alpha-tdep.c (alpha_gdbarch_init): Update.
3134 * arm-tdep.c (arm_gdbarch_init): Update.
3135 * mips-tdep.c (mips_gdbarch_init): Update.
3136 * i386-tdep.c (i386_gdbarch_init): Update.
3137
5bd8c6d0
AC
31382002-08-23 Andrew Cagney <ac131313@redhat.com>
3139
3140 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3141 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3142
e73e1724
MK
31432002-08-24 Mark Kettenis <kettenis@gnu.org>
3144
3145 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3146 problems.
3147
3e6564e1
JB
31482002-08-23 Joel Brobecker <brobecker@gnat.com>
3149
3150 * infrun.c (handle_inferior_event): Move a comment outside of a
3151 function call, in order to avoid indent reformatting this part
3152 of the code in an unreadable way.
3153
81d0cc19
GS
31542002-08-23 Grace Sainsbury <graces@redhat.com>
3155
3156 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3157 when breakpoints fail. Move general breakpoint error messages to
3158 insert_breakpoints.
3159 * breakpoint.c (insert_breakpoints): Change warnings when
3160 breakpoints are nto inserted to specify the type. Remove call to
3161 memory_error when hardware breakpoints can't be inserted. Remove
3162 multiple calls to warning so all messages are sent to the user at
3163 once.
3164 (delete_breakpoints): Make insert error messsages more explicit.
3165
17574093
DJ
31662002-08-23 Daniel Jacobowitz <drow@mvista.com>
3167
3168 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3169 gdbserver/ChangeLog.
3170
8acc2935
MK
31712002-08-23 Mark Kettenis <kettenis@gnu.org>
3172
dfe01d39
MK
3173 * i386-tdep.c: Include "objfiles.h".
3174 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3175 skip_trampoline_code.
3176 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3177 (CPLUS_MARKER): Define to '.'.
3178
8acc2935
MK
3179 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3180 member.
3181 (linux_corefile_thread_callback): Increase args->num_notes.
3182 (linux_make_note_section): Initialize thread_args.num_notes, and
3183 use it to determine whether notes for any threads were created.
3184
151fefe2 31852002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3186
3187 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3188 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3189 and PCUNKILL.
3190 (write_with_trace): Conditionalize out the switch branch handling
3191 PCSHOLD if the corresponding macro is not defined. Likewise for
3192 PRSABORT and PRSTOP.
3193 This change will be needed by the Interix port.
3194
e1507482
EZ
31952002-08-22 Elena Zannoni <ezannoni@redhat.com>
3196
3197 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3198 write_register wherever possible instead of manipulating the
3199 register bytes directly.
3200 Assign VALUE_CONTENTS to a variable and use that.
3201 The GPR numbers are now dependent on the architecture.
3202
96ff0de4
EZ
32032002-08-22 Elena Zannoni <ezannoni@redhat.com>
3204
3205 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3206 ev_offset fields.
3207 (skip_prologue): Add support for BookE/e500 instructions.
3208 (e500_extract_return_value): New function.
3209 (frame_get_saved_regs): Add support for saving ev registers and
3210 pseudo gpr's.
3211 (e500_store_return_value): New function.
3212 (rs6000_gdbarch_init): Move up default intializations of
3213 deprecated_extract_return_value and store_return_value. Overwrite
3214 init of store_return_value with e500 specific version.
3215 Set extract_return_value for e500.
3216
fbefca5b
EZ
32172002-08-22 Elena Zannoni <ezannoni@redhat.com>
3218
3219 * blockframe.c (generic_call_dummy_register_unwind): Use
3220 regcache_cooked_read to catch cases in which the variable is
3221 stored in a pseudo register.
3222
4d210288
AC
32232002-08-22 Andrew Cagney <cagney@redhat.com>
3224
3225 * NEWS: Mention that the i960 has been made obsolete.
3226 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3227 i960-tdep.c
3228 (remote-nrom.o): Obsolete target.
3229 (remote-nindy.o, i960-tdep.o): Ditto.
3230 * remote-nrom.c: Make file obsolete.
3231 * remote-nindy.c, remote-vx960.c: Ditto.
3232 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3233 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3234 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3235 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3236 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3237 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3238 i960-*-vxworks* obsolete.
3239 * MAINTAINERS: Note that the i960 is obsolete.
3240
6c0c456d
CV
32412002-08-21 Corinna Vinschen <vinschen@redhat.com
3242
3243 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3244 detach to allow reinitialization.
3245
9f9d12b3
AC
32462002-08-22 Andrew Cagney <ac131313@redhat.com>
3247
3248 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3249 attempt).
3250
ebeb39fe
JB
32512002-08-22 Jim Blandy <jimb@redhat.com>
3252
3253 * coffread.c (coff_symfile_read): Don't try to read the line
3254 number table from disk if the image file doesn't have a symbol
3255 table; we'll never actually look at the info anyway, and Windows
3256 ships DLL's with bogus file offsets for the line number data.
3257
5bf1c677
EZ
32582002-08-21 Elena Zannoni <ezannoni@redhat.com>
3259
3260 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3261 an e500 executable.
3262
71b8ef93
MS
32632002-08-21 Michael Snyder <msnyder@redhat.com>
3264
3265 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3266 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3267 (DEFAULT_MIPS_TYPE): Delete unused macro.
3268 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3269 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3270
d174216d
JB
32712002-08-21 Jim Blandy <jimb@redhat.com>
3272
3273 * valops.c (value_cast): Simplify and correct logic for doing a
3274 static cast from a pointer to a base class to a pointer to a
3275 derived class.
3276
0ab7a791
AC
32772002-08-21 Andrew Cagney <ac131313@redhat.com>
3278
3279 * infcmd.c (default_print_registers_info): Replace
3280 do_registers_info.
3281 (registers_info): Use gdbarch_print_registers_info instead of
3282 DO_REGISTERS_INFO.
3283 * inferior.h (default_print_registers_info): Replace
3284 do_registers_info.
3285 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3286 (DO_REGISTERS_INFO): Change to a predicate function.
3287 * gdbarch.h, gdbarch.c: Regenerate.
3288
e23792cc
KS
32892002-08-21 Keith Seitz <keiths@redhat.com>
3290
3291 * gdb-events.sh: Add target-changed event.
3292 * gdb-events.c: Regenerated.
3293 * gdb-events.c: Regenerated.
3294 * valops.c (value_assign): Add target-changed event notification
3295 to inlval_register, lval_memory, and lval_reg_frame_relative.
3296
9fb14e79
JB
32972002-08-21 Joel Brobecker <brobecker@gnat.com>
3298
3299 * NEWS: Add an entry regarding the improvement of the next/step
3300 operation on Alpha Tru64 multi-processor machines.
3301
6d39a69f
AC
33022002-08-21 Andrew Cagney <ac131313@redhat.com>
3303
72acd513
AC
3304 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3305 directores.
342af04b 3306 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3307 * Makefile.in (install-gdbtk): Move to install section.
3308 (rdi-share/libangsd.a): Move to end of file.
3309
fa5f27c7
AC
33102002-08-19 Andrew Cagney <ac131313@redhat.com>
3311
3312 * frame.c (frame_register_unwind): When a register, set addrp to
3313 the register's byte.
3314
5a89d8aa
MS
33152002-08-20 Michael Snyder <msnyder@redhat.com>
3316
3317 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3318 used locally, so move them from the target machine header to here.
3319 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3320 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3321 Make static.
3322 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3323
822e978b
AC
33242002-08-20 Andrew Cagney <cagney@redhat.com>
3325
3326 * NEWS: Mention that the Apollo line was made obsolete.
3327 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3328 m68*-hp-hpux* obsolete.
3329 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3330 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3331 * buildsym.c (make_blockvector): Make static.
3332 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3333 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3334 (ALLDEPFILES): Remove dstread.c.
3335 (dstread.o): Obsolete make rule.
3336 * dstread.c: Makefile obsolete.
3337 * dst.h: Ditto.
3338 * config/m68k/hp300hpux.mt: Ditto.
3339 * config/m68k/hp300hpux.mh: Ditto.
3340 * config/m68k/hp300bsd.mt: Ditto.
3341 * config/m68k/hp300bsd.mh: Ditto.
3342 * config/m68k/apollo68b.mt: Ditto.
3343 * config/m68k/apollo68v.mh: Ditto.
3344 * config/m68k/apollo68b.mh: Ditto.
3345
e41b17f0
MS
33462002-08-20 Michael Snyder <msnyder@redhat.com>
3347
3348 * mips-tdep.c (mips_in_return_stub): Make static.
3349 (mips_gdbarch_init): Set in_solib_return_trampoline.
3350 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3351
d50355b6
MS
33522002-08-20 Michael Snyder <msnyder@redhat.com>
3353
3354 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3355 * gdbarch.c, gdbarch.h: Regenerate.
3356 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3357 Add.
3358 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3359
757a7cc6
MS
33602002-08-20 Michael Snyder <msnyder@redhat.com>
3361
3362 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3363 (mips_gdbarch_init): Set skip_trampoline_code,
3364 in_solib_call_trampoline.
3365 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3366 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3367
c8001721
EZ
33682002-08-20 Elena Zannoni <ezannoni@redhat.com>
3369
3370 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3371
3372 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3373 vector type for ev registers.
3374 (e500_pseudo_register_read): New function.
3375 (e500_pseudo_register_write): New function.
3376 (e500_dwarf2_reg_to_regnum): New function.
3377 (PPC_UISA_NOFP_SPRS): New macro.
3378 (PPC_EV_REGS): New macro.
3379 (PPC_GPRS_PSEUDO_REGS): New macro.
3380 (registers_e500): New register set for e500.
3381 (variants): Add e500 variant.
3382 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3383 before setting architectural dependent variations. Initialize ev
3384 registers numbers. Add case for e500 architecture. Set the
3385 number of pseudo registers.
3386
64366f1c
EZ
33872002-08-20 Elena Zannoni <ezannoni@redhat.com>
3388
3389 * rs6000-tdep.c: Clean up comments.
3390
7e78f0ca
AC
33912002-08-20 Andrew Cagney <cagney@redhat.com>
3392
3393 * h8300-tdep.c: Re-indent file.
3394
697f7479
JB
33952002-08-20 Jim Blandy <jimb@redhat.com>
3396
3397 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3398 default for this.
697f7479 3399
e86ae29f
KS
34002002-08-20 Keith Seitz <keiths@redhat.com>
3401
3402 * breakpoints.c (watch_command_1): Use internal breakpoint
3403 when setting a watchpoint_scope breakpoint.
3404
216b504f
EZ
34052002-08-20 Elena Zannoni <ezannoni@redhat.com>
3406
3407 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3408 (build_builtin_type_vec64i): Ditto.
3409 (build_builtin_type_vec128): Ditto.
3410 (build_builtin_type_vec128i): Ditto.
3411
f7ab6ec6
MS
34122002-08-19 Michael Snyder <msnyder@redhat.com>
3413
3414 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3415 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3416 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3417 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3418 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3419 CALL_DUMMY_ADDRESS): Delete.
3420 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3421 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3422 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3423 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3424 push_return_address.
3425 (mips_register_raw_size, mips_eabi_use_struct_convention,
3426 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3427 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3428 mips_init_extra_frame_info, mips_eabi_push_arguments,
3429 mips_n32n64_push_arguments, mips_push_return_address,
3430 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3431 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3432
b5d1566e
MS
34332002-08-19 Michael Snyder <msnyder@redhat.com>
3434
3435 * mips-tdep.c (mips_frame_num_args): New function.
3436 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3437 frame_saved_pc, frame_args_address, frame_locals_address,
3438 frame_num_args, and frame_args_skip.
3439 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3440 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3441 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3442 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3443
2f1488ce
MS
34442002-08-20 Michael Snyder <msnyder@redhat.com>
3445
3446 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3447 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3448 * mips-tdep.c (mips_store_struct_return): New function.
3449 (mips_extract_struct_value_address): New function.
3450 (mips_gdbarch_init): Set store_struct_return and
3451 extract_struct_value_address.
3452
41ff2da1
DC
34532002-08-20 David Carlton <carlton@math.stanford.edu>
3454
3455 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3456 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3457 (read_file_scope): Check that line_header is nonzero before
3458 decoding macro information.
3459
e5451d58
MK
34602002-08-20 Mark Kettenis <kettenis@gnu.org>
3461
3462 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3463 flag the general-purpose registers as floating-point on targets
3464 that don't support the floating-point registers.
3465
4a6daafa
EZ
34662002-08-20 Elena Zannoni <ezannoni@redhat.com>
3467
3468 * rs6000-tdep.c (altivec_register_p): Delete.
3469 (rs6000_do_altivec_registers): Delete.
3470 (rs6000_altivec_registers_info): Delete.
3471 (rs6000_do_registers_info): Delete.
3472 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3473 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3474
ab4327e0
EZ
34752002-08-20 Elena Zannoni <ezannoni@redhat.com>
3476
3477 * infcmd.c (do_registers_info): Print vector registers in hex
3478 format only.
3479 (print_vector_info): Check that printing registers
3480 makes sense.
3481 (print_float_info): Ditto.
3482
cb1d2653
AC
34832002-08-20 Andrew Cagney <ac131313@redhat.com>
3484
3485 * mips-tdep.c (mips_gdbarch_init): Update.
3486 (mips_o32_extract_return_value): Rewrite.
3487 (mips_o32_store_return_value): Rewrite.
3488 (mips_o32_xfer_return_value): New function.
3489 (mips_xfer_register): Tweak debug print message. Allow for
3490 buf_offset when dumping the value transfered.
3491
dfc3d9b2
AC
34922002-08-20 Andrew Cagney <ac131313@redhat.com>
3493
3494 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3495 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3496 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3497 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3498 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3499
7807aa61
MS
35002002-08-14 Michael Snyder <msnyder@redhat.com>
3501
3502 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3503
489461e2
EZ
35042002-08-19 Elena Zannoni <ezannoni@redhat.com>
3505
3506 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3507 register.
3508 (P): New macro to define a register as a pseudo register.
3509 (R, R4, R8, R16, FR32, R64, R0): Updated.
3510 (struct variant): Add new fields for number of pseudo registers
3511 and number of total registers.
3512 (tot_num_registers): New macro replacing....
3513 (num_registers): ...deleted macro.
3514 (num_registers): New function.
3515 (num_pseudo_registers): New function.
3516 (variants): Update all variants to intialize new fields correctly.
3517 Postpone initialization of number of pseudo regs and real regs.
3518 (init_variants): New function.
3519 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3520 registers offsets.
3521
fcaffe4c
DC
35222002-08-19 David Carlton <carlton@math.stanford.edu>
3523
2c2738a0
DC
3524 * valops.c (search_struct_field): Change error message to treat
3525 return value of 0 from value_static_field as meaning that field is
3526 optimized out.
3527 (value_struct_elt_for_reference): Ditto.
3528 * values.c (value_static_field): Treat an unresolved location the
3529 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3530 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3531 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3532 * MAINTAINERS: Add self to Write After Approval list.
3533
88658117
AC
35342002-08-19 Andrew Cagney <ac131313@redhat.com>
3535
3536 * mips-tdep.c (mips_xfer_register): New function.
3537 (mips_n32n64_extract_return_value): Rewrite.
3538 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3539 instead of deprecated_extract_return_value.
3540
21283beb
EZ
35412002-08-19 Elena Zannoni <ezannoni@redhat.com>
3542
3543 * rs6000-tdep.c (TDEP): Delete macro.
3544 (branch_dest): Replace use of TDEP macro with its body.
3545 (rs6000_pop_frame): Ditto.
3546 (rs6000_push_arguments): Ditto.
3547 (rs6000_skip_trampoline_code): Ditto.
3548 (rs6000_frame_saved_pc): Ditto.
3549 (rs6000_frame_chain): Ditto.
3550 (rs6000_register_name): Ditto.
3551 (rs6000_register_byte): Ditto.
3552 (rs6000_register_raw_size): Ditto.
3553 (rs6000_register_virtual_type): Ditto.
3554 (rs6000_register_convertible): Ditto.
3555 (rs6000_convert_from_func_ptr_addr): Ditto.
3556
bf072999
DJ
35572002-08-19 Daniel Jacobowitz <drow@mvista.com>
3558
3559 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3560 conditionally.
3561 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3562 MIPS_LINUX_JB_ELEMENT_SIZE.
3563 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3564 for MAX_REGISTER_RAW_SIZE arrays.
3565 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3566 MIPS_LINUX_JB_ELEMENT_SIZE.
3567
9b949a49
PM
35682002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3569
3570 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3571
6d3e79c6
AS
35722002-08-19 Aidan Skinner <aidan@velvet.net>
3573
3574 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3575 ada-valprint.c ada-tasks.c.
3576 (YYFILES): Add ada-exp.y.
3577 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3578 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3579 (ada-exp.tab.o): New target.
3580
06c0b04e
AC
35812002-08-18 Andrew Cagney <ac131313@redhat.com>
3582
3583 * regcache.c (regcache_xfer_part): New function.
3584 (regcache_raw_read_part): New function.
3585 (regcache_raw_write_part): New function.
3586 (regcache_cooked_read_part): New function.
3587 (regcache_cooked_write_part): New function.
3588 * regcache.h (regcache_raw_read_part): Declare.
3589 (regcache_raw_write_part): Declare.
3590 (regcache_cooked_read_part): Declare.
3591 (regcache_cooked_write_part): Declare.
3592
92d1e331
DJ
35932002-08-18 Daniel Jacobowitz <drow@mvista.com>
3594
3595 * remote.c (remote_open_1): Add async_p.
3596 (remote_async_open_1): Delete.
3597 (open_remote_target): Delete.
3598 (remote_open, extended_remote_open): Update calls to remote_open_1.
3599 (remote_async_open, extended_remote_async_open): Call
3600 remote_open_1 instead of remote_async_open_1.
3601
247055de
MK
36022002-08-19 Mark Kettenis <kettenis@gnu.org>
3603
3604 * blockframe.c: Fix a few coding standard violations.
3605
641eda39
MK
36062002-08-19 Mark Kettenis <kettenis@gnu.org>
3607
0b717710
MK
3608 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3609 here from ...
3610 * config/i386/tm-i386sco5.h: ... here. File removed.
3611 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3612
26d28e12 3613 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3614 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3615 (TM_FILE): Set to tm-i386.h.
3616 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3617 * config/i386/tm-i386v.h: Remove file.
3618 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3619 instead of "i386/tm-i386v.h".
3620 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3621 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3622 "i386/tm-i386v.h".
3623 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3624 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3625 "i386/tm-i386.h".
3626
d4e0bab4
MK
36272002-08-18 Mark Kettenis <kettenis@gnu.org>
3628
3629 * config/i386/nm-i386v.h: Add protection against
3630 multiple-inclusion.
3631 (i386_register_u_addr): Remove prototype.
3632 (register_u_addr): New prototype.
3633 (REGISTER_U_ADDR): Redefine accordingly.
3634 * i386v-nat.c: Improve several comments.
3635 (i386_register_u_addr): Change signature and rename to
3636 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3637 ubase variable.
3638
46cac009
AC
36392002-08-18 Andrew Cagney <ac131313@redhat.com>
3640
3641 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3642 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3643 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3644 deprecated_extract_return_value.
3645 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3646 rename mips_o32o64_push_arguments.
3647 (mips_gdbarch_init): Update.
3648 (mips_extract_return_value): Delete.
3649 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3650 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3651 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3652 (mips_n32n64_extract_return_value): Clone
3653 mips_extract_return_value.
3654 (mips_store_return_value): Delete.
3655 (mips_o32_store_return_value): Clone mips_store_return_value.
3656 (mips_o64_store_return_value): Clone mips_store_return_value.
3657 (mips_eabi_store_return_value): Clone mips_store_return_value.
3658 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3659
d2e4a39e
AS
36602002-08-18 Aidan Skinner <aidan@velvet.net>
3661
0c30c098
AS
3662 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3663 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3664
36652002-08-18 Aidan Skinner <aidan@velvet.net>
3666
3667 * ada-lang.c: Run through gdb_indent.sh.
3668 * ada-lang.h: Run through gdb_indent.sh.
3669 * ada-tasks.c: Run through gdb_indent.sh.
3670 * ada-typeprint.c: Run through gdb_indent.sh.
3671 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3672
01fc4e33
AC
36732002-08-18 Andrew Cagney <ac131313@redhat.com>
3674
3675 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3676 ABI.
3677
d8ee244c
MK
36782002-08-18 Mark Kettenis <kettenis@gnu.org>
3679
c38d8261
MK
3680 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3681
222db64c
MK
3682 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3683 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3684
c2848c82
MK
3685 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3686 write_register_gen instead of write_register_bytes.
3687
d8ee244c
MK
3688 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3689 i[3456]-*-osf1mk* configurations have been made obsolete.
3690 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3691 i[3456]86-*-osf1mk* hosts obsolete.
3692 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3693 targets obsolete.
3694 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3695 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3696 config/i386/i386m3.mt, config/i386/nm-m3.h,
3697 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3698 config/i386/i386mk.mh, config/i386/i386mk.mt,
3699 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3700 obsolete.
3701 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3702 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3703 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3704
61d8d407
AC
37052002-08-18 Andrew Cagney <ac131313@redhat.com>
3706
3707 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3708 (hppa_value_returned_from_stack): Declare.
3709 (hppa_extract_return_value): Declare.
3710 * config/pa/hppa.mt: New file.
3711 * configure.tgt: Recognize hppa*-*-*.
3712 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3713
0c52bd59
MK
37142002-08-18 Mark Kettenis <kettenis@gnu.org>
3715
3716 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3717 comment.
3718
b5686e99
MK
37192002-08-17 Mark Kettenis <kettenis@gnu.org>
3720
3721 * top.c (gdb_rl_operate_and_get_next): Make sure
3722 operate-and-get-next functions correctly even when the history
3723 list is completely filled.
3724
c1bab85b
AC
37252002-08-18 Andrew Cagney <ac131313@redhat.com>
3726
3727 * MAINTAINERS (Target Instruction Set Architectures): Rename
3728 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3729 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3730 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3731 already listed under Host/Native.
3732
3733 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3734 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3735 mips*-*-*.
3736
32089c7c
AC
37372002-08-17 Andrew Cagney <ac131313@redhat.com>
3738
3739 * config/ia64/ia64.mt: New file.
3740 * config/alpha/alpha.mt: New file.
3741 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3742 ia64-linux-gnu. Mention that ia64-elf is broken.
3743 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3744
b4671f85
MK
37452002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3746
3747 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3748 generic_func_frame_valid instead of func_frame_valid.
3749
c8edd8b4
JB
37502002-08-16 Joel Brobecker <brobecker@gnat.com>
3751
3752 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3753 procfs appears to be broken when debugging on multi-processor
3754 machines. So enable software single stepping in order to avoid
3755 using the procfs interface to do next/step operations, using
3756 internal breakpoints instead.
3757
3758 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3759 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3760 make this pc address equal to the value it would have if the
3761 system stepping capability was used. Also set a new flag used
3762 to ensure that we don't readjust the PC one more time later.
3763
3764 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3765 address by DECR_PC_AFTER_BREAK when software single step is
3766 in use for this architecture, as this has already been taken
3767 care of in handle_inferior_event().
3768
238617f6
JB
37692002-08-16 Joel Brobecker <brobecker@gnat.com>
3770
3771 * infrun.c (handle_inferior_event): Minor reformatting, to make
3772 a rather long condition expression easier to read.
3773
541a7aac
AC
37742002-08-16 Andrew Cagney <ac131313@redhat.com>
3775
3776 * Makefile.in (gdbtk.o): Move to end of file.
3777 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3778 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3779 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3780 (gdbtk-wrapper.o, gdbres.o): Ditto.
3781
f92d4a7b
AC
37822002-08-16 Andrew Cagney <ac131313@redhat.com>
3783
3784 * Makefile.in (copying.o): Separate out compile rule.
3785 (hpux-thread.o, procfs.o, signals.o): Ditto.
3786 (v850ice.o, z8k-tdep.o): Ditto.
3787 (tui-file.o): Move to TUI section.
3788 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3789 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3790
1cce71eb
JB
37912002-08-16 Joel Brobecker <brobecker@gnat.com>
3792
3793 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3794 skip_trampoline_code, for better namespace-proofing.
3795
3796 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3797
0851f23d
JB
37982002-08-16 Joel Brobecker <brobecker@gnat.com>
3799
3800 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3801
f8d40ec8
JB
38022002-08-16 Joel Brobecker <brobecker@gnat.com>
3803
3804 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3805 signal, check whether we hit a breakpoint before checking for a
3806 single step breakpoint. Otherwise, GDB fails to notice that a
3807 breakpoint has been hit when stepping onto a breakpoint.
3808
63d022e0
KS
38092002-08-16 Keith Seitz <keiths@redhat.com>
3810
3811 * gdb-events.sh (clear_gdb_event_hooks): New function.
3812 * gdb-events.c: Regenerate.
3813 * gdb-events.h: Regenerate.
3814
6e31adb3
AC
38152002-08-16 Andrew Cagney <ac131313@redhat.com>
3816
3817 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3818 not_a_sw_breakpoint.
3819 * breakpoint.h (bpstat_stop_status): Add parameter names.
3820
c8189ed1
GS
38212002-08-16 Grace Sainsbury <graces@redhat.com>
3822
3823 * remote.c (remote_insert_hw_breakpoint)
3824 (remote_remove_hw_breakpoint): Fix calculation of length field
3825 for Z-packet.
3826
d05285fa
MS
38272002-08-15 Michael Snyder <msnyder@redhat.com>
3828
466d7106
MS
3829 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3830 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3831 (supply_fpregset): Ditto.
3832
d05285fa
MS
3833 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3834 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3835 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 3836 (TARGET_READ_SP): Delete.
bf1f5b4c 3837 (DO_REGISTERS_INFO): Delete.
102182a9
MS
3838 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3839 Delete.
3840 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3841 from macros to functions.
bf1f5b4c 3842
d05285fa
MS
3843 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3844 (mips_register_convertible, mips_register_convert_to_virtual,
3845 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
3846 (mips_read_sp): New function.
3847 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
3848 (mips_do_registers_info): Make static.
3849 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
3850 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3851 (mips_register_convert_from_type, mips_register_convert_to_type):
3852 New functions.
3853 (mips_gdbarch_init): Set up function_start_offset,
3854 register_virtual_size, pc_in_sigtramp.
d05285fa 3855
e76f1f2e
AC
38562002-08-15 Andrew Cagney <ac131313@redhat.com>
3857
3858 * infcmd.c (vector_info): New function.
3859 (_initialize_infcmd): Add command "info vector".
3860 (print_vector_info): New function.
3861
3862 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3863 * gdbarch.h, gdbarch.c: Regenerate.
3864
4782dc19
AC
38652002-08-15 Andrew Cagney <ac131313@redhat.com>
3866
3867 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3868 ``print_all''. Only print vector registers when ``print_all''.
3869
23e3a7ac
AC
38702002-08-15 Andrew Cagney <ac131313@redhat.com>
3871
8e186fd6
AC
3872 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3873 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3874
23e3a7ac
AC
3875 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3876 Add `args' parameter.
3877 * gdbarch.h, gdbarch.c: Regenerate.
3878
3879 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3880
3881 * infcmd.c (float_info): Call print_float_info.
3882 (print_float_info): New function. By default, print the
3883 floating-point registers.
3884
3885 * arch-utils.h (default_print_float_info): Delete declaration.
3886 * arch-utils.c (default_print_float_info): Delete function.
3887
e0ca2bb9
MK
38882002-08-16 Mark Kettenis <kettenis@gnu.org>
3889
3f733acc
MK
3890 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3891 out define.
3892
7d8d2918
MK
3893 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3894 FRAME.
3895
1c7cc583
MK
3896 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3897 * configure.host: Make i[3456]86-*-aix host obsolete.
3898 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3899 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3900 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3901 config/i386/xm-i386aix.h: Make files obsolete.
3902 * i386aix-nat.c: Make file obsolete.
3903 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3904 (i386aix-nat.o): Make target obsolete.
3905
e0ca2bb9
MK
3906 * config/i386/nm-gnu.h: Removed.
3907 * config/i386/nm-i386gnu.h: New file.
3908 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3909 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3910 Moved here from ...
3911 * config/i386/tm-i386gnu.h: ... here. Removed.
3912 * config/i386/xm-i386gnu.h: Removed.
3913 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3914 (NAT_FILE): Set to nm-i386gnu.h.
3915 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3916 * i386-tdep.c: New file.
3917 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3918 (i386gnu-tdep.o): Specify dependencies.
3919
16057ec7 39202002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 3921
6b99ee2e
MK
3922 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3923 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3924 Adjust a few comments to reflect reality a bit closer.
3925 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3926 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3927 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3928 target_insert_watchpoint, target_remove_watchpoint):
3929 Move defines to ...
3930 * config/i386/nm-i386sco5.h: ... here.
3931 (kernel_u_size): Add prototype. Improve a few comments and add
3932 protection against multiple inclusion.
3933
d9a6f65c
MK
3934 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3935 out define.
3936
047eff6a
MK
3937 * uw-thread.c (SP_ARG0): Define if not already defined.
3938 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3939
dcdb1290
MK
3940 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3941
5d2d0b2a
MK
3942 * config/i386/tm-i386.h: Don't include "regcache.h".
3943
61113f8b
MK
3944 * i387-tdep.h (i387_print_float_info): New prototype.
3945 * i387-tdep.c (print_i387_value, print_i387_ext,
3946 print_i387_status_word, print_i387_control_word): Add `struct
3947 ui_file *' argument and use it for output.
3948 (i387_print_float_info): Renamed from i387_float_info. Add
3949 `struct gdbarch *' and `struct ui_file *' arguments and use the
3950 latter for output.
3951 * i386-tdep.c: Include "i387-tdep.h".
3952 (i386_gdbarch_init): Set print_float_info.
3953 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3954 (FLOAT_INFO): Remove define.
3955
46e0f506
MS
39562002-08-13 Michael Snyder <msnyder@redhat.com>
3957
3958 * mips-tdep.c (mips_push_arguments): Rename to
3959 mips_eabi_push_arguments, and tune for EABI.
3960 (MIPS_REGS_HAVE_HOME_P): Delete.
3961 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3962 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3963 Delete references to mips_regs_have_home_p.
3964
409268de
KS
39652002-08-14 Keith Seitz <keiths@redhat.com>
3966
3967 * Makefile.in (install-gdbtk): Create insight plugin directory.
3968 Install plugins.tcl file.
3969
ffc6a242
KS
39702002-08-14 Keith Seitz <keiths@redhat.com>
3971
3972 * configure.in: Move SUBDIRS to near top of the file so that
3973 --enable options may add things to it.
3974 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3975 * configure: Regenerate.
3976
ebafbe83
MS
39772002-08-13 Michael Snyder <msnyder@redhat.com>
3978
3979 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3980 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3981 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3982
32f6f25d
AC
39832002-08-13 Andrew Cagney <ac131313@redhat.com>
3984
3985 * vax-tdep.c (vax_get_saved_register): Delete function.
3986 (vax_gdbarch_init): Update.
3987 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3988 (ns32k_gdbarch_init): Update.
3989 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3990 (alpha_gdbarch_init): Update.
3991
53826de9
AC
39922002-08-13 Andrew Cagney <cagney@redhat.com>
3993
3994 * regcache.c (init_regcache_descr): Overallocate the
3995 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3996 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3997 nr_raw_registers.
3998 (set_register_cached): Add range checking assertions. Use
3999 current_regcache.
4000
16057ec7 40012002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4002
4003 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4004 numbers for MMX registers.
4005
7b4c2dce
AC
40062002-08-13 Andrew Cagney <cagney@redhat.com>
4007
4008 * i386-tdep.c (i386_gdbarch_init): Use
4009 generic_unwind_get_saved_register.
4010
1e03ad20
KB
40112002-08-13 Kevin Buettner <kevinb@redhat.com>
4012
4013 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4014 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4015 target vector.
4016 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4017 Delete. Add comment regarding this now-deleted target method.
4018
548bcbec
SC
40192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4020
4021 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4022 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4023 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4024 real PC and the page number (if it's within the memory bank window).
4025 (m68hc11_pseudo_register_write): Likewise when saving.
4026 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4027 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4028 (m68hc11_register_raw_size): And use 32-bit for it.
4029 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4030 16K memory bank is used by the prog; also use the virtual pc.
4031
7df11f59
SC
40322002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4033
4034 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4035 (m68hc11_gdbarch_init): Install it in gdbarch.
4036 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4037 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4038 (MSYMBOL_SIZE): New for documentation.
4039 (insn_return_kind): Enum to specify how a function returns.
4040 (frame_extra_info): Cleanup and record the return mode.
4041 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4042 register in address computation.
4043 (m68hc11_get_return_insn): New to obtain the return instruction used
4044 by the function.
4045 (m68hc11_frame_init_saved_regs): Take into account the return
4046 instruction used by the function for far and interrupt functions.
4047 (m68hc11_init_extra_frame_info): Take into account page register.
4048 (m68hc11_frame_args_address): Adjust according to the return mode.
4049 (show_regs): Print page register only when it's used.
4050
5706502a
SC
40512002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4052
4053 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4054 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4055 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4056 registers.
4057 (m68hc11_register_raw_size): Likewise.
4058
28fc6740
AC
40592002-08-13 Andrew Cagney <cagney@redhat.com>
4060
4061 * i386-tdep.c (i386_register_name): Handle mmx registers.
4062 (mmx_regnum_p): New function.
4063 (i386_mmx_names): New array.
4064 (mmx_num_regs): New variable.
4065 (i386_pseudo_register_read): New function.
4066 (i386_pseudo_register_write): New function.
4067 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4068
4069 * regcache.c (regcache_raw_read_unsigned): New function.
4070 (regcache_raw_read_signed): New function.
4071 * regcache.h (regcache_raw_read_unsigned): Declare.
4072 (regcache_raw_read_signed): Declare.
4073
a378f419
AC
40742002-08-13 Andrew Cagney <cagney@redhat.com>
4075
4076 * regcache.c (regcache_raw_read_as_address): Delete function.
4077 (regcache_cooked_read_signed): New function.
4078 (regcache_cooked_read_unsigned): New function.
4079 * regcache.h (regcache_cooked_read_signed): Declare.
4080 (regcache_cooked_read_unsigned): Declare.
4081 (regcache_raw_read_as_address): Delete declaration.
4082
4083 * blockframe.c (generic_read_register_dummy): Use
4084 regcache_cooked_read_unsigned.
4085 * i386-tdep.c (i386_extract_struct_value_address): Use
4086 regcache_cooked_read_unsigned.
4087
81967506
SC
40882002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4089
4090 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4091 double sizes according to ELF ABI flags.
4092 (gdbarch_tdep): Record elf_flags.
4093
ffe1f3ee
SC
40942002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4095
4096 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4097 (m6812_prolog): They can appear in 68HC12 function prologue.
4098 (m68hc11_frame_chain): Cleanup.
4099
98216c5d
AC
41002002-08-12 Andrew Cagney <cagney@redhat.com>
4101
4102 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4103 declarations.
4104 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4105 (i386_linux_register_raw_size): Delete function.
4106 (i386_linux_init_abi): Update.
4107 * i386-tdep.c (i386_register_raw_size): Delete function.
4108 (i386_register_byte): Delete function.
4109 (i386_gdbarch_init): Update.
4110 (i386_register_size): Delete array.
4111 (i386_register_offset): Delete array.
4112
4113 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4114 (REGISTER_RAW_SIZE): Delete macro.
4115 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4116 (REGISTER_BYTE): Delete macro.
4117
3b19021e
AS
41182002-08-11 Aidan Skinner <aidan@velvet.net>
4119
4120 * ada-lang.c (ada_lookup_partial_symbol)
4121 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4122 prototype names so that grep ^func works properly.
4123
4124 * ada-lang.c (ada_array_element_type)
4125 (ada_lookup_partial_symbol): Fix typos in parameter list.
4126
4127 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4128 Fix prototype names so that grep ^func works properly.
4129
b063e7a2
AC
41302002-08-10 Andrew Cagney <cagney@redhat.com>
4131 Elena Zannoni <ezannoni@redhat.com>
4132 Martin M. Hunt <hunt@redhat.com>
4133
4134 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4135 (build_builtin_type_vec128i): Set the vector bit.
4136 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4137 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4138 (build_builtin_type_vec64): New function.
4139 (build_builtin_type_vec64i): New function.
4140 (build_gdbtypes): Initialize builtin_type_vec64 and
4141 builtin_type_vec64i.
4142
a7e3c2ad
AC
41432002-08-09 Andrew Cagney <cagney@redhat.com>
4144
4145 * regcache.c (regcache_dump): Compare the register offset
4146 with REGISTER_BYTE.
4147 * arch-utils.c (generic_register_byte): New function.
4148 * arch-utils.h (generic_register_byte): Declare.
4149 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4150 * gdbarch.h, gdbarch.c: Regenerate.
4151
af030b9a
AC
41522002-08-09 Andrew Cagney <cagney@redhat.com>
4153
4154 * regcache.c: Include "gdbcmd.h"
4155 (_initialize_regcache): Add commands "maintenance print
4156 registers", "maintenance print raw-registers" and "maintenance
4157 print cooked-registers".
4158 (enum regcache_dump_what): Define.
4159 (dump_endian_bytes): New function.
4160 (regcache_dump): New function.
4161 (regcache_print): New function.
4162 (maintenance_print_registers): New function.
4163 (maintenance_print_raw_registers): New function.
4164 (maintenance_print_cooked_registers): New function.
4165 * Makefile.in (regcache.o): Update dependencies.
4166
cb3d25d1
MS
41672002-08-09 Michael Snyder <msnyder@redhat.com>
4168
4169 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4170 (mips_push_arguments): Correct some comments. Use paddr_nz
4171 for printing addresses in debug output. Replace static
4172 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4173 (mips_n32n64_push_arguments): New function, cloned from
4174 mips_push_arguments and tuned for the n32/n64 ABI.
4175 (mips_push_register): Buffer needs dynamic allocation.
4176 (mips_print_register): Ditto.
4177 (do_gp_register_row): Ditto.
4178 (mips_store_return_value): Ditto.
4179 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4180
2163ab9d
DH
41812002-08-09 Don Howard <dhoward@redhat.com>
4182
4183 * memattr.c (mem_info_command): Print special case of upper bound
4184 as max CORE_ADDR + 1.
4185
b78bcb18
MS
41862002-08-08 Michael Snyder <msnyder@redhat.com>
4187
4188 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4189 returns structs by ref if they're too big to fit in two registers.
4190
ffabd70d
KB
41912002-08-09 Kevin Buettner <kevinb@redhat.com>
4192
4193 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4194 saved regs value.
4195 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4196 mips_find_saved_regs().
4197 (mips_pop_frame): Likewise.
4198
fbcdb4a3
KB
41992002-08-09 Kevin Buettner <kevinb@redhat.com>
4200
4201 * blockframe.c (frame_saved_regs_register_unwind): Revise
4202 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4203 frames are in use.
4204
3c3bea1c
GS
42052002-08-09 Grace Sainsbury <graces@redhat.com>
4206
4207 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4208 T-packets; the 'a' is not taken as a register number.
4209 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4210 (remote_stopped_data_address): New functions; add to target
4211 vector.
4212 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4213 prototypes to match other implementations of this
4214 function. replace integer argument with pointer -- the length
4215 field in the Z-packet is the length of what is pointed to or 1 if
4216 pointer is null. Add to target vector.
4217 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4218 target vector.
4219
4220 From Mark Salter:
4221 * remote.c (remote_wait): Add support to extract optional
4222 watchpoint information from T-packet. Ignore unrecognized
4223 optional info in T-packet.
4224 (remote_async_wait): Ditto.
4225
5d1d95de
CV
42262002-08-09 Corinna Vinschen <vinschen@redhat.com>
4227
4228 * cli/cli-dump.c: Change fopen modes to use binary open modes
4229 as defined in include/fopen-bin.h throughout.
4230
c86b5b38
MS
42312002-08-08 Michael Snyder <msnyder@redhat.com>
4232
4233 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4234
b30590dc
KB
42352002-08-08 Kevin Buettner <kevinb@redhat.com>
4236
4237 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4238 assertion failure by returning early after a warning.
4239
498868ed
KB
42402002-08-08 Kevin Buettner <kevinb@redhat.com>
4241
4242 * mips-tdep.c (mips_find_saved_regs): Make static.
4243 (mips_frame_init_saved_regs): New function.
4244 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4245 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4246 (mips_find_saved_regs): Delete declaration.
4247
b2dd6311
GS
42482002-08-08 Grace Sainsbury <graces@redhat.com>
4249
3c3bea1c
GS
4250 * remote.c (remote_wait, remote_async_wait): Change
4251 thread_num from int to ULONGEST.
4252 (unpack_varlen_hex): Change result parameter from
4253 int * to ULONGEST *.
b2dd6311 4254
ea47855f
AC
42552002-08-08 Andrew Cagney <ac131313@redhat.com>
4256
4257 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4258 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4259 powerpc*-*-*.
4260 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4261
69db8bae
AC
42622002-08-08 Andrew Cagney <cagney@redhat.com>
4263
4264 * gcore.c (override_derive_stack_segment): Delete variable.
4265 (preempt_derive_stack_segment): Delete function.
4266 (derive_stack_segment): Delete function.
4267 (default_derive_stack_segment): Renamed to derive_stack_segment.
4268 (override_derive_heap_segment): Delete variable.
4269 (preempt_derive_heap_segment): Delete function.
4270 (derive_heap_segment): Delete function.
4271 (default_derive_heap_segment): Rename to derive_heap_segment.
4272
cb811fe7
MS
42732002-08-06 Michael Snyder <msnyder@redhat.com>
4274
4275 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4276 * mips-tdep.c (mips_EABI_use_struct_convention,
4277 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4278 New functions. (mips_use_struct_convention): Delete.
4279 (mips_gdbarch_init): set use_gdbarch_convention.
4280
8b389c40
MS
42812002-08-06 Michael Snyder <msnyder@redhat.com>
4282
4283 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4284 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4285 mips_o32_reg_struct_has_addr): New functions.
4286 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4287
5c27f28a
AC
42882002-08-07 Andrew Cagney <ac131313@redhat.com>
4289
4290 * regcache.c (pseudo_register): Delete function.
4291 (fetch_register): Delete function.
4292 (store_register): Delete function.
4293 (regcache_raw_read, legacy_read_register_gen): Use
4294 target_fetch_registers instead of fetch_register.
4295 (legacy_write_register_gen, regcache_raw_write): Use
4296 target_store_register instead of store_register.
4297 (write_register_bytes): Ditto.
4298
4299 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4300 (STORE_PSEUDO_REGISTER): Delete.
4301 * gdbarch.h, gdbarch.c: Regenerate.
4302
5b331675
CV
43032002-08-06 Corinna Vinschen <vinschen@redhat.com>
4304
4305 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4306 write dump file binary.
4307
6acdf5c7
MS
43082002-08-05 Michael Snyder <msnyder@redhat.com>
4309
4310 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4311 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4312 (mips_gdbarch_init): Set N32 target to be mips64.
4313
b2f01c35
KB
43142002-08-06 Kevin Buettner <kevinb@redhat.com>
4315
4316 * frame.c (find_saved_register): Break out of loop once saved
4317 register address is found. Don't mention sparc in loop comment
4318 anymore.
4319
63db5580
KB
43202002-08-06 Kevin Buettner <kevinb@redhat.com>
4321
4322 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4323 mips_default_saved_regsize to 8.
4324
5e34e75e
AC
43252002-08-06 Andrew Cagney <ac131313@redhat.com>
4326
4327 * gcore.c: Do not include <sys/procfs.h>.
4328 * Makefile.in (gcore.o): Update dependencies.
4329
eb4c54a2
AC
43302002-08-06 Andrew Cagney <cagney@redhat.com>
4331
4332 * configure.tgt: Make arc-*-* obsolete.
4333 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4334 * MAINTAINERS: Make arc-elf obsolete.
4335 * arc-tdep.c: Make file obsolete.
4336 * config/arc/arc.mt: Ditto.
4337 * config/arc/tm-arc.h: Ditto.
4338
ced15480
TR
43392002-08-05 Theodore A. Roth <troth@verinet.com>
4340
c1bab85b 4341 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4342
b4743822
AC
43432002-08-05 Andrew Cagney <ac131313@redhat.com>
4344
4345 * mcore-tdep.c (mcore_gdbarch_init): Use
4346 generic_unwind_get_saved_register instead of
4347 generic_get_saved_register.
4348 * v850-tdep.c (v850_gdbarch_init): Ditto.
4349 * frv-tdep.c (frv_gdbarch_init): Ditto.
4350 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4351 * s390-tdep.c (s390_gdbarch_init): Ditto.
4352 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4353 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4354 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4355
3956d554
JB
43562002-08-05 Joel Brobecker <brobecker@gnat.com>
4357
4358 * objfiles.h: Add missing #include "symfile.h"
4359
4360 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4361
8249c0d6
AC
43622002-08-04 Andrew Cagney <ac131313@redhat.com>
4363
4364 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4365 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4366 of FIELD_BITSIZE.
4367
b9d14705
DJ
43682002-08-04 Daniel Jacobowitz <drow@mvista.com>
4369
4370 * NEWS: Cleanup and nitpick.
4371
dd73b9bb
AC
43722002-08-03 Andrew Cagney <ac131313@redhat.com>
4373
4374 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4375
043a27f8
AC
43762002-08-03 Andrew Cagney <ac131313@redhat.com>
4377
4378 * Makefile.in (gdbtk-bp.o): Update dependencies.
4379 (gdbtk-register.o): Ditto.
4380 (gdbtk-varobj.o): Ditto.
4381
46ce284d
AC
43822002-08-03 Andrew Cagney <cagney@redhat.com>
4383
4384 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4385 m68hc11_fetch_pseudo_register.
4386 (m68hc11_pseudo_register_write): Replace
4387 m68hc11_store_pseudo_register.
4388 (m68hc11_gdbarch_init): Update.
4389
b66d6d2e
AC
4390Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4391
4392 * gdbarch.sh: Include "gdb_string.h".
4393 * gdbarch.c: Regenerate.
4394
4395 * regcache.c: Include "gdb_string.h".
4396 * ax-general.c: Ditto.
4397 * varobj.c: Ditto.
4398 * std-regs.c: Ditto.
4399 * fbsd-proc.c: Ditto.
4400 * thread.c: Ditto.
4401
4402 * Makefile.in (regcache.o): Update dependencies.
4403 (thread.o, gdbarch.o): Ditto.
4404 (ax-general.o, gdbarch.o): Ditto.
4405 (varobj.o, std-regs.o): Ditto.
4406 (fbsd-proc.o): Specify dependencies.
4407
29e1842b
AC
44082002-08-02 Andrew Cagney <cagney@redhat.com>
4409
4410 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4411 regnum.
4412 (regcache_cooked_write): Ditto.
4413
68365089
AC
44142002-08-02 Andrew Cagney <ac131313@redhat.com>
4415
4416 * regcache.c (regcache_cooked_read): New function.
4417 (regcache_cooked_write): New function.
4418 (read_register_gen): Rewrite using regcache_cooked_read.
4419 (write_register_gen): Rewrite using regcache_cooked_write.
4420
4421 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4422 Declare.
4423
d8124050
AC
44242002-08-02 Andrew Cagney <cagney@redhat.com>
4425
4426 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4427 Replace the architecture methods register_read and register_write.
4428 * gdbarch.h, gdbarch.c: Regenerate.
4429 * regcache.c (init_regcache_descr): Update.
4430 (read_register_gen): Update.
4431 (write_register_gen): Update.
4432 (supply_register): Update comment.
4433
4434 * sh-tdep.c (sh_gdbarch_init): Update.
4435 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4436 `regcache' and `gdbarch' parameters. Make `buffer' a void
4437 pointer. Update code.
4438 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4439 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4440 void pointer. Update code.
4441 (sh64_register_write): Delete.
4442 (sh4_register_read): Delete.
4443 (sh64_register_read): Delete.
4444 (sh4_register_write): Delete.
4445 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4446 void pointer, `to' parameter a void pointer.
4447 (sh_sh64_register_convert_to_raw): Ditto.
4448
a6425924
KB
44492002-08-01 Kevin Buettner <kevinb@redhat.com>
4450
4451 * mips-tdep.c (mips_register_virtual_type): Use architecture
4452 invariant return values.
4453
ff5922b5
AC
44542002-08-01 Andrew Cagney <cagney@redhat.com>
4455
4456 * linux-proc.c: Include "gdb_string.h".
4457 * Makefile.in (linux-proc.o): Update dependency list.
4458
32a6503c
KB
44592002-08-01 Kevin Buettner <kevinb@redhat.com>
4460
4461 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4462 comment.
4463
ccaa32c7
GS
44642002-08-01 Grace Sainsbury <graces@redhat.com>
4465
4466 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4467 to_insert_watchpoint, to_remove_watchpoint,
4468 to_stopped_by_watchpoint, to_stopped_data_address,
4469 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4470 target vecctor. Define their corresponding macros so they call
4471 them.
4472
4473 * target.c: Add default and debug versions of for
4474 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4475 to_insert_watchpoint, to_remove_watchpoint,
4476 to_stopped_by_watchpoint, to_stopped_data_address,
4477 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4478
78fde5f8
KB
44792002-08-01 Kevin Buettner <kevinb@redhat.com>
4480
4481 * mips-tdep.c (mips_register_virtual_type): New function.
4482 (mips_gdbarch_init): Register mips_register_virtual_type()
4483 with gdbarch machinery.
4484 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4485 this file instead of tm-bigmips.h.
4486 (MIPS_REGSIZE): Delete this macro.
4487 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4488 multiarch version in mips-tdep.c will be found.
4489
db034ac5
AC
44902002-08-01 Andrew Cagney <cagney@redhat.com>
4491
4492 * NEWS: Menion that CHILL has been made obsolete.
4493
4494 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4495 * stabsread.c (read_range_type): Ditto.
4496 * gdbtypes.h: Ditto.
4497 * language.c (binop_type_check): Ditto.
4498 (binop_result_type): Ditto.
4499 (integral_type): Ditto.
4500 (character_type): Ditto.
4501 (string_type): Ditto.
4502 (boolean_type): Ditto.
4503 (structured_type): Ditto.
4504 (lang_bool_type): Ditto.
4505 (binop_type_check): Ditto.
4506 * language.h (_LANG_chill): Ditto.
4507 * dwarfread.c (set_cu_language): Ditto.
4508 * dwarfread.c (CHILL_PRODUCER): Ditto.
4509 * dwarfread.c (handle_producer): Ditto.
4510 * expression.h (enum exp_opcode): Ditto.
4511 * eval.c: Ditto for comments.
4512 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4513 * expprint.c (print_subexp): Ditto.
4514 (print_subexp): Ditto.
4515 * valops.c (value_cast): Ditto.
4516 (search_struct_field): Ditto.
4517 * value.h (COERCE_VARYING_ARRAY): Ditto.
4518 * symfile.c (init_filename_language_table): Ditto.
4519 (add_psymbol_with_dem_name_to_list): Ditto.
4520 * valarith.c (value_binop): Ditto.
4521 (value_neg): Ditto.
4522 * valops.c (value_slice): Ditto.
4523 * symtab.h (union language_specific): Ditto.
4524 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4525 (SYMBOL_DEMANGLED_NAME): Ditto.
4526 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4527 * defs.h (enum language): Ditto.
4528 * symtab.c (got_symtab): Ditto.
4529 * utils.c (fprintf_symbol_filtered): Ditto.
4530
4531 * ch-typeprint.c: Make file obsolete.
4532 * ch-valprint.c: Make file obsolete.
4533 * ch-lang.h: Make file obsolete.
4534 * ch-exp.c: Make file obsolete.
4535 * ch-lang.c: Make file obsolete.
4536
4537 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4538 CHILL_LIB.
4539 (TARGET_FLAGS_TO_PASS): Ditto.
4540 (CHILLFLAGS): Obsolete.
4541 (CHILL): Obsolete.
4542 (CHILL_FOR_TARGET): Obsolete.
4543 (CHILL_LIB): Obsolete.
4544 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4545 ch-valprint.c.
4546 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4547 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4548 ch-lang.o.
4549 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4550 targets.
4551
8aaf0b47
JB
45522002-07-31 Joel Brobecker <brobecker@gnat.com>
4553
4554 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4555 This does not change anything at the moment, but will be helpful
4556 later when full Ada support is integrated.
4557
f3a7b3a5
KB
45582002-07-31 Kevin Buettner <kevinb@redhat.com>
4559
4560 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4561 help message.
4562
fb850278
KB
45632002-07-31 Kevin Buettner <kevinb@redhat.com>
4564
4565 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4566 and save it in a local variable. Use variable in later test.
4567
e3bddbfa
KB
45682002-07-31 Kevin Buettner <kevinb@redhat.com>
4569
4570 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4571 test. (Thanks to Daniel Jacobowitz.)
4572
28d169de
KB
45732002-07-31 Kevin Buettner <kevinb@redhat.com>
4574
4575 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4576 (mips_abi_strings): Add "n64".
4577 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4578
7fe7e44e
KB
45792002-07-31 Kevin Buettner <kevinb@redhat.com>
4580
4581 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4582 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4583
c6caf090
KB
45842002-07-31 Kevin Buettner <kevinb@redhat.com>
4585
4586 * utils.c (host_pointer_to_address, address_to_host_pointer):
4587 Use gdb_assert() instead of explicit call to internal_error().
4588
c41669e0
KB
45892002-07-30 Kevin Buettner <kevinb@redhat.com>
4590
4591 * Makefile.in (rs6000-nat.o): Update dependencies.
4592
4593 From Nicholas Duffek:
4594 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4595 (aix-thread.o): New rule.
4596 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4597 * config/powerpc/aix432.mh: New file.
4598
2fda4977
DJ
45992002-07-30 Daniel Jacobowitz <drow@mvista.com>
4600
4601 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4602 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4603 (fetch_core_registers, ppc_linux_supply_gregset)
4604 (ppc_linux_supply_fpregset): New functions.
4605 (ppc_linux_regset_core_fns): New.
4606 (_initialize_ppc_linux_tdep): Call add_core_fns.
4607 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4608 and ppc_linux_supply_gregset.
4609 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4610 (supply_fpregset): Call ppc_linux_supply_fpregset.
4611 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4612 corelow.o.
4613 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4614
729051e6
DJ
46152002-07-30 Daniel Jacobowitz <drow@mvista.com>
4616
4617 * symtab.c (lookup_symbol): Demangle before lowercasing.
4618
5f8a3188
AC
46192002-07-30 Andrew Cagney <ac131313@redhat.com>
4620
4621 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4622 declaration.
4623 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4624 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4625 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4626 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4627 "gdb_string.h".
4628 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4629 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4630 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4631 (avr-tdep.o, mon960-rom.o): Ditto.
4632 (aout_stabs_gnu_h): Define.
4633 (symtab_h): Remove $(gdb_obstack_h).
4634
67f07146
JB
46352002-07-30 Jim Blandy <jimb@redhat.com>
4636
4637 Patch from David Carlton <carlton@math.stanford.edu>:
4638 * gdbinit.in: Move the `dir' commands that add GDB's own source
4639 directory to the search path to the end, so that the `gdb' source
4640 directory will be searched first.
4641
04ea0df1
AC
46422002-07-29 Andrew Cagney <ac131313@redhat.com>
4643
4644 * gdb_obstack.h: New file.
4645 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4646 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4647 * objfiles.h: Include "gdb_obstack.h".
4648 * Makefile.in (gdb_obstack_h): Define.
4649 (symtab_h): Add $(gdb_obstack_h).
4650 (objfiles_h): Add $(gdb_obstack_h).
4651
4652 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4653 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4654 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4655 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4656 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4657 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4658 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4659 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4660
4661 * Makefile.in (bcache.o): Update dependencies.
4662 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4663 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4664 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4665 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4666 (stabsread.o, symfile.o, symmisc.o): Ditto.
4667 (symtab.o, typeprint.o, macroexp.o): Ditto.
4668 (macrotab.o, mdebugread.o): Ditto.
4669 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4670 (coff_ecoff_h, aout_aout64_h): Define.
4671 (aout_stabs_gnu_h, libaout_h): Define.
4672
d138e37a
AC
46732002-07-29 Andrew Cagney <cagney@redhat.com>
4674
4675 * regcache.c (struct regcache_descr): Rename nr_registers to
4676 nr_cooked_registers. Revise comments describing the structure
4677 member fields.
4678 (init_regcache_descr): Update.
4679 (init_legacy_regcache_descr): Update.
4680 (read_register_gen, write_register_gen): When a cooked register in
4681 the raw register range, directly access the value from the raw
4682 register cache.
4683
460e6ec3
AC
46842002-07-29 Andrew Cagney <ac131313@redhat.com>
4685
4686 * z8k-tdep.c: Do not include "obstack.h".
4687 * h8300-tdep.c, h8500-tdep.c: Ditto.
4688 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4689 * valprint.c, v850-tdep.c: Ditto.
4690 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4691 * mn10200-tdep.c: Ditto.
4692
4693 * Makefile.in (z8k-tdep.o): Update dependencies.
4694 (m68hc11-tdep.o, valprint.o): Ditto.
4695 (v850-tdep.o, d10v-tdep.o): Ditto.
4696 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4697 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4698 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4699 (sh_opc_h, gdb_sim_sh_h): Define.
4700 (elf_sh_h, elf_bfd_h): Define.
4701 (opcode_m68hc11_h): Define.
4702 (OPCODES_SRC, OPCODES_DIR): define.
4703 (OPCODES): Use $(OPCODES_DIR).
4704 (gdb_sim_d10v_h): Rename sim_d10v_h.
4705 (gdb_sim_arm_h): Rename sim_arm_h.
4706
790c9cf0
KB
47072002-07-26 Kevin Buettner <kevinb@redhat.com>
4708
4709 * utils.c (host_pointer_to_address, address_to_host_pointer):
4710 Change internal_error() message to indicate function responsible
4711 for the error.
4712
9647fa49
KB
47132002-07-26 Kevin Buettner <kevinb@redhat.com>
4714
4715 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4716 calls to local_hex_string_custom().
4717
dabbe2c0
KB
47182002-07-26 Kevin Buettner <kevinb@redhat.com>
4719
4720 * irix5-nat.c: Move IRIX shared library support from here...
4721 * solib-irix.c: ...to here. Revised substantially to work with
4722 generic solib framework.
4723
b96d0a4e
KB
4724 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4725 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4726 * mips-irix-tdep.c: New file.
4727
313fb2f6
KB
4728 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4729 (mips-irix-tdep.o, solib-irix.o): New rules.
4730 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4731 solib-irix.o.
4732 * config/mips/irix6.mt (TDEPFILES): Likewise.
4733 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4734
ab2eaf26
KB
47352002-07-26 Kevin Buettner <kevinb@redhat.com>
4736
177e4768 4737 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4738 disabled (via ``#if 0'') includes.
4739
7244546a
KB
47402002-07-26 Kevin Buettner <kevinb@redhat.com>
4741
4742 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4743 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4744 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4745 Add support for the fpscr register.
4746 * rs6000-nat.c (regmap, fetch_inferior_registers)
4747 (store_inferior_registers, fetch_core_registers): Likewise.
4748
dd7be90a
KB
47492002-07-26 Kevin Buettner <kevinb@redhat.com>
4750
4751 * rs6000-nat.c (language.h): Include.
4752 (special_regs): Delete this array.
4753 (regmap): New function.
4754 (fetch_register, store_register): Use regmap() to map gdb
4755 register numbers to ptrace register numbers. Also, use
4756 outputs from regmap() to make decisions regarding type of
4757 ptrace() call to make. In particular, don't compare against
4758 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4759 (fetch_inferior_registers, store_inferior_registers): Where
4760 possible, obtain register numbers from tdep struct. Don't
4761 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4762 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4763 (LAST_UISA_SP_REGNUM): Delete.
4764
11bf77db
KB
47652002-07-25 Kevin Buettner <kevinb@redhat.com>
4766
4767 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4768 (fetch_registers, store_register, fetch_core_registers): Don't
4769 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4770 regcache_collect() as appropriate.
4771 (find_toc_address): Format hex address with local_hex_string().
4772
06afebeb
AC
47732002-07-25 Andrew Cagney <ac131313@redhat.com>
4774
4775 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4776 bfd/elf32-frv.c.
4777
8c554d79
TT
47782002-07-24 Tom Tromey <tromey@redhat.com>
4779
4780 * jv-exp.y: Marked all strings with _().
4781 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4782 internal_error.
4783 (MethodInvocation, CastExpression, parse_number, yyerror,
4784 java_type_from_name, push_expression_name, yylex): Typo fixes.
4785
e4c242d9
DJ
47862002-07-24 Daniel Jacobowitz <drow@mvista.com>
4787
4788 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4789 (tee_file_flush, tee_file_write, tee_file_fputs)
4790 (tee_file_isatty): New.
4791 * ui-file.h (tee_file_new): Add prototype.
4792
ebf56fd3
AS
47932002-07-24 Aidan Skinner <aidan@velvet.net>
4794
4795 * ada-lang.c: Change k&r style function definitions to prototyped
4796 form.
4797 * ada-typeprint.c: Change k&r style function definitions to prototyped
4798 form.
4799 * ada-valprint.c: Change k&r style function definitions to prototyped
4800 form.
4801
7fb623f7
AC
48022002-07-24 Andrew Cagney <cagney@redhat.com>
4803
4804 * README: Remove reference to remote-bug.
4805 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4806 remote-bug.c.
4807 (m88k-nat.o): Delete rule.
4808 (m88k-tdep.o): Delete rule.
4809 (remote-bug.o): Delete rule.
4810 * MAINTAINERS: Mark as obsolete.
4811 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4812 * m88k-tdep.c: Make file obsolete.
4813 * config/m88k/m88k.mh: Ditto.
4814 * config/m88k/delta88v4.mh: Ditto.
4815 * config/m88k/delta88v4.mt: Ditto.
4816 * config/m88k/delta88.mt: Ditto.
4817 * config/m88k/delta88.mh: Ditto.
4818 * remote-bug.c: Ditto.
4819 * config/m88k/tm-delta88.h: Ditto.
4820 * config/m88k/nm-delta88v4.h: Ditto.
4821 * config/m88k/xm-delta88.h: Ditto.
4822 * config/m88k/xm-dgux.h: Ditto.
4823 * config/m88k/tm-m88k.h: Ditto.
4824 * config/m88k/nm-m88k.h: Ditto.
4825 * config/m88k/tm-delta88v4.h: Ditto.
4826 * m88k-nat.c: Ditto.
4827 * cxux-nat.c: Ditto.
4828 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4829 and m88*-*-* obsolete.
4830 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4831 m88*-*-* obsolete.
4832
37611a2b
AC
48332002-07-24 Andrew Cagney <cagney@redhat.com>
4834
4835 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4836 constant. Same for local pointer variables.
4837 (extract_signed_integer): Ditto.
4838 * defs.h (extract_unsigned_integer): Update.
4839 (extract_signed_integer): Update.
4840
1aaa5f99
AC
48412002-07-24 Andrew Cagney <cagney@redhat.com>
4842
4843 * regcache.c (regcache_raw_write): Change buf parameter to a
4844 constant void pointer.
4845 (regcache_raw_read): Change buf parameter to a void pointer.
4846 (legacy_write_register_gen): Change myaddr parameter a constant
4847 void pointer.
4848 (supply_register): Change val parameter to a const void pointer.
4849 * regcache.h (regcache_raw_write): Update declaration.
4850 (regcache_raw_read): Update declaration.
4851 (supply_register): Update declaration.
4852
b4f5539f
TT
48532002-07-24 Tom Tromey <tromey@redhat.com>
4854
4855 * defs.h (gdb_readline_wrapper): Declare.
4856 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4857 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4858 * top.c (gdb_readline_wrapper): New function.
4859 (command_line_input): Use it.
4860
0818c12a
AC
48612002-07-24 Andrew Cagney <cagney@redhat.com>
4862
4863 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4864 regcache_read and regcache_write.
4865 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4866 * regcache.c: Update.
4867 * sh-tdep.c (sh64_push_arguments): Update comment.
4868 (sh_pseudo_register_read): Update.
4869 (sh_pseudo_register_write): Update.
4870 (sh4_register_read): Update.
4871 (sh4_register_write): Update.
4872 (sh64_pseudo_register_read): Update.
4873 (sh64_pseudo_register_write): Update.
4874 (sh64_register_read): Update.
4875 (sh64_register_write): Update.
4876 * i386-tdep.c (i386_extract_return_value): Update.
4877 (i386_extract_struct_value_address): Update.
4878 (i386_extract_return_value): Update.
4879 * blockframe.c (generic_read_register_dummy): Update.
4880 (generic_call_dummy_register_unwind): Update
4881 * infrun.c (write_inferior_status_register): Update.
4882
f7321c06
JB
48832002-07-23 Jim Blandy <jimb@redhat.com>
4884
4885 * parser-defs.h (expression_context_pc): Make this extern.
4886 (Thanks to Michael Snyder.)
4887
2037aebb
AC
48882002-07-23 Andrew Cagney <ac131313@redhat.com>
4889
4890 GDB 5.2.1 released from 5.2 branch.
4891 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4892 * README: Update to mention 5.2.1.
4893
66504d44
MS
48942002-07-23 Mark Salter <msalter@redhat.com>
4895
4896 * remote.c (remote_read_bytes): Fix check for error.
4897
27bae383
KB
48982002-07-22 Kevin Buettner <kevinb@redhat.com>
4899
4900 * aix-thread.c (language.h): Include.
4901 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4902 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4903 Print newlines at end of debug messages.
4904 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4905 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4906
49072002-07-22 Kevin Buettner <kevinb@redhat.com>
4908
4909 * aix-thread.c (ppc-tdep.h): Include.
4910 (special_register_p): New function.
4911 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4912 (store_regs_user_thread): Use register number information from
4913 gdbarch_tdep struct instead of hardcoded offsets relative to
4914 FIRST_UISA_SP_REGNUM.
4915 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4916 special_register_p() instead of using FPLAST_REGNUM and
4917 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4918 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4919 will be MQ's register number.
4920
49212002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
4922
4923 * aix-thread.c (ops): Rename to aix_thread_ops.
4924 (base_ops): Rename to base_target.
4925 (ops_attach): Rename to aix_thread_attach.
4926 (ops_detach): Rename to aix_thread_detach.
4927 (ops_resume): Rename to aix_thread_detach.
4928 (ops_wait): Rename to aix_thread_wait.
4929 (ops_kill): Rename to aix_thread_kill.
4930 (init_ops): Rename to init_aix_thread_ops.
4931 (ops_fetch_register): Rename to aix_thread_fetch_register.
4932 (ops_store_register): Rename to aix_thread_store_register.
4933 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4934 (ops_thread_alive): Rename to aix_thread_thread_alive.
4935 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4936 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4937 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4938 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4939 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4940 (store_regs_lib): Rename to store_regs_user_thread.
4941 (store_regs_kern): Rename to store_regs_kernel_thread.
4942
27bae383 49432002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
4944
4945 * aix-thread.c (ops_prepare_to_store): Eliminate.
4946 (init_ops): Don't initialize ops.prepare_to_store.
4947 (store_regs_kern): Pre-fetch register buffers from child,
4948 because some registers may not be in the cache. Copy
4949 regs from register cache only if they are cached.
4950 (store_regs_lib): Copy regs from register cache only
4951 if they are cached.
4952 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4953 fill_gprs64): Ditto.
4954
61c5da0b
KB
49552002-07-22 Kevin Buettner <kevinb@redhat.com>
4956
4957 * aix-thread.c (gdb_assert.h): Include.
4958 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4959 register sizes (from register cache) match size of buffer holding
4960 register data.
4961 (fill_sprs32): Change parameter types to match those in the ptrace()
4962 buffer.
4963 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4964 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4965
49662002-07-22 Michael Snyder <msnyder@redhat.com>
4967
4968 * aix-thread.c (supply_sprs64): Cosmetic change.
4969 (supply_sprs32): Cosmetic change.
4970 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4971 (fill_sprs64): Use regcache_collect instead of read_register.
4972 (store_regs_lib): Use regcache_collect instead of
4973 read_register. Use fill_sprs32 instead of fill_sprs64,
4974 if debugging a 32-bit architecture.
4975 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4976 out of the register cache, instead of passing a pointer into
4977 the register cache directly to ptrace. Use regcache_collect
4978 insteaad of read_register.
4979 (ops_prepare_to_store): Use target_read_registers instead
4980 of read_register_bytes.
4981
36479eb1
AS
49822002-07-20 Aidan Skinner <aidan@velvet.net>
4983
4984 * MAINTAINERS: Add self under write after approval.
4985
80ae6ee2
AS
49862002-07-20 Aidan Skinner <aidan@velvet.net>
4987
4988 * ada-tasks.c: Change k&r style function definitions to prototyped
4989 form.
4990
8a8ab2b9
AC
49912002-07-19 Andrew Cagney <ac131313@redhat.com>
4992
4993 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4994 * x86-64-tdep.c: Include "objfiles.h".
4995 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4996 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4997
fb16b900
ML
49982002-07-17 Michal Ludvig <michal@suse.cz>
4999
5000 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5001 (update_context): Initialise cfa variable.
5002
0fe7bf7b
MS
50032002-07-17 Michael Snyder <msnyder@redhat.com>
5004
5005 * aix-thread.c: Shorten some long lines.
5006 Bring comments into line with code spec.
5007
488f131b
JB
50082002-07-18 Joel Brobecker <brobecker@gnat.com>
5009
5010 * infrun.c: Re-indent using gdb_indent.sh.
5011
46c415d2
JB
50122002-07-18 Joel Brobecker <brobecker@gnat.com>
5013
5014 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5015 Leave the indentation temporarily untouched, to minimize the diffs.
5016
cdecafbe
EZ
50172002-07-18 Elena Zannoni <ezannoni@redhat.com>
5018
5019 * stabsread.c: Make os9k sections of the code obsolete,
5020 for real this time.
5021 * stabsread.h: Make os9k sections of the code obsolete.
5022
7b6aa020
ML
50232002-07-18 Michal Ludvig <mludvig@suse.cz>
5024
09ec9b38
ML
5025 * linux-low.c (regsets_store_inferior_registers): Add free()
5026 at the end of a loop to prevent memory leak.
5027 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5028 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5029 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5030 line a comment.
4894ac5d 5031 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5032
233282cd
JB
50332002-07-17 Jim Blandy <jimb@redhat.com>
5034
5035 * macrocmd.c (info_macro_command): Remove newline from error
5036 message.
5037
7b6aa020 50382002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5039
5040 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5041 (sh_gdbarch_init): Use it for sh-dsp.
5042
f7ef9339
KB
50432002-07-16 Kevin Buettner <kevinb@redhat.com>
5044
5045 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5046 64-bit DWARF2 format.
5047
8dd72958
JB
50482002-07-16 Joel Brobecker <brobecker@gnat.com>
5049
5050 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5051 <sys/proc.h> when not available.
5052
a99a9e1b
AC
50532002-07-16 Andrew Cagney <ac131313@redhat.com>
5054
5055 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5056 * stabsread.c: Make os9k sections of the code obsolete.
5057 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5058 * config/i386/i386os9k.mt: Make file obsolete.
5059 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5060 (COMMON_OBS): Remove os9kread.o
5061 (SFILES): Remove os9kread.c.
5062 (os9kread.o, remote-os9k.o): Make target obsolete.
5063 * remote-os9k.c: Make file obsolete.
5064 * os9kread.c: Make file obsolete.
5065 * Makefile.in
5066
7a3085c1
AC
50672002-07-16 Andrew Cagney <ac131313@redhat.com>
5068
5069 * NEWS: Mention that the FR30 has been made obsolete.
5070 * fr30-tdep.c: Make file obsolete.
5071 * config/fr30/tm-fr30.h: Ditto.
5072 * config/fr30/fr30.mt: Ditto.
5073 * configure.tgt: Make fr30-*-elf obsolete.
5074 * MAINTAINERS: Make fr30-elf obsolete.
5075
28a93f5a
PM
50762002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5077
5078 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5079 found is not inside a section.
5080
be006b8b
KB
50812002-07-15 Kevin Buettner <kevinb@redhat.com>
5082
5083 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5084 strerror().
5085 (pdc_realloc): Use xrealloc() instead of realloc().
5086
14fa3751
KB
50872002-07-15 Kevin Buettner <kevinb@redhat.com>
5088
5089 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5090 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5091 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5092 macros.
5093
42cc437f
KB
50942002-07-15 Kevin Buettner <kevinb@redhat.com>
5095
5096 * aix-thread.c (ptrace_check): Eliminate goto.
5097 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5098 problem.
5099
8e2c28d4
KB
51002002-07-15 Kevin Buettner <kevinb@redhat.com>
5101
5102 * aix-thread.c (gdbcmd.h): Include.
5103 (DEBUG, DBG, DBG2, dbg): Eliminate.
5104 (debug_aix_thread): New static global.
5105 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5106 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5107 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5108 invocations to DBG and DBG2 macros to test against
5109 ``debug_aix_thread'' and call fprintf_unfiltered().
5110 (_initialize_aix_thread): Add new command "set debug aix-thread".
5111
30413464
AC
51122002-07-15 Andrew Cagney <ac131313@redhat.com>
5113
5114 From Gerhard Tonn <TON@de.ibm.com>:
5115 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5116 instead of supply_register.
5117
7c43edc1
AC
51182002-07-15 Andrew Cagney <ac131313@redhat.com>
5119
5120 * dwarf2cfi.c: Include "gdb_assert.h".
5121 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5122 non-NULL.
5123 (update_context): Do not use __func__. Add missing ``break''.
5124 (update_context): Do not use __func__.
5125
9364a0ef
EZ
51262002-07-15 Elena Zannoni <ezannoni@redhat.com>
5127
5128 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5129 and its setting. Set gdbarch instruction printing functions
5130 directly. For non-rs6000 case use new function
5131 gdb_print_insn_powerpc.
5132 (gdb_print_insn_powerpc): New function.
5133
3fbeef0b
AC
51342002-07-13 Andrew Cagney <ac131313@redhat.com>
5135
92eb23c5 5136 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5137 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5138 * configure.tgt: Mark d30v-*-* as obsolete.
5139 * d30v-tdep.c: Mark file as obsolete.
5140 * config/d30v/d30v.mt: Ditto.
5141 * config/d30v/tm-d30v.h: Ditto.
5142
aacb1f0a
AS
51432002-07-13 Aidan Skinner <aidan@velvet.net>
5144
5145 * ada-tasks.c (add_task_entry): replace calls to
5146 malloc() with xmalloc
5147 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5148
5149 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5150 ada_finish_decode_line_1, all_sals_for_line
5151 ada_breakpoint_rewrite): replace calls to free() with xfree()
5152
c11d79f2
KB
51532002-07-12 Kevin Buettner <kevinb@redhat.com>
5154
5155 From Nicholas Duffek (with minor changes by Martin Hunt,
5156 Louis Hamilton, and Kevin Buettner):
5157 * aix-thread.c: New file.
5158
8e19ed76
PS
51592002-07-12 Petr Sorfa <petrs@caldera.com>
5160
5161 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5162 complaint for invalid attribute class or form.
5163 (read_func_scope): DW_AT_frame_base
5164 better handling of DW_AT_block*.
5165 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5166 better handling of DW_AT_block*.
5167 (read_common_block): DW_AT_location
5168 better handling of DW_AT_block*.
5169 (read_partial_die): DW_AT_location better handling
5170 of DW_AT_block*.
5171 (new_symbol): DW_AT_external better handling of
5172 DW_AT_block*. Proper initialization of variable
5173 "addr".
5174 (attr_form_is_block): New function that returns true
5175 if the attribute's form is of DW_FORM_block*.
5176
295401f7
DJ
51772002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5178
5179 * valops.c (find_method_list): Remove comment about
5180 removed STATIC_MEMFUNCP argument.
5181 (value_find_oload_method_list): Likewise.
5182
e42dc924
KB
51832002-07-12 Kevin Buettner <kevinb@redhat.com>
5184
5185 From Nicholas Duffek:
5186 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5187 target_new_objfile_hook.
5188
6904b546
KB
51892002-07-12 Kevin Buettner <kevinb@redhat.com>
5190
5191 From Nicholas Duffek:
5192 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5193 csect.
5194
53fe9346
AC
51952002-07-12 Andrew Cagney <cagney@redhat.com>
5196
5197 * MAINTAINERS: Mention --enable-sim-build-warnings.
5198 (m68hc11-elf): Disable sim build warnings.
5199 (m32r-elf): Mark as broken obsolete candidate.
5200 (x86_64-linux-gnu): Mark as buildable with -Werror.
5201 (arm-elf): Change -w to ``,'' which enables warnings but not
5202 -Werror.
5203
af5f3db6
AC
52042002-07-12 Andrew Cagney <ac131313@redhat.com>
5205
5206 * bcache.h: Update copyright.
5207 (struct bstring, struct bcache): Move definition to "bcache.c".
5208 Replaced by opaque declaration.
5209 (bcache_xfree): Replace free_bcache.
5210 (bcache_xmalloc, bcache_memory_used): Declare.
5211
5212 * bcache.c: Update copyright.
5213 (struct bstring, struct bcache): Moved to here from "bcache.h".
5214 Update comments.
5215 (bcache_xmalloc, bcache_memory_used): New functions.
5216 (bcache_xfree): Replace function free_bcache.
5217
5218 * Makefile.in (objfiles.o): Add $(bcache_h).
5219 (objfiles_h): Remove $(bcache_h).
5220 (symfile.o): Add $(bcache_h).
5221
5222 * symmisc.c: Update copyright.
5223 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5224 (print_objfile_statistics): Use bcache_memory_used.
5225
5226 * symfile.c: Include "bcache.h".
5227 (reread_symbols): Use bcache_xfree.
5228 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5229 (add_psymbol_to_list): Pass psymbol_cache by value.
5230 (add_psymbol_with_dem_name_to_list): Ditto.
5231
5232 * objfiles.h: Update copyright.
5233 (struct bcache): Declare opaque. Do not include "bcache.h".
5234 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5235 bcache'' pointers.
5236 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5237
5238 * objfiles.c: Include "bcache.h". Update copyright.
5239 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5240 macro_cache.
5241 (free_objfile): Use bcache_xfree.
5242
444199e7
GS
52432002-07-11 Grace Sainsbury <graces@redhat.com>
5244
5245 * monitor.c (monitor_fetch_register): Make name a constant.
5246 (monitor_store_register): Same.
5247
261397f8
DJ
52482002-07-11 Daniel Jacobowitz <drow@mvista.com>
5249
5250 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5251 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5252 (finish_block) For non-function blocks, hash the symbol table. For
5253 function blocks, mark the symbol table as unhashed.
5254 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5255 (msymbol_hash_iw): Likewise.
5256 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5257 value.
5258 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5259 (lookup_minimal_symbol): Likewise for both.
5260 * symtab.h (struct block): Add `hashtable' flag. Comment the
5261 hashtable.
5262 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5263 (ALL_BLOCK_SYMBOLS): Update.
5264 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5265 (struct symbol): Add `hash_next' pointer.
5266 * symtab.c (lookup_block_symbol): Search using the hash table when
5267 possible.
5268 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5269 (search_symbols, find_addr_symbol): Likewise.
5270
5271 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5272 (read_dst_symtab): Likewise.
5273 * jv-lang.c (get_java_class_symtab): Likewise.
5274 * mdebugread.c: Include "gdb_assert.h".
5275 (shrink_block): Assert that the block being modified is not hashed.
5276 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5277 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5278 symbols.
5279 (dump_symtab): Recognize hashed blocks.
5280 * printcmd.c (print_frame_args): Assert that function blocks do not
5281 have hashed symbol tables.
5282 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5283 (fill_in_ada_prototype, debug_print_block): Likewise.
5284 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5285
6f0eaa01
CV
52862002-07-11 Corinna Vinschen <vinschen@redhat.com>
5287
5288 * stack.c (print_frame): Use result of frame_address_in_block()
5289 instead of fi->pc when evaluating symbols.
5290 (backtrace_command_1): Ditto.
5291
a208b0cb
AC
52922002-07-11 Andrew Cagney <cagney@redhat.com>
5293
5294 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5295 Make static.
5296
5297 * arm-tdep.c (arm_register_name): Make return type constant.
5298
a6b6b089
AC
52992002-07-10 Andrew Cagney <ac131313@redhat.com>
5300
5ae5f592
AC
5301 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5302 prototype.
5303 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5304 * s390-tdep.c (s390_fp_regnum): Ditto.
5305 (s390_read_fp): Ditto.
5306 (s390_pop_frame): Ditto.
5307 (_initialize_s390_tdep): Ditto.
5308 * remote.c (get_remote_state): Ditto.
5309 * procfs.c (mappingflags): Ditto.
5310 * memattr.c (_initialize_mem): Ditto.
5311 * mcore-tdep.c (mcore_pop_frame): Ditto.
5312 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5313 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5314 * language.c (set_case_str): Ditto.
5315 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5316 * frv-tdep.c (new_variant): Ditto.
5317 (frv_stopped_data_address): Ditto.
5318 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5319 (context_alloc): Ditto.
5320 (frame_state_alloc): Ditto.
5321 (unwind_tmp_obstack_init): Ditto.
5322 (unwind_tmp_obstack_free): Ditto.
5323 (cfi_read_fp): Ditto.
5324 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5325 (cris_pop_frame): Ditto.
5326 * c-lang.c (scanning_macro_expansion): Ditto.
5327 (finished_macro_expansion): Ditto.
5328 (c_preprocess_and_parse): Ditto.
5329 * gdbarch.sh: Ditto.
5330 * gdbarch.h, gdbarch.c: Regenerate.
5331 * config/mn10200/tm-mn10200.h: Adjust indentation.
5332 * target.c: Adjust indentation.
5333 * symtab.h: Adjust indentation.
5334 * stabsread.h: Adjust indentation.
5335 * remote-es.c: Adjust indentation.
5336 * os9kread.c: Adjust indentation.
5337
53382002-07-10 Andrew Cagney <ac131313@redhat.com>
5339
a6b6b089
AC
5340 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5341 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5342
a1789893
GS
53432002-07-10 Grace Sainsbury <graces@redhat.com>
5344
5345 * NEWS: Mention m68k, mcore multi-arching.
5346 * MAINTAINERS: Change status of m68k, mcore to reflect
5347 multi-arching.
5348
02f0d45d
DJ
53492002-07-10 Daniel Jacobowitz <drow@mvista.com>
5350
5351 * valops.c (find_overload_match): Free oload_syms.
5352
f15f768e
JB
53532002-07-09 Joel Brobecker <brobecker@gnat.com>
5354
5355 Define HAVE_SYS_PROC_H if sys/proc.h exists
5356 * configure.in: Add check for sys/proc.h
5357 * config.in: Regenerate.
5358 * configure: Regenerate.
5359
902a7139
GS
53602002-07-09 Grace Sainsbury <graces@redhat.com>
5361
5362 * config/m68k/tm-m68k.h: Remove macros wrapped in
5363 #if !GDB_MULTI_ARCH.
5364
a534e424
AC
53652002-07-08 Andrew Cagney <ac131313@redhat.com>
5366
5367 * config.in, configure: Regenerate.
5368
9b94f7bf
MK
53692002-07-08 Mark Kettenis <kettenis@gnu.org>
5370
5371 * dwarf2cfi.c: Include "gcore.h".
5372 (execute_stack_op): Fix implementation of the
5373 DW_OP_deref and DW_OP_deref_size operators by letting do their
5374 lookup in the target.
5375
1d34db41
MK
53762002-07-07 Mark Kettenis <kettenis@gnu.org>
5377
5378 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5379 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5380 tdep->sc_sp_offset.
5381
79d5b63a
DJ
53822002-07-05 Daniel Jacobowitz <drow@mvista.com>
5383
5384 Fix PR gdb/595, gdb/602
5385 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5386 Don't call value_cast, just read the vtable pointer; update comments
5387 to match.
5388
3bb912e8
GS
53892002-07-05 Grace Sainsbury <graces@redhat.com>
5390
5391 * config/mcore/tm-mcore.h: Remove file.
5392 * config/mcore/mcore.mt: Remove definition of TM_FILE
5393 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5394
ca39387d
MK
53952002-07-05 Mark Kettenis <kettenis@gnu.org>
5396
5397 * i386bsd-tdep.c: Include "gdb_string.h".
5398
efdc1108
GS
53992002-07-04 Grace Sainsbury <graces@redhat.com>
5400
5401 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5402 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5403 mcore-tdep.
5404 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5405 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5406 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5407 (RETVAL_REGNUM): Move macros from tm-mcore.h
5408 (mcore_reg_struct_has_addr): New function.
5409 (mcore_gdbarch_init): Added initializations for the macros removed
5410 from tm-mcore.h.
5411
bb21884d
MK
54122002-07-04 Mark Kettenis <kettenis@gnu.org>
5413
5414 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5415 traditonal string branding within the ELF header.
5416
228c6d41
DJ
54172002-07-04 Daniel Jacobowitz <drow@mvista.com>
5418
5419 * symtab.c (remove_params): New function.
5420 (make_symbol_overload_list): Use it instead of cplus_demangle.
5421 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5422
2404952e
MK
54232002-07-04 Mark Kettenis <kettenis@gnu.org>
5424
e5e4acad
MK
5425 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5426
baadce09
MK
5427 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5428 New variables.
5429 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5430 and tdep->sigtramp_end.
5431 * i386obsd-nat.c: New file.
5432 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5433
2404952e
MK
5434 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5435 Don't call get_current_frame().
5436
9b4f1ba7
PM
54372002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5438
5439 * i386-nat.c (child_post_startup_inferior): New function
5440 calling i386_cleanup_dregs if
5441 I386_USE_GENERIC_WATCHPOINTS is defined.
5442 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5443 conditional to acknowledge that i386-nat.c has its
5444 own child_post_startup_inferior function.
5445
c0d1d883
MK
54462002-07-04 Mark Kettenis <kettenis@gnu.org>
5447
00f8375e
MK
5448 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5449 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5450 instead of MAX_REGISTER_RAW_SIZE.
5451 (i386_extract_return_value, i386_extract_struct_value_address):
5452 Convert to use regcache.
5453 (i386_gdbarch_init): Set max_register_raw_size and
5454 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5455 Set extract_return_value and extract_struct_value_address instead
5456 of their deprecated variants.
5457
c0d1d883
MK
5458 Convert i386 target to generic dummy frames.
5459 * i386-tdep.c: Include "symfile.h".
5460 (i386_frameless_signal_p): Consider a function to be frameless if
5461 the pc points at the first instruction of the function.
5462 (i386_frame_chain): Handle (generic) call dummies.
5463 (i386_frame_saved_pc): Likewise.
5464 (i386_frame_init_saved_regs): Remove code dealing with call
5465 dummies on the stack.
5466 (i386_push_dummy_frame): Removed.
5467 (i386_call_dummy_words): Removed.
5468 (i386_fix_call_dummy): Removed.
5469 (i386_push_return_address): New function.
5470 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5471 parameter, and don't call get_current_frame.
5472 (i386_pop_frame): New function.
5473 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5474 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5475 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5476 call_dummy_length to 0, set call_dummy_words to NULL, set
5477 sizeof_call_dummy_words to 0, set fix_call_dummy to
5478 generic_fix_call_dummy, set pc_in_call_dummy to
5479 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5480 generic_push_dummy_frame, set push_return_address to
5481 i386_push_return_address and set frame_chain_valid to
5482 generic_file_frame_chain_valid.
5483
049ee0e4
AC
54842002-07-03 Andrew Cagney <ac131313@redhat.com>
5485
5486 * gdbarch.sh (struct regcache): Add opaque declaration.
5487 (EXTRACT_RETURN_VALUE): New architecture method.
5488 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5489 * gdbarch.h, gdbarch.c: Regenerate.
5490 * arch-utils.c (legacy_extract_return_value): New function.
5491 * arch-utils.h (legacy_extract_return_value): Declare.
5492 * values.c (value_being_returned): Re-enable code handling
5493 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5494 deprecated_grub_regcache_for_registers call to block handling
5495 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5496 (EXTRACT_RETURN_VALUE): Do not define.
5497
4e0d9804
GS
54982002-07-03 Grace Sainsbury <graces@redhat.com>
5499
5500 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5501 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5502 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5503 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5504 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5505 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5506 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5507 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5508 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5509 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5510 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5511 argument so the function fits the prototype in the architecture
5512 vector.
5513 (mcore_pop_frame): Remove argument so the function fits the
5514 prototype. Use get_current_frame instead of the argument.
5515 (mcore_push_arguments): Change type of struct_return so the
5516 function can be used in the architecture vector.
5517 (mcore_store_struct_return): Add.
5518 (mcore_frame_init_saved_regs): Add.
5519 (mcore_gdbarch_init): Add function calls to replace the macros
5520 removed from tm-mcore.h
5521
36160dc4
AC
55222002-07-03 Andrew Cagney <ac131313@redhat.com>
5523
5524 * infcmd.c (print_return_value): Remove compatibility code calling
5525 deprecated_grub_regcache_for_registers.
5526
5527 * values.c: Include "regcache.h".
5528 (value_being_returned): Update. Use
5529 deprecated_grub_regcache_for_registers to extract the register
5530 buffer address.
5531 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5532 ``struct regcache''.
5533 * Makefile.in (values.o): Add dependency on $(regcache_h).
5534
5535 * inferior.h (run_stack_dummy): Change type of second parameter to
5536 a ``struct regcache''.
5537 * valops.c (hand_function_call): Change type of retbuf to ``struct
5538 regcache''. Allocate using regcache_xmalloc, clean using
5539 make_cleanup_regcache_xfree.
5540 * infcmd.c (run_stack_dummy): Update. Use
5541 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5542
5543 * regcache.c (do_regcache_xfree): New function.
5544 (make_cleanup_regcache_xfree): New function.
5545 * regcache.h (make_cleanup_regcache_xfree): Declare.
5546
e64d9b3d
MH
55472002-07-03 Martin M. Hunt <hunt@redhat.com>
5548
4dd79c29
MH
5549 * event-top.c (command_line_handler): Don't read past
5550 beginning of buffer.
e64d9b3d 5551
4dd79c29
MH
55522002-07-03 Martin M. Hunt <hunt@redhat.com>
5553
e64d9b3d
MH
5554 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5555 struct frame_id.
5556 (varobj_create): Store frame_id for root.
5557 (varobj_gen_name): Use xasprintf.
5558 (varobj_update): Save and restore frame using get_frame_id() and
5559 frame_find_by_id().
5560 (create_child): Use xasprintf.
5561 (new_root_variable): Initialize frame_id.
5562 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5563 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5564 to prevent memory leak.
5565
26e6c56a
AC
55662002-07-03 Andrew Cagney <ac131313@redhat.com>
5567
5568 * valops.c (hand_function_call): Move declaration of retbuf to
5569 start of function, allocate using malloc, add a cleanup but before
5570 the inf_status cleanup, cleanup the buffer. Rename local variable
5571 old_chain to inf_status_cleanup.
5572
f436dd25
MH
55732002-07-03 Martin M. Hunt <hunt@redhat.com>
5574
5575 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5576
5577 * cli/cli-decode.c (cmd_func_p): New function.
5578 (cmd_func): New function.
5579
5580 * command.h: Add cmd_func() and cmd_func_p().
5581
4cfe2084
GS
55822002-07-03 Grace Sainsbury <graces@redhat.com>
5583
5584 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5585 (REGISTER_SIZE): Remove.
5586 (MAX_REGISTER_RAW_SIZE): Remove.
5587 (REGISTER_VIRTUAL_TYPE): Remove.
5588 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5589 (REGISTER_NAME): Remove.
5590 (USE_GENERIC_DUMMY_FRAMES): Remove.
5591 (CALL_DUMMY): Remove.
5592 (CALL_DUMMY_START_OFFSET): Remove.
5593 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5594 (CALL_DUMMY_LOCATION): Remove.
5595 (FIX_CALL_DUMMY): Remove.
5596 (CALL_DUMMY_ADDRESS): Remove.
5597 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5598 (SAVE_DUMMY_FRAME_TOS): Remove.
5599 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5600 (mcore_register_virtual_type): New function.
5601 (mcore_register_byte): New function.
5602 (mcore_register_size): New function.
5603 (mcore_register_name): New function.
5604 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5605 macros removed from tm-mcore.h.
5606 (mcore_dump_tdep): Add.
5607 (_initialize_mcore_tdep): Add gdbarch_register call.
5608
4fd667e9
MK
56092002-07-03 Mark Kettenis <kettenis@gnu.org>
5610
5611 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5612 frameless_look_for_prologue, such that we actually call this
5613 function.
5614
42f99ac2
JB
56152002-07-02 Joel Brobecker <brobecker@gnat.com>
5616
5617 * frame.h (frame_address_in_block): New function.
5618
5619 * blockframe.c (frame_address_in_block): New function extracted
5620 from get_frame_block().
5621 (get_frame_block): Use frame_address_in_block().
5622 (block_innermost_frame): Use frame_address_in_block() to match
5623 the frame pc address against the block boundaries rather than
5624 the frame pc directly. This prevents a failure when a frame pc
5625 is actually a return-address pointing immediately after the end
5626 of the given block.
5627
103a1597 56282002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5629
5630 * MAINTAINERS: Add self under write after approval.
5631
56322002-07-02 Grace Sainsbury <graces@redhat.com>
5633
103a1597
GS
5634 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5635 used in architecture vector. The default is
5636 m68k_local_breakpoint_from_pc.
5637 (m68k_local_breakpoint_from_pc): Add.
5638 (enum): Add register numbers from tm-m68k.h.
5639 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5640 vector.
5641 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5642 GDB_MULTI_ARCH_PARTIAL.
5643 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5644 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5645 m68k-tdep.c.
5646 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5647 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5648 to enum in m68k-tdep.c
5649
7a5a0534
JB
56502002-07-02 Joel Brobecker <brobecker@gnat.com>
5651
5652 * solib-osf.c (open_map): Compute the list of shared libraries
5653 loaded by the inferior, rather than the list of libraries loaded
5654 by GDB itself. Otherwise, GDB ends up reading the symbols from
5655 the wrong shared libraries...
5656
6f558d74
MK
56572002-07-02 Mark Kettenis <kettenis@gnu.org>
5658
b7d15bf7
MK
5659 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5660 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5661 macros.
5662 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5663 Remove functions.
5664 (FRAMELESS_SIGNAL): Remove function.
5665 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5666 i386_linux_saved_pc_after_call): Removed.
5667 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5668 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5669 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5670
6bff26de
MK
5671 * i386-tdep.c (i386_frameless_signal_p): New function.
5672 (i386_frame_chain): Deal with frameless signals.
5673 (i386_sigtramp_saved_sp): New function.
5674 (i386_frame_saved_pc): Deal with frameless signals.
5675 (i386_saved_pc_after_call): Make sure the correct value is
5676 returned just after entry into a sigtramp.
5677 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5678 i386fbsd4_sc_sp_offset): New variables.
5679 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5680 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5681 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5682 similiar to what we already did for sc_pc_offset.
5683 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5684 tdep->sc_sp_offset.
5685
6f558d74
MK
5686 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5687
145564b7
ML
56882002-07-02 Michal Ludvig <mludvig@suse.cz>
5689
5690 * config/i386/tm-x86-64linux.h: New.
5691 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5692 definitions.
5693 * config/i386/nm-x86-64.h: Rename to ...
5694 * config/i386/nm-x86-64linux.h: ... this one.
5695 * config/i386/x86-64linux.mh: Reflect the above change.
5696
3a1e71e3
MK
56972002-07-01 Mark Kettenis <kettenis@gnu.org>
5698
21d0e8a4
MK
5699 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5700 with sigcontext_addr. Add sc_sp_offset.
5701 (i386bsd_sigtramp_saved_pc): Remove prototype.
5702 (i386bsd_sicontext_addr): Add prototype.
5703 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5704 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5705 (i386_svr4_sigtramp_saved_pc): Removed.
5706 (i386_svr4_sigcontext_addr): New function.
5707 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5708 Initialize tdep->sigcontext_addr instead. Initialize
5709 tdep->sc_pc_offset and tdep->sc_sp_offset.
5710 (i386_gdbarch_init): Likewise.
5711 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5712 any more.
5713 (i386bsd_sigtramp_saved_pc): Remove function.
5714 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5715 Initialize tdep->sigcontext_addr instead. Initialize
5716 tdep->sc_pc_offset.
5717 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5718 of tdep->sigtramp_saved_pc.
5719 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5720 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5721 instead.
5722
3a1e71e3
MK
5723 * i386-tdep.c (i386_frameless_function_invocation,
5724 i386_frame_num_args, i386_frame_init_saved_regs,
5725 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5726 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5727 i386_extract_return_value, i386_store_return_value,
5728 i386_extract_struct_value_address, i386_register_virtual_type,
5729 i386_register_convertible, i386_register_convert_to_virtual,
5730 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5731 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5732 static.
5733
52e9098c
MK
57342002-07-01 Mark Kettenis <kettenis@gnu.org>
5735
77b13a25
MK
5736 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5737
52e9098c
MK
5738 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5739 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5740 this macro. Include "value.h".
5741
1b372fff
AS
57422002-06-30 Aidan Skinner <aidan@velvet.net>
5743
5744 * ada-exp.tab.c: remove as it's a generated file
5745 * ada-lex.c: remove as it's a generated file
5746
9c5045b5
MK
57472002-06-30 Mark Kettenis <kettenis@gnu.org>
5748
4a93c5bb
MK
5749 * config/i386/tm-i386.h (struct frame_info, struct
5750 frame_saved_regs, struct value, struct type): Remove forward
5751 declarations.
5752
322d4fe0
MK
5753 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5754 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5755 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5756 (FILL_FPXREGSET): Define.
5757
fdd8263d
MK
5758 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5759
482e577b
MK
5760 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5761 i[3456]86-*-netbsd* case.
5762 * config/i386/tm-obsd.h: Removed.
5763 * config/i386/obsd.mt: Removed.
5764 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5765 core-aout.o.
5766 (MH_CFLAGS): Add -DYYDEBUG=0.
5767
6916549a
MK
5768 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5769 i386nbsd_sc_pc_offset on OpenBSD too.
5770
9c5045b5
MK
5771 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5772 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5773 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5774 define.
5775 * i386bsd-tdep.c: Include "arch-utils.h".
5776 (i386bsd_aout_in_solib_call_trampoline): New function.
5777 (i386bsd_init_abi): Set in_solib_call_trampoline to
5778 i386bsd_aout_in_solib_call_trampoline.
5779 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5780 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5781
aa84d1bb
AC
57822002-06-28 Andrew Cagney <ac131313@redhat.com>
5783
5784 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5785 (struct obstack, struct bcache): Add opaque declarations.
5786 * Makefile.in (macrotab_h): Update
5787
b4d83933
AC
57882002-06-28 Andrew Cagney <ac131313@redhat.com>
5789
5790 * blockframe.c (generic_find_dummy_frame): Change return type to
5791 ``struct regcache''.
5792 (struct dummy_frame): Replace field ``registers'' with regcache, a
5793 struct regcache object.
5794 (generic_find_dummy_frame): Update.
5795 (generic_push_dummy_frame): Update. Use regcache_xfree,
5796 regcache_xmalloc and regcache_cpy.
5797 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5798 regcache_xfree.
5799 (deprecated_generic_find_dummy_frame): Update.
5800 (generic_read_register_dummy): Update. Use
5801 regcache_read_as_address.
5802 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5803 (generic_get_saved_register): Update. Use regcache_read.
5804
08c0b5bc
AC
58052002-06-28 Andrew Cagney <ac131313@redhat.com>
5806
5807 * Makefile.in (objfiles_h): Add $(bcache_h).
5808 * objfiles.h: Include "bcache.h".
5809
5810 * Makefile.in (symtab_h): Remove $(bcache_h).
5811 * symtab.h: Do not include "bcache.h".
5812
1f89801a
AC
58132002-06-28 Andrew Cagney <ac131313@redhat.com>
5814
5815 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5816 generic_func_frame_chain_valid.
5817
b9644b58
DB
58182002-06-28 David O'Brien <obrien@FreeBSD.org>
5819
5820 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5821 * config/i386/tm-fbsd.h: Likewise.
5822
dd486634
AC
58232002-06-28 Andrew Cagney <ac131313@redhat.com>
5824
5825 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5826 generic_unwind_get_saved_register.
5827
0b434a00
AC
58282002-06-27 Andrew Cagney <ac131313@redhat.com>
5829
5830 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5831 * regcache.c (supply_register): Add missing argument to
5832 register_buffer call.
5833
f30e5a77
AC
58342002-06-27 Andrew Cagney <ac131313@redhat.com>
5835
5836 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5837 Solaris /bin/grep does not not like it. From Peter Schauer.
5838
9f064c95
TT
58392002-06-26 Tom Tromey <tromey@redhat.com>
5840
5841 * command.h (add_setshow_cmd): Declare.
5842 (add_setshow_cmd_full): Declare.
5843 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5844 returns void. Use add_setshow_cmd_full.
5845 (add_setshow_cmd_full): New function.
5846 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5847 (add_setshow_boolean_cmd): Likewise.
5848
099c7589
JT
58492002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5850
5851 * config/vax/tm-vax.h: Protect from multiple inclusion.
5852 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5853 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5854 * config/vax/tm-vaxbsd.h: ...here. New file.
5855 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5856
1d049c5e
JT
58572002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5858
5859 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5860 (BELIEVE_PCC_PROMOTION): Remove.
5861 (AP_REGNUM): Move to...
5862 * config/vax/nm-vax.h: ...here.
5863 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5864 (vax_breakpoint_from_pc): New function.
5865 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5866 and gdbarch_believe_pcc_promotion.
5867
4791e091
JT
58682002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5869
5870 * Makefile.in (vax_tdep_h): Define.
5871 (vax-tdep.o): Use $(vax_tdep_h).
5872 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5873 (vax_dump_tdep): New function.
5874 (_initialize_vax_tdep): Register vax_dump_tdep.
5875 * vax-tdep.h: Include osabi.h.
5876 (struct gdbarch_tdep): New.
5877
da130f98
AC
58782002-06-26 Andrew Cagney <cagney@redhat.com>
5879
5880 * frame.h (deprecated_generic_find_dummy_frame): Rename
5881 generic_find_dummy_frame.
5882 * blockframe.c (generic_find_dummy_frame): Make static.
5883 (deprecated_generic_find_dummy_frame): New function.
5884 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5885 generic_find_dummy_frame with deprecated_find_dummy_frame.
5886 (sh64_nofp_frame_init_saved_regs): Ditto.
5887 (sh_fp_frame_init_saved_regs): Ditto.
5888 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5889 (s390_frame_chain): Ditto.
5890 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5891
6300c360
GS
58922002-06-26 Grace Sainsbury <graces@redhat.com>
5893
5894 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5895 gdbarch vector are at the top.
5896 (NUM_REGS): Remove.
5897 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5898 (FRAME_ARGS_ADDRESS): Remove.
5899 (FRAME_LOCALS_ADDRESS): Remove.
5900 (FRAME_NUM_ARGS): Remove.
5901 (FRAME_ARGS_SKIP): Remove.
5902 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5903 (m68k_gdbarch_init): Add gdbarch initializations for macros
5904 undefined in tm-m68k.h
5905
1c617db8
GS
59062002-06-26 Grace Sainsbury <graces@redhat.com>
5907
5908 * monitor.h: Add the function regname to monitor_ops
5909 structure. This way NUM_REGS does not have to be a constant.
5910 * monitor.c (monitor_fetch_register): Added support for regname
5911 function. The function is called if the array regnames is NULL.
5912 (monitor_store_register): Same.
da130f98
AC
5913 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5914 regnames array.
1c617db8
GS
5915 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5916 cpu32bug_cmds.regname to point to new function.
5917 * abug-rom.c (abug_regname): Same as above.
5918 (init_abug_cmds): Same.
5919 * dbug-rom.c (dbug_regname): Same as above.
5920 (init_dbug_cmds): Same.
5921 * remote-est.c (est_regname): Same.
5922 (init_est_cmds): Same.
5923 * rom68k-rom.c (rom68k_regname): Same.
5924 (init_rom68k_cmds): Same.
5925
ea9365bb
TT
59262002-06-25 Tom Tromey <tromey@redhat.com>
5927
5928 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5929
72cec141
AC
59302002-06-25 Andrew Cagney <cagney@redhat.com>
5931
5932 * infrun.c (stop_registers): Change variable's type to ``struct
5933 regcache'''.
5934 (xmalloc_inferior_status): Delete function.
5935 (free_inferior_status): Delete function.
5936 (normal_stop): Use regcache_cpy.
5937 (struct inferior_status): Change type of fields ``stop_registers''
5938 and ``registers'' to ``struct regcache''.
5939 (write_inferior_status_register): Use regcache_write.
5940 (save_inferior_status): Instead of calling
5941 xmalloc_inferior_status, allocate the inf_status buffer directly.
5942 Use regcache_dup_no_passthrough and regcache_dup to save the
5943 buffers.
5944 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5945 Replace the stop_registers regcache instead of overriding it. Use
5946 regcache_xfree. Instead of calling free_inferior_status, xfree
5947 the buffer directly.
5948 (discard_inferior_status): Use regcache_xfree. Instead of calling
5949 free_inferior_status, xfree the buffer directly.
5950 (build_infrun): Use regcache_xmalloc.
5951 (_initialize_infrun): Delete redundant call to build_infrun.
5952
5953 * Makefile.in (infcmd.o): Add $(regcache_h).
5954
5955 * infcmd.c: Include "regcache.h".
5956 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5957 obtain the address of `stop_registers' register buffer.
5958 (print_return_value): Ditto.
5959
5960 * inferior.h (struct regcache): Add opaque declaration.
5961 (stop_registers): Change variable's declared type to ``struct
5962 regcache''.
5963
defc6f8c
TT
59642002-06-24 Tom Tromey <tromey@redhat.com>
5965
c0e624e7
TT
5966 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5967 * target.c (initialize_targets): Fixed typo in
5968 trust-readonly-sections `show' documentation.
5969
defc6f8c
TT
5970 * main.c: Marked all strings with _().
5971
2b236d82
DH
59722002-06-24 Don Howard <dhoward@redhat.com>
5973
5974 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5975 that means max CORE_ADDR+1.
5976 (lookup_mem_region): Ditto.
5977 (mem_info_command): Ditto.
5978
942dc0e9
GS
59792002-06-24 Grace Sainsbury <graces@redhat.com>
5980
5981 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5982 (REGISTER_BYTES_OK): Remove.
5983 (REGISTER_BYTES): Remove.
5984 (STORE_STRUCT_RETURN): Remove.
5985 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5986 (STORE_RETURN_VALUE): Remove.
5987 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5988 (FRAME_CHAIN): Remove.
5989 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5990 (FRAME_SAVED_PC): Remove.
5991 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5992 (m68k_store_struct_return): Add.
5993 (m68k_deprecated_extract_return_value): Add.
5994 (m68k_deprecated_extract_struct_value_address): Add.
5995 (m68k_store_return_value): Add.
5996 (m68k_frame_chain): Add.
5997 (m68k_frameless_function_invocation): Add.
5998 (m68k_frame_saved_pc): Add.
5999 (m68k_gdbarch_init): added set_gdbarch calls for new
6000 functions and deleted macros.
6001
03c30d4d
TT
60022002-06-23 Tom Tromey <tromey@redhat.com>
6003
6004 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6005 (ALLDEPFILES): Likewise.
6006 (udiheaders): Removed.
6007 (udip2soc.o): Likewise.
6008 (udi2go32.o): Likewise.
6009 (udr.o): Likewise.
6010 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6011
37e71372
AC
60122002-06-22 Andrew Cagney <ac131313@redhat.com>
6013
06a6ac57
AC
6014 * infrun.c (_initialize_infrun): Delete unnecessary call to
6015 build_infrun.
6016
37e71372
AC
6017 * regcache.h: Update comments describing the regcache_cpy family
6018 of functions.
6019 (regcache_save, regcache_restore): Delete declaration.
6020 (regcache_save_no_passthrough): Delete declaration.
6021 (regcache_restore_no_passthrough): Delete declaration.
6022 * regcache.c (regcache_save): Delete function.
6023 (regcache_save_no_passthrough): Delete function.
6024 (regcache_restore): Delete function.
6025 (regcache_restore_no_passthrough): Delete function.
6026
78f6d055
AC
60272002-06-21 Andrew Cagney <ac131313@redhat.com>
6028
6029 * config/m68k/tm-m68k.h: Fix typo.
6030 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6031 (m68k_frame_init_saved_regs): Declare.
6032
78b119cb
JB
60332002-06-21 Jim Blandy <jimb@redhat.com>
6034
6035 Remove some vestiges of Harris 88k support.
6036 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6037 register numbering quirk.
6038 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6039 odd symbols occurring in Harris 88k ELF targets.
6040
0fbb3da7
TT
60412002-06-21 Tom Tromey <tromey@redhat.com>
6042
6043 * gdb_locale.h: New file.
6044 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6045 (defs_h): Added gdb_locale.h.
6046 * configure, config.in: Rebuilt.
6047 * configure.in (PACKAGE): Define.
6048 * defs.h: Include gdb_locale.h.
6049 * main.c (captured_main): Call setlocale, bindtextdomain,
6050 textdomain.
6051
456f8b9d
DB
60522002-06-21 Dave Brolley <brolley@redhat.com>
6053
6054 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6055 * config/frv/frv.mt: New file.
6056 * config/frv/tm-frv.h: New file.
6057 * configure.tgt: Support frv-*-*.
6058 * Makefile.in (frv-tdep.o): New target.
6059 * frv-tdep.c: New file.
6060 * NEWS: Mention frv.
6061
cdd463f9
DB
60622002-06-21 Dave Brolley <brolley@redhat.com>
6063
6064 * MAINTAINERS: Add self to "Write After Approval" list.
6065
5d3ed2e3
GS
60662002-06-21 Grace Sainsbury <graces@redhat.com>
6067
6068 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6069 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6070 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6071 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6072 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6073
6074 * m68k-tdep.c: Include arch-utils.h
6075 (m68k_register_raw_size): Add.
6076 (m68k_register_virtual_size): Add.
6077 (m68k_register_virtual_type): Add.
6078 (m68k_register_name): Add.
6079 (m68k_stack_align): Add.
6080 (m68k_register_byte): Add.
6081 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6082 tm-m68k.h.
6083
7f8e7424
GS
60842002-06-21 Grace Sainsbury <graces@redhat.com>
6085
a2c6a6d5 6086 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6087 m68k_find_saved_regs.
6088 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6089 references to it with frame->saved_regs.
7f8e7424
GS
6090 (m68k_gdbarch_init): Added function calls to initialize the
6091 gdbarch structure.
a2c6a6d5
GS
6092 (m68k_fix_call_dummy): Add.
6093 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6094 (CALL_DUMMY): Remove.
6095 (CALL_DUMMY_LENGTH): Remove.
6096 (CALL_DUMMY_START_OFFSET): Remove.
6097 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6098 (FIX_CALL_DUMMY): Remove.
6099 (PUSH_DUMMY_FRAME): Remove.
6100 (POP_FRAME): Remove.
7f8e7424 6101
f461f5cf
PM
61022002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6103
6104 * parse.c (parse_fprintf): New function used to avoid calls to
6105 fprintf in bison parser generated debug code.
6106 * parser-defs.h: Declaration of new parse_fprintf function.
6107 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6108 Set YYDEBUG to 1 by default.
6109 Set YYFPRINTF as parse_fprintf.
6110
7f0c12ed
ML
61112002-06-21 Michal Ludvig <mludvig@suse.cz>
6112
6113 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6114 encoding anymore.
6115 (pointer_encoding, enum ptr_encoding): New.
6116 (execute_cfa_program): Take care about pointer encoding.
6117 (dwarf2_build_frame_info): Only call parse_frame_info for
6118 .debug_frame and .eh_frame.
6119 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6120 fixed augmentation handling, added relative addressing,
6121 ignore duplicate FDEs. Added comments.
19d833a2 6122 * dwarf2cfi.c: Reindented.
7f0c12ed 6123
87c4a039
EZ
61242002-06-20 Elena Zannoni <ezannoni@redhat.com>
6125
6126 * event-top.c (command_handler): Don't use space_at_cmd_start
6127 unless there is sbrk() on the host. Assign time and space data
6128 to union fields of the appropriate length.
6129
1cf877ad
ML
61302002-06-20 Michal Ludvig <mludvig@suse.cz>
6131
6132 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6133 x86_64_register_name. Return type changed to 'const char *'.
6134 (x86_64_register_name2nr): Rename to x86_64_register_number.
6135 (x86_64_gdbarch_init): Update to reflect the change.
6136 * x86-64-tdep.h: Ditto.
6137 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6138 (supply_fpregset): Ditto.
6139
3fadccb3
AC
61402002-06-19 Andrew Cagney <cagney@redhat.com>
6141
6142 * regcache.h: Update copyright.
6143 (struct regcache, struct gdbarch): Add opaque declarations.
6144 (current_regcache): Declare global variable.
6145 (regcache_read, regcache_write): Add gdbarch parameter.
6146 (regcache_save, regcache_save_no_passthrough)
6147 (regcache_restore, regcache_restore_no_passthrough)
6148 (regcache_dup, regcache_dup_no_passthrough)
6149 (regcache_cpy, regcache_cpy_no_passthrough)
6150 (deprecated_grub_regcache_for_registers)
6151 (deprecated_grub_regcache_for_register_valid)
6152 (regcache_valid_p): Add function declarations.
6153
6154 * regcache.c: Update copyright.
6155 (regcache_descr_handle): New global variable.
6156 (struct regcache_descr): Define.
6157 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6158 (regcache_descr, xfree_regcache_descr): New functions.
6159 (struct regcache): Define.
6160 (regcache_xmalloc, regcache_xfree): New functions.
6161 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6162 (regcache_dup, regcache_dup_no_passthrough): New functions.
6163 (regcache_valid_p, regcache_read_as_address): New functions.
6164 (deprecated_grub_regcache_for_registers): New function.
6165 (deprecated_grub_regcache_for_register_valid): New function.
6166 (current_regcache): New global variable.
6167 (register_buffer): Add regcache parameter. Update calls.
6168 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6169 (read_register_gen, write_register_gen): Update register_buffer
6170 call. Test for legacy_p instead of gdbarch_register_read_p or
6171 gdbarch_register_write_p.
6172 (regcache_collect): Update register_buffer call.
6173 (build_regcache): Rewrite. Use deprecated grub functions.
6174 (regcache_save, regcache_save_no_passthrough): New functions.
6175 (regcache_restore, regcache_restore_no_passthrough): New
6176 functions.
6177 (_initialize_regcache): Create the regcache_data_handle. Swap
6178 current_regcache global variable.
6179
6180 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6181 parameter to regcache_read and regcache_write calls.
6182 (sh4_register_read): Ditto.
6183 (sh64_pseudo_register_read): Ditto.
6184 (sh64_register_read): Ditto.
6185 (sh_pseudo_register_write): Ditto.
6186 (sh4_register_write): Ditto.
6187 (sh64_pseudo_register_write): Ditto.
6188 (sh64_register_write): Ditto.
6189
6190 * defs.h (XCALLOC): Define.
6191
152d9db6
GS
61922002-06-19 Grace Sainsbury <graces@redhat.com>
6193
6194 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6195 * m68k-tdep.c (m68k_gdbarch_init): Added.
6196 (m68k_dump_tdep): Added.
6197
170911c7
DJ
61982002-06-19 Daniel Jacobowitz <drow@mvista.com>
6199
6200 * ada-lang.c (fill_in_ada_prototype): Update comment.
6201
2e4ebe70
DJ
62022002-06-19 Daniel Jacobowitz <drow@mvista.com>
6203
6204 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6205 MIPS_ABI_LAST.
6206 (mips_abi_string, mips_abi_strings): New.
6207 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6208 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6209 tdep->mips_abi_string. Honor mips_abi_string. Default to
6210 O32 if no ABI is found.
6211 (mips_dump_tdep): Use mips_abi_strings.
6212 (mips_abi_update): New function.
6213 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6214 ``set mips abi'' and ``show mips abi''. Check the size of
6215 mips_abi_strings.
6216
16775908
AC
62172002-06-19 Andrew Cagney <cagney@redhat.com>
6218
6219 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6220 constant.
6221
5051bfa4 62222002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6223
5051bfa4
JB
6224 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6225 current frame using only the first stack size adjustment. All
6226 subsequent size adjustments are not considered to be part of
6227 the "static" part of the current frame.
6228 Compute the address of the saved registers relative to the
6229 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6230 in use in this frame.
6231
56468235
DH
62322002-06-18 Don Howard <dhoward@redhat.com>
6233
6234 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6235 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6236 suggesting this solution.
6237
0b624158
AC
62382002-06-18 Andrew Cagney <ac131313@redhat.com>
6239
6240 * config/romp/xm-rtbsd.h: Delete file.
6241 * config/romp/rtbsd.mh: Delete file.
6242
221ea385
KS
62432002-06-18 Keith Seitz <keiths@redhat.com>
6244
6245 * breakpoint.c (condition_command): Post breakpoint_modify
6246 when a condition is added to an existing breakpoint.
6247 (commands_command): Likewise for commands.
6248 (set_ignore_count): Likewise for ignore counts.
6249 If no tty, do not simply return, still need to send event
6250 notification.
6251 (ignore_command): Only print a newline if the command came
6252 from a tty.
6253 Don't call breakpoints_changed, since this is now properly
6254 handled by set_ignore_count.
6255
5402eed1
AC
62562002-06-18 Andrew Cagney <cagney@redhat.com>
6257
6258 * MAINTAINERS: Note that cris-elf target can be compiled with
6259 -Werror.
6260 * cris-tdep.c (cris_register_name): Make return type constant.
6261 (cris_breakpoint_from_pc): Ditto.
6262
cc22880b
ML
62632002-06-18 Michal Ludvig <mludvig@suse.cz>
6264
6265 * frame.h (struct frame_info): Change type of context to
6266 'struct context'.
6267
fa88f677
AC
62682002-06-17 Andrew Cagney <cagney@redhat.com>
6269
6270 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6271 pointer.
6272 * gdbarch.h, gdbarch.c: Regenerate.
6273 * config/mips/tm-mips.h (mips_register_name): Update.
6274 * i386-tdep.h (i386_register_name): Update.
6275 * mips-tdep.c (mips_register_name): Update
6276 * alpha-tdep.c (alpha_register_name): Update.
6277 * arch-utils.c (legacy_register_name): Update.
6278 * arch-utils.h (legacy_register_name): Update.
6279 * avr-tdep.c (avr_register_name): Update.
6280 * ia64-tdep.c (ia64_register_name): Update.
6281 * i386-tdep.c (i386_register_name): Update.
6282 * sparc-tdep.c (sparc32_register_name): Update.
6283 (sparc64_register_name): Update.
6284 (sparclite_register_name): Update.
6285 (sparclet_register_name): Update.
6286 * sh-tdep.c (sh_generic_register_name): Update.
6287 (sh_sh_register_name): Update.
6288 (sh_sh3_register_name): Update.
6289 (sh_sh3e_register_name): Update.
6290 (sh_sh_dsp_register_name): Update.
6291 (sh_sh3_dsp_register_name): Update.
6292 (sh_sh4_register_name): Update.
6293 (sh_sh64_register_name): Update.
6294 * s390-tdep.c (s390_register_name): Update.
6295 * rs6000-tdep.c (rs6000_register_name): Update.
6296 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6297 (ns32k_register_name_32382): Update.
6298 * d10v-tdep.c (d10v_ts2_register_name): Update.
6299 (d10v_ts3_register_name): Update.
6300 * xstormy16-tdep.c (xstormy16_register_name): Update.
6301 * vax-tdep.c (vax_register_name): Update.
6302 * v850-tdep.c (v850_register_name): Update.
6303 * m68hc11-tdep.c (m68hc11_register_name): Update.
6304 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6305 (am33_register_name): Update.
6306
ea1e7ef6
GS
63072002-06-17 Grace Sainsbury <graces@redhat.com>
6308
6309 * m68k-tdep.c: Reindented.
6310
9b02dd1b
AC
63112002-06-17 Andrew Cagney <ac131313@redhat.com>
6312
6313 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6314 list of predefined types.
6315
8758dec1
MK
63162002-06-16 Mark Kettenis <kettenis@gnu.org>
6317
b6197528
MK
6318 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6319 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6320 REGISTER_CONVERT_TO_RAW): Remove defines.
6321 (i386_register_virtual_type, i386_register_convertible,
6322 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6323 Remove prototypes.
6324 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6325 macros mentioned above.
6326
82b47e62
MK
6327 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6328 (i386lynx_saved_pc_after_call): Remove prototype.
6329 * i386ly-tdep.c: Include "i386-tdep.h".
6330 (i386lynx_saved_pc_after_call): Make static. Use
6331 read_memory_nobpt instead of read_memory. Use
6332 read_memory_unsigned_integer instead of read_memory_integer.
6333 (i386lynx_init_abi): New function.
6334 (i386lynx_coff_osabi_sniffer): New function.
6335 (_initialize_i386bsd_tdep): New function.
6336
8758dec1
MK
6337 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6338 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6339 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6340 (i386_fix_call_dummy): Remove prototype.
6341 * i386-tdep.c (i386_call_dummy_words): New variable.
6342 (i386_gdbarch_init): Adjust for removal of the
6343 macros mentioned above.
6344
e9e68a56
AC
63452002-06-15 Andrew Cagney <ac131313@redhat.com>
6346
6347 * command.h (add_setshow_auto_boolean_cmd): Replace
6348 add_set_auto_boolean_cmd.
6349 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6350 add_set_auto_boolean_cmd.
6351 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6352 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6353 mask-address'' command.
6354 (show_mask_address): Add cmd parameter.
6355 * remote.c (add_packet_config_cmd): Update. Change type of
6356 set_func and show_func to cmd_sfunc_ftype.
6357 (_initialize_remote): Update `set remote Z-packet'
6358 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6359 (show_remote_protocol_e_packet_cmd): Ditto.
6360 (show_remote_protocol_E_packet_cmd): Ditto.
6361 (show_remote_protocol_P_packet_cmd): Ditto.
6362 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6363 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6364 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6365 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6366 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6367 (show_remote_protocol_Z_packet_cmd): Ditto.
6368 (show_remote_protocol_binary_download_cmd): Ditto.
6369 (show_remote_cmd): Pass NULL to all of above.
6370
fc08ec52
MK
63712002-06-15 Mark Kettenis <kettenis@gnu.org>
6372
6373 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6374 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6375 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6376 POP_FRAME): Remove defines.
6377 (i386_push_arguments, i386_store_struct_return,
6378 i386_extract_return_value, i386_store_return_value,
6379 i386_extract_struct_value_address, i386_push_dummy_frame,
6380 i386_pop_frame): Renove prototypes.
6381 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6382 macros mentioned above.
6383
e707bbc2
AC
63842002-06-15 Andrew Cagney <ac131313@redhat.com>
6385
6386 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6387 add_set_boolean_cmd.
6388 (add_setshow_cmd): New function.
6389 * command.h (add_setshow_boolean_cmd): Replace
6390 add_set_boolean_cmd.
6391 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6392 and ``set rdiromatzero''.
6393 * maint.c (_initialize_maint_cmds): Update commented out code.
6394 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6395 * target.c (initialize_targets): Update `set
6396 trust-readonly-sections'.
6397 * remote.c (_initialize_remote): Update `set remotebreak'.
6398
42fdc8df
MK
63992002-06-15 Mark Kettenis <kettenis@gnu.org>
6400
93924b6b
MK
6401 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6402 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6403 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6404 fit into multi-arch framework.
6405 (i386_breakpoint_from_pc): New function.
6406 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6407 above.
6408
42fdc8df
MK
6409 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6410 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6411 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6412 (i386_frameless_function_invocation, i386_frame_num_args,
6413 i386_frame_init_saved_regs): Remove prototypes.
6414 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6415 macros mentioned above.
6416
9773a94b
AC
64172002-06-15 Andrew Cagney <ac131313@redhat.com>
6418
6419 * cli/cli-decode.c (set_cmd_cfunc): Update.
6420 (set_cmd_sfunc): Update.
6421 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6422 (set_cmd_sfunc, set_cmd_cfunc): Update.
6423 * cli/cli-decode.h: Update.
6424
6e157172
MK
64252002-06-15 Mark Kettenis <kettenis@gnu.org>
6426
6427 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6428 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6429
7f19b9a2
AC
64302002-06-15 Andrew Cagney <ac131313@redhat.com>
6431
6432 * defs.h (auto_boolean): Declare enum.
6433 * command.h (cmd_auto_boolean): Delete enum.
6434 * mips-tdep.c (mask_address_var): Update.
6435 (mips_mask_address_p): Update.
6436 (show_mask_address): Update.
6437 * remote.c (struct packet_config): Update.
6438 (update_packet_config): Update.
6439 (show_packet_config_cmd): Update.
6440 (packet_ok): Update.
6441 (add_packet_config_cmd): Update.
6442 (_initialize_remote):
6443 * command.h: Update.
6444 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6445 (do_setshow_command): Update.
6446 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6447 * cli/cli-decode.h: Update.
6448
1cf88de5
MK
64492002-06-15 Mark Kettenis <kettenis@gnu.org>
6450
22ba8cf2
MK
6451 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6452 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6453 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6454 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6455 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6456 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6457
762c5349
MK
6458 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6459 list of DJGPP COFF targets.
6460
091198bb
MK
6461 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6462 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6463 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6464 (FP0_REGNUM): Remove define.
6465 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6466 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6467 (i386_register_virtual_size): Remove protoype.
6468 * i386-tdep.c (i386_register_virtual_size): Removed.
6469 (i386_extract_return_value, i386_store_return_value): Use
6470 FP0_REGNUM instead of NUM_FREGS to determine whether the
6471 floating-point registers are available.
6472 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6473 Adjust for removal of macros mentioned above.
6474
64752002-06-15 Mark Kettenis <kettenis@gnu.org>
6476
fcc9bf01
MK
6477 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6478 comments.
6479 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6480 Remove prototypes.
6481 (supply_gregset, fill_gregset): Remove use of register keyword and
6482 remove declaration for regmap. Use I386_NUM_GREGS instead of
6483 NUM_REGS and NUM_FREGS.
6484 (FPREGSET_FSAVE_OFFSET): Remove.
6485 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6486 NUM_FREGS to determine whether the floating-point registers are
6487 available.
6488
65e78234
MK
6489 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6490 gnu_store_registers): Replace usage of NUM_GREGS with
6491 I386_NUM_GREGS.
6492
98df6387
MK
6493 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6494 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6495 usage of NUM_GREGS with I386_NUM_GREGS.
6496
099a9414
MK
6497 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6498
57976e88
MK
6499 * i386bsd-nat.c: Include "i386-tdep.h".
6500 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6501 I386_NUM_GREGS.
6502
b335f4a6
MK
6503 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6504 and associated comment. They no longer make any sense, since we
6505 don't use this file anymore on Linux.
6506
1cf88de5
MK
6507 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6508 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6509 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6510 elements in these arrays.
6511 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6512 MAX_NUM_REGS.
6513
daa66587
MK
65142002-06-15 Mark Kettenis <kettenis@gnu.org>
6515
6516 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6517 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6518
26e9b323
AC
65192002-06-14 Andrew Cagney <cagney@redhat.com>
6520
6521 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6522 EXTRACT_RETURN_VALUE.
6523 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6524 EXTRACT_STRUCT_VALUE_ADDRESS.
6525 * gdbarch.h, gdbarch.c: Regenerate.
6526
6527 * values.c (value_being_returned): Handle
6528 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6529 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6530
6531 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6532 * arm-tdep.c (arm_gdbarch_init): Update.
6533 * avr-tdep.c (avr_gdbarch_init): Update.
6534 * cris-tdep.c (cris_gdbarch_init): Update.
6535 * d10v-tdep.c (d10v_gdbarch_init): Update.
6536 * ia64-tdep.c (ia64_gdbarch_init): Update.
6537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6538 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6539 * s390-tdep.c (s390_gdbarch_init): Update.
6540 * sh-tdep.c (sh_gdbarch_init): Update.
6541 * s390-tdep.c (s390_gdbarch_init): Update.
6542 * sparc-tdep.c (sparc_gdbarch_init): Update.
6543 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6544 * v850-tdep.c (v850_gdbarch_init): Update.
6545 * vax-tdep.c (vax_gdbarch_init): Update.
6546 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6547 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6548
6549 * config/arc/tm-arc.h: Update.
6550 * config/d30v/tm-d30v.h: Update.
6551 * config/fr30/tm-fr30.h: Update.
6552 * config/h8300/tm-h8300.h: Update.
6553 * config/h8500/tm-h8500.h: Update.
6554 * config/i386/tm-i386.h: Update.
6555 * config/i386/tm-ptx.h: Update.
6556 * config/i386/tm-symmetry.h: Update.
6557 * config/i960/tm-i960.h: Update.
6558 * config/m32r/tm-m32r.h: Update.
6559 * config/m68k/tm-delta68.h: Update.
6560 * config/m68k/tm-linux.h: Update.
6561 * config/m68k/tm-m68k.h: Update.
6562 * config/m88k/tm-m88k.h: Update.
6563 * config/mcore/tm-mcore.h: Update.
6564 * config/mips/tm-mips.h: Update.
6565 * config/mn10200/tm-mn10200.h: Update.
6566 * config/pa/tm-hppa.h: Update.
6567 * config/pa/tm-hppa64.h: Update.
6568 * config/sparc/tm-sp64.h: Update.
6569 * config/sparc/tm-sparc.h: Update.
6570 * config/sparc/tm-sparclet.h: Update.
6571 * config/z8k/tm-z8k.h: Update.
6572
5179e78f
AC
65732002-06-14 Andrew Cagney <cagney@redhat.com>
6574
6575 * Makefile.in (i386_linux_tdep_h): Define.
6576 (i386_tdep_h, i387_tdep_h): Define.
6577 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6578 $(i386_tdep_h) and $(i387_tdep_h).
6579 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6580
8201327c
MK
65812002-06-14 Mark Kettenis <kettenis@gnu.org>
6582
edf393ac
MK
6583 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6584 Already covered by the default.
6585
896fb97d
MK
6586 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6587 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6588 (i386_gdbarch_init): Initialize long_double_format and long_double
6589 bit.
6590
8201327c
MK
6591 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6592 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6593 Move these to ...
6594 * config/i386/i386sol2.mh: ... here.
6595 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6596 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6597 (SIGCONTEXT_PC_OFFSET): Remove define.
6598 (IN_SIGTRAMP): Remove define.
6599 * i386-sol2-tdep.c: New file.
6600
6601 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6602 * config/i386/tm-i386nw.h: Removed.
6603
6604 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6605 USE_STRUCT_CONVENTION): Remove defines.
6606 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6607 (get_longjmp_target): Remove prototype.
6608 (IN_SIGTRAMP): Remove define.
6609 (i386bsd_in_sigtramp): Remove prototype.
6610 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6611 function. Update comment accordingly
6612 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6613 (FRAME_SAVED_PC): Remove define.
6614 (i386bsd_frame_saved_pc): Remove prototype.
6615 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6616 GET_LONGJMP_TARGET): Remove defines.
6617 (get_longjmp_target): Remove prototype.
6618 (IN_SIGTRAMP): Remove define.
6619 (i386bsd_in_sigtramp): Remove prototype.
6620 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6621 function. Update comment accordingly
6622 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6623 (FRAME_SAVED_PC): Remove define.
6624 (i386bsd_frame_saved_pc): Remove prototype.
6625 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6626 Remove prototype.
6627 (USE_STRUCT_CONVENTION): Remove prototype.
6628 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6629 declaration.
6630 (_initialize_i386bsd_nat): Revise logic to determine some
6631 constants at compile time when compiling a native GDB. Warn if
6632 things don't match up with what we expect.
6633 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6634 Remove variables.
6635 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6636 to use date stored in `struct gdbarch_tdep'.
6637 (i386bsd_sigcontext_offset): Remove varaible.
6638 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6639 stored in `struct gdbarch_tdep'.
6640 (i386bsd_frame_saved_pc): Make static.
6641 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6642 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6643 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6644 i386fbsd4_sc_pc_offset): New variables.
6645 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6646 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6647 functions.
6648 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6649 functions.
6650 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6651 Modify the value of i386fbsd_sigtramp_start and
6652 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6653 i386fbsd_sigtramp_end.
6654 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6655 function.
6656
6657 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6658 define to i386-linux-tdep.h.
6659 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6660 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6661 defines.
6662 (i386_linux_register_name, i386_linux_register_byte,
6663 i386_linux_register_raw_size): Remove prototypes.
6664 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6665 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6666 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6667 TARGET_WRITE_PC): Remove defines.
6668 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6669 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6670 i386_linux_write_pc): Remove prototypes.
6671 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6672 (get_longjmp_target): Remove prototype.
6673 * i386-linux-tdep.h: New file.
6674 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6675 * i386-linux-tdep.c: Include "i386-tdep.h" and
6676 "i386-linux-tdep.h".
6677 (i386_linux_register_name, i386_linux_register_byte,
6678 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6679 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6680 Make static.
6681 (i386_linux_init_abi): New function.
6682 (_initialize_i386_linux_tdep): New function.
6683
6684 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6685 (i386_saved_pc_after_call): Remove prototype.
6686 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6687 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6688 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6689 (i386_register_name, i386_stab_reg_to_regnum,
6690 i386_dwarf_reg_to_regnum): Remove prototypes.
6691 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6692 SIZEOF_SSE_REGS): Remove defines.
6693 (REGISTER_BYTES): Remove define.
6694 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6695 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6696 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6697 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6698 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6699 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6700 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6701 (get_longjmp_target): Remove prototype.
6702 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6703 (sigtramp_saved_pc): Remove define.
6704 (i386v4_sigtramp_saved_pc): Remove prototype.
6705 * config/i386/tm-go32.h (FRAME_CHAIN,
6706 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6707 (i386go32_frame_saved_pc): Remove prototype.
6708 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6709 (get_longjmp_target): Remove prototype.
6710 * i386-tdep.h: Include "osabi.h".
6711 (enum i386_abi): Removed.
6712 (enum struct_return): New enum.
6713 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6714 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6715 sc_pc_offset members.
6716 (i386_gdbarch_register_os_abi): Remove prototype.
6717 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6718 I386_SSE_NUM_REGS): New defines.
6719 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6720 I386_SSE_SIZEOF_REGS): New defines.
6721 (i386_register_name, i386_register_byte, i386_register_raw_size):
6722 New prototypes.
6723 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6724 (i386bsd_sigtramp_saved_pc): New prototype.
6725 * i386-tdep.c: Don't include "elf-bfd.h".
6726 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6727 i386_frame_chain, i386_saved_pc_after_call): Make static.
6728 (i386_frame_saved_pc): Rewrite to call architecture dependent
6729 function to deal with signal handlers. Make static.
6730 (i386go32_frame_saved_pc): Removed.
6731 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6732 Removed.
6733 (i386_get_longjmp_target): New function.
6734 (default_struct_convention, pcc_struct_convention,
6735 reg_struct_convention, valid_conventions, struct_convention): New
6736 variables.
6737 (i386_use_struct_convention): New function.
6738 (i386v4_sigtramp_saved_pc): Renamed to
6739 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6740 (i386_pc_in_sigtramp): New function.
6741 (i386_abi_names): Removed.
6742 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6743 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6744 Removed.
6745 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6746 i386_gdbarch_register_os_abi): Removed.
6747 (struct i386_abi_handler): Removed.
6748 (i386_abi_handler_list): Removed.
6749 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6750 functions.
6751 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6752 i386_nw_init_abi): New functions.
6753 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6754 Use set_gdbarch_xxx() calls instead of relying on macros for a
6755 number of calls.
6756 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6757 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6758 Register the various architecture variants defined in this file.
6759
ad2f7632
DJ
67602002-06-14 Daniel Jacobowitz <drow@mvista.com>
6761
6762 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6763 (struct main_type): Remove arg_types member. Update comments for
6764 struct field.
6765 (TYPE_ARG_TYPES): Remove.
6766 (TYPE_FN_FIELD_ARGS): Update.
6767 (smash_to_method_type): Update prototype.
6768
6769 * c-typeprint.c (cp_type_print_method_args): Take method type
6770 instead of argument list. Use new argument layout. Simplify.
6771 (c_type_print_args): Use new argument layout. Simplify.
6772 (c_type_print_base): Update call to cp_type_print_method_args.
6773 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6774 argument; use die->type instead. Update call to
6775 smash_to_method_type.
6776 (read_structure_scope): Update call to dwarf2_add_member_fn.
6777 * gdbtypes.c (allocate_stub_method): Update comment.
6778 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6779 Use new argument layout.
6780 (check_stub_method): Use new argument layout. Don't count
6781 void as an argument.
6782 (print_arg_types): Update comments. Use new argument layout.
6783 (recursive_dump_type): Don't print arg_types member.
6784 * hpread.c (hpread_read_struct_type): Use new argument layout.
6785 (fixup_class_method_type): Likewise.
6786 (hpread_type_lookup): Likewise.
6787 * stabsread.c (read_type): Update calls to read_args and
6788 smash_to_method_type.
6789 (read_args): Use new argument layout. Simplify.
6790 * valops.c (typecmp): Use new argument layout. Update parameters
6791 and comments. Simplify.
6792 (hand_function_call): Use new argument layout.
6793 (search_struct_method): Update call to typecmp.
6794 (find_overload_match): Use new argument layout.
6795
6da02953
DJ
67962002-06-13 Daniel Jacobowitz <drow@mvista.com>
6797
6798 * NEWS: Mention multithreaded debug support for gdbserver.
6799
519b2366
DJ
68002002-06-13 Daniel Jacobowitz <drow@mvista.com>
6801
6802 * MAINTAINERS: Mention NEWS.
6803
6c0d6680
DJ
68042002-06-13 Daniel Jacobowitz <drow@mvista.com>
6805
6806 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6807 (struct mips_objfile_private, compare_pdr_entries): New.
6808 (non_heuristic_proc_desc): Read the ".pdr" section if it
6809 is present.
6810
6529d2dd
AC
68112002-06-12 Andrew Cagney <ac131313@redhat.com>
6812
6813 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6814 (arm_debug): New static variable.
6815 (_initialize_arm_tdep): Add ``set debug arm'' command.
6816
26216b98
AC
68172002-06-12 Andrew Cagney <ac131313@redhat.com>
6818
6819 * Makefile.in (sim_arm_h): Define.
6820 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6821 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6822 (arm_register_sim_regno): New function, map an internal REGNUM
6823 onto a simulator register number.
6824 (arm_gdbarch_init): Set register_sim_regno.
6825
814b3ba0
AH
68262002-06-09 Aldy Hernandez <aldyh@redhat.com>
6827
6828 * MAINTAINERS: Add self.
6829
475b0867
JB
68302002-06-11 Jim Blandy <jimb@redhat.com>
6831
919d772c
JB
6832 * source.c (source_info): Mention whether the symtab has
6833 information about preprocessor macros.
6834
475b0867
JB
6835 Call the command `info macro', not `show macro'.
6836 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6837 Fix error message.
6838 (_initialize_macrocmd): Register `info_macro_command' in
6839 `infolist', not `showlist'.
6840
9e364162
DJ
68412002-06-11 Daniel Jacobowitz <drow@mvista.com>
6842
6843 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6844 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6845 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6846 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6847 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6848 unconditionally.
6849 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6850 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6851 (_initialize_mips_tdep): Remove dead code.
6852 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6853 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6854 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6855 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6856 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6857 MIPS_LAST_FP_ARG_REGNUM): Remove.
6858
23aa4c72
ML
68592002-06-11 Michal Ludvig <mludvig@suse.cz>
6860
6861 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6862 (unwind_tmp_obstack_free, parse_frame_info)
6863 (update_context, cfi_read_fp, cfi_write_fp)
6864 (cfi_frame_chain, cfi_init_extra_frame_info)
6865 (cfi_virtual_frame_pointer): Use the above function.
264d1763 6866 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 6867
70eb15a4
CV
68682002-06-11 Corinna Vinschen <vinschen@redhat.com>
6869
6870 * v850-tdep.c (v850_type_is_scalar): New function.
6871 (v850_use_struct_convention): Match current gcc implementation
6872 as close as possible.
6873 (v850_push_arguments): Fix stack_offset handling. Don't write
6874 struct_addr into register. This is done by v850_store_struct_return.
6875 (v850_extract_return_value): Care for structs.
6876 (v850_store_return_value): Ditto.
6877 (v850_store_struct_return): Actually write address.
6878
482a4d06
ML
68792002-06-11 Michal Ludvig <mludvig@suse.cz>
6880
6881 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6882 without debug information too.
6883
d855c300
AC
68842002-06-10 Andrew Cagney <ac131313@redhat.com>
6885
6886 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6887 Make multi-arch pure.
6888 * gdbarch.h, gdbarch.c: Re-generate.
6889 * arm-tdep.c (arm_print_float_info): Update.
6890 * arch-utils.h (default_print_float_info): Update.
6891 * arch-utils.c (default_print_float_info): Update.
6892 * infcmd.c (float_info): Update call.
6893
dd12a101
AC
68942002-06-10 Andrew Cagney <ac131313@redhat.com>
6895
6896 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6897 the front of the initialize list.
6898
101dcfbe
AC
68992002-06-10 Andrew Cagney <ac131313@redhat.com>
6900
6901 * infrun.c (struct inferior_status): Replace fields
6902 selected_frame_address and selected_level with field
6903 selected_frame_id.
6904 (save_inferior_status): Update. Use get_frame_id.
6905 (struct restore_selected_frame_args): Delete.
6906 (restore_selected_frame): Update. Use frame_find_by_id.
6907 (restore_inferior_status): Update.
6908
6909 * breakpoint.h (struct breakpoint): Change type of
6910 watchpoint_frame to frame_id.
6911 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6912 call to get_current_frame.
6913 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6914 get_current_frame.
6915 (watchpoint_check): Use frame_find_by_id.
6916
6917 * frame.h (record_selected_frame): Delete declaration.
6918 * stack.c (record_selected_frame): Delete function.
6919
6920 * frame.h (struct frame_id): Define.
6921 (get_frame_id): Declare.
6922 (frame_find_by_id): Declare.
6923 * frame.c (frame_find_by_id): New function.
6924 (get_frame_id): New function.
6925
304270b6
AV
69262002-06-10 Andrey Volkov <avolkov@transas.com>
6927
6928 * ser-e7kpc.c: Fix duplicated define and call of
6929 _initialize_ser_e7000pc
6930
2f2cf184
DJ
69312002-06-09 Daniel Jacobowitz <drow@mvista.com>
6932
6933 * signals/signals.c (target_signal_from_host): Fix #ifdef
6934 SIGRTMIN case.
6935 (do_target_signal_to_host): Likewise.
6936
caaa3122
DJ
69372002-06-09 Daniel Jacobowitz <drow@mvista.com>
6938
6939 * mips-tdep.c (mips_find_abi_section): New function.
6940 (mips_gdbarch_init): Call it.
6941
6ac5df3a
MK
69422002-06-09 Mark Kettenis <kettenis@gnu.org>
6943
6944 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6945 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6946 after Andrew's 2002-06-08 gdbarch change.
6947
82ea117a
MK
69482002-06-09 Mark Kettenis <kettenis@gnu.org>
6949
6950 * i386-linux-nat.c (suppy_gregset): Don't supply
6951 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6952 register cache.
6953 (fill_gregset): Don't fetch it under the same circumstances.
6954
3c25f8c7
AC
69552002-06-09 Andrew Cagney <cagney@redhat.com>
6956
6957 * Makefile.in (callback_h): Define.
6958 (remote_sim_h): Update path to remote-sim.h.
6959 (remote-rdp.o): Add $(callback_h).
6960 (remote-sim.o): Use $(callback_h).
6961 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6962 * remote-rdp.c: Include "gdb/callback.h".
6963
1029b7fa
MK
69642002-06-09 Mark Kettenis <kettenis@gnu.org>
6965
6966 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6967 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6968
616675d3
AC
69692002-06-08 Andrew Cagney <ac131313@redhat.com>
6970
a3efda28
AC
6971 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6972 * rdi-share/serpardr.c: Ditto.
6973 * rdi-share/unixcomm.c: Ditto.
6974 * rdi-share/serdrv.c: Ditto.
6975 * rdi-share/hostchan.h: Ditto.
6976 * rdi-share/hostchan.c: Ditto.
6977 * rdi-share/host.h: Ditto.
6978 * rdi-share/devsw.c: Ditto.
6979
c5f10366
AC
6980 * objfiles.h: Change type of obj_private to void pointer.
6981 * pa64solib.c: Update copyright. Don't include "assert.h", use
6982 strcmp instead of STREQ, use LONGEST, do not use PTR
6983 * somsolib.c: Ditto.
6984
616675d3
AC
6985 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6986 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6987 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6988
e4b415d9
AC
69892002-06-08 Andrew Cagney <ac131313@redhat.com>
6990
6991 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6992 (default_get_saved_register): Delete function.
6993 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6994 generic_unwind_get_saved_register.
6995 * gdbarch.h, gdbarch.c: Re-generate.
6996
ca0d0b52
AC
69972002-06-08 Andrew Cagney <ac131313@redhat.com>
6998
6999 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7000 generic_func_frame_chain_valid.
7001 * gdbarch.h, gdbarch.c: Re-generate.
7002 * blockframe.c (generic_func_frame_chain_valid): Only check
7003 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7004 passing FP to PC_IN_CALL_DUMMY.
7005 Fix PR gdb/360.
7006
76860b5f
AC
70072002-06-08 Andrew Cagney <ac131313@redhat.com>
7008
7009 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7010 (register_gdbarch_data): Initialize init_p.
7011 (gdbarch_data): Initialize data pointer using the init function.
7012 (init_gdbarch_data): Delete function.
7013 (gdbarch_update_p): Update.
7014 (initialize_non_multiarch): Update.
7015 (struct gdbarch): Add field initialized_p.
7016 * gdbarch.h, gdbarch.c: Re-generate.
7017
8dda9770
ML
70182002-06-07 Michal Ludvig <mludvig@suse.cz>
7019
7020 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7021 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7022 better do the things actually here.
7023 * x86-64-tdep.c (x86_64_register_name2nr): New.
7024 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7025 (x86_64_gdbarch_init): Respect the above change.
7026 * x86-64-tdep.h (x86_64_register_name2nr)
7027 (x86_64_register_nr2name): Add prototypes.
7028 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7029
3d79a47c
MS
70302002-06-06 Michael Snyder <msnyder@redhat.com>
7031
7bd91a28
MS
7032 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7033 Delete extra braces and re-indent.
7034 (d10v_store_return_value): Char return values
3d79a47c
MS
7035 must be shifted over by one byte in R0.
7036 (d10v_extract_return_value): Delete extra braces, re-indent.
7037
095a4c96
EZ
70382002-06-06 Elena Zannoni <ezannoni@redhat.com>
7039
7040 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7041 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7042 (d10v_integer_to_address): Rewrite.
7043 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7044 the d10v specific functions which take care of converting to the
7045 correct space.
7046
e8a77ca4
EZ
70472002-06-06 Elena Zannoni <ezannoni@redhat.com>
7048
7049 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7050 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7051
4f2e4a4f
AC
70522002-06-02 Andrew Cagney <ac131313@redhat.com>
7053
7054 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7055 includes.
7056 * config/tm-linux.h: Ditto.
7057 * config/alpha/tm-alphalinux.h: Ditto.
7058 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7059 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7060 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7061 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7062 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7063 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7064 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7065 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7066 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7067 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7068 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7069 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7070 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7071 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7072 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7073 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7074 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7075 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7076 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7077 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7078 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7079 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7080 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7081 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7082 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7083 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7084 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7085 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7086 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7087 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7088 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7089 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7090 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7091 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7092 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7093 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7094 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7095
ae2ab2ce
AS
70962002-05-04 Aidan Skinner <aidan@velvet.net>
7097
7098 * ada-exp.tab.c: New file
7099 * ada-exp.y: New file
7100 * ada-lang.c: New file
7101 * ada-lang.h: New file
7102 * ada-lex.c: New file
7103 * ada-lex.l: New file
7104 * ada-tasks.c: New file
7105 * ada-typeprint.c: New file
7106 * ada-valprint.c: New file
7107
0ddd0135
JT
71082002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7109
7110 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7111 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7112
750fbacc
JT
71132002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7114
7115 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7116 insetead of ppc-linux-tdep.o.
7117 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7118 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7119
df94e18a
AC
71202002-06-02 Andrew Cagney <ac131313@redhat.com>
7121
7122 2002-05-07 Christian Groessler <chris@groessler.org>
7123 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7124 bit register contents for little endian hosts.
7125
1a38ab75
AC
71262002-06-01 Andrew Cagney <ac131313@redhat.com>
7127
7128 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7129 any maintainer.
7130
8b1632ac
AC
71312002-06-01 Andrew Cagney <ac131313@redhat.com>
7132
7133 * gdbarch.h: Regenerate.
7134
627054c8
AC
71352002-06-01 Andrew Cagney <ac131313@redhat.com>
7136
7137 * MAINTAINERS: Add everyone to write-after-approval list.
7138
4f460812
AC
71392002-06-01 Andrew Cagney <ac131313@redhat.com>
7140
7141 * stack.c (frame_info): Use frame_register_unwind instead of
7142 saved_regs. Mention when the SP is on the stack or in a register.
7143
7144 * frame.h (frame_register_unwind_ftype): Define. Document.
7145 (struct frame_info): Add field register_unwind and
7146 register_unwind_cache.
7147 (frame_register_unwind): Declare.
7148 (generic_unwind_get_saved_register): Declare.
7149
7150 * frame.c (frame_register_unwind): New function.
7151 (generic_unwind_get_saved_register): New function.
7152
7153 * blockframe.c (generic_call_dummy_register_unwind): New function.
7154 (frame_saved_regs_register_unwind): New function.
7155 (set_unwind_by_pc): New function.
7156 (create_new_frame): New function.
7157 (get_prev_frame): New function.
7158
de888f76
AC
71592002-05-30 Andrew Cagney <ac131313@redhat.com>
7160
7161 * a29k-share/: Delete directory.
7162 * remote-vx29k.c: Delete file.
7163
2f2c3626
JT
71642002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7165
7166 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7167 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7168
9ce5c36a
JT
71692002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7170
7171 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7172 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7173 (sparc64nbsd-nat.o)
7174 (sparcnbsd-nat.o)
7175 (sparcnbsd-tdep.o): New dependency lists.
7176 * NEWS: Note new UltraSPARC NetBSD native configuration.
7177 * configure.host (sparc64-*-netbsd*): New host.
7178 * configure.tgt (sparc-*-netbsdelf*)
7179 (sparc-*-netbsd*): Set gdb_target to nbsd.
7180 (sparc64-*-netbsd*): New target.
7181 * sparc64nbsd-nat.c: New file.
7182 * sparcnbsd-nat.c: New file.
7183 * sparcnbsd-tdep.c: New file.
7184 * sparcnbsd-tdep.h: New file.
7185 * config/sparc/nbsd.mt: New file.
7186 * config/sparc/nbsd64.mh: New file.
7187 * config/sparc/nbsd64.mt: New file.
7188 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7189 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7190 (HOST_IPC): Remove.
7191 * config/sparc/nbsdaout.mt: Remove.
7192 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7193 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7194 (HOST_IPC): Remove.
7195 * config/sparc/nbsdelf.mt: Remove.
7196 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7197 sparc-nat.c compatiblity defines.
7198 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7199 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7200 * config/sparc/tm-nbsd64.h: New file.
7201 * config/sparc/tm-nbsdaout.h: Remove.
7202 * config/sparc/xm-nbsd.h: Remove.
7203
ef3cf062
JT
72042002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7205
7206 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7207 * sparc-tdep.c: Include osabi.h.
7208 (gdbarch_tdep): Add osabi member.
7209 (_initialize_sparc_tdep): Use gdbarch_register.
7210 (sparc_gdbarch_init): Use generic OS ABI framework.
7211 (sparc_dump_tdep): New function.
7212
ee8ff470
KB
72132002-05-30 Kevin Buettner <kevinb@redhat.com>
7214
7215 * corefile.c (do_captured_read_memory_integer): Return non-zero
7216 result.
7217 (safe_read_memory_integer): Copy result of memory read when
7218 status is non-zero. Also, add comments.
7219
7b112f9c
JT
72202002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7221
7222 * Makefile.in (ppc_tdep_h): Define.
7223 (ppc-linux-nat.o)
7224 (ppc-linux-tdep.o)
7225 (rs6000-tdep.o): Use $(ppc_tdep_h).
7226 (ppc-sysv-tdep.o)
7227 (ppcnbsd-nat.o)
7228 (ppcnbsd-tdep.o): New dependency lists.
7229 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7230 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7231 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7232 (ppc_sysv_abi_broken_use_struct_convention)
7233 (ppc_sysv_abi_use_struct_convention)
7234 (ppc_sysv_abi_push_arguments): Move to...
7235 * ppc-sysv-tdep.c: ...here.
7236 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7237 * rs6000-tdep.c (process_note_abi_tag_sections)
7238 (get_elfosabi): Remove.
7239 (rs6000_gdbarch_init): Use generic OS ABI framework.
7240 (rs6000_dump_tdep): New function.
7241 (_initialize_rs6000_tdep): Use gdbarch_register.
7242 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7243 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7244 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7245 of ppc-linux-tdep.o.
7246 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7247 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7248 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7249 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7250 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7251 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7252
480dd42a
JB
72532002-05-29 Jim Blandy <jimb@redhat.com>
7254
7255 * macroscope.c (default_macro_scope): Put `void' in empty argument
7256 list.
7257
4182591f
AC
72582002-05-29 Andrew Cagney <ac131313@redhat.com>
7259
7260 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7261 * arch-utils.c: Include "sim-regno.h".
7262 * gdbarch.sh: Don't include "sim-regno.h".
7263 * gdbarch.h, gdbarch.c: Regenerate.
7264 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7265 here.
7266 * arch-utils.h (legacy_register_sim_regno): To here.
7267 * remote-sim.c (legacy_register_sim_regno): Move function from
7268 here.
7269 * arch-utils.c (legacy_register_sim_regno): To here.
7270
8238d0bf
AC
72712002-05-28 Andrew Cagney <ac131313@redhat.com>
7272
7273 * sim-regno.h: New file.
7274 * Makefile.in (sim_regno_h): Define.
7275 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7276 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7277 (legacy_register_sim_regno): New function.
7278 (one2one_register_sim_regno): New function.
7279 (gdbsim_fetch_register): Rewrite.
7280 (gdbsim_store_register): Only store a register when
7281 REGISTER_SIM_REGNO is valid.
7282 * d10v-tdep.c: Include "sim-regno.h".
7283 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7284 (d10v_ts3_register_sim_regno): Ditto.
7285 * gdbarch.sh: Include "sim-regno.h".
7286 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7287 * gdbarch.h, gdbarch.c: Regenerate.
7288 * arch-utils.h (default_register_sim_regno): Delete declaration.
7289 * arch-utils.c (default_register_sim_regno): Delete function.
7290
485721b1
JT
72912002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7292
7293 * ppcnbsd-nat.c: Rewrite.
7294 * ppcnbsd-tdep.c: New file.
7295 * ppcnbsd-tdep.h: New file.
7296 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7297 solib.o, and solib-svr4.o.
7298 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7299 nbsd-tdep.o, and corelow.o.
7300
697f244d
AC
73012002-05-28 Andrew Cagney <ac131313@redhat.com>
7302
7303 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7304 `tr' and `sed'. Mention that `broken' targets are not expected to
7305 build.
7306
f08caad1 73072002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7308
7309 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7310 Let PC point right after the prologue before looking up symbols.
7311
3139facc
MH
73122002-05-27 Martin M. Hunt <hunt@redhat.com>
7313
7314 * i386-tdep.c (i386_register_virtual_type): Return
7315 builtin_type_vec128i for SSE registers.
7316
7317 * gdbtypes.h (builtin_type_vec128i): Declare.
7318
7319 * gdbtypes.c (build_builtin_type_vec128i): New function.
7320 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7321 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7322 (build_gdbtypes): Initialize new builtin vector types.
7323 (_initialize_gdbtypes): Register new vector types with gdbarch.
7324
6e3ba3b8
JT
73252002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7326
7327 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7328 since it has been multi-arch'd.
7329 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7330 Move Alpha and VAX multi-arch news entries to same section
7331 as other multi-arch news.
7332
93d5585d
JT
73332002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7334
7335 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7336 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7337 static. Rename some register numbers to put them in ns32k-tdep
7338 private namespace.
7339 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7340 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7341 functions.
7342 (_initialize_ns32k_tdep): Use gdbarch_register.
7343 * ns32k-tdep.h: New file.
7344 * ns32knbsd-tdep.c: New file.
7345 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7346 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7347 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7348 REGISTER_BYTES, REGISTER_BYTE): Remove.
7349 * config/ns32k/tm-ns32k.h: New file.
7350 * config/ns32k/tm-umax.h: Remove.
7351
efb2c70e
JT
73522002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7353
7354 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7355 ns32k_store_struct_return, ns32k_extract_return_value,
7356 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7357 functions.
7358 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7359 ns32k_saved_pc_after_call.
7360 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7361 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7362 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7363 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7364 ns32k_extract_struct_value_address.
7365
7bcc927b
JT
73662002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7367
7368 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7369 ns32k_fix_call_dummy): New.
7370 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7371 ns32k_call_dummy_words.
7372 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7373 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7374 CALL_DUMMY_NARGS): Remove.
7375 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7376
78f9d765
JT
73772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7378
7379 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7380 ns32k_frame_saved_pc, ns32k_frame_args_address,
7381 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7382 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7383 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7384 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7385 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7386 (BREAKPOINT): Remove..
7387 (FRAME_CHAIN): Define as ns32k_frame_chain.
7388 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7389 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7390 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7391 (FRAME_FIND_SAVED_REGS): Remove.
7392 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7393 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7394 (POP_FRAME): Define as ns32k_pop_frame.
7395
f2c762e0
JT
73962002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7397
7398 * ns32k-tdep.c (ns32k_register_byte_32082,
7399 ns32k_register_byte_32382, ns32k_register_raw_size,
7400 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7401 functions.
7402 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7403 ns32k_register_byte_32382.
7404 * config/ns32k/tm-umax.h: Update copyright years.
7405 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7406 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7407 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7408 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7409 (ns32k_get_enter_addr): Fix prototype.
7410
af137673
JT
74112002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7412
7413 * ns32k-tdep.c: Update copyright years.
7414 (ns32k_register_name_32082): New function.
7415 (ns32k_register_name_32382): Ditto.
7416 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7417 (REGISTER_NAME): Define as ns32k_register_name_32382.
7418 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7419 (REGISTER_NAME): Define as ns32k_register_name_32082.
7420
a8bc7b56
JB
74212002-05-24 Jim Blandy <jimb@redhat.com>
7422
7423 * dwarf2read.c (free_line_header): Use xfree, not free.
7424
83a45910
JT
74252002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7426
7427 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7428 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7429
0db71247
AC
74302002-05-23 Andrew Cagney <ac131313@redhat.com>
7431
7432 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7433
b9e5e4dd
AC
74342002-05-23 Andrew Cagney <ac131313@redhat.com>
7435
7436 From Ross Alexander at NEC Europe:
7437 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7438
de530e84
MS
74392002-05-23 Michael Snyder <msnyder@redhat.com>
7440
7441 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7442 for input, rather than parse_and_eval_address.
7443
b91b96f4
AC
74442002-05-23 Andrew Cagney <ac131313@redhat.com>
7445
7446 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7447 * Makefile.in (sim_d10v_h): Update definition.
7448
8b279e7a
AC
74492002-05-24 Andrew Cagney <cagney@redhat.com>
7450
7451 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7452 change `2002-05-22 Michael Snyder' below.
7453 (d10v_push_arguments): Ditto.
7454 (d10v_extract_return_value): Ditto.
7455
0a3d0425
JB
74562002-05-23 Jim Blandy <jimb@redhat.com>
7457
7458 * macrotab.c (check_for_redefinition): Don't complain if the new
7459 definition is the same as the previous one. Take more arguments
7460 to allow the comparison.
7461 (macro_define_object, macro_define_function): Pass more arguments
7462 to check_for_redefinition.
7463
78eac43e
MS
74642002-05-22 Michael Snyder <msnyder@redhat.com>
7465
7466 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7467 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7468 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7469 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7470 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7471 Add a temp variable to save a call (and a memory read).
7472 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7473 if possible (so that PC_IN_CALL_DUMMY will work).
7474
9bc1edb8
CV
74752002-05-22 Corinna Vinschen <vinschen@redhat.com>
7476
7477 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7478
005ef3d2
ML
74792002-05-22 Michal Ludvig <mludvig@suse.cz>
7480
7481 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7482 fde->cie_ptr.
7483 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7484 (dwarf2_build_frame_info): Add offset to fde->initial_location
7485 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7486 (execute_stack_op): Change type of 'result' from ULONGEST to
7487 CORE_ADDR.
005ef3d2 7488
fcf4f891
JT
74892002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7490
7491 * config/alpha/tm-nbsd.h: Include solib.h.
7492
cfef91e4
JT
74932002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7494
7495 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7496 assumptions about the host's byte order.
7497
9964235a
JT
74982002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7499
7500 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7501 to dependency list.
7502 * alphanbsd-tdep.c: Include solib-svr4.h.
7503 * shnbsd-tdep.c: Ditto.
7504
9eeef8ef
JT
75052002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7506
7507 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7508 nbsd-tdep.h to dependency list.
7509 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7510 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7511 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7512 nbsdaout.mh and nbsdelf.mh consistently.
7513 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7514 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7515 nbsdaout.mt and nbsdelf.mh consistently.
7516 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7517 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7518 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7519 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7520 a.out shared library stuff from here...
7521 * config/nm-nbsdaout.h: ...to here.
7522 * config/tm-nbsd.h: Remove.
7523 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7524 * config/arm/nbsd.mh: Remove.
7525 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7526 nbsd-tdep.o.
7527 * config/arm/nbsdaout.mh: New file.
7528 * config/arm/nbsdelf.mh: New file.
7529 * config/arm/nm-nbsdaout.h: New file.
7530 * config/i386/nbsd.mh: Remove.
7531 * config/i386/nbsd.mt: Remove.
7532 * config/i386/nbsdaout.mh: New file.
7533 * config/i386/nbsdaout.mt: New file.
7534 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7535 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7536 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7537 i386_register_u_addr): Remove.
7538 * config/i386/nm-nbsdaout.h: New file.
7539 * config/i386/nm-nbsdelf.h: Remove.
7540 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7541 (USE_STRUCT_CONVENTION): Remove.
7542 * config/i386/tm-nbsdaout.h: New file.
7543 * config/i386/tm-nbsdelf.h: Remove.
7544 * config/m68k/nbsd.mh: Remove.
7545 * config/m68k/nbsd.mt: Remove.
7546 * config/m68k/nbsdaout.mh: New file.
7547 * config/m68k/nbsdaout.mt: New file.
7548 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7549 * config/m68k/nm-nbsdaout.h: New file.
7550 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7551 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7552 * config/ns32k/nbsd.mh: Remove.
7553 * config/ns32k/nbsd.mt: Remove.
7554 * config/ns32k/nbsdaout.mh: New file.
7555 * config/ns32k/nbsdaout.mt: New file.
7556 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7557 * config/ns32k/nm-nbsdaout.h: New file.
7558 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7559 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7560 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7561 (SVR4_SHARED_LIBS): Remove.
7562 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7563 * config/sparc/nbsd.mh: Remove.
7564 * config/sparc/nbsd.mt: Remove.
7565 * config/sparc/nbsdaout.mh: New file.
7566 * config/sparc/nbsdaout.mt: New file.
7567 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7568 * config/sparc/nbsdelf.mt: New file.
7569 * config/sparc/nm-nbsdaout.h: New file.
7570 * config/sparc/nm-nbsdelf.h: Remove.
7571 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7572 * config/sparc/tm-nbsdaout.h: New file.
7573
257ce470
JT
75742002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7575
7576 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7577 mipsnbsd-tdep.c
7578 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7579
76a6d5fe
JT
75802002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7581
7582 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7583 shnbsd-nat.c.
7584 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7585
45888261
JT
75862002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7587
7588 * NEWS: Note new MIPS NetBSD native configuration.
7589 * configure.host (mips*-*-netbsd*): New host.
7590 * configure.tgt (mips*-*-netbsd*): New target.
7591 * mipsnbsd-nat.c: New file.
7592 * mipsnbsd-tdep.c: New file.
7593 * mipsnbsd-tdep.h: New file.
7594 * config/mips/nbsd.mh: New file.
7595 * config/mips/nbsd.mt: New file.
7596 * config/mips/nm-nbsd.h: New file.
7597 * config/mips/tm-nbsd.h: New file.
7598
70f80edf
JT
75992002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7600
7601 * Makefile.in (SFILES): Add osabi.c.
7602 (COMMON_OBS): Add osabi.o.
7603 (osabi.o): New dependency list.
7604 * osabi.c: New file.
7605 * osabi.h: New file.
7606 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7607
7608 * Makefile.in (alpha_tdep_h): Define and use instead of
7609 alpha-tdep.h.
7610 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7611 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7612 Remove.
7613 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7614 * alpha-tdep.h: Include osabi.h.
7615 (alpha_abi): Remove.
7616 (gdbarch_tdep): Use generic OS ABI framework.
7617 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7618 gdbarch_register_osabi.
7619 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7620 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7621 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7622
7623 * Makefile.in (sh_tdep_h): Add osabi.h.
7624 * sh-tdep.h (sh_osabi): Remove.
7625 (gdbarch_tdep): Use generic OS ABI framework.
7626 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7627 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7628 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7629 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7630
7631 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7632 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7633 gdbarch_register_osabi.
7634 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7635 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7636 (get_elfosabi): Rename to...
7637 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7638 ABI framework support routines.
7639 (arm_gdbarch_init): Use generic OS ABI framework.
7640 (arm_dump_tdep): Likewise.
7641 (_initialize_arm_tdep): Likewise.
7642 * arm-tdep.h: Include osabi.h.
7643 (arm_abi): Remove.
7644 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7645 osabi member.
7646 (arm_gdbarch_register_os_abi): Remove prototype.
7647 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7648 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7649
7650 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7651 * mips-tdep.c: Include osabi.h.
7652 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7653 OS ABI framework.
7654
d194345b
KH
76552002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7656
7657 * h8300-tdep.c: Fix formatting.
7658
70c6b0d1
EZ
76592002-05-20 Elena Zannoni <ezannoni@redhat.com>
7660
7661 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7662 printing vector registers.
7663
165b8e33
AC
76642002-05-19 Andrew Cagney <ac131313@redhat.com>
7665
7666 From Fernando Nasser:
7667 * remote.c (remote_async_open_1): Re-throw the exception when the
7668 connection fails.
7669 (remote_cisco_open): Ditto.
7670 (remote_open_1): Ditto.
7671
36918e70
AC
76722002-05-19 Andrew Cagney <ac131313@redhat.com>
7673
7674 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7675 (remote_start_remote): Add uiout parameter. Pass through to
7676 remote_start_remote_dummy.
7677 (remote_open_1): Use catch_exception instead of catch_errors.
7678 (remote_async_open_1): Ditto.
7679 (remote_cisco_open): Ditto.
7680
ae44c0c4
AC
76812002-05-19 Andrew Cagney <ac131313@redhat.com>
7682
7683 * remote.c (remote_start_remote): Replace PTR with void pointer.
7684 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7685 static.
7686
8efe637d
AC
76872002-05-18 Andrew Cagney <ac131313@redhat.com>
7688
7689 * gdb_indent.sh: Allow the script to be run in the sim directory.
7690
2f1b5984
MK
76912002-05-18 Mark Kettenis <kettenis@gnu.org>
7692
f0f625e2
MK
7693 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7694 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7695
2f1b5984
MK
7696 * corelow.c (core_open): Only call set_gdbarch_from_file if
7697 exec_bfd is NULL.
7698
fc974602
AV
76992002-05-17 Andrey Volkov <avolkov@transas.com>
7700
7701 * h8300-tdep.c: Add support of EXR register
7702 * config/h8300/tm-h8300.h: Ditto.
7703
906709f4
AV
77042002-05-17 Andrey Volkov <avolkov@transas.com>
7705
7706 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7707
6e591d68
AV
77082002-05-17 Andrey Volkov <avolkov@transas.com>
7709
7710 * h8300-tdep.c: Change literal regnums to REGNO.
7711
84f0252a
JB
77122002-05-17 Jim Blandy <jimb@redhat.com>
7713
e0e9281e
JB
7714 * NEWS: Note addition of macro support.
7715
84f0252a
JB
7716 Expand preprocessor macros in C expressions.
7717 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7718 (scan_macro_expansion, scanning_macro_expansion,
7719 finished_macro_expansion): New function declarations.
7720 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7721 variable declarations.
7722 * parser-defs.h (expression_context_pc): New declaration.
7723 * parse.c (expression_context_pc): New variable.
7724 (parse_exp_1): Set expression_context_pc, as well as
7725 expression_context_block.
7726 * c-exp.y (yylex): If we're not already reading the result of a
7727 macro expansion, try to macro-expand the next token. When we're
7728 done scanning a macro expansion, switch back to the mainline text.
7729 Commas and `if's in a macro's expansion don't terminate the input.
7730 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7731 (macro_original_text, macro_expanded_text,
7732 expression_macro_lookup_func, expression_macro_lookup_baton): New
7733 variables.
7734 (scan_macro_expansion, scanning_macro_expansion,
7735 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7736 c_preprocess_and_parse): New functions.
7737 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7738 c_preprocess_and_parse, instead of c_parse.
7739 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7740 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7741
1c509ca8
JR
7742Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7743
7744 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7745 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7746 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7747
2250ee0c
CV
77482002-05-17 Corinna Vinschen <vinschen@redhat.com>
7749
7750 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7751
ab3b8126
JT
77522002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7753
7754 * Makefile.in (sh_tdep_h): Define and use.
7755 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7756 register enum): Move to...
7757 * * sh-tdep.h: ...here.
7758 * sh-tdep.c: Include sh-tdep.h.
7759 * sh3-rom.c: Likewise.
7760 * shnbsd-tdep.c: Likewise.
7761
ed9d4749
MS
77622002-05-16 Michael Snyder <msnyder@redhat.com>
7763
7764 * arm-tdep.c: Spelling fix in comment.
7765
2e276125
JB
77662002-05-16 Jim Blandy <jimb@redhat.com>
7767
6821892e
JB
7768 Add commands for manually expanding macros and showing their
7769 definitions.
7770 * macrocmd.c, macroscope.c, macroscope.h: New files.
7771 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7772 (macroscope_h): New variable.
7773 (HFILES_NO_SRCDIR): Add macroscope.h.
7774 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7775 (macroscope.o, macrocmd.o): New rules.
7776
2e276125
JB
7777 Teach the Dwarf 2 reader to read macro information.
7778 * dwarf2read.c: #include "macrotab.h".
7779 (dwarf_macinfo_buffer): New variable.
7780 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7781 dwarf_macinfo_size.
7782 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7783 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7784 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7785 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7786 dwarf2_macro_spaces_in_definition): New complaints.
7787 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7788 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7789 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7790 the partial symbol table.
7791 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7792 from what's recorded in the partial symbol table.
7793 (read_file_scope): If the compilation unit has a
7794 `DW_AT_macro_info' attribute, read its macro information.
7795 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7796
2f53fe6c
DJ
77972002-05-16 Daniel Jacobowitz <drow@mvista.com>
7798
7799 Fix PR gdb/546
7800 * ser-tcp.c: Don't include <netinet/udp.h>.
7801
2be99286
SC
78022002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7803
7804 * MAINTAINERS: Update my email address.
7805
c9af212b 78062002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
7807
7808 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7809 include file of the same name.
7810
bf5f1a52
CV
78112002-05-16 Corinna Vinschen <vinschen@redhat.com>
7812
7813 * configure.tgt: Mark v850 as multi-arched.
7814 * config/v850/tm-v850.h: Remove file.
7815 * config/v850/v850.mt: Eliminate TM_FILE.
7816
435e042a
CV
78172002-05-16 Corinna Vinschen <vinschen@redhat.com>
7818
7819 * v850-tdep.c: Full multi-arch.
7820 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7821 Define GDB_MULTI_ARCH to 2.
7822
9819c6c8
PM
78232002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7824
7825 * p-exp.y (current_type): New static variable.
7826 Carries the type of the expression at the position that is parsed.
7827 (push_current_type, pop_current_type): Two new functions. Used
7828 to store/restore current_type in expression on specific tokens.
c9af212b
RE
7829 (search_field): New static variable. Set to one after parsing a point
7830 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
7831 (FIELDNAME): New token. After a point only a token belonging to
7832 current_type type definition is allowed.
7833 (all over token rules): reset and change current_type according
7834 to rules.
7835 (exp '[' rule): insert implicit array index field if
7836 exp is a pascal string type.
7837
3a06899a
CV
78382002-05-16 Corinna Vinschen <vinschen@redhat.com>
7839
7840 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7841 frame info. Use frame_info's saved_regs instead of matching member
7842 in extra_frame_info throughout.
7843 (v850_frame_init_saved_regs): New function.
7844 (v850_init_extra_frame_info): Move most functionality into
7845 v850_frame_init_saved_regs().
7846 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7847 (v850_frame_find_saved_regs): Remove declaration.
7848 (FRAME_FIND_SAVED_REGS): Remove definition.
7849 (v850_frame_init_saved_regs): Add declaration.
7850 (FRAME_INIT_SAVED_REGS): Add definition.
7851
6ed14b0e
CV
78522002-05-16 Corinna Vinschen <vinschen@redhat.com>
7853
7854 * v850-tdep.c: Begin multi-arch'ing v850.
7855 (v850_target_architecture_hook): Remove function.
7856 (v850_gdbarch_init): New function. Add code previously in
7857 v850_target_architecture_hook().
7858 (_initialize_v850_tdep): Don't set target_architecture_hook.
7859 Call register_gdbarch_init() instead.
7860
42725910
DJ
78612002-05-16 Daniel Jacobowitz <drow@mvista.com>
7862
7863 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7864 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7865 (fixup_class_method_type): Likewise.
7866
99d9066e
JB
78672002-05-15 Jim Blandy <jimb@redhat.com>
7868
7869 Add macro structures to GDB's symbol tables. Nobody puts anything
7870 in them yet.
7871 * symtab.h (struct symtab): New member: `macro_table'.
7872 * buildsym.h (pending_macros): New global variable.
7873 * buildsym.c: #include "macrotab.h".
7874 (buildsym_init): Initialize `pending_macros'.
7875 (end_symtab): If we found macro information while reading a CU's
7876 debugging info, do build a symtab structure for it. Make the
7877 symtab point to the macro information, and clear the
7878 `pending_macros' pointer which held it while we were reading the
7879 debug info.
7880 (really_free_pendings): Free any pending macro table.
7881 * objfiles.h (struct objfile): New member: `macro_cache'.
7882 * objfiles.c (allocate_objfile): Set allocate and free functions
7883 for the macro cache's objstack.
7884 (free_objfile): Empty the macro cache's obstack.
7885 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7886 set new allocate and free functions for it.
7887 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7888 free functions for the macro cache's objstack. (Why is this
7889 function building its own objfile?)
7890 * symmisc.c (print_objfile_statistics): Print statistics on the
7891 macro bcache.
7892 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7893
c899585b
RE
78942002-05-15 Richard Earnshaw <rearnsha@arm.com>
7895
7896 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7897 (REGISTER_U_ADDR): Delete definition.
7898 (arm_register_u_addr): Delete declaration.
7899
a6cdd8c5
RE
79002002-05-15 Richard Earnshaw <rearnsha@arm.com>
7901
7902 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7903 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7904
c97dcfc7
AC
79052002-05-14 Andrew Cagney <ac131313@redhat.com>
7906
7907 * regcache.c (register_valid): Revise comments refering to "Not
7908 available" and "unavailable".
7909 * frame.c (frame_register_read): Ditto.
7910 * findvar.c (value_of_register): Ditto.
7911
93021b7d
AC
79122002-05-15 Andrew Cagney <cagney@redhat.com>
7913
7914 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7915 (remote-sim.o): Update dependencies.
7916 (d10v-tdep.o): Specify dependencies.
7917 (sim_d10v_h): Define.
7918
a86bc61c
JB
79192002-05-14 Jim Blandy <jimb@redhat.com>
7920
7921 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7922 * macrotab.c (macro_lookup_inclusion, find_definition,
7923 new_macro_table): Same.
7924
7925 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7926 not `! strcmp ()'. This is a dubious improvement.
7927 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7928
7929 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7930 although it's not necessary, to avoid a warning.
7931
2fdde8f8
DJ
79322002-05-14 Daniel Jacobowitz <drow@mvista.com>
7933
7934 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7935 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7936 TYPE_INSTANCE_FLAGS.
7937 (struct main_type): New.
7938 (struct type): Move most members to struct main_type. Change
7939 cv_type and as_type to new type_chain member. Add instance_flags.
7940 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7941 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7942 (finish_cv_type): Remove prototype.
7943 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7944 Set TYPE_CHAIN.
7945 (alloc_type_instance): New function.
7946 (smash_type): New function.
7947 (make_pointer_type, make_reference_type, make_function_type)
7948 (smash_to_member_type, smash_to_method_type): Call smash_type.
7949 (make_qualified_type): New function.
7950 (make_type_with_address_space): Call make_qualified_type.
7951 (make_cv_type): Likewise.
7952 (finish_cv_type): Remove unnecessary function.
7953 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7954 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7955 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7956 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7957 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7958 * hpread.c (hpread_read_struct_type): Likewise.
7959 * stabsread.c (read_struct_type): Likewise.
7960
843fedf4
EZ
79612002-05-14 Elena Zannoni <ezannoni@redhat.com>
7962
7963 * configure.tgt: Add a catch all sh* target, for cases like
7964 sh[2,3,4]-elf and sh-hms.
7965
05a6c72c
KS
79662002-05-14 Keith Seitz <keiths@redhat.com>
7967
7968 * event-loop.c (create_file_handler): Don't do anything but
7969 update data when we are given a fd which we are already
7970 monitoring.
7971
5d085aaf
ML
79722002-05-14 Michal Ludvig <mludvig@suse.cz>
7973
7974 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7975 (update_context): Use __func__ in warnings.
7976
9db8d71f
DJ
79772002-05-14 Daniel Jacobowitz <drow@mvista.com>
7978
7979 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7980 and tcp_close to net_open and net_close.
7981 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7982 using UDP if requested. Don't try to disable Nagle on UDP
7983 sockets.
7984 * remote.c (remote_serial_open): New function. Warn about UDP.
7985 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7986
5dbc6baa
EZ
79872002-05-13 Elena Zannoni <ezannoni@redhat.com>
7988
7989 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7990
cc3023f7
EZ
79912002-05-13 Elena Zannoni <ezannoni@redhat.com>
7992
7993 * configure.tgt: Remove sh-hms target.
7994 * MAINTAINERS: Don't list sh-hms as a separate target.
7995
ec2bcbe7
JB
79962002-05-13 Jim Blandy <jimb@redhat.com>
7997
7998 Add first preprocessor macro-expansion files.
7999 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8000 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8001 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8002 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8003 (COMMON_OBS): Add macrotab.o, macroexp.o.
8004 (macroexp.o, macrotab.o): New rules.
8005
6d531722
AC
80062002-05-13 Andrew Cagney <ac131313@redhat.com>
8007
8008 * config/m88k/tm-m88k.h: Update copyright.
8009 (m88k_target_write_pc): Declare
8010 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8011 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8012 (SHIFT_INST_REGS): Update definition.
8013 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8014 using old definition of TARGET_WRITE_PC.
8015 * regcache.c (generic_target_write_pc): Delete code handling
8016 NNPC_REGNUM.
8017 * gdbarch.sh (NNPC_REGNUM): Delete.
8018 * gdbarch.h, gdbarch.c: Regenerate.
8019
3e3f2739
RE
80202002-05-13 Richard Earnshaw <rearnsha@arm.com>
8021
8022 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8023 builtin reg number.
8024
0004e5a2
DJ
80252002-05-13 Daniel Jacobowitz <drow@mvista.com>
8026
8027 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8028 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8029 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8030 access macros.
8031 * c-typeprint.c (cp_type_print_method_args): Likewise.
8032 (c_type_print_args): Likewise.
8033 * d10v-tdep.c (d10v_push_arguments): Likewise.
8034 (d10v_extract_return_value): Likewise.
8035 * expprint.c (print_subexp): Likewise.
8036 * gdbtypes.c (lookup_primitive_typename): Likewise.
8037 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8038 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8039 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8040 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8041 (TYPE_VECTOR): Likewise.
8042 * hpread.c (hpread_read_struct_type)
8043 (fix_static_member_physnames, fixup_class_method_type)
8044 (hpread_type_lookup): Likewise.
8045 * mdebugread.c (parse_symbol, parse_type): Likewise.
8046 * p-lang.c (is_pascal_string_type): Likewise.
8047 * valops.c (hand_function_call): Likewise.
8048 * x86-64-tdep.c (classify_argument): Likewise.
8049
8050 * hpread.c (hpread_read_function_type)
8051 (hpread_read_doc_function_type): Call replace_type.
8052 * dstread.c (create_new_type): Delete.
8053 (decode_dst_structure, process_dst_function): Call alloc_type.
8054 Use type access macros.
8055
dff95cc7
MK
80562002-05-12 Mark Kettenis <kettenis@gnu.org>
8057
8058 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8059 the're not supported by the current architecture.
8060 (i387_fill_fxsave): Likewise.
8061
bbcd32ad
FF
80622002-05-12 Fred Fish <fnf@redhat.com>
8063
8064 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8065 sect_index_xxx members to index the first slot in section_offsets
8066 if all of the section_offsets are zero.
8067
89cf4787
MK
80682002-05-12 Mark Kettenis <kettenis@gnu.org>
8069
8070 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8071 checked in with last change.
8072
1f77ffc5
MK
80732002-05-12 Mark Kettenis <kettenis@gnu.org>
8074
8075 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8076 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8077 config.sub.
8078
89b8b4a9
DJ
80792002-05-12 Daniel Jacobowitz <drow@mvista.com>
8080
8081 * Makefile.in: Update dependencies.
8082
14a5e767
AC
80832002-05-11 Andrew Cagney <ac131313@redhat.com>
8084
8085 * language.c (local_hex_string_custom): Simplify. Do not depend
8086 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8087
8088 * memattr.c (mem_info_command): Replace calls to
8089 longest_local_hex_string and longest_local_hex_string_custom.
8090 * buildsym.c (make_blockvector): Ditto.
8091 * solib.c (info_sharedlibrary_command): Ditto.
8092 * tracepoint.c (tracepoints_info): Ditto.
8093 * symtab.c (print_msymbol_info): Ditto.
8094
8095 * language.c (local_hex_string): Delete.
8096 (local_hex_string_custom): Delete.
8097 (longest_local_hex_string): Rename to local_hex_string.
8098 (longest_local_hex_string_custom): Rename to
8099 local_hex_string_custom.
8100 * language.h (local_hex_string): Change parameter type to LONGEST.
8101 (local_hex_string_custom): Ditto.
8102 (longest_local_hex_string): Delete declaration.
8103 (longest_local_hex_string_custom): Ditto.
8104
8105 * solib.c: Update copyright.
8106 * memattr.c: Update copyright.
8107
13d01224
AC
81082002-05-11 Andrew Cagney <ac131313@redhat.com>
8109
8110 * arch-utils.h (legacy_register_to_value): Declare.
8111 (legacy_value_to_register): Declare.
8112 (legacy_convert_register_p): Declare.
8113 * arch-utils.c (legacy_register_to_value): New function.
8114 (legacy_value_to_register): New function.
8115 (legacy_convert_register_p): New function.
8116
8117 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8118 (VALUE_TO_REGISTER): Define.
8119 (CONVERT_REGISTER_P): Define.
8120 * gdbarch.h, gdbarch.c: Regenerate.
8121
8122 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8123 VALUE_TO_REGISTER.
8124 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8125 CONVERT_REGISTER_P.
8126
4a1970e4
DJ
81272005-05-11 Daniel Jacobowitz <drow@mvista.com>
8128 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8129
8130 * Makefile.in: Update dependencies for valops.c.
8131 * valops.c: Include "gdb_assert.h".
8132 (typecmp): Skip THIS parameter to methods.
8133 (find_method_list): Remove static_memfuncp argument,
8134 update callers. Check for stub methods.
8135 (find_value_oload_method_list): Don't set *static_memfuncp.
8136 (find_overload_match): Don't check for stub methods. Assert
8137 that methods are not stubbed. Handle static methods.
8138 (value_find_oload_method_list): Remove static_memfuncp argument.
8139 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8140 to the argument list for static stub methods.
8141 * value.h (value_find_oload_method_list): Update prototype.
8142
b2e75d78
AC
81432002-05-11 Andrew Cagney <ac131313@redhat.com>
8144
8145 * arch-utils.h (generic_register_size): Declare.
8146 (generic_register_raw_size, generic_register_virtual_size): Delete
8147 declarations.
8148 * arch-utils.c (generic_register_raw_size): Delete.
8149 (generic_register_size): New function.
8150 (generic_register_virtual_size): Delete.
8151
8152 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8153 default generic_register_size.
8154 * gdbarch.h, gdbarch.c: Re-generate.
8155
8156 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8157 register_virtual_size.
8158 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8159 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8160
451fbdda
AC
81612002-05-11 Andrew Cagney <ac131313@redhat.com>
8162
8163 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8164 * gdbarch.h, gdbarch.c: Regenerate.
8165 * gnu-v3-abi.c: Update copyright.
8166 (vtable_address_point_offset): Update.
8167 (gnuv3_rtti_type): Update.
8168 (gnuv3_baseclass_offset): Update.
8169 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8170 (init_fetch_link_map_offsets): Update.
8171 * remote.c (get_remote_state): Update.
8172
6d2f5cea
DJ
81732002-05-11 Daniel Jacobowitz <drow@mvista.com>
8174
8175 * TODO: Remove value_headof/value_from_vtable_info comment.
8176 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8177 * values.c (value_headof, value_from_vtable_info): Delete.
8178 * value.h (value_from_vtable_info): Delete prototype.
8179
d2324da4
AC
81802002-05-11 Andrew Cagney <ac131313@redhat.com>
8181
8182 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8183 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8184 $(gdb_regex_h).
8185 (gdb_assert_h): Define.
8186 (gdb_wait_h): Define.
8187 (gdb_regex_h): Define.
8188
5c717440
DJ
81892002-05-11 Daniel Jacobowitz <drow@mvista.com>
8190
8191 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8192 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8193
6c7861b3
JT
81942002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8195
8196 * nbsd-tdep.c: Fix comment.
8197
ea5bc2a6
JT
81982002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8199
8200 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8201 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8202 (nbsd-tdep.o): New dependency list.
8203 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8204 nbsd-tdep.h.
8205 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8206 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8207 * nbsd-tdep.c: New file.
8208 * nbsd-tdep.h: New file.
8209 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8210 nbsd-tdep.h.
8211 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8212 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8213 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8214 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8215
b28da865
JT
82162002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8217
8218 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8219 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8220 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8221 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8222 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8223 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8224
4b8ff1fa
JT
82252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8226
8227 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8228 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8229 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8230 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8231 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8232 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8233 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8234
dfe6eb1f
JT
82352002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8236
8237 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8238 fetch_elfcore_registers to...
8239 * i386nbsd-tdep.c: ...here.
8240 (i386nbsd_use_struct_convention): Rename to...
8241 (i386nbsd_aout_use_struct_convention): ...this.
8242 (i386nbsd_supply_reg): New function.
8243 (i386nbsd_fill_reg): New function.
8244 (fetch_core_registers): Use i386nbsd_supply_reg.
8245 (fetch_elfcore_registers): Likewise.
8246 (_initialize_i386nbsd_tdep): New function.
8247 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8248 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8249 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8250 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8251 (i386nbsd_aout_use_struct_convention): ...this.
8252
20cb8cda
JT
82532002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8254
8255 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8256 (store_inferior_registers): Use shnbsd_fill_reg.
8257 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8258 sh_nbsd_supply_register): Collapse into...
8259 (shnbsd_supply_reg): ...this.
8260 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8261 (shnbsd_fill_reg): ...this.
8262 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8263 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8264 (fetch_core_registers): Use shnbsd_supply_reg.
8265 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8266 (sh_nbsd_core_fns): Rename to...
8267 (shnbsd_core_fns): ...this.
8268 (sh_nbsd_elfcore_fns): Rename to...
8269 (shnbsd_elfcore_fns): ...this.
8270 (sh_nbsd_init_abi): Rename to...
8271 (shnbsd_init_abi): ...this.
8272 (_initialize_sh_nbsd_tdep): Rename to...
8273 (_initialize_shnbsd_tdep): ...this.
8274 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8275 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8276 sh_nbsd_fill_register): Remove prototypes.
8277 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8278
e750d25e
JT
82792002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8280
8281 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8282 (i387-nat.o): Delete dependency list.
8283 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8284 (x86-64-linux-nat.o): Likewise.
8285 * i387-nat.c: Delete file, moving contents to...
8286 * i387-tdep.c: ...here.
8287 * i387-nat.h: Rename...
8288 * i387-tdep.h: ...to this.
8289 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8290 * i386-linux-nat.c: Likewise.
8291 * i386bsd-nat.c: Likewise.
8292 * i386gnu-nat.c: Likewise.
8293 * i386nbsd-nat.c: Likewise.
8294 * i386v4-nat.c: Likewise.
8295 * x86-64-linux-nat.c: Likewise.
8296 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8297 * config/i386/go32.mh (NATDEPFILES): Likewise.
8298 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8299 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8300 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8301 * config/i386/linux.mh (NATDEPFILES): Likewise.
8302 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8303 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8304 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8305 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8306
1aee598a
JT
83072002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8308
8309 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8310 (alphanbsd-nat.o): Remove dependency list.
8311 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8312 * alphanbsd-nat.c: Delete. Contents moved to...
8313 * alphanbsd-tdep.c: ...here.
8314 (_initialize_alphanbsd_tdep): Register core functions.
8315 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8316
12bcb0fe
JT
83172002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8318
8319 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8320 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8321 (alphanbsd-nat.o): Likewise.
8322 (alphabsd-tdep.o): New dependency list.
8323 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8324 (fill_gregset): Use alphabsd_fill_reg.
8325 (supply_fpregset): Use alphabsd_supply_fpreg.
8326 (fill_fpregset): Use alphabsd_fill_fpreg.
8327 (fetch_inferior_registers): Use struct reg and struct fpreg
8328 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8329 and alphabsd_supply_fpreg.
8330 (store_inferior_registers): Use struct reg and struct fpreg
8331 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8332 and alphabsd_fill_fpreg.
8333 * alphabsd-tdep.c: New file.
8334 * alphabsd-tdep.h: New file.
8335 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8336 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8337 alphabsd_supply_fpreg.
8338 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8339 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8340
361d1df0
EC
83412002-05-11 Eric Christopher <echristo@redhat.com>
8342
8343 * mips-tdep.c (mips_double_register_type): Fix thinko.
8344 (mips_single_register_type): Ditto.
8345 * MAINTAINERS: Add self.
8346
92dd7cee
MK
83472002-05-11 Mark Kettenis <kettenis@gnu.org>
8348
8349 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8350 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8351 right thing on architectures with different endianness and/or
8352 integer sizes.
8353
e27da16d
JT
83542002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8355
8356 From Christian Limpach <chris@Pin.LU>
8357 * configure.in: Change sed expression which comments out
8358 NATDEPFILES to also comment out continuation lines.
8359 * configure: Regenerate.
8360
ddde02bd
EZ
83612002-05-10 Elena Zannoni <ezannoni@redhat.com>
8362
8363 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8364 big patch.
8365
1c922164
EZ
83662002-05-10 Elena Zannoni <ezannoni@redhat.com>
8367
8368 * sh-tdep.c: Include correct file.
8369
283150cd
EZ
83702002-05-10 Elena Zannoni <ezannoni@redhat.com>
8371
8372 New support for sh64-elf (sh5) target.
8373
8374 * configure.tgt: For sh64-elf target, default to sh-elf.
8375
8376 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8377 (struct gdbarch_tdep): Add new fields for new registers and ABI
8378 info.
361d1df0 8379
283150cd
EZ
8380 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8381 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8382 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8383 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8384 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8385 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8386 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8387 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8388 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8389 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8390 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8391 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8392 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8393 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8394 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8395 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8396 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8397 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8398 sign_extend, sh64_nofp_frame_init_saved_regs,
8399 sh64_init_extra_frame_info, sh64_get_saved_register,
8400 sh64_extract_struct_value_address, sh64_pop_frame,
8401 sh64_push_arguments, sh64_extract_return_value,
8402 sh64_store_return_value, sh64_show_media_regs,
8403 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8404 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8405 sh_sh64_register_virtual_type,
8406 sh_sh64_register_convert_to_virtual,
8407 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8408 sh64_register_read, sh64_pseudo_register_write,
8409 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8410 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8411 sh64_do_pseudo_register, sh_compact_do_registers_info,
8412 sh64_do_registers_info, sh_gdbarch_init): New functions.
8413
3117ed25
EZ
84142002-05-10 Elena Zannoni <ezannoni@redhat.com>
8415
8416 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8417
2654e6d4
DJ
84182002-05-10 Daniel Jacobowitz <drow@mvista.com>
8419
8420 * linespec.c (decode_line_1): Check for a double quote after
8421 a filename correctly.
8422
9ab3e532
JB
84232002-05-10 Jim Blandy <jimb@redhat.com>
8424
8425 Properly track the size of the current objfile's .debug_line section.
8426 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8427 (DWARF_LINE_SIZE): New macro.
8428 (dwarf2_build_psymtabs_hard): Record the line section's size in
8429 the partial symbol table.
8430 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8431 symbol table.
8432
126fa72d
PS
84332002-05-10 Petr Sorfa <petrs@caldera.com>
8434
8435 * ia64-tdep.c: Handle breakpoints on L instruction type
8436 in MLX instruction bundle by moving the breakpoint to
8437 the third slot (X instruction type) as L holds only data.
8438
1f077a3e
KB
84392002-05-10 Kevin Buettner <kevinb@redhat.com>
8440
8441 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8442 (process_one_symbol): Complain about discarding local symbols
8443 due to a misplaced N_LBRAC entry.
8444
8120c9d5 84452002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8446
8447 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8448 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8449 decrease the depth we are at, in the case of templates.
361d1df0 8450
67b2c998
DJ
84512002-05-09 Daniel Jacobowitz <drow@mvista.com>
8452
8453 * mips-tdep.c (mips_float_register_type): New function.
8454 (mips_double_register_type): New function.
8455 (mips_print_register): Use them.
8456 (do_fp_register_row): Likewise.
8457
fd326606
DJ
84582002-05-09 Daniel Jacobowitz <drow@mvista.com>
8459
6609d9af 8460 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8461 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8462 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8463
bef35864
MS
84642002-05-09 Michael Snyder <msnyder@redhat.com>
8465
8466 * remote-rdp.c (remote_rdp_can_run): Remove.
8467
c55a3f73
TT
84682002-05-09 Tom Tromey <tromey@redhat.com>
8469
8470 * jv-valprint.c (java_val_print): Handle `char' as a special case
8471 of TYPE_CODE_INT.
8472
b8d5e71d
MS
84732002-05-09 Michael Snyder <msnyder@redhat.com>
8474
8475 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8476 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8477 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8478 str r(0123),[sp,#nn].
361d1df0 8479 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8480 order-independent by placing it in a loop.
8481
e2cd42dd
MS
84822002-05-06 Michael Snyder <msnyder@redhat.com>
8483
8484 * stabsread.c (read_type): Add recognition for new attribute:
8485 "@V;" means that an array type is actually a vector.
8486 This is analogous to the vector flag that's been added to dwarf2.
8487
3ce1502b
MK
84882002-05-09 Mark Kettenis <kettenis@gnu.org>
8489
8490 * i386-tdep.h (i386_abi): New enum.
8491 (struct gdbarch_tdep): Replace os_ident member with abi.
8492 (i386_gdbarch_register_os_abi): New prototype.
8493 * i386-tdep.c (i386_abi_names): New array.
8494 (process_note_abi_tag_sections): Removed.
8495 (process_note_sections): New function.
8496 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8497 (struct i386_abi_handler): New struct.
8498 (i386_abi_handler_list): New variable.
8499 (i386_gdbarch_register_os_abi): New function.
8500 (i386_gdbarch_init): Adapt for the changes given above.
8501
084c156a
DJ
85022002-05-08 Daniel Jacobowitz <drow@mvista.com>
8503
8504 * gregset.h: Say "GNU/Linux".
8505
6599f021
EZ
85062002-05-08 Elena Zannoni <ezannoni@redhat.com>
8507
8508 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8509 (build_gdbtypes): Build builtin_type_v2_float.
8510 (_initialize_gdbtypes): Register new builtin type.
8511
40af4b0c
AC
85122002-05-08 Andrew Cagney <ac131313@redhat.com>
8513
8514 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8515 (clear_gdbarch_swap): New function.
8516 (initialize_non_multiarch): Call.
8517 (gdbarch_update_p): Before calling init(), swap out and clear the
8518 existing architecture.
8519 * gdbarch.c: Regenerate.
8520
4fe84f46
JT
85212002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8522
8523 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8524 alphanbsd-tdep.c.
8525
4015edd1
JT
85262002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8527
8528 * sh-nbsd-nat.c: Rename to...
8529 * shnbsd-nat.c: ...this.
8530 * sh-nbsd-tdep.c: Rename to...
8531 * shnbsd-tdep.c: ...this.
8532 * sh-nbsd-tdep.h: Rename to...
8533 * shnbsd-tdep.h: ...this.
8534 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8535 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8536
0e2bd219
RE
85372002-05-08 Richard Earnshaw <rearnsha@arm.com>
8538
8539 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8540 concatenation for command help messages.
8541
13a38d45
JT
85422002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8543
8544 * NEWS: Note new sh*-*-netbsdelf* configuration.
8545 * configure.host: Set gdb_host_cpu to sh for all sh*.
8546 (sh*-*-netbsdelf*): New host.
8547 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8548 (sh*-*-netbsdelf*): New target.
8549 * sh-nbsd-nat.c: New file.
8550 * sh-nbsd-tdep.c: New file.
8551 * sh-nbsd-tdep.h: New file.
8552 * config/sh/nbsd.mh: New file.
8553 * config/sh/nbsd.mt: New file.
8554 * config/sh/nm-nbsd.h: New file.
8555 * config/sh/tm-nbsd.h: New file.
8556
d658f924
JT
85572002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8558
8559 * sh-tdep.c (sh_osabi_names): Declare.
8560 (process_note_abi_tag_sections): New function.
8561 (get_elfosabi): Ditto.
8562 (sh_gdbarch_register_os_abi): Ditto.
8563 (sh_dump_tdep): Ditto.
8564 _initialize_sh_tdep): Use gdbarch_register to register
8565 sh_gdbarch_init and sh_dump_tdep.
8566 * config/sh/tm-sh.h (sh_osabi): Declare.
8567 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8568
848cfffb
AC
85692002-05-07 Andrew Cagney <ac131313@redhat.com>
8570
8571 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8572 (thumb_scan_prologue): Ditto.
8573 (arm_find_callers_reg): Ditto.
8574 (arm_frame_chain): Ditto.
8575 (arm_init_extra_frame_info): Ditto.
8576 (arm_frame_saved_pc): Ditto.
8577 (arm_pop_frame): Ditto.
8578 (arm_push_return_address): New function.
8579 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8580 call_dummy_location, call_dummy_breakpoint_offset_p,
8581 call_dummy_breakpoint_offset, call_dummy_p,
8582 call_dummy_stack_adjust_p, call_dummy_words,
8583 sizeof_call_dummy_words, call_dummy_start_offset,
8584 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8585 call_dummy_address, push_return_address and push_dummy_frame for
8586 generic dummy frames.
8587
e7d717c0
JT
85882002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8589
8590 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8591 size computation for alloca.
8592 (sh_fp_frame_init_saved_regs): Likewise.
8593
7bbcf283
RE
85942002-05-07 Richard Earnshaw <rearnsha@arm.com>
8595
8596 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8597 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8598 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8599 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8600 * remote-rdp.c (remote_rdp_fetch_register): Use
8601 ARM_MAX_REGISTER_RAW_SIZE.
8602 (remote_rdp_store_register): Likewise.
8603
4657573b
ML
86042002-05-07 Michal Ludvig <mludvig@suse.cz>
8605
361d1df0 8606 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8607 added default labels to switch {} statements.
8608 * x86-64-tdep.c: Ditto.
8609 * x86-64-linux-nat.c: Ditto.
8610
010f3b2f
JT
86112002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8612
8613 * solib.h: Protect against multiple inclusion.
8614
debd256d
JB
86152002-05-06 Jim Blandy <jimb@redhat.com>
8616
9ab3e532
JB
8617 Add first preprocessor macro-expansion files.
8618 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8619 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8620 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8621 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8622 (COMMON_OBS): Add macrotab.o, macroexp.o.
8623 (macroexp.o, macrotab.o): New rules.
8624
debd256d
JB
8625 Separate the job of reading the line number info statement program
8626 header (...expialidocious) out into its own function.
8627 * dwarf2read.c (struct line_head, struct filenames, struct
8628 directories): Replace with...
8629 (struct line_header): New structure, containing the full
8630 contents of the statement program header, including the
8631 include directory and file name tables.
8632 (read_file_scope): If we have line number info, instead of just
8633 calling dwarf_decode_lines to do all the work, call
8634 dwarf_decode_line_header first to get a `struct line_header'
8635 containing the data in the statement program header, and then
8636 pass that to dwarf_decode_lines, which will pick up where that
8637 left off. Be sure to clean up the `struct line_header' object.
8638 (dwarf_decode_line_header, free_line_header, add_include_dir,
8639 add_file_name): New functions.
8640 (dwarf_decode_lines): Move all the code to read the statement
8641 program header into dwarf_decode_line_header. Take the line
8642 header it built as the first argument, instead of the offset to
8643 the compilation unit's line number info. Use the new `struct
8644 line_header' type instead of the old structures. No need to do
8645 cleanups here now, since we don't allocate anything.
8646 (dwarf2_statement_list_fits_in_line_number_section,
8647 dwarf2_line_header_too_long): New complaints.
8648
ac3aafc7
EZ
86492002-05-06 Elena Zannoni <ezannoni@redhat.com>
8650
8651 * gdbtypes.c (init_vector_type): New function.
8652 (build_builtin_type_vec128): Simplify the representation of SIMD
8653 registers.
8654 (build_gdbtypes): Initialize new builtin vector types.
8655 (_initialize_gdbtypes): Register new vector types with gdbarch.
8656 (builtin_type_v4_float, builtin_type_v4_int32,
8657 builtin_type_v8_int16, builtin_type_v16_int8,
8658 builtin_type_v2_int32, builtin_type_v4_int16,
8659 builtin_type_v8_int8): New (renamed) SIMD types.
8660
13e49980
MK
86612002-05-06 Mark Kettenis <kettenis@gnu.org>
8662
8663 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8664 (i387_fill_fxsave): Likewise.
8665
997b20b8
AO
86662002-05-05 Alexandre Oliva <aoliva@redhat.com>
8667
8668 * alpha-tdep.c (alpha_extract_return_value): Don't use
8669 non-constant array size in prototype.
8670
535c96ce
AC
86712002-05-04 Andrew Cagney <ac131313@redhat.com>
8672
8673 From Brian Taylor <briant at model dot com>:
8674 * ui-out.c (ui_out_field_core_addr): Use the function
8675 longest_local_hex_string_custom'to format addresses > 32 bits
8676 wide.
8677
8678 * ui-out.c (ui_out_field_core_addr): Update comment.
8679
bedfa57b
AC
86802002-05-04 Andrew Cagney <ac131313@redhat.com>
8681
8682 * stack.c (select_and_print_frame): Make static. Delete the
8683 parameter `level'.
8684 (func_command): Update call.
8685 (select_frame_command): Delete code computing the frame level.
8686 * frame.h (select_and_print_frame): Delete declaration.
8687
f621c63e
AC
86882002-05-04 Andrew Cagney <ac131313@redhat.com>
8689
8690 * sparc-tdep.c (sparc_get_saved_register): Comment why
8691 get_prev_frame call is safe.
8692
0f7d239c
AC
86932002-05-04 Andrew Cagney <ac131313@redhat.com>
8694
8695 * frame.h (select_frame): Delete level parameter.
8696 * stack.c (select_frame): Update. Use frame_relative_level to
8697 obtain the frame's level.
8698 (select_and_print_frame): Update call.
8699 (select_frame_command): Ditto.
8700 (up_silently_base): Ditto.
8701 (down_silently_base): Ditto.
8702 * ocd.c (ocd_start_remote): Ditto.
8703 * remote-rdp.c (remote_rdp_open): Ditto.
8704 * remote-mips.c (mips_initialize): Ditto.
8705 (common_open): Ditto.
8706 * remote-e7000.c (e7000_start_remote): Ditto.
8707 * m3-nat.c (select_thread): Ditto.
8708 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8709 (child_get_current_exception_event): Ditto.
8710 * varobj.c (varobj_create): Ditto.
8711 (varobj_update): Ditto.
8712 (c_value_of_root): Ditto.
8713 * tracepoint.c (finish_tfind_command): Ditto.
8714 * corelow.c (core_open): Ditto.
8715 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8716 * thread.c (info_threads_command): Ditto.
8717 (switch_to_thread): Ditto.
8718 * infrun.c (normal_stop): Ditto.
8719 (restore_selected_frame): Ditto.
8720 (restore_inferior_status): Ditto.
8721 * breakpoint.c (insert_breakpoints): Ditto.
8722 (watchpoint_check): Ditto.
8723 (bpstat_stop_status): Ditto.
8724 (do_enable_breakpoint): Ditto.
8725 * blockframe.c (flush_cached_frames): Ditto.
8726 (reinit_frame_cache): Ditto.
8727
71d6c7b1
AC
87282002-05-04 Andrew Cagney <ac131313@redhat.com>
8729
8730 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8731 maintainer.
8732
cda6c68a
JB
87332002-05-04 Jim Blandy <jimb@redhat.com>
8734
8735 * gdbtypes.c (replace_type): Doc fix.
8736
5c1c87f0
AC
87372002-05-04 Andrew Cagney <ac131313@redhat.com>
8738
8739 * valprint.c (strcat_longest): Delete commented out function.
8740 Update copyright.
8741
cd9bfe15
AC
87422002-05-04 Andrew Cagney <ac131313@redhat.com>
8743
8744 * MAINTAINERS: Mark a29k as deleted.
8745 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8746 Move new configurations to the top.
8747 * configure.tgt: Remove a29k.
8748 * config/a29k/tm-vx29k.h: Delete.
8749 * config/a29k/vx29k.mt: Delete.
8750 * config/a29k/tm-a29k.h: Delete.
8751 * config/a29k/a29k-udi.mt: Delete.
8752 * config/a29k/a29k.mt: Delete.
8753 * a29k-tdep.c: Delete.
8754 * remote-udi.c: Delete.
8755 * remote-mm.c: Delete.
8756 * remote-eb.c: Delete.
8757 * remote-adapt.c: Delete.
8758 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8759 * config/s390/s390x.mt: Ditto.
8760 * config/s390/s390.mt: Ditto.
8761 * config/sparc/sparclynx.mh: Ditto.
8762 * config/sparc/linux.mh: Ditto.
8763 * config/pa/hppaosf.mh: Ditto.
8764 * config/pa/hppabsd.mh: Ditto.
8765 * config/ns32k/nbsd.mt: Ditto.
8766 * config/mips/vr5000.mt: Ditto.
8767 * config/m68k/sun3os4.mh: Ditto.
8768 * config/m68k/nbsd.mt: Ditto.
8769 * config/m68k/m68klynx.mh: Ditto.
8770 * config/m32r/m32r.mt: Ditto.
8771 * config/i386/x86-64linux.mt: Ditto.
8772 * config/i386/nbsdelf.mt: Ditto.
8773 * config/i386/nbsd.mt: Ditto.
8774 * config/i386/i386lynx.mh: Ditto.
8775
bf0c5130
AC
87762002-05-04 Andrew Cagney <ac131313@redhat.com>
8777
8778 * target.c (debug_print_register): New function. Handle oversize
8779 registers.
8780 (debug_to_fetch_registers): Call.
8781 (debug_to_store_registers): Call.
8782
2ae1c2d2
JB
87832002-05-03 Jim Blandy <jimb@redhat.com>
8784
13a393b0
JB
8785 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8786 (read_type): Doc fix.
8787 * gdbtypes.c (replace_type): Doc fix.
8788
2ae1c2d2
JB
8789 * stabsread.c (multiply_defined_struct): New complaint.
8790 (read_struct_type): If the type we were passed isn't empty, or
8791 incomplete, don't read the new struct type into it; complain,
8792 and return the original type unchanged. Take a new `type_code'
8793 argument, which is the type code for the new type.
8794 (read_type): Rather than storing the type's type code here, pass
8795 it as an argument to read_struct_type, and let that take care of
8796 storing it. That way, we don't overwrite the original type code,
8797 so read_struct_type can use it to decide whether we're overwriting
8798 something we shouldn't.
8799 (complain_about_struct_wipeout): New function.
8800
8de9bdc4
AC
88012002-05-03 Andrew Cagney <ac131313@redhat.com>
8802
8803 * gdbarch.sh: Assert that gdbarch is non-NULL.
8804 * gdbarch.c: Regenerate.
8805
f773fdbb
JM
88062002-05-03 Jason Merrill <jason@redhat.com>
8807
8808 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8809 and return NULL.
8810
0e04a514
ML
88112002-05-03 Michal Ludvig <mludvig@suse.cz>
8812
8813 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8814 (x86_64_dwarf2gdb_regno_map_length),
8815 (x86_64_dwarf2_reg_to_regnum): Added.
8816 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8817 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8818 (_initialize_x86_64_tdep): Synced with the change above.
8819 (x86_64_skip_prologue): Reformulated message.
8820
065432a8
PM
88212002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8822
8823 * f-exp.y: Also use new prev_lexptr variable
8824 to improve error reporting. Based on Michael Snyder
8825 2002-04-24 dated patch to c-exp.y.
8826 * jv-exp.y: Likewise.
8827 * m2-exp.y: Likewise.
8828
a3162708
EZ
88292002-05-02 Elena Zannoni <ezannoni@redhat.com>
8830
8831 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8832 we are dealing with vectors.
8833
03620c38
PM
88342002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8835
8836 * config/m68k/tm-nbsd.h: Obvious fix,
8837 correct machine name.
8838
6604db2e
PM
88392002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8840
8841 * p-typeprint.c (pascal_type_print_base): Add support
8842 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8843
0906b739
PM
88442002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8845
8846 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8847 for fondamental pascal 'char' type.
8848
e2625b33
PM
88492002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8850
8851 * p-lang.h (is_pascal_string_type): Declaration changed,
8852 new sixth argument of type char ** added.
361d1df0 8853 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
8854 changed. Args length_pos, length_size, string_pos, char_size
8855 can now be NULL. New argument arrayname set to the field
8856 name of the char array. Return value set to char array
8857 field index plus one.
361d1df0 8858 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
8859 is_pascal_string_type function.
8860
cf17c188
AC
88612002-05-02 Andrew Cagney <cagney@redhat.com>
8862
8863 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8864 <cagney@redhat.com> change.
8865 * gdbarch.c: Regenerate.
8866
52bca491
AC
88672002-05-02 Andrew Cagney <cagney@redhat.com>
8868
8869 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8870 before probing for a new one. Detect errorenous gdbarch_init
8871 functions.
8872 * gdbarch.c: Regenerate.
8873
d5e72505
AC
88742002-05-01 Andrew Cagney <cagney@redhat.com>
8875
8876 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8877 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8878 * config/v850/tm-v850.h: Ditto. Update copyright.
8879
af566d9f
AC
88802002-04-30 Andrew Cagney <ac131313@redhat.com>
8881
8882 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8883 current_gdbarch.
8884
880d85fa
MS
88852002-04-30 Michael Snyder <msnyder@redhat.com>
8886
94c30b78
MS
8887 * arm-tdep.c: Whitespace clean-ups.
8888 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
8889 should have been removed as part of 4/24 change.
8890
6f5987a6
KB
88912002-04-30 Kevin Buettner <kevinb@redhat.com>
8892
8893 * rs6000-tdep.c: Added comment describing how fpscr register
8894 numbers were chosen.
8895
1a113c93
MS
88962002-04-30 Michael Snyder <msnyder@redhat.com>
8897
8898 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8899
9a6f53fe
EZ
89002002-04-29 Elena Zannoni <ezannoni@redhat.com>
8901
8902 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8903 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8904 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8905
11ed25ac
KB
89062002-04-29 Kevin Buettner <kevinb@redhat.com>
8907
8908 From Louis Hamilton <hamilton@redhat.com>:
8909 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8910 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8911 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8912 not bfd-private xcoff data, to determine wordsize.
8913 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8914
ae232405
AC
89152002-04-29 Andrew Cagney <ac131313@redhat.com>
8916
8917 GDB 5.2 released from 5.2 branch.
8918
91fd20f7
ML
89192002-04-29 Michal Ludvig <mludvig@suse.cz>
8920
8921 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8922 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8923 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 8924
2dc5091b
EZ
89252002-04-29 Elena Zannoni <ezannoni@redhat.com>
8926
8927 * rs6000-tdep.c (rs6000_extract_return_value,
8928 rs6000_store_return_value): Handle returning vectors.
8929 (rs6000_gdbarch_init): Use
8930 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8931 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8932 New function.
8933 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8934 vectors.
8935 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8936 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 8937
2b9848d8
PM
89382002-04-24 Pierre Muller <ics.u-strasbg.fr>
8939
8940 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 8941 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
8942 with fprintf_unfiltered (gdb_stderr,...).
8943
f8d17dc5
PM
89442002-04-24 Pierre Muller <ics.u-strasbg.fr>
8945
8946 * remote-array.c (printf_monitor, write_monitor,
361d1df0 8947 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
8948 Replace fprintf (stderr,...
8949 with fprintf_unfiltered (gdb_stderr,....
8950 * remote-es.c: Likewise.
8951 * remote-os9k.c: Likewise.
8952 * remote-st.c: Likewise.
8953
2f2f1ad1
AS
89542002-04-28 Andreas Schwab <schwab@suse.de>
8955
8956 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8957 linux-proc.o and gcore.o.
8958
b6779aa2
AC
89592002-04-26 Michal Ludvig <mludvig@suse.cz>
8960
8961 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8962 code without frame pointers.
8963
7e57f5f4
AC
89642002-04-26 Andrew Cagney <ac131313@redhat.com>
8965
8966 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8967 ON_STACK is needed.
8968
2ceb85d0
BE
89692002-04-26 Ben Elliston <bje@redhat.com>
8970
8971 * target.c (do_xfer_memory): Correct reference to the new option
8972 "trust-readonly-sections".
8973
f5f8a009
EZ
89742002-04-26 Elena Zannoni <ezannoni@redhat.com>
8975
8976 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8977 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8978 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8979 vectors.
8980 (read_array_type): Record the fact that this array type is really a
8981 vector (i.e. are passed in by value).
8982
5868c862
JT
89832002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8984
8985 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8986 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8987 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8988 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8989 * alpha-linux-tdep.c: Include frame.h.
8990 (alpha_linux_sigcontext_addr): New function.
8991 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8992 alpha_linux_sigcontext_addr.
8993 * alpha-osf1-tdep.c: Include gdbcore.h.
8994 (alpha_osf1_sigcontext_addr): New function.
8995 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8996 alpha_osf1_sigcontext_addr.
8997 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8998 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8999
bfb01f37
AC
90002002-04-26 Andrew Cagney <ac131313@redhat.com>
9001
361d1df0 9002 * stack.c (selected_frame_level):
bfb01f37
AC
9003 (select_frame): Do not set selected_frame_level.
9004 * frame.h (selected_frame_level): Delete declaration.
9005
15813d3f
AC
90062002-04-26 Andrew Cagney <ac131313@redhat.com>
9007
9008 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9009 convert_from_func_ptr-addr when AIX / PowerOpen.
9010
6096c27a
AC
90112002-04-25 Andrew Cagney <ac131313@redhat.com>
9012
9013 * valops.c (hand_function_call): Call
9014 generic_save_call_dummy_addr.
9015 * frame.h (generic_save_call_dummy_addr): Declare.
9016 * blockframe.c (struct dummy_frame): Add fields call_lo and
9017 call_hi.
9018 (generic_find_dummy_frame): Check for PC in range call_lo to
9019 call_hi instead of entry_point_address.
9020 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9021 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9022 (generic_save_call_dummy_addr): New function.
9023
f510d44e
DM
90242002-04-24 David S. Miller <davem@redhat.com>
9025
9026 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9027 sparc_skip_prologue.
9028 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9029 information to find prologue when possible.
9030 (sparc_prologue_frameless_p): Call examine_prologue directly.
9031 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9032 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9033 second argument.
9034 (SKIP_PROLOGUE): Likewise.
9035
15d72a92
JT
90362002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9037
9038 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9039 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9040 indicate that the condition it was testing is always true.
9041 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9042 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9043 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9044
accc6d1f
JT
90452002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9046
9047 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9048 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9049 tdep->jb_pc and tdep->jb_elt_size.
9050 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9051 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9052 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9053 * alpha-nat.c (get_longjmp_target): Remove.
9054 (JB_ELEMENT_SIZE): Ditto.
9055 (JB_PC): Ditto.
9056 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9057 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9058 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9059 to alpha_get_longjmp_target.
9060 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9061 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9062 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9063
1bfdc549
AC
90642002-04-25 Andrew Cagney <ac131313@redhat.com>
9065
9066 * README: Update to GDB 5.2.
9067
1bd316f0
AC
90682002-04-25 Andrew Cagney <ac131313@redhat.com>
9069
9070 * gdbarch.sh (LC_ALL): Set to `c'.
9071
2e5ff58c
TR
90722002-04-25 Theodore A. Roth <troth@verinet.com>
9073
9074 * avr-tdep.c: Ran through gdb_indent.sh.
9075
e33ce519
TR
90762002-04-25 Theodore A. Roth <troth@verinet.com>
9077
9078 * MAINTAINERS: Add myself as AVR maintainer.
9079 * NEWS: Note new target avr.
9080
8818c391
TR
90812002-04-25 Theodore A. Roth <troth@verinet.com>
9082
9083 * Makefile.in: Add support for AVR target.
9084 * configure.tgt: Add support for AVR target.
9085 * avr-tdep.c: New file
9086 * config/avr/avr.mt: New file.
9087
79509c2d
TR
90882002-04-25 Theodore A. Roth <troth@verinet.com>
9089
9090 * MAINTAINERS: Add myself to write-after-approval.
9091
dac8068e
PM
90922002-04-24 Pierre Muller <ics.u-strasbg.fr>
9093
9094 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9095 with fprintf_unfiltered (gdb_stderr,....
9096
25bf3106
PM
90972002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9098
9099 Fix PR gdb/508.
9100 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9101
24467a86
PM
91022002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9103
9104 * p-exp.y: Also use new prev_lexptr variable
9105 to improve error reporting. Based on Michael Snyder
9106 2002-04-24 dated patch to c-exp.y.
9107
95b80706
JT
91082002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9109
9110 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9111 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9112 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9113 to 0.
9114 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9115 and struct value.
9116 (FUNCTION_START_OFFSET): Remove.
9117 (BREAKPOINT): Ditto.
9118
e90cc612
JT
91192002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9120
9121 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9122 * NEWS: Ditto.
9123
6c72f9f9
JT
91242002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9125
9126 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9127 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9128 alpha_linux_pc_in_sigtramp.
9129 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9130 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9131 alpha_osf1_pc_in_sigtramp.
9132 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9133 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9134 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9135 alphafbsd_pc_in_sigtramp.
9136 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9137 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9138 alphanbsd_pc_in_sigtramp.
9139 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9140 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9141
5e4f3379
JT
91422002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9143
9144 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9145
da8ca43d
JT
91462002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9147
9148 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9149 alphanbsd-tdep.c.
9150 (alphanbsd-nat.o): New dependency list.
9151 (alphanbsd-tdep.o): Ditto.
9152 * NEWS: Note new native NetBSD/alpha configuration.
9153 * alphanbsd-nat.c: New file.
9154 * alphanbsd-tdep.c: Ditto.
9155 * configure.host (alpha*-*-netbsd*): New host.
9156 * configure.tgt (alpha*-*-netbsd*): New target.
9157 * config/alpha/nbsd.mh: New file.
9158 * config/alpha/nbsd.mt: Ditto.
9159 * config/alpha/nm-nbsd.h: Ditto.
9160 * config/alpha/tm-nbsd.h: Ditto.
9161
36a6271d
JT
91622002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9163
9164 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9165 (alpha-osf1-tdep.o): New dependency list.
9166 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9167 and skip_sigtramp_frame members.
9168 * alpha-linux-tdep.c: Include gdbcore.h.
9169 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9170 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9171 * alpha-osf1-tdep.c: New file.
9172 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9173 alpha-osf1-dep.c.
9174 (alpha_frame_past_sigtramp_frame): New function.
9175 (alpha_dynamic_sigtramp_offset): Ditto.
9176 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9177 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9178 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9179 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9180 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9181 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9182 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9183 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9184 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9185 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9186 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9187 to find_solib_trampoline_target.
9188 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9189 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9190 (SKIP_TRAMPOLINE_CODE): Remove.
9191 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9192 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9193 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9194 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9195 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9196 (PROC_SIGTRAMP_MAGIC): Ditto.
9197 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9198 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9199 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9200 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9201 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9202
2f4bc57b
JT
92032002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9204
9205 * NEWS: Note that Alpha targets are now multi-arch.
9206
665132f9
MS
92072002-04-24 Michael Snyder <msnyder@redhat.com>
9208
9209 * parser-defs.h (prev_lexptr): New external variable.
9210 * parse.c (parse_exp_1): Set prev_lexptr to null before
9211 calling the language-specific parser.
9212 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9213 (yyerror): Use prev_lexptr in error reporting.
9214
32872fa7
DJ
92152002-04-24 Daniel Jacobowitz <drow@mvista.com>
9216
9217 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9218 * gregset.h: If FILL_FPXREGSET is defined, provide
9219 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9220 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9221 is defined, call fill_fpxregset.
9222
57e76fac
MS
92232002-04-24 Roland McGrath <roland@frob.com>
9224
9225 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9226 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9227 (supply_gregset, supply_fpregset): New functions.
9228
9229 * gnu-nat.c (gnu_find_memory_regions): New function.
9230 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9231 (gnu_xfer_memory): Add a cast.
9232
f43845b3
MS
92332002-04-24 Michael Snyder <msnyder@redhat.com>
9234
361d1df0 9235 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9236 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9237 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9238 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9239 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9240 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9241
a0abec03
AC
9242Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9243
9244 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9245 NUM_PSEUDO_REGS can be used.
9246
d7bd68ca
AC
92472002-04-24 Andrew Cagney <ac131313@redhat.com>
9248
9249 * arch-utils.h: Update copyright.
9250
9251 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9252 * gdbarch.h, gdbarch.c: Re-generate.
9253
9254 * inferior.h (IN_SIGTRAMP): Delete definition.
9255 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9256 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9257
9258 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9259 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9260 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9261 (find_proc_framesize): Ditto.
9262 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9263 (alpha_init_extra_frame_info): Ditto.
9264 * infrun.c (handle_inferior_event): Ditto.
9265 (handle_inferior_event): Ditto.
9266 (check_sigtramp2): Ditto.
9267 * blockframe.c (create_new_frame): Ditto.
9268 (get_prev_frame): Ditto.
9269 * ppc-linux-tdep.c: Update comments.
9270 * i386-linux-tdep.c: Update comments.
9271 * breakpoint.c (bpstat_what): Update comment.
9272
4867e41e
DM
92732002-04-24 David S. Miller <davem@redhat.com>
9274
21d83aa5
DM
9275 * i960-tdep.c (register_in_window_p): New function.
9276 (i960_find_saved_register): Use it instead of
9277 REGISTER_IN_WINDOW_P.
9278 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9279
4867e41e
DM
9280 * symtab.h (find_stab_function_addr): Kill extern.
9281 * minsyms.c (find_stab_function_addr): Remove from here...
9282 * dbxread.c: ... to here, and mark it static.
9283
69cdf6a2
DM
92842002-04-20 David S. Miller <davem@redhat.com>
9285
9286 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9287 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9288
5a595886
DM
92892002-04-21 David S. Miller <davem@redhat.com>
9290
9291 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9292 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9293 (vx_write_register): Likewise.
9294
1da1a192
JB
92952002-04-23 J. Brobecker <brobecker@gnat.com>
9296
9297 * source.c (is_regular_file): New function.
9298 (openp): Check wether file to open is a regular file
9299 to avoid opening directories.
9300
baa6f10b
JT
93012002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9302
9303 * findvar.c (extract_signed_integer): Cast printf argument
9304 to suppress format warning.
9305 (extract_unsigned_integer): Likewise.
9306 * infcmd.c (registers_info): Likewise.
9307 * top.c (get_prompt_1): Likewise.
9308 * valops.c (value_assign): Likewise.
9309 * valprint.c (print_decimal): Likewise.
9310
b2c4da81
L
93112002-04-22 H.J. Lu (hjl@gnu.org)
9312
9313 * c-exp.y (typebase): Support
361d1df0 9314
b2c4da81
L
9315 [long|long long|short] [signed|unsigned] [int|]
9316
9317 and
9318
9319 signed [long|long long|short] int
9320
f267bd6a
JT
93212002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9322
9323 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9324 and vax-tdep.h.
9325 * vax-tdep.h: New file.
9326 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9327 Make several routines static.
9328 (vax_get_saved_register): New function.
9329 (vax_gdbarch_init): New function.
9330 (_initialize_vax_tdep): Register vax_gdbarch_init.
9331 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9332 Remove macros now under the control of gdbarch.
9333
da3c6d4a
MS
93342002-04-22 Michael Snyder <msnyder@redhat.com>
9335
11d3b27d
MS
9336 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9337 Some whitespace and coding standards tweaks.
da3c6d4a 9338
a33f7558
JT
93392002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9340
9341 * vax-tdep.c: Include regcache.h.
9342 (vax_call_dummy_words): New.
9343 (sizeof_vax_call_dummy_words): New.
9344 (vax_fix_call_dummy): New function.
9345 (vax_saved_pc_after_call): Ditto.
9346 * config/vax/tm-vax.h: Don't include regcache.h.
9347 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9348 (CALL_DUMMY): Remove.
9349 (CALL_DUMMY_WORDS): Define.
9350 (SIZEOF_CALL_DUMMY_WORDS): Define.
9351 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9352
47a73475
MS
93532002-04-18 Michael Snyder <msnyder@redhat.com>
9354
9355 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9356
52efde73
JT
93572002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9358
9359 * vax-tdep.c (vax_frame_chain): New function.
9360 (vax_push_dummy_frame): Ditto.
9361 (vax_pop_frame): Ditto.
9362 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9363 (FRAMELESS_FUNCTION_INVOCATION): Use
9364 generic_frameless_function_invocation_not.
9365 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9366 (POP_FRAME): Use vax_pop_frame.
9367
ea74468c
JT
93682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9369
9370 * vax-tdep.c (vax_store_struct_return): New function.
9371 (vax_extract_return_value): Ditto.
9372 (vax_store_return_value): Ditto.
9373 (vax_extract_struct_value_address): Ditto.
9374 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9375 vax_store_struct_return.
9376 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9377 (STORE_RETURN_VALUE): Use vax_store_return_value.
9378 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9379
5516aa92
JT
93802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9381
9382 * vax-tdep.c (vax_frame_saved_pc): New function.
9383 (vax_frame_args_address_correct): Ditto.
9384 (vax_frame_args_address): Ditto.
9385 (vax_frame_locals_address): Ditto.
9386 (vax_frame_num_args): Move code to be in proximity to
9387 other frame-related functions.
9388 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9389 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9390 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9391 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9392 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9393
36af0b35
L
93942002-04-22 H.J. Lu (hjl@gnu.org)
9395
9396 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9397 includedir.
9398
ab62c900
JT
93992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9400
9401 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9402 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9403 (FRAME_INIT_SAVED_REGS): New macro.
9404
7232b100
JT
94052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9406
9407 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9408
b70d2aee
JT
94092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9410
9411 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9412 where needed.
9413 (fetch_osf_core_registers): Likewise.
9414 (supply_gregset): Likewise.
9415
a0e8a2d1 94162002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9417
a0e8a2d1
JB
9418 * symfile.h (get_section_index): Define.
9419 * symfile.c (get_section_index): New function.
9420 * mdebugread.c (SC_IS_SBSS): New macro.
9421 (SC_IS_BSS): Return true for the scBss storage class only, as
9422 the scSBss storage class refers to the .sbss section.
9423 (parse_partial_symbols): Discard the symbols which associated
9424 section does not exist.
9425 Make sure to use the .sbss section index for symbols which
9426 storage class is scBss, rather than using the .bss section index.
9427
51eb8b08
JT
94282002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9429
9430 * vax-tdep.c: Update copyright years.
9431 (vax_register_name): New function.
9432 (vax_register_byte): Ditto.
9433 (vax_register_raw_size): Ditto.
9434 (vax_register_virtual_size): Ditto.
9435 (vax_register_virtual_type): Ditto.
9436 * config/vax/tm-vax.h: Update copyright years.
9437 (REGISTER_NAMES): Remove.
9438 (REGISTER_NAME): Define.
9439 (REGISTER_BYTE): Use vax_register_byte.
9440 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9441 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9442 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9443
6cc1c0a8
AC
94442002-04-21 Andrew Cagney <ac131313@redhat.com>
9445
9446 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9447 declaration
9448 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9449
9319a2fe
DM
94502002-04-21 David S. Miller <davem@redhat.com>
9451
9452 * arch-utils.c (generic_prologue_frameless_p): Kill
9453 SKIP_PROLOGUE_FRAMELESS_P code.
9454 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9455 references.
9456 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9457 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9458 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9459 references.
9460 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9461 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9462 (sparc_gdbarch_init): Pass it to
9463 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9464
e9ed6d01
JT
94652002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9466
9467 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9468 (alphabsd-nat.o): New dependency list.
9469
36012033
JT
94702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9471
9472 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9473 alphafbsd-tdep.c.
9474 (alpha-linux-tdep.o): New dependency list.
9475 (alphafbsd-tdep.o): Likewise.
9476
3379287a
JT
94772002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9478
9479 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9480 to here...
9481 * alpha-tdep.c: ...from here.
9482 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9483
4bcbd6cb
JT
94842002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9485
9486 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9487 prototype from here...
9488 * alpha-tdep.h: ...to here.
9489
b31da25e
AC
94902002-04-21 Andrew Cagney <ac131313@redhat.com>
9491
9492 * frame.h (selected_frame_level): Document as deprecated.
9493 (frame_relative_level): Declare.
9494 * stack.c (frame_relative_level): New function.
9495 (selected_frame_level): Document as deprecated.
9496 (select_frame): Do not set the selected_frame_level.
9497
9498 * stack.c (frame_info, record_selected_frame): Update.
9499 (frame_command, current_frame_command): Update.
9500 (up_silently_base, up_command, down_silently_base): Update.
9501 (down_command): Update.
9502 * inflow.c (kill_command): Update.
9503 * tracepoint.c (finish_tfind_command): Update.
9504 * corelow.c (core_open): Update.
9505 * thread.c (info_threads_command): Update.
9506 (do_captured_thread_select): Update.
9507 * infcmd.c (finish_command): Update.
9508 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9509
9c1d6fe5
JT
95102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9511
9512 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9513
ab89facf
AC
95142002-04-21 Andrew Cagney <ac131313@redhat.com>
9515
9516 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9517 type const.
9518
82a4efa1
JT
95192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9520
9521 * alphafbsd-tdep.c: Update copyright years. Include
9522 alpha-tdep.h.
9523 (alphafbsd_use_struct_convention): Make static.
9524 (alphafbsd_init_abi): New function.
9525 (_initialize_alphafbsd_tdep): New function.
9526 * config/alpha/tm-fbsd.h: Update copyright years.
9527 (USE_STRUCT_CONVENTION): Remove.
9528
44dffaac
JT
95292002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9530
9531 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9532 an Alpha ABI variant.
9533 (alpha_abi_handler_list): Declare.
9534 (alpha_gdbarch_register_os_abi): New function.
9535 (alpha_gdbarch_init): Give registered ABI variant handlers a
9536 chance to tweak the gdbarch once we have set up defaults.
9537 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9538
65585be4
JT
95392002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9540
9541 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9542 to standard_coerce_float_to_double.
9543 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9544
d9b023cc
JT
95452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9546
9547 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9548 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9549 from gdbarch_tdep rather than a constant.
9550 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9551 the default text address for all Alpha Unix ABIs.
9552 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9553 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9554
dc129d82
JT
95552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9556
9557 * alpha-tdep.h: New file. Includes several Alpha target constants
9558 taken from...
9559 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9560 let gdbarch deal with.
9561 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9562 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9563 to dependency list.
9564 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9565 Alpha target register names.
9566 * alphabsd-nat.c: Likewise.
9567 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9568 Alpha target register names. Make serveral routines static.
9569 (alpha_get_saved_register): New function.
9570 (alpha_abi_names): New.
9571 (process_note_abi_tag_sections): New function.
9572 (get_elfosabi): New function.
9573 (alpha_gdbarch_init): New function.
9574 (alpha_dump_tdep): New function.
9575 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9576
d49d1e0a
AC
95772002-04-21 Andrew Cagney <ac131313@redhat.com>
9578
9579 * frame.c (find_saved_register): Delete #ifdef
9580 HAVE_REGISTER_WINDOWS code.
9581 * config/sparc/tm-sparc.h: Update comments.
9582 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9583
92e8c9ed
AC
95842002-04-21 Andrew Cagney <ac131313@redhat.com>
9585
9586 * i960-tdep.c (i960_find_saved_register): New function.
9587 (i960_get_saved_register): New function.
9588 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9589 (i960_get_saved_register): Declare.
9590 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9591
e1925118
DM
95922002-04-20 David S. Miller <davem@redhat.com>
9593
9594 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9595
29673b29
AC
95962002-04-20 Andrew Cagney <ac131313@redhat.com>
9597
9598 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9599 instead of NUM_PSEUDO_REGS.
9600
6c86dcd5
DM
96012002-04-20 David S. Miller <davem@redhat.com>
9602
9603 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9604 GDB_MULTI_ARCH_PARTIAL
9605 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9606 define, let tm-sp64.h do it.
9607
aa40ec90
JT
96082002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9609
9610 * frame.c (find_saved_register): Avoid a NULL pointer
9611 dereference and actually walk the frame list.
9612
0f79675b
AC
96132002-04-20 Andrew Cagney <ac131313@redhat.com>
9614
9615 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9616 sorted in most most-recent-used order. Document.
9617 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9618
f91305dd 96192002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9620
9621 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9622 instead of ->prev.
9623 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9624 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9625 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9626 instead of ->prev.
9627
73d322b1
EZ
96282002-04-19 Elena Zannoni <ezannoni@redhat.com>
9629
9630 Fix PR gdb/471.
9631 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9632 (build_builtin_type_vec128): Ditto.
9633 (append_composite_type_field): Fix calculation of type length in
9634 union case.
9635
ccd9a834
EZ
96362002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9637
9638 * config/djgpp/README: Update.
9639
9640 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9641 compiler warnings.
9642
a57f9e49
JT
96432002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9644
9645 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9646 (alpha_setup_arbitrary_frame): ...to this.
9647 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9648 for alpha_setup_arbitrary_frame.
9649
f4f9705a
AC
96502002-04-18 Andrew Cagney <cagney@redhat.com>
9651
9652 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9653 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9654
f4f9705a
AC
9655 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9656 * target.h (memory_breakpoint_from_pc): Update declaration.
9657 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9658
9659 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9660 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9661 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9662 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9663 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9664 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9665 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9666 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9667 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9668 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9669 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9670 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9671
9672 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9673 const pointer.
9674 * monitor.c (monitor_insert_breakpoint): Ditto.
9675 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9676
9677 * config/mcore/tm-mcore.h: Update copyright.
9678 * mem-break.c: Ditto.
9679 * xstormy16-tdep.c: Ditto.
9680
29f319b8
PM
96812002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9682
9683 * p-exp.y: Add precedence rule for '^' token.
9684 This removes the shift/reduce conflicts.
9685 Remove the comment concerning these shift/reduce conflicts.
9686
ebeac11a
EZ
96872002-04-18 Elena Zannoni <ezannoni@redhat.com>
9688
9689 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9690 (registers_powerpc_nofp): New register set for processors
9691 without floating point unit.
9692
27c31547
DM
96932002-04-18 David S. Miller <davem@redhat.com>
9694
9695 * MAINTAINERS: Add myself to write-after-approval.
9696
47a73475
MS
96972002-04-17 Michael Snyder <msnyder@redhat.com>
9698
9699 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9700
953836b2
AC
97012002-04-17 Andrew Cagney <ac131313@redhat.com>
9702
9703 * rs6000-tdep.c (frame_initial_stack_address): Use
9704 frame_register_read to read the alloca_reg.
9705
8b0d4340
AC
97062002-04-17 Andrew Cagney <ac131313@redhat.com>
9707
9708 * frame.c (find_saved_register): Find saved registers in the next
9709 not prev frame.
9710 Fix PR gdb/365.
9711
d8864532
AC
97122002-04-17 Andrew Cagney <ac131313@redhat.com>
9713
9714 * gdbarch.sh (LANG): Set to ``c''.
9715
36cc83a3 97162002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9717
36cc83a3 9718 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9719
2f4150cc 97202002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9721
9722 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9723 Update copyright.
9724
628703c6 9725 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9726 Also fix PR gdb/391.
361d1df0 9727
56157b4a
AC
97282002-04-14 Andrew Cagney <ac131313@redhat.com>
9729
9730 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9731 * aclocal.m4, configure: Re-generate.
9732 Fix PR gdb/391.
361d1df0 9733
6d1e3329
EZ
97342002-04-14 Elena Zannoni <ezannoni@redhat.com>
9735
9736 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9737 instead of tm_print_insn.
9738
cb06fa07
EZ
97392002-04-14 Elena Zannoni <ezannoni@redhat.com>
9740
9741 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9742
f208ba17
AC
97432002-04-14 Andrew Cagney <ac131313@redhat.com>
9744
9745 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9746 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9747 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9748
20f01a46
DH
97492002-04-12 Don Howard <dhoward@redhat.com>
9750
9751 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9752 max_user_call_depth.
9753 (init_cmd_lists): Initialize the new value;
9754 * cli/cli-script.c (execute_user_command): Limit the call depth of
9755 user defined commands. This avoids a core-dump when user commands
9756 are infinitly recursive.
9757
a88376a3
KB
97582002-04-12 Kevin Buettner <kevinb@redhat.com>
9759
9760 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9761 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9762 from tdep struct instead of DEFAULT_LR_SAVE.
9763 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9764 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9765 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9766
f2172603
MS
97672002-04-12 Michael Snyder <msnyder@redhat.com>
9768
694f61fb 9769 * Remote.c: Spelling fix.
20fe79c8
MS
9770 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9771 If no symbol found for "sbrk", try "_sbrk".
9772 (make_output_phdrs): Use bfd_section_name.
9773 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9774 * eval.c: Indentation fix-ups.
169a7369
MS
9775 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9776 in case it gets applied to an address that is already
9777 in the instruction space.
de74f71f
MS
9778 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9779 * symfile.c: Fix indentation, long lines.
f2172603
MS
9780 * source.c: White space fix-up.
9781
cda5a58a
AC
97822002-04-12 Andrew Cagney <cagney@redhat.com>
9783
9784 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9785 * frame.c (frame_register_read): New function. Return non-zero on
9786 success.
9787 (read_relative_register_raw_bytes_for_frame): Delete.
9788 (read_relative_register_raw_bytes): Delete.
9789 * frame.h (frame_register_read): Declare.
9790 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9791 * sh-tdep.c: Ditto.
9792 * infcmd.c (do_registers_info): Ditto.
9793 * hppa-tdep.c: Ditto.
9794 * rs6000-tdep.c: Ditto.
9795 * h8500-tdep.c: Ditto.
9796 * mips-tdep.c: Ditto.
9797 * h8300-tdep.c: Ditto.
9798 * z8k-tdep.c: Ditto.
9799
2ea5f656
KB
98002002-04-12 Kevin Buettner <kevinb@redhat.com>
9801
9802 From Jimi X <jimix@watson.ibm.com>:
9803 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9804 64-bit SysV ABI.
9805
27b15785
KB
98062002-04-12 Kevin Buettner <kevinb@redhat.com>
9807
9808 From Jimi X <jimix@watson.ibm.com>:
9809 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9810 bfd info.
9811
5d57ee30
KB
98122002-04-12 Kevin Buettner <kevinb@redhat.com>
9813
9814 From Jimi X <jimix@watson.ibm.com>:
9815 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9816 register sets for these processor variants.
9817
bc1e36ca
DJ
98182002-04-11 Daniel Jacobowitz <drow@mvista.com>
9819
bc1e36ca
DJ
9820 * regformats/reg-ppc.dat: Support FPSCR.
9821
e3f36dbd
KB
98222002-04-11 Kevin Buettner <kevinb@redhat.com>
9823
9824 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9825 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9826 Add fpscr as an invalid/unfetchable register.
9827 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9828 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9829 (fill_fpregset): Add support for register fpscr.
9830 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9831 (fill_gregset): Account for the fact that register ``mq'' might
9832 not exist.
9833 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9834 (registers_power): Add fpscr to register set at slot 71.
9835 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9836 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9837
943c9c25
MS
98382002-04-11 Michael Snyder <msnyder@redhat.com>
9839
9840 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9841 * configure: Regenerate.
9842 * config.in: Regenerate.
9843 * acconfig.h: Add define for _SYSCALL32.
9844 * core-sol2.c: Remove #define _SYSCALL32.
9845 * solib-legacy.c: Remove #define _SYSCALL32.
9846
d8c0a2e7
AC
98472002-04-10 Andrew Cagney <ac131313@redhat.com>
9848
9849 * stack.c (select_frame): Cleanup internal error message, do not
9850 use %p.
9851
7cc19214
AC
98522002-04-10 Andrew Cagney <ac131313@redhat.com>
9853
9854 * stack.c (select_frame): Check that selected_frame and the
9855 specified level are as expected.
9856 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9857 Update copyright.
9858 * frame.h (struct frame_info): Add field `level'. Update
9859 copyright.
9860 Work-in-progress PR gdb/464.
9861
67a2b77e
AC
98622002-04-10 Andrew Cagney <ac131313@redhat.com>
9863
9864 * maint.c (maint_print_section_info): Rename print_section_info.
9865 (print_bfd_section_info, print_objfile_section_info): Update.
9866 * inferior.h (struct gdbarch): Add opaque declaration.
9867 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9868 * gdbarch.h: Regenerate.
9869
8cfda98c
ML
98702002-04-10 Michal Ludvig <mludvig@suse.cz>
9871
9872 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9873 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9874 (kernel_u_size): Added.
9875 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9876 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9877
ca439ad2 98782002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 9879
ca439ad2
JI
9880 * valarith.c (find_size_for_pointer_math): New function, either returns
9881 the size for a pointer's target, returns 1 for void *, or errors for
9882 incomplete types.
9883 (value_add, value_sub): use find_size_for_pointer_math.
9884
2f2893d9
DJ
98852002-04-09 Daniel Jacobowitz <drow@mvista.com>
9886
9887 * linux-low.c (linux_look_up_symbols): New hook.
9888 (linux_target_ops): Add linux_look_up_symbols.
9889 * remote-utils.c (decode_address): New function.
9890 (look_up_one_symbol): New function.
9891 * server.c (handle_query): Call target look_up_symbols hook.
9892 * server.h (look_up_one_symbol): Add prototype.
9893 * target.h (struct target_ops): Add look_up_symbols hook.
9894
96cb11df
AC
98952002-04-09 Andrew Cagney <ac131313@redhat.com>
9896
9897 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9898 override FP_REGNUM with frame->fp. Update copyright.
9899 * parse.c (num_std_regs, std_regs): Delete.
9900 (target_map_name_to_register): Do not search std_regs. Update
9901 function description.
9902 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9903 declarations. Update copyright.
9904 Fix PR gdb/251.
361d1df0 9905
97658e92
DJ
99062002-04-09 Daniel Jacobowitz <drow@mvista.com>
9907
9908 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9909 after the last symbol in a block.
9910
6044e3eb
PM
99112002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9912
9913 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9914 is non zero as a found symbol.
9915
0406ec40
AC
99162002-04-08 Andrew Cagney <ac131313@redhat.com>
9917
9918 * findvar.c: Include "builtin-regs.h".
9919 (value_of_register): Call value_of_builtin_reg when applicable.
9920 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9921 (target_map_name_to_register): Call
9922 builtin_reg_map_name_to_regnum.
9923 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9924 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9925 (builtin_regs_h): Define.
9926 (builtin-regs.o): New target.
9927 (findvar.o): Add $(builtin_regs_h).
9928 * builtin-regs.c, builtin-regs.h: New files.
9929 * std-regs.c: New file.
9930 Partial fix for PR gdb/251.
9931
56a6dfb9
KB
99322002-04-08 Kevin Buettner <kevinb@redhat.com>
9933
9934 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9935 it's no longer required.
9936
3a808432
AC
99372002-04-08 Andrew Cagney <ac131313@redhat.com>
9938
9939 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9940
7c40d541
KB
99412002-04-08 Kevin Buettner <kevinb@redhat.com>
9942
9943 From Jimi X <jimix@watson.ibm.com>:
9944 * rs6000-tdep.c (rs6000_software_single_step): Use
9945 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9946 and size. Use target_insert_breakpoint() and
9947 target_remove_breakpoint() to insert and remove breakpoints
9948 instead of explicit memory reads and writes.
9949
cc9836a8
KB
99502002-04-08 Kevin Buettner <kevinb@redhat.com>
9951
9952 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9953 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9954 ELF_OBJECT_FORMAT ifdef.
9955
7495d1dc
KB
99562002-04-08 Kevin Buettner <kevinb@redhat.com>
9957
9958 From Jimi X <jimix@watson.ibm.com>:
9959 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9960
4288e836
KB
99612002-04-08 Kevin Buettner <kevinb@redhat.com>
9962
9963 From Jimi X <jimix@watson.ibm.com>:
9964 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9965 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9966
a4e4e501
MK
99672002-04-07 Mark Kettenis <kettenis@gnu.org>
9968
9969 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9970 s/asprintf/xasprintf/.
9971 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9972
006defba
AC
99732002-04-07 Andrew Cagney <ac131313@redhat.com>
9974
9975 I believe Jeff Law denies responsability for this one:
9976 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9977 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9978 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9979 Work-around for PR gdb/366.
9980
7aa83cac
EZ
99812002-04-07 Elena Zannoni <ezannoni@redhat.com>
9982
9983 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9984 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9985 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9986
cf1fcca1
EZ
99872002-04-07 Elena Zannoni <ezannoni@redhat.com>
9988
9989 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9990 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9991 information.
9992
3f289e6f
AC
99932002-04-07 Andrew Cagney <ac131313@redhat.com>
9994
9995 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9996 maintainer.
9997
129188f6
AC
99982002-04-07 Andrew Cagney <ac131313@redhat.com>
9999
10000 * README (Reporting Bugs in GDB): Document the bug web page as the
10001 prefered way of submitting bugs.
10002 Fix PR gdb/402.
10003
1200cd6e
AC
100042002-04-06 Andrew Cagney <ac131313@redhat.com>
10005
10006 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10007 -1. Update comment.
10008 * gdbarch.h, gdbarch.c: Re-generate.
10009
2853c33c
AS
100102002-04-07 Andreas Schwab <schwab@suse.de>
10011
10012 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10013 buffer to regcache_collect.
10014
c2169756
AC
100152002-04-06 Andrew Cagney <ac131313@redhat.com>
10016
10017 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10018 * gdbarch.c, gdbarch.h: Re-generate.
10019
25f1b008
AC
100202002-04-06 Andrew Cagney <ac131313@redhat.com>
10021
10022 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10023 declaration. Fix -Werror.
10024
59263426
DJ
100252002-04-05 Daniel Jacobowitz <drow@mvista.com>
10026
10027 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10028 * gdbarch.c: Regenerate.
10029
f5db4da3
MS
100302002-04-05 Michael Snyder <msnyder@redhat.com>
10031
80f8a6eb
MS
10032 * breakpoint.c (clear_command): Rewrite middle section to
10033 combine two loops with identical control conditions.
10034 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10035 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10036
ad3dcc5c
L
100372002-04-05 H.J. Lu (hjl@gnu.org)
10038
10039 * solib-svr4.c (bkpt_names): Add "__start".
10040
f32e7a74
AC
100412002-04-04 Andrew Cagney <ac131313@redhat.com>
10042
10043 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10044 as test for 64 bit target.
10045
8227c0ff
AC
100462002-04-05 Andrew Cagney <ac131313@redhat.com>
10047
10048 * h8500-tdep.c (h8500_write_fp): Delete function.
10049 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10050 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10051 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10052 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10053 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10054 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10055 (s390_write_fp):
10056 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10057 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10058 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10059 (d10v_write_fp): Delete function.
10060 * inferior.h (write_fp, generic_target_write_fp): Delete
10061 declarations.
10062 * regcache.c (generic_target_write_fp): Delete function.
10063 (write_fp): Delete function.
10064 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10065 * gdbarch.h, gdbarch.c: Regenerate.
10066 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10067 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10068 (sparc64_write_fp): Delete declaration.
10069 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10070 (h8500_write_fp): Delete declaration.
10071
2757dd86
AC
100722002-04-04 Andrew Cagney <ac131313@redhat.com>
10073
10074 * sparc-tdep.c (sparc64_write_fp): Delete.
10075 (sparc_push_dummy_frame): Replace write_fp call with code to store
10076 the FP directly.
10077 (sparc_gdbarch_init): Do not initialize write_fp.
10078
c69255e1
KB
100792002-04-05 Kevin Buettner <kevinb@redhat.com>
10080
10081 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10082 clause.
10083
ae767bfb
JB
100842002-03-29 Jim Blandy <jimb@redhat.com>
10085
10086 * stack.c (get_selected_block): Add new argument `addr_in_block',
10087 used to return the exact code address we used to select the block,
10088 not just the block.
10089 * blockframe.c (get_frame_block, get_current_block): Same.
10090 * frame.h (get_frame_block, get_current_block,
10091 get_selected_block): Update declarations.
10092 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10093 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10094
84d2ac95
MS
100952002-04-05 Michael Snyder <msnyder@redhat.com>
10096
10097 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10098 warning message.
10099
596aa3bf
JB
101002002-04-05 J. Brobecker <brobecker@gnat.com>
10101
10102 * utils.c (xfullpath): New function.
10103 * defs.h (xfullpath): Add declaration.
10104 * source.c (openp): Use xfullpath in place of gdb_realpath to
10105 avoid resolving the basename part of filenames when the
10106 associated file is a symbolic link. This fixes a potential
10107 inconsistency between the filenames known to GDB and the
10108 filenames it prints in the annotations.
10109 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10110 to be able to match a filename with either the real filename, or
10111 the name of any symbolic link to this file.
10112 (lookup_partial_symtab): Ditto.
10113
c02f5703
MS
101142002-04-04 Michael Snyder <msnyder@redhat.com>
10115
10116 * breakpoint.c: Add support for hardware breakpoints in overlays.
10117 (overlay_events_enabled): New state variable.
10118 (insert_breakpoints): Use overlay_events_enabled to decide
10119 whether to attempt to set a breakpoint at the overlay load addr.
10120 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10121 (remove_breakpoint): Use overlay_events_enabled to decide
10122 whether breakpoints need to be removed from overlay load addr.
10123 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10124 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10125 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10126 disable_overlay_breakpoints): Update overlay_events_enabled.
10127
5fb290d7
DJ
101282002-04-04 Daniel Jacobowitz <drow@mvista.com>
10129
10130 * dwarf2read.c (struct function_range): New.
10131 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10132 (check_cu_functions): New.
10133 (read_file_scope): Initialize global function lists.
10134 Call dwarf_decode_line after processing children.
10135 (read_func_scope): Add to global function list.
10136 (dwarf_decode_lines): Call check_cu_functions everywhere
10137 record_line is called. Call record_line with a linenumber
10138 of 0 to mark sequence ends.
10139
7b3fabf0
ML
101402002-04-04 Michal Ludvig <mludvig@suse.cz>
10141
361d1df0 10142 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10143 change sync with glibc.
10144
bce58c09
JB
101452002-04-03 Jim Blandy <jimb@redhat.com>
10146
10147 * configure.in: Call AC_C_INLINE.
10148 * configure: Regenerated.
361d1df0 10149
2fccf04a
DJ
101502002-04-01 Daniel Jacobowitz <drow@mvista.com>
10151
10152 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10153 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10154
2d1bfe2e
MK
101552002-03-31 Mark Kettenis <kettenis@gnu.org>
10156
a5941fbf
MK
10157 * NEWS: Mention gcore support on FreeBSD/i386.
10158
a90cd31d
MK
10159 * fbsd-proc.c: New file.
10160 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10161 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10162
2d1bfe2e
MK
10163 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10164 while statement.
10165
9eb6e5a1
JB
101662002-03-29 Jim Blandy <jimb@redhat.com>
10167
10168 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10169 unescaped newlines in string literals, but newer ones don't. So
10170 escape them.
10171
f02df580
MS
101722002-03-26 Michael Snyder <msnyder@redhat.com>
10173 Andrew Cagney <cagney@redhat.com>
10174
361d1df0 10175 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10176 restore file to memory.
10177 * cli/cli-dump.h: New file.
10178 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10179 * NEWS: Mention new commands.
f02df580 10180
109f874e
MS
101812002-03-28 Michael Snyder <msnyder@redhat.com>
10182
10183 * symfile.c (symbol_file_add): Move test for null symbols to later.
10184
520f6ade
AC
101852002-03-27 Andrew Cagney <ac131313@redhat.com>
10186
10187 From veksler at il.ibm.com:
10188 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10189 the xstrduped original path.
10190 Fix PR gdb/417.
10191
d4654627
MS
101922002-03-27 Michael Snyder <msnyder@redhat.com>
10193
10194 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10195 * infcmd.c (_initialize_infcmd): Ditto.
10196 * language.c (_initialize_language): Ditto.
10197 * symfile.c (_initialize_symfile): Ditto.
10198 * top.c (_init_main): Ditto.
10199 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10200
6be8bc0c
EZ
102012002-03-27 Elena Zannoni <ezannoni@redhat.com>
10202
10203 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10204 vector registers handling.
10205 (skip_prologue): Handle new AltiVec instructions. Fill in new
10206 fields of frame data.
10207 (frame_get_saved_regs): Fill in information for AltiVec registers.
10208
12af6855
JB
102092002-03-27 Jim Blandy <jimb@redhat.com>
10210
10211 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10212 a function; leave this macro here to invoke that function.
10213 (symbol_init_mangled_name): Declaration for that function.
10214 * symtab.c (symbol_init_mangled_name): New function.
10215
dc672865
AC
102162002-03-27 Andrew Cagney <ac131313@redhat.com>
10217
10218 * valarith.c: Replace strerror with safe_strerror.
10219 * tracepoint.c: Ditto.
10220 * lin-lwp.c: Ditto.
10221 * go32-nat.c: Ditto.
10222 * inflow.c: Ditto.
10223 * gnu-nat.c: Ditto.
10224
d96429cd
AS
102252002-03-27 Andreas Schwab <schwab@suse.de>
10226
10227 * event-top.c (command_line_handler): Remove useless if.
10228
7e336ba1
AJ
102292002-03-27 Andreas Jaeger <aj@suse.de>
10230
10231 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10232 comment.
10233
de220d0f
ML
102342002-03-27 Michal Ludvig <mludvig@suse.cz>
10235
10236 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10237 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10238 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10239 (x86_64_linux_dr_get_status, supply_gregset),
10240 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10241 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10242 (x86_64_register_info_table): Add.
10243 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10244 (x86_64_register_raw_size, x86_64_register_virtual_type),
10245 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10246 general x86_64_register_info_table.
10247 (i386_gdbarch_init): gdbarch_register_bytes is now set
10248 dynamicaly during initialization.
10249 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10250 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10251
0e98d0a7
DJ
102522002-03-27 Daniel Jacobowitz <drow@mvista.com>
10253
10254 * gdbserver/server.c (main): Call target_signal_to_host_p
10255 and target_signal_to_host on signals received from the remote.
10256 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10257 target_signal_from_host on signals sent to the remote.
10258 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10259 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10260
3130066b
DJ
102612002-03-27 Daniel Jacobowitz <drow@mvista.com>
10262
10263 * signals/signals.c: Include "server.h" in gdbserver build.
10264 (target_signal_from_name): Don't use STREQ.
10265 (_initialize_signals): Likewise. Don't include function in
10266 gdbserver build.
10267
9aedf4f4
DJ
102682002-03-27 Daniel Jacobowitz <drow@mvista.com>
10269
10270 * signals.c: Moved to...
10271 * signals/signals.c: Here.
7e336ba1 10272 * Makefile (signals.o): Update.
9aedf4f4 10273
3fa41cdb
JL
102742002-03-26 Jeff Law (law@redhat.com)
10275
10276 * somread.c (som_symtab_read): Remove some commented out code and
10277 updated related comments. Do not set the minimal symbol table to
10278 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10279 in a dynamic executable.
10280 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10281 where we are unable to find the minimal symbol for the given
10282 PC value.
10283
ee677e8d
MS
102842002-03-25 Jeff Law (law@redhat.com)
10285
10286 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10287
e76e1718
ML
102882002-03-25 Michal Ludvig <mludvig@suse.cz>
10289
10290 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10291
18a642a1
AC
102922002-03-23 Andrew Cagney <ac131313@redhat.com>
10293
10294 * command.h: Update copyright.
10295 (struct cmd_list_element): Replace definition with opaque
10296 declaration.
10297 (enum cmd_types): Document that it will eventually be moved to
10298 cli/cli-decode.h
10299 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10300 (MALLOCED_REPLACEMENT): Delete macro.
10301 * Makefile.in (cli_decode_h): Add $(command_h).
10302 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10303 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10304 * completer.c: Include "cli/cli-decode.h".
10305 * maint.c: Include "cli/cli-decode.h".
10306 * cli/cli-decode.h: Include "command.h".
10307 (enum command_class): Delete.
10308 (enum cmd_types): Comment out.
10309 (enum cmd_auto_boolean): Delete.
10310 (enum var_types): Delete.
10311
b2875cc0
AC
103122002-03-23 Andrew Cagney <ac131313@redhat.com>
10313
10314 * cli/cli-decode.c: Include "gdb_assert.h".
10315 (add_set_or_show_cmd): New static function.
10316 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10317 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10318 all fields, such as func, from the set command.
10319
3b45974e
AC
103202002-03-23 Andrew Cagney <ac131313@redhat.com>
10321
10322 * MAINTAINERS (sh-elf): Change warning flag to -w.
10323
823ca731
AC
103242002-03-23 Andrew Cagney <cagney@redhat.com>
10325
10326 * defs.h (error): Add printf format attribute.
10327 * thread-db.c (thread_from_lwp): Fix error format string.
10328 * stack.c (parse_frame_specification): Ditto.
10329 * cli/cli-decode.c (undef_cmd_error): Ditto.
10330 * scm-lang.c (scm_lookup_name): Ditto.
10331 * tracepoint.c (trace_error): Ditto.
10332 * remote-utils.c (usage): Ditto.
10333 * remote.c (compare_sections_command): Ditto.
10334 Fix PR gdb/328.
10335
0e101458
AC
103362002-03-22 Andrew Cagney <ac131313@redhat.com>
10337
10338 * gdbtypes.c (append_composite_type_field): New function.
10339 (init_composite_type): New function.
10340 * gdbtypes.h (append_composite_type_field): Declare.
10341 (init_composite_type): Ditto.
10342
8e0662df
EZ
103432002-03-22 Elena Zannoni <ezannoni@redhat.com>
10344
10345 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10346 function.
8e0662df
EZ
10347 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10348 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10349 structure returning convention for SYSV ABI case, but not
10350 for GNU/Linux, FreeBSD, or NetBSD.
10351
3121eff0
DJ
103522002-03-22 Daniel Jacobowitz <drow@mvista.com>
10353
10354 * symtab.h (lookup_block_symbol): Add mangled_name argument
10355 to prototype.
10356
10357 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10358 with new mangled_name argument.
10359 * linespec.c (decode_line_1): Likewise.
10360 * valops (value_of_this): Likewise.
10361 * symtab.c (lookup_transparent_type): Likewise.
10362 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10363 (lookup_symbol): If we are given a mangled name, pass it down
10364 to lookup_symbol_aux.
10365 (lookup_block_symbol): If we are given a mangled name to check
10366 against, only return symbols which match it.
10367
349b409f
CF
103682002-03-22 Christopher Faylor <cgf@redhat.com>
10369
10370 * win32-nat.c (child_create_inferior): Check for proper shell to use
10371 here, in case the user changes it on the fly.
10372 (_initialize_inftarg): Remove shell path considerations.
10373
2a873819
EZ
103742002-03-21 Elena Zannoni <ezannoni@redhat.com>
10375
10376 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10377 for gdbarch_max_register_raw_size and max_register_virtual_size.
10378 Adjust copyright year.
10379
a1b9830c
DJ
103802002-03-21 Daniel Jacobowitz <drow@mvista.com>
10381
10382 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10383 in a function to cover the entire beginning of the function
10384 as well if it does not already.
10385
8b5790f2
TR
103862002-03-21 Tom Rix <trix@redhat.com>
10387
10388 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10389 (rs6000_ptrace64): Renamed from ptrace64.
10390
bdbe5747
MH
103912002-03-20 Martin M. Hunt <hunt@redhat.com>
10392
10393 * gdbserver/remote-utils.c (remote_open): Don't call
10394 getprotobyname, we're all using TCP here so just use
10395 IPPROTO_TCP.
7e336ba1 10396 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10397
103982002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10399
bdbe5747
MH
10400 * regcache.c (_initialize_regcache): No need to call
10401 build_regcache() at this time; it gets called whenever
10402 the gdbarch changes.
10403
7781cd62
DB
104042002-03-20 David O'Brien <obrien@FreeBSD.org>
10405
10406 * sparc-nat.c: Include sys/param.h where possible.
10407
f65ca430
DJ
104082002-03-20 Daniel Jacobowitz <drow@mvista.com>
10409
10410 Fix PR gdb/422.
10411 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10412 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10413 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10414 complex types.
10415 * stabsread.c (rs6000_builtin_type): Likewise.
10416 (read_sun_floating_type): Likewise.
10417
0c867556
PS
104182002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10419
10420 * stabsread.c (read_member_functions): Remove skip code for duplicate
10421 constructor/destructor methods. Use standard parsing for these
10422 methods and just do not chain them to the list of methods after
10423 parsing.
10424
12b9c64f
AO
104252002-03-19 Alexandre Oliva <aoliva@redhat.com>
10426
10427 * coffread.c: Remove redundant static declarations. Replace
10428 occurrences of `PTR' with `void *'.
10429 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10430 * top.h (quit_cover): Likewise.
10431 * defs.h (catch_errors): Likewise.
10432
349c5d5f
AC
104332002-03-18 Andrew Cagney <ac131313@redhat.com>
10434
10435 * defs.h (XMALLOC): Define.
10436 * gdb-events.sh (XMALLOC): Delete macro.
10437 * gdb-events.c, gdb-events.h: Regenerate.
10438 * gdbarch.sh (XMALLOC): Delete macro.
10439 * gdbarch.c: Regenerate.
10440 * serial.c (XMALLOC): Delete macro.
10441 * ui-file.c (XMALLOC): Ditto.
10442 * ser-unix.h (XMALLOC): Ditto.
10443 * sh-tdep.c (XMALLOC): Ditto.
10444 * ui-out.c (XMALLOC): Ditto.
10445 * utils.c (XMALLOC): Ditto.
10446 * i386-tdep.c (XMALLOC): Ditto.
10447 * gdb-events.c (XMALLOC): Ditto.
10448 * d10v-tdep.c (XMALLOC): Ditto.
10449 * cli-out.c (XMALLOC): Ditto.
10450
10451 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10452 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10453 * ui-file.c, ui-out.c: Ditto.
10454
7d0766f3
AC
104552002-03-18 Andrew Cagney <ac131313@redhat.com>
10456
10457 * command.h (struct cmd_list_element): Add field context.
10458 (set_cmd_context, get_cmd_context): Declare.
10459 * cli/cli-decode.h: Ditto.
10460 * cli/cli-decode.c (get_cmd_context): New function.
10461 (set_cmd_context): New function.
10462 (add_cmd): Initialize context.
10463 Part of fixing PR gdb/145 and PR gdb/146.
10464
5913bcb0
AC
104652002-03-17 Andrew Cagney <ac131313@redhat.com>
10466
1868c04e
AC
10467 * cli/cli-decode.c (cmd_type): New function.
10468 * command.h (cmd_type): Declare.
10469 * infrun.c (set_schedlock_func): Call function cmd_type.
10470 * kod.c (kod_set_os): Call cmd_type.
10471 * cris-tdep.c (cris_version_update): Use function cmd_type.
10472 (cris_mode_update, cris_abi_update): Ditto.
10473
5913bcb0
AC
10474 * command.h: (execute_cmd_post_hook): Declare.
10475 (execute_cmd_pre_hook): Declare.
10476 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10477 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10478 functions. Execute pre/post hook while ensuring that afterwords
10479 hook_in is cleared.
10480 * top.c (execute_command): Use execute_cmd_post_hook, and
10481 execute_cmd_pre_hook to execute pre/post commands.
10482 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10483 hook_stop_stub.
10484 (hook_stop_stub): Call execute_cmd_pre_hook.
10485
b51450c9
AC
104862002-03-17 Andrew Cagney <ac131313@redhat.com>
10487
10488 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10489 set'' and this leads to a core dump. Move xstrdup of
10490 operating_system to after check that it is not NULL.
10491
f66c9f11
AC
104922002-03-17 Andrew Cagney <ac131313@redhat.com>
10493
8e694ecf
AC
10494 * kod.c (kod_set_os): Remove unnecessary check that
10495 ``command->type'' is set_cmd.
10496
f66c9f11
AC
10497 * valprint.c (set_input_radix): Use input_radix.
10498 (set_output_radix): Use output_radix.
10499 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10500 isn't reverted.
10501
9d01611c
AC
105022002-03-16 Andrew Cagney <ac131313@redhat.com>
10503
10504 * value.h (struct value): Delete field ``substring_addr''. Change
10505 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10506 force_core_addr_align and force_pointer_aligh.
10507
10508 * value.h (struct value): Fix typo in above change.
9d01611c 10509
4156bb53
PS
105102002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10511
10512 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10513 to fix internal_error from ``maintenance print architecture''.
10514
0e5e3ea6
PS
105152002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10516
10517 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10518 for gcc versions after gcc-2.8.1.
10519
9b013045
PS
105202002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10521
10522 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10523 for method resolution. Restore adjustment of ``this'' pointer after
10524 calling value_struct_elt, which was accidentally removed during the
10525 HP merge.
10526
376c9600
AC
105272002-03-15 Andrew Cagney <ac131313@redhat.com>
10528
10529 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10530 value_of_register.
10531 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10532 get_saved_register.
10533 * value.h (value_of_register): Update.
10534
a4db0f07
RH
105352002-03-14 Richard Henderson <rth@redhat.com>
10536
10537 * configure.in: Detect declaration for canonicalize_file_name.
10538 * utils.c (canonicalize_file_name): Declare, if needed.
10539 (gdb_realpath): Prefer realpath if available and usable.
10540 * config.in, configure: Rebuild.
10541
96383835
RH
105422002-03-14 Richard Henderson <rth@redhat.com>
10543
10544 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10545 a constant array bound.
10546
10547 * MAINTAINERS: Add myself to write-after-approval.
10548
75245b24
MS
105492002-03-14 Michael Snyder <msnyder@redhat.com>
10550
10551 * symfile.c (syms_from_objfile): Return immediately if no syms.
10552 (symbol_file_add): Return immediately if no syms.
10553 (find_sym_fns): Return immediately if no syms.
10554
e641a1ca
ML
105552002-03-13 Michal Ludvig <mludvig@suse.cz>
10556
10557 * gdbserver/remote-util.c (remote_open): Print remote-side's
10558 IP address when remote debugging over the network.
7e336ba1 10559
df08bfec
DB
105602002-03-12 David O'Brien <obrien@FreeBSD.org>
10561
10562 * config/sparc/fbsd.mh: Fix copyright.
10563 * config/sparc/fbsd.mt: Likewise.
10564
9a57864f
RE
105652002-03-11 Richard Earnshaw <rearnsha@arm.com>
10566
10567 * MAINTAINERS: Fix typo in name of gdb warnings option.
10568 (x86-64): Fix formating so that this can be parsed by awk.
10569
dd7bf85e
DJ
105702002-03-10 Daniel Jacobowitz <drow@mvista.com>
10571
10572 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10573 * defs.h: Include "gdb/signals.h".
10574 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10575
33a0a2ac
ML
105762002-03-10 Michal Ludvig <mludvig@suse.cz>
10577
10578 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10579 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10580 from x86-64-tdep.h
10581
dd824b04
DJ
105822002-03-10 Daniel Jacobowitz <drow@mvista.com>
10583 Don Howard <dhoward@redhat.com>
10584
10585 * mips-tdep.c (ST0_FR): Define.
10586 (mips2_fp_compat): New function, temporarily disabled.
10587 (mips_read_fp_register_single): New function.
10588 (mips_read_fp_register_double): New function.
10589 (mips_print_register): Use them.
10590 (do_fp_register_row): Likewise.
10591
6a41ff59
AC
105922002-03-09 Andrew Cagney <ac131313@redhat.com>
10593
10594 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10595 approval''.
10596
4ea09c10
PS
105972002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10598
10599 * stabsread.c (read_member_functions): Fix is_stub test for
10600 static member functions, improve comment.
10601
6ccc741d
RE
106022002-03-07 Richard Earnshaw <rearnsha@arm.com>
10603
10604 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10605 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10606 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10607 commands that set boolean values.
10608 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10609 (arm_rdi_resume): Always initialize PC.
10610 (arm_rdi_open): Don't use rslt as a boolean.
10611 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10612 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10613 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10614 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10615
438013df
AO
106162002-03-06 Alexandre Oliva <aoliva@redhat.com>
10617
10618 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10619 * configure: Rebuilt.
10620
70ed8774
SC
106212002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10622
10623 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10624 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10625
5ba2abeb
AC
106262002-03-06 Andrew Cagney <ac131313@redhat.com>
10627
10628 * cli/cli-decode.c (set_cmd_completer): New function.
10629 * command.h (set_cmd_completer): Declare.
10630 * cli/cli-decode.h (set_cmd_completer): Ditto.
10631
10632 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10633 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10634 * win32-nat.c (_initialize_inftarg): Ditto.
10635 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10636 * proc-api.c (_initialize_proc_api): Ditto.
10637 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10638 * source.c (_initialize_source): Ditto.
10639 * exec.c (_initialize_exec): Ditto.
10640 * solib.c (_initialize_solib): Ditto.
10641 * top.c (init_main): Ditto.
10642 * tracepoint.c (_initialize_tracepoint): Ditto.
10643 * symfile.c (_initialize_symfile): Ditto.
10644 * printcmd.c (_initialize_printcmd): Ditto.
10645 * infcmd.c (_initialize_infcmd): Ditto.
10646 * corefile.c (_initialize_core): Ditto.
10647
f779ca99
AC
106482002-03-05 Andrew Cagney <ac131313@redhat.com>
10649
10650 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10651
01a3934b
AC
106522002-03-05 Andrew Cagney <ac131313@redhat.com>
10653
10654 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10655
37057839
AC
106562002-03-05 Andrew Cagney <ac131313@redhat.com>
10657
10658 * NEWS: Update headings, 5.2 has branched.
10659
c6ecbae5
DJ
106602002-03-04 Daniel Jacobowitz <drow@mvista.com>
10661
10662 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10663 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10664 (register_addr, REGISTER_RAW_SIZE): Likewise.
10665 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10666 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10667
e9f30c21
ML
106682002-03-03 Michal Ludvig <mludvig@suse.cz>
10669
10670 * MAINTAINERS (x86-64): Add myself.
10671 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10672 changed value_ptr -> struct value *
10673
54394ac3
DB
106742002-03-01 David O'Brien <obrien@FreeBSD.org>
10675
10676 * configure.host (sparc64-*-freebsd): Add.
10677 * configure.tgt: Likewise.
10678 * config/sparc/fbsd.mh: New file.
10679 * config/sparc/fbsd.mt: Likewise.
10680 * config/sparc/nm-fbsd.h: Likewise.
10681 * config/sparc/tm-fbsd.h: Likewise.
10682
bfe95955
DJ
106832002-03-01 Daniel Jacobowitz <drow@mvista.com>
10684
10685 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10686 regformats/reg-s390x.dat.
10687
f33c6cbf
AC
106882002-03-01 Andrew Cagney <ac131313@redhat.com>
10689
10690 * utils.c: Add FIXME explaining true/false problem.
10691
5ecaa7dd
AC
106922002-02-28 Andrew Cagney <ac131313@redhat.com>
10693
10694 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10695
2a251cc2
MC
106962002-02-28 Michael Chastain <mec@shout.net>
10697
10698 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10699
6a8031a3 107002002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10701
10702 * gdbserver/linux-s390-low.c: New file.
10703 * regformats/reg-s390.dat: New file.
10704 * regformats/reg-s390x.dat: New file.
10705 * gdbserver/configure.srv: Add S/390.
10706 * gdbserver/Makefile.in: Add S/390.
10707 * configure.tgt: Enable gdbserver for S/390.
10708
ac469903
EZ
107092002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10710
10711 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10712 first line of the doc string for "info dos", except at the end of
10713 the sentence, since the short help stops at the first period.
10714
985cb1a3
JM
107152002-02-28 Jason Merrill <jason@redhat.com>
10716
10717 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10718
c570663e
FF
107192002-02-27 Fred Fish <fnf@redhat.com>
10720
10721 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10722 comment (dumy -> dummy).
10723
43630227
PS
107242002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10725
10726 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10727
b84911e8
RB
107282002-02-27 Rodney Brown <rbrown64@csc.com.au>
10729
10730 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10731
58caa3dc
DJ
107322002-02-27 Daniel Jacobowitz <drow@mvista.com>
10733
10734 * gdbserver/acconfig.h: New file.
10735 * gdbserver/i387-fp.c: New file.
10736 * gdbserver/i387-fp.h: New file.
10737 * gdbserver/linux-x86-64.c: New file.
10738 * regformats/reg-x86-64.dat: New file.
10739 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10740 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10741 * gdbserver/configure.in: Add support for regsets.
10742 * gdbserver/config.in: Regenerate.
10743 * gdbserver/configure: Regenerate.
10744 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10745 * gdbserver/linux-low.h: New file.
10746 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10747 for regsets.
10748 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10749 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10750 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10751 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10752 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10753 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10754 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10755 "i387-fp.h". Add PTRACE_GETREGS and friends.
10756 * gdbserver/regcache.c (supply_register): New function.
10757 (supply_register_by_name): New function.
10758 (collect_register): New function.
10759 (collect_register_by_name): New function.
10760
93652174
DJ
107612002-02-27 Daniel Jacobowitz <drow@mvista.com>
10762
10763 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10764 (config.status): Add configure.srv dependency.
10765 (server_h): Add config.h dependency.
10766
a02e4a61
DJ
107672002-02-27 Daniel Jacobowitz <drow@mvista.com>
10768
10769 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10770 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10771 * gdbserver/configure.srv: Change i386-*-linux* to use
10772 reg-i386-linux.o.
10773
ce0eebec
AC
107742002-02-26 Andrew Cagney <ac131313@redhat.com>
10775
10776 * x86-64-tdep.c: Re-indent. Update copyright date.
10777
82dbc5f7
AC
107782002-02-26 Andrew Cagney <ac131313@redhat.com>
10779
10780 From Michal Ludvig <mludvig@suse.cz>:
10781 * x86-64-tdep.c (value.h): Delete.
10782 (gdb_assert.h): Include.
10783 (x86_64_register_convert_to_virtual,
10784 x86_64_register_convert_to_raw ): Add check which lets only
10785 floating-point values to be converted.
10786 (value_push): Delete.
10787 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10788 (i386_gdbarch_init): Number of register_bytes fixed.
10789
e4621584
AC
107902002-02-26 Andrew Cagney <ac131313@redhat.com>
10791
10792 * MAINTAINERS: Add x86-64 target.
10793
81a9a963
AC
107942002-02-26 Andrew Cagney <ac131313@redhat.com>
10795
10796 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10797 * osfsolib.c (solib_map_sections): Ditto.
10798 * irix5-nat.c (solib_map_sections): Ditto.
10799 * corelow.c (gdb_check_format): Ditto.
10800 * symfile.c (symfile_bfd_open): Ditto.
10801 * solib.c (solib_map_sections): Ditto.
10802 Fix PR gdb/354.
7e336ba1 10803
0f017ab9
AC
108042002-02-26 Andrew Cagney <ac131313@redhat.com>
10805
10806 * remote.c (_initialize_remote): By default, disable ``e'' and
10807 ``E'' step out-of-range packets.
10808
75738c29
AS
108092002-02-26 Andreas Schwab <schwab@suse.de>
10810
10811 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10812 m68k_linux_frame_saved_pc.
10813 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10814 in_sigtramp.
10815 (SIGCONTEXT_PC_OFFSET): Remove.
10816 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10817 m68k_linux_sigtramp_saved_pc): New functions.
10818 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10819 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10820 (UCONTEXT_PC_OFFSET): Define.
10821 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10822 non-RT and RT signal trampolines.
10823
7e8ed687
RE
108242002-02-26 Richard Earnshaw <rearnsha@arm.com>
10825
10826 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10827 (TARGET_NBPG, STACK_END_ADDR): Delete
10828 (VARIABLES_INSIDE_BLOCK): Delete.
10829
6972bc8b
AC
108302002-02-25 Andrew Cagney <ac131313@redhat.com>
10831
10832 * utils.c (perror_with_name): Make string parameter constant.
10833 (print_sys_errmsg): Ditto.
10834 (query): Ditto.
10835 * defs.h (perror_with_name): Update.
10836 (print_sys_errmsg): Update.
10837 (query): Update.
10838
aa32f823
DJ
108392002-02-25 Daniel Jacobowitz <drow@mvista.com>
10840
10841 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10842 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10843
19caaa45
PS
108442002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10845
10846 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10847 if it already matches the current architecture from the exec file.
10848 Include arch-utils.h for gdbarch_info_init prototype.
10849 * Makefile.in (rs6000-nat.o): Update dependencies.
10850
d951901f
EZ
108512002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10852
10853 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10854 list of exported variables.
10855
7ea81414
DJ
108562002-02-24 Daniel Jacobowitz <drow@mvista.com>
10857
10858 * gdbserver/configure.srv: New file.
10859 * gdbserver/configure.in: Use configure.srv instead
10860 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10861 from it.
10862 * gdbserver/configure: Regenerated.
10863 * gdbserver/terminal.h: New file.
10864 * gdbserver/Makefile.in: Update for configure changes. Remove
10865 more unneeded include paths.
10866
080fe24b
AC
108672002-02-24 Andrew Cagney <ac131313@redhat.com>
10868
10869 From wiz at danbala:
10870 * config/sparc/tm-sp64.h: Fix grammar and typos.
10871 Fix PR gdb/287.
10872
8605d56e
AC
108732002-02-24 Andrew Cagney <ac131313@redhat.com>
10874
10875 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
10876 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10877 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10878 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
10879 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10880 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10881 * s390-tdep.c: Ditto.
92362027
AC
10882 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10883 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10884 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10885 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10886 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10887 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10888 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10889 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10890 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10891 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 10892 Fix PR gdb/378.
7e336ba1 10893
8ed32cc0
AC
108942002-02-23 Andrew Cagney <ac131313@redhat.com>
10895
a3007b6f
AC
10896 * lin-thread.c: Delete file.
10897 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10898 to gdb_proc_service.h.
10899 * configure: Re-generate.
10900
50a9e2f1
AC
10901 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10902 * serial.c (serial_open): Delete check for "ocd".
10903 Fix PR gdb/349.
10904
8b6e7932
AC
10905 * Makefile.in (linux-thread.o): Delete target.
10906 * linux-thread.c: Delete file.
10907
d155c46b
AC
10908 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10909 renamed SH files to be consistent.
10910
8ed32cc0
AC
10911 * symtab.c (sort_search_symbols): Use xfree.
10912
0e18d038
RE
109132002-02-23 Richard Earnshaw <rearnsha@arm.com>
10914
10915 * arm-linux-tdep.c (arm_linux_init_abi): Register
10916 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10917 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10918 definition with undef, since we don't want the sysvr4 definition.
10919 (SKIP_TRAMPOLINE_CODE): Likewise.
10920
27aac7ff
AC
109212002-02-23 Andrew Cagney <ac131313@redhat.com>
10922
10923 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10924
10925 * configure.in: (AC_CHECK_FUNCS) Added test for
10926 canonicalize_file_name Regenerated.
10927 * config.in, configure: Regenerated.
10928 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10929 defined use canonicalize_file_name.
7e336ba1 10930
65a6e0ee
MC
109312002-02-23 Michael Chastain <mec@shout.net>
10932
10933 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10934
47b95330
AC
109352002-02-23 Andrew Cagney <ac131313@redhat.com>
10936
10937 * README: Remove references to cygnus.com.
10938 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10939 dot com'' form. Remove references to cygnus.com and sourceware.
10940
696f451b
AC
109412002-02-23 Andrew Cagney <ac131313@redhat.com>
10942
10943 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10944 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10945 1003.1-2001 no longer allows "head -1".
10946 * gdb/Makefile.in (version.c): Likewise.
10947 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10948 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10949 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10950
bbaca940
AC
109512002-02-23 Andrew Cagney <ac131313@redhat.com>
10952
10953 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10954 * command.h (cmd_cfunc_eq): Declare.
10955 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10956
10957 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10958 ``struct cmd_list_element *''.
10959 * cli/cli-cmds.c (is_complete_command): Update. Use
10960 cmd_cfunc_eq.
10961 * top.c (execute_command): Pass the command to
10962 is_complete_command.
10963 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10964
b8b8b047
AC
109652002-02-23 Andrew Cagney <ac131313@redhat.com>
10966
10967 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10968 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10969 architecture defines.
10970 * s390-tdep.c (s390_gdbarch_init): Likewise.
10971
19d3fc80
RE
109722002-02-23 Richard Earnshaw <rearnsha@arm.com>
10973
10974 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10975 (arm_linux_push_arguments): Likewise.
10976 (arm_linux_init_abi): Register them. Also register linux-specific
10977 call_dummy_words.
10978 (find_minsym_and_objfile): Use strcmp, not STREQ.
10979 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10980 (arm_linux_call_dummy_words): Delete declaration.
10981 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10982 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10983 declarations.
10984 (LOWEST_PC): Delete.
10985
3ab13650
PS
109862002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10987
10988 * maint.c (print_section_info): Do not prepend `0x' to filepos
10989 output, it will be handled by local_hex_string_custom.
10990
19d3fc80 109912002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
10992
10993 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10994 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10995 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10996
d85a5daf
JB
109972002-02-22 Jim Blandy <jimb@redhat.com>
10998
10999 Indicate that the bcache functions don't change the strings
11000 they're passed.
11001 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11002 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11003
eeb25b8a
PM
110042002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11005
11006 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11007
6badb179
CF
110082002-02-21 Christopher Faylor <cgf@redhat.com>
11009
11010 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11011 find the complete path to a loaded DLL.
11012
e8717518
FF
110132002-02-21 Fred Fish <fnf@redhat.com>
11014
11015 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11016 that marks the end of the range of a function, enter a line number
11017 entry that has a line number of zero and a PC offset that matches
11018 the end of the function. This starts a range of PC's for which no
11019 line number information is known.
11020 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11021 PC's for which no line number info is found (line number is zero)
11022 then we didn't find any valid line information.
11023 * symtab.h: Document use of zero line number entry.
11024
9abe5450
EZ
110252002-02-21 Elena Zannoni <ezannoni@redhat.com>
11026
11027 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11028 (have_ptrace_getvrregs): Define for run time checks.
11029 (gdb_vrregset_t): New type for Altivec register handling.
11030 (fetch_register, store_register): Fetch/store altivec register
11031 when needed.
11032 (fetch_altivec_register, store_altivec_register): New functions.
11033 (supply_vrregset, fill_vrregset): New functions.
11034 (fetch_altivec_registers, store_altivec_registers): New functions.
11035 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11036 registers as well.
11037
aaa38bb5
AJ
110382002-02-21 Jiri Smid <smid@suse.cz>
11039
11040 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11041
b34db576
RE
110422002-02-21 Richard Earnshaw <rearnsha@arm.com>
11043
11044 * Makefile.in (armnbsd-nat.o): Update dependencies.
11045 * armnbsd-nat.c (supply_gregset): New function. Common code to
11046 supply the integer register set.
11047 (supply_fparegset): New function. Similar for FPA registers.
11048 (fetch_regs, fetch_fp_regs): Use them.
11049 (fetch_core_registers): Likewise.
11050 (fetch_elfcore_registers): New function.
11051 (arm_netbsd_elfcore_fns): New core-file type specification.
11052 (_initialize_arm_netbsd_nat): Register it.
11053
3e56fc4b
RE
110542002-02-21 Richard Earnshaw <rearnsha@arm.com>
11055
11056 * armnbsd-nat.c: Include gdbcore.h.
11057 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11058 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11059 'void' to declaration, to shut up ARI.
11060 (fetch_core_registers): Make static. Rewrite using supply_register.
11061 (arm_netbsd_core_fns): New core-file type specification.
11062 (_initialize_arm_netbsd_nat): New function.
11063
097f6b0b
CF
110642002-02-21 Christopher Faylor <cgf@redhat.com>
11065
11066 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11067 value.
11068
c914e0cc
CF
110692002-02-20 Christopher Faylor <cgf@redhat.com>
11070
11071 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11072 fails.
11073
385fa495
DJ
110742002-02-20 Daniel Jacobowitz <drow@mvista.com>
11075
11076 * jv-exp.y (parse_number): Change type of implicit longs
11077 to builtin_type_uint64.
11078
e5f1222d
DJ
110792002-02-20 Daniel Jacobowitz <drow@mvista.com>
11080
11081 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11082 to be an integer instead of a `union wait'.
11083
75c9abc6
DJ
110842002-02-20 Daniel Jacobowitz <drow@mvista.com>
11085
11086 * mips-linux-nat.c: Call the operating system GNU/Linux.
11087 * mips-linux-tdep.c: Likewise.
11088 * mips-tdep.c: Likewise.
11089
551792a5
DJ
110902002-02-20 Daniel Jacobowitz <drow@mvista.com>
11091
11092 Fix PR gdb/265.
11093 * jv-exp.y (parse_number): Handle 64-bit integers.
11094
ee6e2b82
DJ
110952002-02-20 Daniel Jacobowitz <drow@mvista.com>
11096
11097 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11098 AC_STDC_HEADERS to AC_HEADER_STDC.
11099 * gdbserver/configure: Regenerated.
11100
a48442a0
RE
111012002-02-20 Richard Earnshaw <rearnsha@arm.com>
11102
11103 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11104 is defined.
11105 * sparc-tdep.c (get_longjmp_target): Likewise.
11106
fe419ffc
RE
111072002-02-20 Richard Earnshaw <rearnsha@arm.com>
11108
11109 * News: Add news about ARM and Multi-arch. Mention the new target
11110 arm*-*-netbsd*.
11111
5832ed7e
JB
111122002-02-19 Jim Blandy <jimb@redhat.com>
11113
11114 * stabsread.c (error_type_complaint): Improve error message.
11115
84563040
DJ
111162002-02-19 Daniel Jacobowitz <drow@mvista.com>
11117
11118 * gdbserver/README: Update documentation.
11119 * gdbserver/configure.in: Update configury to match documentation.
11120 * gdbserver/Makefile.in: Likewise.
11121 * gdbserver/configure: Regenerated.
11122 * gdbserver/aclocal.m4: New file, generated by aclocal.
11123 * gdbserver/config.in: New file, generated by autoheader.
11124
375fd65b
RE
111252002-02-19 Richard Earnshaw <rearnsha@arm.com>
11126
11127 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11128 armnbsd-nat.c.
11129
08216dd7
RE
111302002-02-19 Richard Earnshaw <rearnsha@arm.com>
11131
11132 * arm-tdep.h (enum arm_float_model): New enum.
11133 (struct gdbarch_tdep): Add fp_model.
11134 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11135 up floating-point conversions until we know the floating-point model
11136 in use by the inferior. Don't complain about being unable to
11137 determine the ABI of the inferior when we don't have one.
11138 (arm_extract_return_value): Support different floating-point models.
11139 (arm_store_return_value): Likewise.
aaa38bb5 11140 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11141 ARM_FLOAT_SOFT.
11142 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11143
65d6d66a
PS
111442002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11145
11146 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11147 of ``current_gdbarch''.
11148
47221191
RE
111492002-02-19 Richard Earnshaw <rearnsha@arm.com>
11150
11151 * armnbsd-nat.c : ANSIfy all function declarations.
11152 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11153 (fetch_inferior_registers): Re-implement in terms of above.
11154 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11155 (store_inferior_registers): Re-implement in terms of above.
11156
fdf39c9a
RE
111572002-02-19 Richard Earnshaw <rearnsha@arm.com>
11158
aaa38bb5 11159 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11160 kernel.
11161 * arm-linux-tdep.c: Likewise.
11162 * config/arm/tm-linux.h: Likewise.
11163
93247f88
RE
111642002-02-19 Richard Earnshaw <rearnsha@arm.com>
11165
11166 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11167 * config/arm/nbsd.mt (TM_FILE): Delete.
11168 * config/arm/tm-nbsd.h: Delete.
11169
d7b486e7
RE
111702002-02-19 Richard Earnshaw <rearnsha@arm.com>
11171
11172 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11173 Initialize CALL_DUMMY_LENGTH.
11174
41d39a95
RE
111752002-02-19 Richard Earnshaw <rearnsha@arm.com>
11176
11177 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11178 function.
11179 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11180 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11181 defines one thing and that is incorrect for this port.
11182 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11183
e1195560
PM
111842002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11185
11186 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11187
c1748f97
PM
111882002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11189
11190 * win32-nat.c (display_selector): New function. Displays information
11191 about the information returned by GetThreadSelectorEntry API function.
11192 (display_selectors): New function. Displays the infomation of
11193 the selector given as argument, or of CS, DS ans FS selectors
11194 if no argument is given.
11195 ( _initialize_inftarg): Add "w32" as info prefix command.
11196 Add "info w32 selector" as command calling display_selectors.
11197
e41e6bbf
PM
111982002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11199
11200 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11201 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11202 if not defined.
11203
0d3a9f48
RE
112042002-02-18 Richard Earnshaw <rearnsha@arm.com>
11205
11206 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11207
3fb4b924
RE
112082002-02-18 Richard Earnshaw <rearnsha@arm.com>
11209
11210 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11211 (arm_fix_call_dummy): Call it.
11212 (arm_call_dummy_breakpoint_offset): Delete.
11213 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11214 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11215
7f55af32
AC
112162002-02-18 Andrew Cagney <ac131313@redhat.com>
11217
11218 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11219 Default to func_frame_chain_valid.
11220 * gdbarch.h, gdbarch.c: Re-generate.
11221 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11222
05f13b9c
EZ
112232002-02-18 Elena Zannoni <ezannoni@redhat.com>
11224
11225 * ppc-linux-nat.c: Update copyright.
11226 (fetch_register, store_register): Add tid parameter, don't compute
11227 tid here.
11228 (fetch_ppc_registers, store_ppc_registers): Add tid
11229 parameter. Pass it along to callees.
11230 (fetch_inferior_registers, store_inferior_registers): Compute tid
11231 here, and pass it to calleed functions.
11232 (fill_gregset, supply_fpregset): Clean up formatting.
11233
d7afb4c9
RE
112342002-02-18 Richard Earnshaw <rearnsha@arm.com>
11235
11236 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11237 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11238
9df628e0
RE
112392002-02-18 Richard Earnshaw <rearnsha@arm.com>
11240
11241 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11242 * gdbarch.c gdbarch.h: Regenerate.
11243 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11244 function.
11245 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11246 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11247 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11248
11249 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11250 * arm-tdep.c (arm_get_longjmp_target): New function.
11251 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11252 this to a positive value register arm_get_longjmp_target as the
11253 longjmp handler.
11254 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11255 (arm_linux_init_abi): Set up longjmp description in tdep.
11256 * armnbsd-nat.c (get_longjmp_target): Delete.
11257 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11258 description in tdep.
11259 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11260 (get_longjmp_target): Delete declaration.
11261 (GET_LONGJMP_TARGET): Delete.
11262 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11263 (GET_LONGJMP_TARGET): Delete.
11264
57bc8964
KB
112652002-02-17 Kevin Buettner <kevinb@redhat.com>
11266
11267 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11268 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11269 of ``current_gdbarch''.
11270
83d31a92
TT
112712002-02-17 Tom Tromey <tromey@redhat.com>
11272
11273 * cli/cli-cmds.c (compare_strings): New function.
11274 (complete_command): Only print each unique item once.
11275 * completer.h (complete_line): Declare.
11276 * completer.c (complete_line): New function.
11277 (line_completion_function): Use it.
11278
17ef5d92
AC
112792002-02-16 Andrew Cagney <ac131313@redhat.com>
11280
11281 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11282 * gdbarch.h, gdbarch.c: Re-generate.
11283
491b8946
DJ
112842002-02-16 Daniel Jacobowitz <drow@mvista.com>
11285
11286 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11287
112882002-02-16 Daniel Jacobowitz <drow@mvista.com>
11289
11290 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11291 * valops.c (value_arg_coerce): Don't take the address of a reference
11292 to convert an argument to a reference.
11293
dfe7f3ac
CF
112942002-02-15 Christopher Faylor <cgf@redhat.com>
11295
11296 * win32-nat.c (get_image_name): New function.
11297 (handle_load_dll): Use get_image_name function.
11298 (get_child_debug_event): Avoid registering debug events until possibly
11299 execed process is started.
11300 (child_create_inferior): Allow invocation via shell so that command
11301 line redirection, etc. works ok.
11302 (_initialize_inftarg): Add new command: "set shell" to control whether
11303 a shell is used to start a process.
11304
1d33e73a
DJ
113052002-02-15 Daniel Jacobowitz <drow@mvista.com>
11306
11307 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11308 instead of find_register_by_number.
11309 (cannot_store_register): Likewise.
11310
48cd0caa
PM
113112002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11312
aaa38bb5 11313 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11314 fprintf_unfiltered (gdb_stderr, ...).
11315
8656e7d8
DJ
113162002-02-15 Daniel Jacobowitz <drow@mvista.com>
11317
11318 * gdbserver/gdbserver.1: Document --attach.
11319
66e810cd
RE
113202002-02-15 Richard Earnshaw <rearnsha@arm.com>
11321
11322 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11323 descriptions.
11324 * arm-tdep.c (arm_default_arm_le_breakpoint)
11325 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11326 (arm_default_thumb_be_breakpoint): New. Initialize them from
11327 traditional breakpoint defines.
11328 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11329 (arm_gdbarch_init): Initialize new breakpoint variables.
11330 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11331 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11332 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11333 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11334 code out to ...
11335 (arm_netbsd_init_abi_common): ... here; new function.
11336 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11337 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11338 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11339 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11340
97e03143
RE
113412002-02-15 Richard Earnshaw <rearnsha@arm.com>
11342
11343 * arm-tdep.h (enum arm_abi): New enum.
11344 (struct gdbarch_tdep): New structure.
11345 (LOWEST_PC): Provide a default.
11346 (arm_gdbarch_register_os_abi): Declare new function.
11347 * arm-tdep.c (arm_abi_names): New array.
11348 (process_note_abi_tag_sections): New function.
11349 (get_elfosabi): New function.
11350 (arm_gdbarch_register_os_abi): New function.
11351 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11352 support for that ABI has been built in, then call the appropriate
11353 configuration routine. Use gdbarch_num_regs() to get the number
11354 of registers.
11355 (arm_dump_tdep): New function.
11356 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11357 place-holder functions.
11358 (_initialize_arm_tdep): Register them.
11359 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11360
11361 * armnbsd-tdep.c: New file.
11362 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11363 * config/arm/nbsd.mt (TDEPFILES): Add it.
11364 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11365
11366 * armnbsd-nat.c: Include regcache.h.
11367 * Makefile.in (armnbsd-nat.o): Update dependency list.
11368
11369 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11370
ad68be46
DJ
113712002-02-14 Daniel Jacobowitz <drow@mvista.com>
11372
11373 * gdbserver/Makefile.in: Fix typos in target rules.
11374
003d6d1d
DJ
113752002-02-14 Daniel Jacobowitz <drow@mvista.com>
11376
aaa38bb5 11377 Fix part of PR gdb/267.
003d6d1d
DJ
11378 * linespec.c (find_methods): Handle constructors specially for now.
11379
6b230f1b
CV
113802002-02-14 Corinna Vinschen <vinschen@redhat.com>
11381
11382 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11383 handling.
11384 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11385 standard_coerce_float_to_double().
11386
1ea98d12
CF
113872002-02-14 Christopher Faylor <cgf@redhat.com>
11388
11389 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11390 GDBINIT_FILENAME.
11391
dd47e6fd
EZ
113922002-02-14 Elena Zannoni <ezannoni@redhat.com>
11393
11394 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11395 find_variant_by_name, because it confuses the multiarch
11396 framework. Return NULL if there isn't an architecture with the
11397 user supplied name, instead of forcing a different one without
11398 recording the change with the multiarch machinery.
11399 (find_variant_by_name): Delete.
11400
d7e39b9e
PS
114012002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11402
11403 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11404 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11405
76e42a4f
MH
114062002-02-13 Martin M. Hunt <hunt@redhat.com>
11407
aaa38bb5 11408 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11409 print_frame_info_listing_hook, set current_source_symtab.
11410
0a30fbc4
DJ
114112002-02-14 Daniel Jacobowitz <drow@mvista.com>
11412
11413 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11414 and remove unused $(INCLUDE_DIR).
11415 Add regcache.c to OBS.
11416 Add generated register protocol files to clean target.
11417 Update dependencies for new objects, obsolete old target code.
11418
11419 * gdbserver/linux-low.c: Remove all platform-specific code to
11420 new files. Remove various dead code. Update to use regcache
11421 functionality.
11422 * gdbserver/remote-utils.c (fromhex): Add return statement
11423 to quiet warning.
11424 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11425 constant.
11426 (input_interrupt): Add integer parameter to match prototype
11427 of a signal handler.
11428 (outreg): Use register_data ().
11429 (prepare_resume_reply): Use gdbserver_expedite_regs.
11430 * gdbserver/server.c (main): Dynamically allocate own_buf because
11431 PBUFSIZ is no longer constant. Use registers_to_string () and
11432 registers_from_string ().
11433 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11434 for error (), fatal (), and warning (). Update definition of
11435 PBUFSIZ to use regcache functionality. Add include guard.
11436 * gdbserver/utils.c (fatal): Add missing ``const''.
11437 (warning): New function.
11438
11439 * regformats/regdat.sh: Include "regcache.h" in generated files.
11440 Provide init_registers () function.
11441 * regformats/regdef.h: Add prototype for set_register_cache ().
11442 Add include guard.
11443
11444 * gdbserver/linux-arm-low.c: New file.
11445 * gdbserver/linux-i386-low.c: New file.
11446 * gdbserver/linux-ia64-low.c: New file.
11447 * gdbserver/linux-m68k-low.c: New file.
11448 * gdbserver/linux-mips-low.c: New file.
11449 * gdbserver/linux-ppc-low.c: New file.
11450 * gdbserver/linux-sh-low.c: New file.
11451
11452 * gdbserver/regcache.c: New file.
11453 * gdbserver/regcache.h: New file.
11454
11455 * gdbserver/low-linux.c: Removed obsolete file.
11456
4cc841d0
DJ
114572002-02-14 Daniel Jacobowitz <drow@mvista.com>
11458
11459 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11460 * config/i386/linux.mt: Likewise.
11461 * config/ia64/linux.mt: Likewise.
11462 * config/m68k/linux.mh: Likewise.
11463 * config/powerpc/linux.mh: Likewise.
11464 * config/mips/linux.mt: Likewise.
11465
11466 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11467
11468 * config/i386/i386lynx.mh: Mark gdbserver variables
11469 as (currently) obsolete for this target.
11470 * config/i386/nbsd.mt: Likewise.
11471 * config/i386/nbsdelf.mt: Likewise.
11472 * config/m32r/m32r.mt: Likewise.
11473 * config/m68k/m68klynx.mh: Likewise.
11474 * config/m68k/nbsd.mt: Likewise.
11475 * config/m68k/sun3os4.mh: Likewise.
11476 * config/mips/vr5000.mt: Likewise.
11477 * config/ns32k/nbsd.mt: Likewise.
11478 * config/pa/hppabsd.mh: Likewise.
11479 * config/pa/hppaosf.mh: Likewise.
11480 * config/powerpc/nbsd.mt: Likewise.
11481 * config/rs6000/rs6000lynx.mh: Likewise.
11482 * config/s390/s390.mt: Likewise.
11483 * config/s390/s390x.mt: Likewise.
11484 * config/sparc/sparclynx.mh: Likewise.
11485 * config/sparc/sun4os4.mh: Likewise.
11486 * config/i386/x86-64linux.mt: Likewise.
11487 * config/sparc/linux.mh: Likewise.
11488
a85f51e7
DJ
114892002-02-14 Daniel Jacobowitz <drow@mvista.com>
11490
11491 * configure.tgt: Configure gdbserver only for known working
11492 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11493 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11494 SUBDIRS if it is configured. Update comment for ${nativefile}.
11495 * configure: Regenerated.
11496
65554fef
MS
114972002-02-13 Michael Snyder <msnyder@redhat.com>
11498
670a52db
MS
11499 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11500
6dbdc4a3
MS
11501 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11502 (default_gcore_mach): Just return 0, work around a problem in bfd.
11503 (default_gcore_target): OK to return NULL if exec_bfd is null.
11504 (make_mem_sec): Use a cast, avoid a warning.
11505
11506 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11507 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11508 sizeof (host pointer) != sizeof (target pointer)).
11509 (procfs_make_note_section): Avoid overflow in psargs string.
11510
aaa38bb5 11511 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11512 implementation return an error.
11513
115142002-02-13 Rodney Brown <rbrown64@csc.com.au>
11515
11516 * procfs.c (procfs_make_note_section): Provide a default definition
11517 (for alpha-dec-osf4.0f). Fix typos.
11518
1e4d76e7
EZ
115192002-02-13 Elena Zannoni <ezannoni@redhat.com>
11520
11521 * linux-proc.c: Add include of regcache.h.
11522 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11523
b6d1a1d5
AC
115242002-02-13 Andrew Cagney <ac131313@redhat.com>
11525
11526 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11527 * memattr.c (create_mem_region): Disallow useless empty region.
11528 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11529 non-overlapping.
b6d1a1d5 11530
6c6ea35e
MC
115312002-02-13 Michael Chastain <mec@shout.net>
11532
11533 * defs.h: Kill CONST_PTR.
11534 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11535 * c-lang.c (c_builtin_types): Likewise.
11536 * ch-lang.c (ch_builtin_types): Likewise.
11537 * f-lang.c (f_builtin_types): Likewise.
11538 * language.c (unknown_builtin_types): Likewise.
11539 * m2-lang.c (m2_builtin_types): Likewise.
11540 * p-lang.c (pascal_builtin_types): Likewise.
11541 * scm-lang.c (c_builtin_types): Likewise.
11542
3e0b0f48
KS
115432002-02-13 Keith Seitz <keiths@redhat.com>
11544
11545 * arm-tdep.h (arm_get_next_pc): Add declaration.
11546
67255d04
RE
115472002-02-13 Richard Earnshaw <rearnsha@arm.com>
11548
11549 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11550 with other related struct-returning functions.
11551 (arm_extract_struct_value_address): New function.
11552 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11553 initialize float_format, double_format and long_double_format as
11554 appropriate to the endianness of the target.
11555 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11556 (arm_use_struct_convention): Delete declaration.
11557 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11558
079777f6
KS
115592002-02-13 Keith Seitz <keiths@redhat.com>
11560
11561 * defs.h (core_addr_to_string_nz): New function.
11562
34588f23
MK
115632002-02-13 Mark Kettenis <kettenis@gnu.org>
11564
11565 Apply missing bits of 2002-01-15 patch.
11566 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11567 (fill_fpregset): Use i387_fill_fsave.
11568
49b563f9
KS
115692002-02-12 Keith Seitz <keiths@redhat.com>
11570
49b563f9
KS
11571 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11572 (core_addr_to_string_nz): New function.
11573
aeb98c60
RE
115742002-02-11 Richard Earnshaw <rearnsha@arm.com>
11575
11576 * arm-linux-nat.c: Really include arm-tdep.h.
11577 * config/arm/tm-linux.h (struct type, struct value): Declare.
11578
65554fef
MS
115792002-02-11 Michael Snyder <msnyder@redhat.com>
11580
11581 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11582 (gcore section): Ifdef for Solaris and Unixware only.
11583 (procfs_do_thread_registers): Unixware needs one lwpstatus
11584 per thread (not one prstatus or pstatus).
11585 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11586 not over all gdb threads. For unixware, call elfcore_write_pstatus
11587 once before iterating over threads.
11588
34e8f22d
RE
115892002-02-11 Richard Earnshaw <rearnsha@arm.com>
11590
11591 * arm-tdep.h: New file.
11592 * arm-tdep.c: Include arm-tdep.h.
11593 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11594 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11595 (arm_print_float_info, arm_register_type, convert_to_extended)
11596 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11597 (arm_extract_return_value, arm_register_name): Make static.
11598 (arm_software_single_step): Similarly. Fix types in declaration.
11599 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11600 (arm_store_return_value, arm_store_struct_return): New functions.
11601 (arm_gdbarch_init): Register the above functions. Also register
11602 call_dummy_start_offset, sizeof_call_dummy_words,
11603 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11604 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11605 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11606 prologue_cache.saved_regs here, rather than ...
11607 (_initialize_arm_tdep): ... here.
11608 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11609 declarations.
11610 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11611 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11612 (arm_print_float_info, arm_register_type, convert_to_extended)
11613 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11614 (arm_extract_return_value, arm_register_name): Delete declarations.
11615 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11616 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11617 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11618 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11619 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11620 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11621 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11622 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11623 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11624 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11625 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11626 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11627 interface.
11628 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11629 * remote-rdi.c remote-rdp.c: Likewise.
11630 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11631 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11632 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11633 definition.
11634
11635 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11636 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11637 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11638 from non-ARM_ prefixed definitions.
11639 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11640 all uses of above.
11641 * remote-rdi.c remote-rdp.c: Likewise.
11642 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11643
148754e5
RE
116442002-02-11 Richard Earnshaw <rearnsha@arm.com>
11645
11646 * arm-tdep.c (arm_frameless_function_invocation)
11647 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11648 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11649 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11650 (arm_pop_frame, arm_get_next_pc): Make static.
11651 (arm_gdbarch_init): Register above in gdbarch structure.
11652 (arm_read_fp): Renamed from arm_target_read_fp.
11653 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11654 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11655 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11656 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11657 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11658 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11659 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11660 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11661 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11662 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11663 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11664
434d2d4f
DJ
116652002-02-10 Daniel Jacobowitz <drow@mvista.com>
11666
11667 * symtab.c (compare_search_syms): New function.
11668 (sort_search_symbols): New function.
11669 (search_symbols): Sort symbols after searching rather than
11670 before.
11671
55241689
AC
116722002-02-10 Andrew Cagney <ac131313@redhat.com>
11673
11674 * NEWS: Linux -> GNU/Linux.
11675
028c194b
AC
116762002-02-10 Andrew Cagney <ac131313@redhat.com>
11677
11678 * gdbarch.sh: For for level one methods, disallow a definition
11679 when partially multi-arched. Add comments explaining rationale.
11680 * gdbarch.h: Re-generate.
11681
6acf50cd
AC
116822002-02-10 Andrew Cagney <ac131313@redhat.com>
11683
11684 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11685 multi-arch partial.
aaa38bb5 11686
50248794
AC
116872002-02-10 Andrew Cagney <ac131313@redhat.com>
11688
11689 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11690 field. Use diff -u.
11691 * gdbarch.c: Re-generate.
11692
c30e0066
AC
116932002-02-10 Andrew Cagney <ac131313@redhat.com>
11694
9b56c5f3 11695 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11696 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11697 partial.
11698
6e6d6484
AC
116992002-02-10 Andrew Cagney <ac131313@redhat.com>
11700
11701 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11702 multi-arch partial.
11703 (PUSH_ARGUMENTS): Switch to using predefault.
11704 * gdbarch.c: Regenerate.
11705
c203844d
AC
117062002-02-10 Andrew Cagney <ac131313@redhat.com>
11707
11708 * valops.c (PUSH_ARGUMENTS): Delete definition.
11709 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11710 partial. Default to default_push_arguments.
11711 * gdbarch.h, gdbarch.c: Regenerate.
11712
b5a2688f
AC
117132002-02-09 Andrew Cagney <ac131313@redhat.com>
11714
11715 * defs.h (throw_exception): Rename return_to_top_level. Update
11716 comments.
11717 * utils.c (error_stream, internal_verror, quit): Ditto.
11718 * top.c (throw_exception, catcher): Ditto.
11719 * sparclet-rom.c (sparclet_load): Ditto.
11720 * remote.c (interrupt_query, minitelnet): Ditto.
11721 * remote-sds.c (interrupt_query): Ditto.
11722 * remote-mips.c (mips_error, mips_kill): Ditto.
11723 * ocd.c (interrupt_query): Ditto.
11724 * monitor.c (monitor_interrupt_query): Ditto.
11725 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11726 * target.h: Update comment.
aaa38bb5 11727
b5a2688f 11728 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11729
2fa5c1e0
AC
117302002-02-09 Andrew Cagney <ac131313@redhat.com>
11731
11732 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11733 default_double_format.
11734 * gdbarch.h, gdbarch.c: Re-generate.
11735 * findvar.c (floatformat_unknown): Delete variable definition.
11736 * doublest.h (floatformat_unknown): Delete variable declaration.
11737
da966255
JB
117382002-02-09 Jim Blandy <jimb@redhat.com>
11739
11740 * stabsread.c (read_type): Add code to parse Sun's syntax for
11741 prototyped function types.
11742
123a4891
AC
117432002-02-09 Andrew Cagney <ac131313@redhat.com>
11744
11745 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11746 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11747
fb39c8f3
PS
117482002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11749
11750 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11751 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11752 now _initialize_xcoffsolib gets called again and overrides the
11753 commands from solib.c in a native configuration.
11754
0b87a11d
MK
117552002-02-09 Mark Kettenis <kettenis@gnu.org>
11756
11757 * doublest.c (store_typed_floating): Don't try to return a value.
11758 Fixes PR gdb/290.
11759
bdc2fc72
JB
117602002-02-08 Jim Blandy <jimb@redhat.com>
11761
11762 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11763 is prototyped and has no arguments, print its argument list as
11764 `(void)'.
11765
da69bbcf
CD
117662002-02-08 Chris Demetriou <cgd@broadcom.com>
11767
11768 * MAINTAINERS (write-after-approval): Add myself.
11769 (paper-trail): I've escaped!
aaa38bb5 11770
b69571f5
CF
117712002-02-08 Christopher Faylor <cgf@redhat.com>
11772
11773 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11774 changes.
11775 (_initialize_check_for_gdb_ini): Ditto.
11776
f6871398
MH
117772002-02-08 Martin M. Hunt <hunt@redhat.com>
11778
11779 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11780 xaprintf -> xasprintf.
11781
4e52d31c
PM
117822002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11783
11784 * win32-nat.c: Remove use of printf and sprintf functions.
11785
39bbf761
RE
117862002-02-08 Richard Earnshaw <rearnsha@arm.com>
11787
11788 * arm-tdep.c (arm_frame_chain_valid): Make static.
11789 (arm_push_arguments): Likewise.
11790 (arm_gdbarch_init): New function.
11791 (_initialize_arm_tdep): Call it.
11792 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11793 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11794 (FRAME_CHAIN_VALID): Delete.
11795 (arm_frame_chain_valid): Delete declaration.
11796 (PUSH_ARGUMENTS): Delete.
11797 (arm_push_arguments): Delete declaration.
11798 (CALL_DUMMY_P): Delete.
11799
9c9532c9
CV
118002002-02-08 Andrew Cagney <ac131313@redhat.com>
11801 Corinna Vinschen <vinschen@redhat.com>
11802
11803 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11804 on builtin float types.
11805
4e8f7a8b
DJ
118062002-02-08 Daniel Jacobowitz <drow@mvista.com>
11807
11808 * utils.c: Include <curses.h> before "bfd.h".
11809 * tui/tui-hooks.c: Likewise.
11810 * tui/tui.c: Likewise.
11811 * tui/tuiCommand.c: Likewise.
11812 * tui/tuiData.c: Likewise.
11813 * tui/tuiDataWin.c: Likewise.
11814 * tui/tuiDisassem.c: Likewise.
11815 * tui/tuiGeneralWin.c: Likewise.
11816 * tui/tuiIO.c: Likewise.
11817 * tui/tuiLayout.c: Likewise.
11818 * tui/tuiRegs.c: Likewise.
11819 * tui/tuiSource.c: Likewise.
11820 * tui/tuiSourceWin.c: Likewise.
11821 * tui/tuiStack.c: Likewise.
11822 * tui/tuiWin.c: Likewise.
11823
cd4bffcf
EZ
118242002-02-07 Elena Zannoni <ezannoni@redhat.com>
11825
11826 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11827 to include space for pseudoregs as well. Update loops accordingly.
11828 (sh_fp_frame_init_saved_regs): Ditto.
11829 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11830
26806ce2
AC
118312002-02-07 Andrew Cagney <ac131313@redhat.com>
11832
11833 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11834 Add Richard Earnshaw to Arm maintainers.
11835
97fdab62
AC
118362002-02-07 Andrew Cagney <ac131313@redhat.com>
11837
a6b98203
AC
11838 * defs.h (warning_begin): Delete declaration.
11839
97fdab62
AC
11840 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11841 Delete macro.
11842
78b29b40
MS
118432002-02-07 Michael Snyder <msnyder@redhat.com>
11844
aaa38bb5 11845 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
11846 Logic bug, remove misplaced else.
11847
d8849953
KD
118482002-02-07 Klee Dienes <klee@apple.com>
11849
11850 * fork-inferior.c (fork_inferior): Add '!' to the list of
11851 characters that need to be quoted when building a string for the
11852 shell. Quote '!' specifically with a backslash, since CSH chokes
11853 when trying to evaluate "str!str".
aaa38bb5 11854
095778a0
NC
118552002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11856
11857 * rdi-share/host.h: Only provide a typedef for bool if it is not
11858 defined.
11859
1900040c
MS
118602002-02-04 Michael Snyder <msnyder@redhat.com>
11861
11862 * breakpoint.h (enum bptype): Add new overlay event bp type.
11863 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 11864
1900040c
MS
11865 * breakpoint.c (create_internal_breakpoint): New function.
11866 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11867 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11868 (create_thread_event_breakpoint): Ditto.
11869 (create_solib_event_breakpoint): Ditto.
11870 (create_overlay_event_breakpoint): New function.
11871 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11872 (update_breakpoints_after_exec): Delete and re-initialize
11873 overlay event breakpoints after an exec. Add FIXME comment
11874 about longjmp breakpoint.
11875 (print_it_typical): Ignore overlay event breakpoints.
11876 (print_one_breakpoint): Ditto.
11877 (mention): Ditto.
11878 (bpstat_what): Do not stop for overlay event breakpoints.
11879 (delete_breakpoint): Don't delete overlay event breakpoints.
11880 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11881 (breakpoint_re_set): Re-create overlay event breakpoint.
11882
11883 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11884 (overlay_manual_command): Disable overlay breakpoints.
11885 (overlay_off_command): Disable overlay breakpoints.
11886
082fc60d
RE
118872002-02-06 Richard Earnshaw <rearnsha@arm.com>
11888
11889 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11890 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11891 to here from config/tm-arm.h.
11892 (coff_sym_is_thumb): Make static.
11893 (arm_elf_make_msymbol_special): New function.
11894 (arm_coff_make_msymbol_special): New function.
11895 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11896 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11897 (coff_sym_is_thumb): Delete declaration.
11898 (arm_elf_make_msymbol_special): Declare.
11899 (arm_coff_make_msymbol_special): Declare.
11900 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11901 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11902
039c5766
RE
119032002-02-06 Richard Earnshaw <rearnsha@arm.com>
11904
11905 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11906
119072002-02-06 Richard Earnshaw <rearnsha@arm.com>
11908
11909 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11910 * gdbarch.c gdbarch.h: Regenerate.
11911 * arch-utils.c (default_print_float_info): New function.
11912 * arch-utils.h (default_print_float_info): Prototype it.
11913 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11914 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11915 (PRINT_FLOAT_INFO): Document it.
11916
11917 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11918 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11919 (PRINT_FLOAT_INFO): Define.
11920
58fa08f0
PM
119212002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11922
aaa38bb5 11923 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
11924 Add typecast to sprintf argument to suppress a warning.
11925
7393af7c
PM
119262002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11927
58fa08f0 11928 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
11929 to allow easier handling of pass state.
11930 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11931 that gives exception name and address.
11932 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 11933 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 11934 exceptions added.
aaa38bb5
AJ
11935 (child_continue): Correctly report continue_status.
11936 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 11937 TARGET_SIGNAL_0 (new default value).
aaa38bb5 11938 (child_resume): consider sig argument passed to decide if
7393af7c
PM
11939 the exception should be passed to debuggee or not.
11940
6af4589c
MS
119412002-02-05 Michael Snyder <msnyder@redhat.com>
11942
11943 * regcache.c (fetch_register): Call target_fetch_register
11944 only if we don't call FETCH_PSEUDO_REGISTER.
11945 (store_register): Call target_store_register only if we
11946 don't call STORE_PSEUDO_REGISTER.
11947
a2cf933a
EZ
119482002-02-05 Elena Zannoni <ezannoni@redhat.com>
11949
11950 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11951 ELF_MAKE_MSYMBOL_SPECIAL.
11952 * gdbarch.c, gdbarch.h: Regenerate.
11953 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 11954 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
11955 * elfread.c (elf_symtab_read): Compile use of
11956 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11957 multiarched.
11958 * coffread.c (coff_symtab_read): Ditto, for
11959 COFF_MAKE_MSYMBOL_SPECIAL.
11960
6bb7be43
JB
119612002-02-05 Jim Blandy <jimb@redhat.com>
11962
11963 * solib-svr4.c (svr4_truncate_ptr): New function.
11964 (svr4_relocate_section_addresses): Do the address arithmetic with
11965 the appropriate truncation for target addresses, even when
11966 CORE_ADDR is larger than a target address.
11967
e18651ec
DJ
119682002-02-05 Daniel Jacobowitz <drow@mvista.com>
11969
11970 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11971 to (int *).
11972
6b2725be
DJ
119732002-02-05 Daniel Jacobowitz <drow@mvista.com>
11974
11975 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11976 code.
11977
fca9e603
DJ
119782002-02-05 Daniel Jacobowitz <drow@mvista.com>
11979
11980 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11981
6c537a52
DJ
119822002-02-05 Daniel Jacobowitz <drow@mvista.com>
11983
11984 * gdbserver/linux-low.c: Remove unused include files.
11985
d844cde6
DJ
119862002-02-05 Daniel Jacobowitz <drow@mvista.com>
11987
11988 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11989 (read_inferior_memory): Use it.
11990 (write_inferior_memory): Likewise.
11991
d07c63e7
DJ
119922002-02-05 Daniel Jacobowitz <drow@mvista.com>
11993
11994 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11995 grubbing through sys_errlist.
11996
da6d8c04
DJ
119972002-02-05 Daniel Jacobowitz <drow@mvista.com>
11998
11999 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12000
5b421780
PM
120012002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12002 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12003
9f60d481
AC
120042002-02-04 Andrew Cagney <ac131313@redhat.com>
12005
12006 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12007 (do_sfunc, set_cmd_sfunc): New functions.
12008
12009 * command.h (struct cmd_list_element): Add field func.
12010 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12011 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12012 * cli/cli-decode.h: Ditto.
12013
12014 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12015 (help_all, help_cmd_list): Ditto.
12016 (find_cmd, complete_on_cmdlist): Ditto.
12017 * top.c (execute_command): Ditto.
12018
12019 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12020 function.sfunc.
12021
12022 * infcmd.c (notice_args_read): Fix function signature.
12023
12024 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12025 * cli/cli-decode.c (add_set_cmd): Ditto.
12026 * utils.c (initialize_utils): Ditto.
12027 * maint.c (_initialize_maint_cmds): Ditto.
12028 * infrun.c (_initialize_infrun): Ditto.
12029 * demangle.c (_initialize_demangler): Ditto.
12030 * remote.c (add_packet_config_cmd): Ditto.
12031 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12032 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12033 * proc-api.c (_initialize_proc_api): Ditto.
12034 * kod.c (_initialize_kod): Ditto.
12035 * valprint.c (_initialize_valprint): Ditto.
12036 * top.c (init_main): Ditto.
12037 * infcmd.c (_initialize_infcmd): Ditto.
12038 * corefile.c (_initialize_core): Ditto.
12039 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12040 * arch-utils.c (initialize_current_architecture): Ditto.
12041 (_initialize_gdbarch_utils): Ditto.
12042 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12043
12044 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12045 * wince.c (_initialize_inftarg): Ditto.
12046 * symfile.c (_initialize_symfile): Ditto.
12047 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12048 * language.c (_initialize_language): Ditto.
12049 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12050
f9ba0717
MS
120512002-02-04 Michael Snyder <msnyder@redhat.com>
12052
12053 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12054
0c74b2a7
DJ
120552002-02-04 Daniel Jacobowitz <drow@mvista.com>
12056
12057 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12058 Add rules for building the register data files.
12059
c638789f
DJ
120602002-02-04 Daniel Jacobowitz <drow@mvista.com>
12061
12062 * regformats/regdat.sh: Add braces to the definition of
12063 expedite_regs_${arch}.
12064
db253027
DJ
120652002-02-04 Daniel Jacobowitz <drow@mvista.com>
12066
12067 * regformats/regdef.h (struct reg): Add comment describing the
12068 requirements for offset and size fields.
12069
206be19c
AS
120702002-02-04 Andreas Schwab <schwab@suse.de>
12071
12072 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12073 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12074
181c1381
RE
120752002-02-04 Richard Earnshaw <rearnsha@arm.com>
12076
12077 * gdbarch.sh (copyright): Update years in generated header.
12078 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12079 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12080 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12081 * dbxread.c: Likewise.
12082 * dwarfread.c: Likewise.
12083 * elfread.c: Likewise.
12084 * somread.c: Likewise.
12085
12086 * arm-tdep.c (arm_smash_text_address): New function.
12087 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12088
fa4ba8da
PM
120892002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12090
12091 Add support for hardware watchpoints on win32 native.
aaa38bb5 12092 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12093 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12094 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12095 of debug registers.
12096 (debug_registers_changed): New variable. Reflects when debug registers
12097 are changed and need to be written to inferior.
aaa38bb5 12098 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12099 was set, used when new threads are created.
12100 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12101 i386-nat code.
12102 (thread_rec): Set dr array if id is the thread of current_event .
12103 (child_continue, child_resume): Change the debug registers for all
12104 threads if debug_registers_changed.
12105 (child_add_thread): Change the debug registers if debug_registers_used.
12106 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12107 Link nm.h to new nm-cygwin.h file.
12108 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12109 of hardware registers.
12110
a73c86fb
AC
121112002-02-03 Andrew Cagney <ac131313@redhat.com>
12112
12113 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12114 Restore behavour broken by 2002-01-20 Andrew Cagney
12115 <ac131313@redhat.com> IEEE_FLOAT removal.
12116
acf5ed49
DJ
121172002-02-03 Daniel Jacobowitz <drow@mvista.com>
12118
12119 * c-valprint.c (c_val_print): Pass a proper valaddr to
12120 cp_print_class_method.
12121 * valops.c (search_struct_method): If there is only one method
12122 and args is NULL, return that method.
12123
493d28d5
DJ
121242002-02-03 Daniel Jacobowitz <drow@mvista.com>
12125
12126 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12127 accessing tag_name directly.
12128
7495dfdb
DJ
121292002-02-03 Daniel Jacobowitz <drow@mvista.com>
12130
12131 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12132 of accessing tag_name directly.
12133
dd6bda65
DJ
121342002-02-03 Daniel Jacobowitz <drow@mvista.com>
12135
12136 PR gdb/280
12137 * gdbtypes.c (replace_type): New function.
12138 * gdbtypes.h (replace_type): Add prototype.
12139 * stabsread.c (read_type): Use replace_type.
12140
88fe217c
RE
121412002-02-03 Richard Earnshaw <rearnsha@arm.com>
12142
12143 * Makefile.in (memattr.o): Add missing dependencies rule.
12144
e5d66720
PS
121452002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12146
12147 * breakpoint.c (break_at_finish_command): Really export.
12148 (break_at_finish_at_depth_command): Ditto.
12149 (tbreak_at_finish_command): Ditto.
12150 * hppa-tdep.c: Include completer.h.
12151 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12152 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12153
fffee0be
AC
121542002-02-01 Andrew Cagney <ac131313@redhat.com>
12155
12156 * utils.c (do_write): New function.
12157 (error_stream): Rewrite combining the code from error_begin and
12158 verror.
12159 (verror): Rewrite using error_stream.
12160 (error_begin): Delete function.
12161
255e7dbf
AC
121622002-02-01 Andrew Cagney <ac131313@redhat.com>
12163
12164 * utils.c (error_begin): Make static.
12165 * defs.h (error_begin): Delete declaration.
12166
12167 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12168 (decode_line_1): Use cplusplus_error instead of error_begin,
12169 cplusplus_hint and return_to_top_level.
12170 * coffread.c (coff_symfile_read): Use error instead of error_begin
12171 and return_to_top_level.
12172 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12173
ddfe3c15
AC
121742002-02-01 Andrew Cagney <ac131313@redhat.com>
12175
12176 * language.h (type_error, range_error): Make string parameter
12177 constant.
12178 * language.c (warning_pre_print): Delete extern declaration.
12179 * dwarfread.c (warning_pre_print): Ditto.
12180 * language.c (type_error, range_error): Rewrite to use verror and
12181 vwarning instead of warning_begin.
12182
03ac34d5
MS
121832002-02-01 Michael Snyder <msnyder@redhat.com>
12184
261c4ca2
MS
12185 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12186 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12187
e00d1dc8
AC
121882002-02-01 Andrew Cagney <ac131313@redhat.com>
12189
12190 * command.h (NO_FUNCTION): Delete macro.
12191 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12192 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12193 * tracepoint.c (_initialize_tracepoint): Ditto.
12194 * cli/cli-decode.c (add_set_cmd): Ditto.
12195 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12196
76b79d6e
DJ
121972002-02-01 Daniel Jacobowitz <drow@mvista.com>
12198
12199 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12200 Update ``this'' pointer when calling virtual functions.
12201
799f9e91
MS
122022002-02-01 Michael Snyder <msnyder@redhat.com>
12203
c7bd442c 12204 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12205 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12206
3cf384d4
DJ
122072002-02-01 Daniel Jacobowitz <drow@mvista.com>
12208
12209 * regformats/reg-arm.dat: New file.
12210 * regformats/reg-i386.dat: New file.
12211 * regformats/reg-ia64.dat: New file.
12212 * regformats/reg-m68k.dat: New file.
12213 * regformats/reg-mips.dat: New file.
12214 * regformats/reg-ppc.dat: New file.
12215 * regformats/reg-sh.dat: New file.
12216 * regformats/regdef.h: New file.
12217 * regformats/regdat.sh: New file.
12218
0defa245
RE
122192002-02-01 Richard Earnshaw <reanrsha@arm.com>
12220
12221 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12222 (arm_frame_args_address, arm_frame_locals_address): New functions.
12223 (arm_frame_num_args): New function.
12224 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12225 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12226 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12227
405f26e6
MS
122282002-01-31 Michael Snyder <msnyder@redhat.com>
12229
502fd408
MS
12230 * breakpoint.c (break_at_finish_command): Export.
12231 (break_at_finish_at_depth_command): Export.
12232 (tbreak_at_finish_command): Export.
d6020d45 12233 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12234 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12235 "txbreak" commands, which are HPPA specific.
502fd408 12236
7d35e135
MS
12237 * printcmd.c (disassemble_command): Remove an ancient
12238 artifact of an old merge.
12239
aaa38bb5 12240 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12241 Define enum constant values for overlay mode.
12242 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12243 (overlay_is_mapped, overlay_auto_command,
12244 overlay_manual_command): Ditto.
d874f1e2 12245
aaa38bb5
AJ
12246 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12247 breakpoint_here_p, breakpoint_inserted_here_p,
12248 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12249 describe_other_breakpoints, check_duplicates, clear_command):
12250 Coding standard fixes.
12251
8add0441 12252 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12253 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12254 code: check bfd SEC_READONLY flag for section.
12255
e351066e
AC
122562002-01-31 Andrew Cagney <ac131313@redhat.com>
12257
7d35e135 12258 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12259
8a48e967
DJ
122602002-01-30 Daniel Jacobowitz <drow@mvista.com>
12261
12262 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12263 data symbols, since we search based on textlow and texthigh.
12264 (find_pc_sect_symtab): Likewise.
12265
f5a96129
AC
122662002-01-30 Andrew Cagney <ac131313@redhat.com>
12267
12268 * defs.h (vwarning): Declare.
f5a96129
AC
12269 * utils.c (vwarning): New function.
12270 (warning): Call vwarning.
12271 (warning_begin): Delete function.
12272
12273 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12274 the warning message.
12275 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12276 warning_begin.
12277
cefd4ef5
MS
122782002-01-30 Michael Snyder <msnyder@redhat.com>
12279
1a703748
MS
12280 * NEWS: Mention "set trust-readonly-sections" command.
12281 Mention generate-core-file command.
cefd4ef5 12282
3a11626d
MS
122832002-01-15 Michael Snyder <msnyder@redhat.com>
12284
12285 * target.c: New command, "set trust-readonly-sections on".
12286 (do_xfer_memory): Honor the suggestion to trust readonly sections
12287 by reading them from the object file instead of from the target.
12288 (initialize_targets): Register command "set trust-readonly-sections".
12289
d1c7e53b
AC
122902002-01-29 Andrew Cagney <ac131313@redhat.com>
12291
12292 * parse.c (target_map_name_to_register): Simplify, search regs and
12293 pseudo-regs using a single loop.
12294
e2c9a72c
AC
122952002-01-30 Andrew Cagney <ac131313@redhat.com>
12296
12297 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12298
69824b4e
MK
122992002-01-15 Rodney Brown <rbrown64@csc.com.au>
12300
12301 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12302 * config/i386/i386v42mp.mh: Add i387-nat.o .
12303 * i386v4-nat.c: Include i387-nat.h.
12304 (supply_fpregset): Use i387_supply_fsave.
12305 (fill_fpregset): Use i387_fill_fsave.
12306
6eb69eab
RE
123072002-01-30 Richard Earnshaw <rearnsha@arm.com>
12308
12309 * arm-tdep.c (arm_call_dummy_words): Define.
12310 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12311 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12312 (CALL_DUMMY_WORDS): Define.
12313 (arm_call_dummy_words): Declare.
12314 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12315 (arm_linux_call_dummy_words): Declare.
12316
9852326a
AS
123172002-01-30 Andreas Schwab <schwab@suse.de>
12318
12319 * m68klinux-nat.c: Fix last change to use regcache_collect
12320 instead of referencing registers[] directly.
12321
977a3030
AC
123222002-01-29 Andrew Cagney <ac131313@redhat.com>
12323
12324 * parse.c (target_map_name_to_register): Delete code wrapped in
12325 #ifdef REGISTER_NAME_ALIAS_HOOK.
12326
2076c72b
MS
123272002-01-28 Michael Snyder <msnyder@redhat.com>
12328
12329 * regcache.c (legacy_read_register_gen): Need to be able to
12330 read pseudo-register as well as real register.
12331 (legacy_write_register_gen): Ditto.
12332
8fcc723b
AC
123332002-01-28 Andrew Cagney <ac131313@redhat.com>
12334
12335 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12336 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12337 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12338 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12339 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12340 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12341 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12342 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12343 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12344 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12345 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12346 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12347 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12348 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12349 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12350 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12351 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12352 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12353 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12354 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12355
afe64c1a
AC
123562002-01-28 Andrew Cagney <ac131313@redhat.com>
12357
12358 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12359 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12360 (initialize_current_architecture): Update target_byte_order using
12361 information from BFD.
aaa38bb5 12362 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12363 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12364
75bc7ddf
AC
123652002-01-28 Andrew Cagney <ac131313@redhat.com>
12366
12367 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12368 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12369
12370 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12371 #ifdef INVALID_FLOAT.
12372 * infcmd.c (do_registers_info): Ditto.
12373 * values.c (unpack_double): Ditto. Add comment.
12374
12375 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12376 already commented out.
12377
0280a90a
AS
123782002-01-26 Andreas Schwab <schwab@suse.de>
12379
12380 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12381 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12382 registers and add support for PTRACE_GETREGS.
12383
7072a954
AC
123842002-01-24 Andrew Cagney <ac131313@redhat.com>
12385
12386 GDB 5.1.1 released from 5.1 branch.
12387 * NEWS: Add 5.1.1 news.
12388 * README: Sync with 5.1 branch.
12389
86f902e0
FF
123902002-01-23 Fred Fish <fnf@redhat.com>
12391
12392 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12393 stabstring on initial malloc. Reallocing will copy it for us,
12394 if necessary.
12395
8af51c36
EZ
123962002-01-23 Elena Zannoni <ezannoni@redhat.com>
12397
aaa38bb5 12398 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12399 (HFILES_NO_SRCDIR): Remove hpread.h.
12400 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12401 (hpread.o): Update dependencies.
12402 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12403
12404 * hp-psymtab-read.c: Remove file.
12405 * hp-symtab-read.c: Remove file.
12406 * hpread.h: Remove file.
12407
12408 * hpread.c: Merge all contents of hp-psymtab-read.c,
12409 hp-symtab-read.c and hpread.h into this file, as it was prior to
12410 January 1999.
12411
12412 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12413 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12414 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12415 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12416
dc5cfeb6
EZ
124172002-01-23 Elena Zannoni <ezannoni@redhat.com>
12418
12419 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12420 fill_gregset): Call gdbarch_tdep() just once, assign result to
12421 variable and use that, instead of calling the function several
12422 times.
12423
ea87b71b
AO
124242002-01-24 Alexandre Oliva <aoliva@redhat.com>
12425
12426 * configure.host: Accept sparcv9 as alias for sparc64.
12427 * configure.tgt: Likewise.
12428
13fc0c2f
KB
124292002-01-22 Kevin Buettner <kevinb@redhat.com>
12430
12431 * solib-aix5.c (build_so_list_from_mapfile)
12432 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12433 arguments is not reversed.
12434 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12435 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12436
7bd872fe
EZ
124372002-01-22 Elena Zannoni <ezannoni@redhat.com>
12438
12439 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12440 modified version of obsolete sh_fetch_pseudo_register.
12441 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12442 (sh4_register_read): New function.
12443 (sh_pseudo_register_write): New function. Renamed and modified
12444 version of obsolete sh_store_pseudo_register.
12445 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12446 (sh4_register_write): New function.
12447 (sh_gdbarch_init): Remove setting of gdbarch function
12448 fetch_pseudo_register and store_pseudo_register. Remove setting of
12449 register_convert_to_raw, register_convert_to_virtual,
12450 register_convertible.
12451 (sh_sh4_register_convertible): Delete. No longer needed. All is
12452 taken care by architecture specific functions
12453 register_read/register_write.
12454 (sh_sh4_register_convert_to_virtual): Make static.
12455 (sh_sh4_register_convert_to_raw): Ditto.
12456
069e84fd
AC
124572002-01-22 Andrew Cagney <ac131313@redhat.com>
12458
12459 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12460 (floatformat_is_nan, floatformat_mantissa): Ditto.
12461
12462 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12463 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12464 builtin_type_ieee_double_little,
12465 builtin_type_ieee_double_littlebyte_bigword,
12466 builtin_type_m68881_ext, builtin_type_i960_ext,
12467 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12468 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12469 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12470 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12471
211a4f69
CV
124722002-01-22 Corinna Vinschen <vinschen@redhat.com>
12473
12474 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12475 parameter. Set frameless flag if it exists and depended of
12476 whether the scanned function is frameless or not.
12477 (xstormy16_skip_prologue): If function is frameless, return
12478 result of xstormy16_scan_prologue().
12479 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12480 call.
12481
f81353e4
EZ
124822002-01-21 Elena Zannoni <ezannoni@redhat.com>
12483
12484 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12485 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12486 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12487 sh_sh4_register_byte, sh_sh4_register_raw_size,
12488 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12489 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12490 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12491 sh_store_pseudo_register, sh_do_pseudo_register): Call
12492 gdbarch_tdep() just once, assign result to variable and use that,
12493 instead of calling the function several times.
12494
63c73a17
MK
124952002-01-20 Mark Kettenis <kettenis@gnu.org>
12496
12497 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12498 macros instead of LAST_FPU_CTRL_REGNUM.
12499 (store_register): Likewise.
12500
39ad761d
JB
125012002-01-21 Jim Blandy <jimb@redhat.com>
12502
12503 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12504 is up-to-date before running the program, not just when a program
12505 exits.
12506
3d74b771
FF
125072002-01-21 Fred Fish <fnf@redhat.com>
12508
12509 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12510 when we have found all instructions we are looking for.
12511
966fbf70
RE
125122002-01-21 Richard Earnshaw <rearnsha@arm.com>
12513
12514 * arm-tdep.c (arm_register_name): New function.
12515 (arm_registers_names): Make static.
12516 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12517 (arm_register_name): Declare.
12518 (REGISTER_NAME): Use it.
12519
c3b4394c
RE
125202002-01-21 Richard Earnshaw <rearnsha@arm.com>
12521 Kevin Buettner <kevinb@redhat.com>
12522
12523 Convert arm targets to new FRAME interface.
12524 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12525 (arm_frame_find_save_regs): Delete.
12526 (arm_frame_init_saved_regs): New.
12527 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12528 Allocate extra_info as required. Convert all uses of fsr.regs
12529 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12530 to use extra_info.
12531 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12532 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12533 (check_prologue_cache, save_prologue_cache): Likewise.
12534 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12535 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12536 (FRAME_FIND_SAVED_REGS): Delete.
12537 (arm_frame_find_saved_regs): Delete prototype.
12538 (arm_frame_init_saved_regs): New prototype.
12539 (FRAME_INIT_SAVED_REGS): Define.
12540
61d99182
AC
125412002-01-20 Andrew Cagney <ac131313@redhat.com>
12542
12543 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12544
6aaea291
AC
125452002-01-20 Andrew Cagney <ac131313@redhat.com>
12546
12547 From Jeff Law <law@redhat.com>:
12548 * infttrace.c: Include <sys/pstat.h>.
12549 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12550 exec file if the ttrace equivalent fails.
12551
15f698d2
AC
125522002-01-20 Andrew Cagney <ac131313@redhat.com>
12553
12554 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12555 (closeLogFile): Ditto.
12556
f86ddd7c
MC
125572002-01-20 Michael Chastain <mec@shout.net>
12558
12559 * top.c (print_gdb_version): Bump copyright year to 2002.
12560
904507ce
AC
125612002-01-20 Andrew Cagney <ac131313@redhat.com>
12562
12563 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12564 Zannoni and Eli Zaretskii.
12565
d7f0b9ce
DJ
125662002-01-20 Daniel Jacobowitz <drow@mvista.com>
12567
12568 * buildsym.c: Update copyright years.
12569 * c-typeprint.c: Likewise.
12570 * dwarf2read.c: Likewise.
12571 * f-typeprint.c: Likewise.
12572 * gdbtypes.c: Likewise.
12573 * gdbtypes.h: Likewise.
12574 * hp-symtab-read.c: Likewise.
12575 * hpread.c: Likewise.
12576 * mdebugread.c: Likewise.
12577 * p-typeprint.c: Likewise.
12578
3fd3d7d2
AC
125792002-01-20 Andrew Cagney <ac131313@redhat.com>
12580
12581 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12582 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12583 byte-order selectable.
12584 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12585 * arch-utils.c: Ditto.
12586 (set_endian): Ditto.
12587 (set_endian_from_file): Ditto.
12588 * gdbserver/low-sim.c (create_inferior): Ditto.
12589 * gdbarch.sh: Ditto.
12590 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12591 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12592 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12593 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12594 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12595 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12596 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12597 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12598 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12599 macro definition.
12600 * config/mips/tm-wince.h: Remove #undef of macro
12601 TARGET_BYTE_ORDER_SELECTABLE.
12602 * config/sh/tm-wince.h: Ditto.
12603
b02dede2
DJ
126042002-01-20 Daniel Jacobowitz <drow@mvista.com>
12605
12606 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12607 member function fields. Add accessor macro
12608 TYPE_FN_FIELD_ARTIFICIAL.
12609 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12610 * c-typeprint.c (c_type_print_base): Skip artificial member
12611 functions.
12612
c3643761
DJ
126132002-01-20 Daniel Jacobowitz <drow@mvista.com>
12614
12615 * f-typeprint.c: Delete unused function f_type_print_args.
12616 * p-typeprint.c: Delete unused function pascal_type_print_args.
12617
8176bb6d
DJ
126182002-01-20 Daniel Jacobowitz <drow@mvista.com>
12619
12620 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12621 comment. Add ``artificial'' to ``union field_location''.
12622
12623 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12624
12625 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12626 * mdebugread.c (parse_symbol): Likewise.
12627 * stabsread.c (define_symbol): Likewise.
12628 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12629 initializing TYPE_FIELD_BITPOS to n (obsolete).
12630 (hpread_doc_function_type): Likewise.
12631 * hpread.c (hpread_function_type): Likewise.
12632
7fd60527
AC
126332002-01-20 Andrew Cagney <ac131313@redhat.com>
12634
12635 * configure.in (host_makefile_frag): Only require a host makefile
12636 fragment when a native build.
12637 * configure: Re-generate.
12638
c2f05ac9
AC
126392002-01-20 Andrew Cagney <ac131313@redhat.com>
12640
12641 * doublest.h (floatformat_from_type): Declare.
12642 * doublest.c (floatformat_from_type): New function.
12643 (convert_typed_floating): Use.
12644
12645 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12646 call to function floatformat_from_type.
12647
12648 * gdbarch.sh (IEEE_FLOAT): Delete.
12649 * gdbarch.h, gdbarch.c: Re-generate.
12650 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12651 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12652 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12653 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12654 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12655 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12656 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12657 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12658 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12659 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12660 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12661 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12662
12663 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12664 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12665 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12666 * sh-tdep.c (sh_gdbarch_init): Ditto.
12667 * mips-tdep.c (mips_gdbarch_init): Ditto.
12668 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12669 * cris-tdep.c (cris_gdbarch_init): Ditto.
12670
abf22e64
AJ
126712002-01-20 Jiri Smid <smid@suse.cz>
12672
12673 * configure.host, configure.tgt: Support x86-64.
12674 * NEWS: Note new target x86-64.
12675
b7c4cbf8
AJ
12676 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12677 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12678 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12679 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12680 x86-64-linux-nat.o): Fix dependencies.
12681
82600034
AC
126822002-01-19 Andrew Cagney <ac131313@redhat.com>
12683
12684 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12685 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12686 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12687 * config/sparc/xm-sun4os4.h: Delete file.
12688 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12689
bbe5c628
AC
126902002-01-19 Andrew Cagney <ac131313@redhat.com>
12691
12692 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12693 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12694 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12695 * config/i386/i386lynx.mh (XM_FILE): Delete.
12696 * config/rs6000/xm-rs6000ly.h: Delete file.
12697 * config/sparc/xm-sparclynx.h: Delete file.
12698 * config/m68k/xm-m68klynx.h: Delete file.
12699 * config/i386/xm-i386lynx.h: Delete file.
12700 * config/xm-lynx.h: Delete file.
12701 * config/djgpp/fnchange.lst: Update.
12702
f8453e34
JT
127032002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12704
12705 * alpha-tdep.c (alpha_register_byte): New function.
12706 (alpha_register_raw_size): Ditto.
12707 (alpha_register_virtual_size): Ditto.
12708 (alpha_skip_prologue_internal): Renamed from
12709 alpha_skip_prologue.
12710 (alpha_skip_prologue): New version that calls
12711 alpha_skip_prologue_internal.
12712 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12713 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12714 second argument from alpha_skip_prologue.
12715 (REGISTER_BYTE): Use alpha_register_byte.
12716 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12717 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12718 (FRAMELESS_FUNCTION_INVOCATION): Use
12719 generic_frameless_function_invocation_not.
12720 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12721 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12722
52d9e613
AC
127232002-01-19 Andrew Cagney <ac131313@redhat.com>
12724
12725 * config/mips/xm-news-mips.h: Delete file.
12726 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12727
12728 * config/m88k/xm-m88k.h: Delete file.
12729 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12730 * config/m88k/xm-delta88v4.h: Ditto.
12731 * config/m88k/xm-delta88.h: Ditto.
12732
12733 * config/alpha/xm-fbsd.h: Delete file.
12734 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12735
12736 * config/sparc/xm-sparc.h: Delete file.
12737 * Makefile.in (xm-sun4os4.h): Delete dependency.
12738 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12739 * config/sparc/xm-sun4os4.h: Ditto.
12740 * config/sparc/xm-linux.h: Ditto.
12741
12742 * config/i386/xm-windows.h: Delete file.
12743
2d1b2124
AC
127442002-01-19 Andrew Cagney <ac131313@redhat.com>
12745
12746 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12747 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12748
ee1f65f0
JT
127492002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12750
12751 * alpha-tdep.c (alpha_call_dummy_words): New.
12752 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12753 (CALL_DUMMY_P): Define.
12754 (CALL_DUMMY_WORDS): Define.
12755 (SIZEOF_CALL_DUMMY_WORDS): Define.
12756
98081e55
PB
127572002-01-19 Per Bothner <per@bothner.com>
12758
12759 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12760 isn't NULL, which can happen with some gcj-3.x-produced code.
12761
0d056799
JT
127622002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12763
12764 * alpha-tdep.c (alpha_register_virtual_type): New function.
12765 (alpha_init_frame_pc_first): Ditto.
12766 (alpha_fix_call_dummy): Ditto.
12767 (alpha_store_struct_return): Ditto.
12768 (alpha_extract_struct_value_address): Ditto.
12769 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12770 alpha_register_virtual_type.
12771 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12772 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12773 alpha_extract_struct_value_address.
12774 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12775 (INIT_FRAME_PC): Use init_frame_pc_noop.
12776 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12777
4604bcad
MK
127782002-01-19 Mark Kettenis <kettenis@gnu.org>
12779
12780 * i386gnu-nat.c: Include "i386-tdep.h".
12781 (fetch_fpregs): Simplify code dealing with uninitialized floating
12782 point states such that it doesn't require FP7_REGNUM.
12783
140f9984
JT
127842002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12785
abf22e64
AJ
12786 * alpha-tdep.c (frame_extra_info): New.
12787 (alpha_find_saved_regs): Make static. Use
140f9984
JT
12788 frame->extra_info.
12789 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
12790 (alpha_frame_saved_pc): Use frame->extra_info.
12791 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12792 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
12793 (init_extra_frame_info): Rename to...
12794 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 12795 (alpha_print_extra_frame_info): New function.
140f9984
JT
12796 (alpha_frame_locals_address): Ditto.
12797 (alpha_frame_args_address): Ditto.
abf22e64 12798 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
12799 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12800 alpha_frame_args_address.
abf22e64 12801 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 12802 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
12803 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12804 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
12805 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12806 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12807
d734c450
JT
128082002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12809
12810 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12811 (alpha_cannot_fetch_register): Ditto.
12812 (alpha_cannot_store_register): Ditto.
12813 (alpha_register_convertible): Ditto.
12814 (alpha_use_struct_convention): Ditto.
12815 * config/alpha/tm-alpha.h: Update copyright years.
12816 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12817 (INNER_THAN): Use core_addr_lessthan.
12818 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12819 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12820 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12821 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12822 (FRAME_CHAIN): Remove unnecessary cast.
12823
b4ceaee6
AC
128242002-01-18 Andrew Cagney <ac131313@redhat.com>
12825
12826 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12827 obsolete.
12828
0a65a603
AC
128292002-01-18 Andrew Cagney <ac131313@redhat.com>
12830
12831 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12832 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12833 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12834 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12835 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12836 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12837 * x86-64-linux-nat.c: Ditto.
12838
636a6dfc
JT
128392002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12840
abf22e64 12841 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
12842 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12843 (REGISTER_NAME): Define.
12844
acceddb6
JT
128452002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12846
12847 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12848
ec32e4be
JT
128492002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12850
12851 * alpha-tdep.c: Update copyright years.
12852 (alpha_next_pc): New function.
12853 (alpha_software_single_step): Ditto.
12854 * config/alpha/tm-alpha.h: Add prototype for
12855 alpha_software_single_step.
12856
e771a871
JT
128572002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12858
12859 * alphabsd-nat.c: Update copyright years.
12860 (fill_gregset): Use regcache_collect.
12861 (fill_fpregset): Likewise.
12862 (fetch_inferior_registers): Only fetch integer registers
12863 if requested to do so.
12864 (store_inferior_registers): Only store integer registers
12865 if requested to do so.
12866
7708fa01
AC
128672002-01-17 Andrew Cagney <ac131313@redhat.com>
12868
12869 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12870 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12871 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12872 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12873 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12874 * config/arm/linux.mh (XDEPFILES): Delete.
12875 * config/arm/nbsd.mh (XDEPFILES): Delete.
12876 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12877 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12878 * config/i386/i386m3.mh (XDEPFILES): Delete.
12879 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12880 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12881 * config/i386/fbsd.mh (XDEPFILES): Delete.
12882 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12883 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12884 * config/i386/i386v4.mh (XDEPFILES): Delete.
12885 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12886 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12887 * config/i386/i386aix.mh (XDEPFILES): Delete.
12888 * config/i386/go32.mh (XDEPFILES): Delete.
12889 * config/i386/cygwin.mh (XDEPFILES): Delete.
12890 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12891 * config/i386/i386mach.mh (XDEPFILES): Delete.
12892 * config/i386/i386v32.mh (XDEPFILES): Delete.
12893 * config/i386/linux.mh (XDEPFILES): Delete.
12894 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12895 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12896 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12897 * config/i386/i386sco.mh (XDEPFILES): Delete.
12898 * config/i386/i386v.mh (XDEPFILES): Delete.
12899 * config/i386/nbsd.mh (XDEPFILES): Delete.
12900 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12901 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12902 * config/i386/symmetry.mh (XDEPFILES): Delete.
12903 * config/i386/obsd.mh (XDEPFILES): Delete.
12904 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12905 * config/ia64/linux.mh (XDEPFILES): Delete.
12906 * config/ia64/aix.mh (XDEPFILES): Delete.
12907 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12908 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12909 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12910 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12911 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12912 * config/m68k/linux.mh (XDEPFILES): Delete.
12913 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12914 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12915 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12916 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12917 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12918 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12919 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12920 * config/m88k/delta88.mh (XDEPFILES): Delete.
12921 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12922 * config/m88k/m88k.mh (XDEPFILES): Delete.
12923 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12924 * config/mips/linux.mh (XDEPFILES): Delete.
12925 * config/mips/irix6.mh (XDEPFILES): Delete.
12926 * config/mips/irix5.mh (XDEPFILES): Delete.
12927 * config/mips/irix4.mh (XDEPFILES): Delete.
12928 * config/mips/irix3.mh (XDEPFILES): Delete.
12929 * config/mips/decstation.mh (XDEPFILES): Delete.
12930 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12931 (NATDEPFILES): Move core-aout.o to here.
12932 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12933 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12934 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12935 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12936 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12937 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12938 * config/pa/hpux11.mh (XDEPFILES): Delete.
12939 * config/powerpc/aix.mh (XDEPFILES): Delete.
12940 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12941 * config/powerpc/linux.mh (XDEPFILES): Delete.
12942 * config/romp/rtbsd.mh: Rename XDEPFILES.
12943 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12944 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12945 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12946 * config/s390/s390.mh (XDEPFILES): Delete.
12947 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12948 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12949 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12950 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12951 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12952 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12953 * config/sparc/linux.mh (XDEPFILES): Delete.
12954 * config/vax/vaxult.mh (XDEPFILES): Delete.
12955 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12956 * Makefile.in (DEPFILES): Remove XDEPFILES.
12957
375fc983
AC
129582002-01-17 Andrew Cagney <ac131313@redhat.com>
12959
12960 * utils.c (internal_verror): Fix comments, default is yes not no.
12961 Update queries to match. Default to quit and dump core.
12962
8926118c
AC
129632002-01-17 Andrew Cagney <ac131313@redhat.com>
12964
12965 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12966 copyright.
12967 * defs.h, event-top.c, gdbcmd.h: Ditto.
12968 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12969 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12970 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12971 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12972 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12973 * mi/mi-main.c:Ditto.
12974
12975 * stack.c, symfile.c: Update copyright.
12976
45b7b345
DJ
129772002-01-17 Daniel Jacobowitz <drow@mvista.com>
12978
db728ff7
DJ
12979 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12980 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12981 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12982 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 12983
db728ff7
DJ
129842002-01-17 Daniel Jacobowitz <drow@mvista.com>
12985
12986 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12987 * gdbserver/low-lynx.c (myattach): Likewise.
12988 * gdbserver/low-nbsd.c (myattach): Likewise.
12989 * gdbserver/low-sim.c (myattach): Likewise.
12990 * gdbserver/low-sparc.c (myattach): Likewise.
12991 * gdbserver/low-sun3.c (myattach): Likewise.
12992
12993 * gdbserver/low-linux.c (myattach): New function.
45b7b345 12994
db728ff7 12995 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
12996 (main): Handle "--attach".
12997
8de3c354
AC
129982002-01-16 Andrew Cagney <ac131313@redhat.com>
12999
13000 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13001 maintainer.
13002
b0129042
DJ
130032002-01-15 Daniel Jacobowitz <drow@mvista.com>
13004
13005 * c-typeprint.c (is_type_conversion_operator): Add additional
13006 check for non-conversion operators.
13007
ba8679fb 130082002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13009
13010 * linux-proc.c: Add "info proc" command, a la procfs.c.
13011 (read_mapping): New function, abstract and re-use code.
13012 (linux_find_memory_regions): Use new func read_mapping.
13013 (linux_info_proc_cmd): New function, implement "info proc".
13014 (_initialize_linux_proc): Add new command "info proc".
13015
e4f9b4d5
MS
130162002-01-15 Michael Snyder <msnyder@redhat.com>
13017
13018 * symfile.c (generic_load): Use bfd_map_over_sections method
13019 instead of manipulating bfd structure members directly.
13020 (add_section_size_callback): New function, bfd sections callback
13021 used by generic_load.
13022 (load_sections_callback): New function, bfd sections callback
13023 used by generic_load.
13024
08cf96df
EZ
130252002-01-15 Elena Zannoni <ezannoni@redhat.com>
13026
abf22e64 13027 [Based on work by Jim Blandy]
08cf96df
EZ
13028 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13029 (builtin_type_vec128): Export.
13030 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13031 types.
13032 (builtin_type_vec128): New builtin type for 128 bit vector
13033 registers.
13034 (build_gdbtypes): Initialize builtin_type_v16qi and
13035 builtin_type_v8hi. Create the vec128 register builtin type
13036 structure.
13037 (build_builtin_type_vec128): New function.
abf22e64 13038 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13039 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13040 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13041 AltiVec register to new builtin type.
13042
d7242108
DJ
130432001-01-15 Daniel Jacobowitz <drow@mvista.com>
13044
13045 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13046 to make_cv_type.
13047
4ee3352d
AC
130482002-01-14 Andrew Cagney <ac131313@redhat.com>
13049
13050 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13051 CLEAN_UP_REGISTER_VALUE.
13052 * regcache.c (supply_register): Update only call.
13053
f015b2e7
AC
130542002-01-14 Andrew Cagney <ac131313@redhat.com>
13055
13056 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13057 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13058 a29k-*-vxworks* targets as obsolete.
13059
356ae49d
MS
130602002-01-14 Michael Snyder <msnyder@redhat.com>
13061
13062 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13063 until we can resolve portability issues.
13064 * gregset.h: Remove references to fpxregs.
13065 * gcore.c (gcore_command): Initialize note_sec to NULL.
13066
ade8f45e
AC
130672002-01-13 Andrew Cagney <ac131313@redhat.com>
13068
13069 * signals.c (target_signal_to_name): Rewrite. Only use
13070 signals[].name when in bounds and non-NULL.
abf22e64 13071
89c49e7a
AC
130722002-01-13 Andrew Cagney <ac131313@redhat.com>
13073
13074 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13075 * signals.c (target_signal_to_name): Verify that SIG is within the
13076 bounds of the signals array.
13077
4daa9f9f
AC
130782002-01-13 Andrew Cagney <ac131313@redhat.com>
13079
13080 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13081
ba4bbdcb
KS
130822002-01-13 Keith Seitz <keiths@redhat.com>
13083
13084 * stack.c (print_frame_info_base): Print the frame's pc
13085 only if when print_frame_info_listing_hook is not defined.
13086
575bbeb6
KS
130872002-01-13 Keith Seitz <keiths@redhat.com>
13088
13089 * varobj.c (varobj_set_value): Make sure that there were no
13090 errors evaluating the object before attempting to set its
13091 value.
13092 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13093 so this offset adjustment is no longer necessary.
13094 (create_child): Don't set the error flag if the child is
13095 a CPLUS_FAKE_CHILD.
13096 (value_of_child): If value_fetch_lazy fails, return NULL
13097 so that callers will be notified that an error occurred.
13098 (c_value_of_variable): Delay check of variable's validity
13099 until later. We actually want all structs and unions to have
13100 the value "{...}".
13101 Do not return "???" for variables which could not be evaluated.
13102 This error condition must be returned to the caller so that it
13103 can get the error condition from gdb.
13104 (cplus_name_of_child): Adjust index for vptr before figuring
13105 out the name of the child.
13106 (cplus_value_of_child): If a child's (real) parent is not valid,
13107 don't even bother trying to give a value for it. Just return
13108 an error. Change all instances in this function.
13109 (cplus_type_of_child): If our parent is one of the "fake"
13110 parents, we need to get at the type of the real parent, and
13111 derive the child's true type using this information.
13112
b76898ab
AC
131132002-01-13 Andrew Cagney <ac131313@redhat.com>
13114
13115 From 2002-01-09 John Marshall <johnm@falch.net>:
13116 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13117 sources.redhat.com, and tweak some related URLs which had
13118 suffered from linkrot.
13119
b6649e88
AC
131202002-01-13 Andrew Cagney <ac131313@redhat.com>
13121
13122 From Jeff law:
13123 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13124 structures passed in registers.
13125
82cc5033
EZ
131262002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13127
13128 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13129 white space which prevented compilation. Reported by DSK
13130 <dsk@student.unsw.edu.au>.
13131
ba5f2f8a
MS
131322002-01-11 Michael Snyder <msnyder@redhat.com>
13133
fbd35540
MS
13134 * symfile.c (build_section_addr_info_from_section_tab):
13135 Use bfd access method instead of manipulating bfd directly.
13136 (syms_from_objfile): Ditto.
13137 (simple_overlay_update_1): Ditto.
13138 (simple_overlay_update): Ditto.
13139 (generic_load): Ditto.
13140 (overlay_unmapped_address): FIXME comment, bfd access methods.
13141 (sections_overlap): FIXME comment, bfd access methods.
13142 (pc_in_mapped_range): FIXME comment, bfd access methods.
13143 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13144 (section_is_mapped): FIXME comment, bfd access methods.
13145 (section_is_overlay): FIXME comment, bfd access methods.
13146
ba5f2f8a
MS
13147 * symfile.c (generic_load): Whitespace and long line cleanups.
13148 Remove duplicate variable, change several local variables to
13149 more appropriate data types.
13150 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13151
17df2af6
AC
131522002-01-12 Andrew Cagney <ac131313@redhat.com>
13153
13154 From Peter Schauer:
13155 * language.c (longest_local_hex_string_custom): Use phex_nz to
13156 convert NUM to a hex string.
13157
ec920329
EZ
131582002-01-12 Elena Zannoni <ezannoni@redhat.com>
13159
13160 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13161 the function.
538a76d6 13162 Update Copyright year.
ec920329 13163
3abd2e01
AC
131642002-01-12 Andrew Cagney <ac131313@redhat.com>
13165
13166 * language.c (longest_raw_hex_string): Delete unused function.
13167
b21b22e0
PS
131682002-01-11 Petr Sorfa <petrs@caldera.com>
13169
13170 * MAINTAINERS (write-after-approval): Add myself.
13171 * dwarf2read.c (read_tag_string_type): Handling of
13172 DW_AT_byte_size.
13173 (read_tag_string_type): FORTRAN fix to prevent propagation of
13174 first string size.
13175 (set_cu_language): Handling of DW_LANG_Fortran95
13176
747fe712
RE
131772002-01-11 Richard Earnshaw <rearnsha@arm.com>
13178
13179 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13180 GETPID(inferior_ptid).
13181 (store_inferior_registers): Likewise.
13182
f1bea926
JM
131832002-01-10 Jason Merrill <jason@redhat.com>
13184
13185 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13186 Fix DW_OP_minus.
13187
ae940673
AC
131882002-01-10 Andrew Cagney <ac131313@redhat.com>
13189
13190 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13191 and bfd/elf32-sh-nbsd.c.
13192
00546b04
MS
131932002-01-10 Michael Snyder <msnyder@redhat.com>
13194
352ed7b4
MS
13195 * NEWS: Mention --pid and corefile/proc-id behavior change.
13196
c18be923
MS
13197 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13198 * gcore.c: Include cli/cli-decode.h instead of command.h.
13199
00546b04
MS
13200 * main.c (captured_main): Add new command line option "--pid".
13201 If the second command line argument (following the symbol-file)
13202 begins with a digit, try to attach to it before trying to open
13203 it as a corefile.
13204 (print_gdb_help): Document the "--pid" argument.
13205
db60ec62
EZ
132062002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13207
13208 * completer.c (command_completer): New function.
13209
13210 * completer.h <command_completer>: Add prototype.
13211
13212 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13213 completer for the "help" command.
13214
39c22d1a
JM
132152002-01-09 Jason Merrill <jason@redhat.com>
13216
13217 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13218
c564377f
MS
132192002-01-09 Michael Snyder <msnyder@redhat.com>
13220
975aec09
MS
13221 * i386-linux-nat.c (fill_fpxregset): Make global.
13222 (store_fpxregset): Ditto.
13223
db4a10fa
MS
13224 * gregset.h (gdb_fpxregset_t): Define.
13225 (supply_fpxregset): Prototype.
13226 (fill_fpxregset): Prototype.
13227
c564377f
MS
13228 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13229
c3d45d70
RE
132302002-01-09 Richard Earnshaw <rearnsha@arm.com>
13231
13232 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13233 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13234 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13235
fcc87af1
AC
132362002-01-09 Andrew Cagney <ac131313@redhat.com>
13237
13238 * MAINTAINERS: Update target maintainer rules so that any
13239 Maintainer can approve a tested patch for a maintenance-only
13240 target.
13241
dd96c05b
RE
132422002-01-09 Richard Earnshaw <rearnsha@arm.com>
13243
d4297db9 13244 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13245
d4297db9 13246 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13247 IN_SIGTRAMP.
13248
145fdc6e
MS
132492002-01-08 Michael Snyder <msnyder@redhat.com>
13250
13251 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13252 real name of the executable, rather than the /proc name.
13253
be4d1333
MS
132542002-01-03 Michael Snyder <msnyder@redhat.com>
13255
13256 Implement a "generate-core-file" command in gdb, save target state.
13257 * gcore.c: New file. Implement new command 'generate-core-file'.
13258 Save a corefile image of the current state of the inferior.
13259 * linux-proc.c: Add linux-specific code for saving corefiles.
13260 * target.h (struct target_ops): Add new target vectors for saving
13261 corefiles; to_find_memory_regions and to_make_corefile_notes.
13262 (target_find_memory_regions): New macro.
13263 (target_make_corefile_notes): New macro.
13264 * target.c (update_current_target): Inherit new target methods.
13265 (dummy_find_memory_regions): New place-holder method.
13266 (dummy_make_corefile_notes): New place-holder method.
13267 (init_dummy_target): Initialize new dummy target vectors.
13268 * exec.c (exec_set_find_memory_regions): New function.
13269 Allow the exec_ops vector for memory regions to be taken over.
13270 (exec_make_note_section): New function, target vector method.
13271 * defs.h (exec_set_find_memory_regions): Export prototype.
13272 * procfs.c (proc_find_memory_regions): New function, corefile method.
13273 (procfs_make_note_section): New function, corefile method.
13274 (init_procfs_ops): Set new target vector pointers.
13275 (find_memory_regions_callback): New function.
13276 (procfs_do_thread_registers): New function.
13277 (procfs_corefile_thread_callback): New function.
13278 * sol-thread.c (sol_find_memory_regions): New function.
13279 (sol_make_note_section): New function.
13280 (init_sol_thread_ops): Initialize new target vectors.
13281 * inftarg.c (inftarg_set_find_memory_regions): New function.
13282 Allow to_find_memory_regions vector to be taken over.
13283 (inftarg_set_make_corefile_notes): New function.
13284 Allow to_make_corefile_notes vector to be taken over.
13285 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13286 interface layer if not target_has_execution (may be a corefile).
13287 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13288 * config/sparc/sun4sol2.mh: Ditto.
13289 * config/alpha/alpha-linux.mh: Ditto.
13290 * config/arm/linux.mh: Ditto.
13291 * config/i386/x86-64linux.mh: Ditto.
13292 * config/ia64/linux.mh: Ditto.
13293 * config/m68k/linux.mh: Ditto.
13294 * config/mips/linux.mh: Ditto.
13295 * config/powerpc/linux.mh: Ditto.
13296 * config/sparc/linux.mh: Ditto.
13297
c6b92abd
MS
132982002-01-07 Michael Snyder <msnyder@redhat.com>
13299
13300 * arm-linux-nat.c: Remove references to regcache.c internal data
13301 (registers[] and register_valid[]).
13302
4b09dc8c
MS
133032002-01-07 Michael Snyder <msnyder@redhat.com>
13304
abf22e64
AJ
13305 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13306 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13307 symbol file and shlibs.
13308 * Makefile.in: Add rule for linux-proc.o.
13309 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13310 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13311 * config/arm/linux.mh: Ditto.
13312 * config/i386/linux.mh: Ditto.
13313 * config/i386/x86-64linux.mh: Ditto.
13314 * config/ia64/linux.mh: Ditto.
13315 * config/m68k/linux.mh: Ditto.
13316 * config/mips/linux.mh: Ditto.
13317 * config/powerpc/linux.mh: Ditto.
13318 * config/sparc/linux.mh: Ditto.
13319
c25b74ac
PM
133202002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13321
13322 * win32-nat.c: Add i386-tdep.h dependency.
13323
94cd915f
MS
133242002-01-07 Michael Snyder <msnyder@redhat.com>
13325
c7cccb76
MS
13326 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13327 instead of bfd_get_arch_size. Don't bail out just because
13328 there's no exec_bfd.
abf22e64 13329
34c0bd93
MS
13330 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13331 * p-valprint.c (pascal_object_print_value): Ditto.
13332 * somread.c (som_symtab_read): Ditto.
13333 * symfile.c (simple_free_overlay_region_table): Ditto.
13334 * valops.c (value_assign): Ditto.
13335
21c1c920
MS
13336 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13337 use tilde_expand and strerror for opening save-tracepoints file.
13338
5bbd998e
MS
13339 * thread-db.c (thread_db_new_objfile): Indendation fix.
13340
94cd915f
MS
13341 * infptrace.c (GDB_MAX_ALLOCA): New define.
13342 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13343 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13344 can be overridden with whatever value is appropriate to the host).
13345 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13346 alloca to allocate potentially large buffer.
13347 * rs6000-nat.c (child_xfer_memory): Ditto.
13348 * symm-nat.c (child_xfer_memory): Ditto.
13349 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13350
494e8a93
JSC
133512002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13352
13353 From Nick Clifton <nickc@redhat.com>
13354 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13355
d0e1d48e
MS
133562002-01-07 Michael Snyder <msnyder@redhat.com>
13357
abf22e64 13358 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13359 Don't use exec_bfd if it's NULL.
13360
290b2c7a
MK
133612002-01-06 Mark Kettenis <kettenis@gnu.org>
13362
abf22e64 13363 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13364
aef21287
AC
133652002-01-06 Andrew Cagney <ac131313@redhat.com>
13366
13367 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13368 * gnu-nat.c: Ditto.
13369
30efa627
AC
133702002-01-06 Andrew Cagney <ac131313@redhat.com>
13371
13372 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13373 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13374 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13375 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13376 z8k-coff have not been multi-arched. Update z8k-coff build
13377 status.
13378
9b4ff276
AC
133792002-01-06 Andrew Cagney <ac131313@redhat.com>
13380
13381 * MAINTAINERS: Mark a29k target as obsolete.
13382 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13383 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13384 comments.
13385 * NEWS: Note that a29k targets are obsolete.
13386 * a29k-tdep.c: Mark as obsolete.
13387 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13388 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13389 a29k-*-vxworks* targets as obsolete.
13390 * remote-adapt.c: Obsolete.
13391 * remote-eb.c: Obsolete.
13392 * remote-mm.c: Obsolete.
13393 * remote-udi.c: Obsolete.
13394 * config/a29k/a29k-udi.mt: Obsolete.
13395 * config/a29k/a29k.mt: Obsolete.
13396 * config/a29k/tm-a29k.h: Obsolete.
13397 * config/a29k/tm-vx29k.h: Obsolete.
13398 * config/a29k/vx29k.mt: Obsolete.
13399
a9011d31
AC
134002002-01-05 Andrew Cagney <ac131313@redhat.com>
13401
13402 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13403 with BFD_ENDIAN_BIG.
13404
9299404e
AC
134052002-01-05 Andrew Cagney <ac131313@redhat.com>
13406
13407 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13408 * configure, config.in: Re-generate.
13409 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13410 * defs.h: Do not include <endian.h>.
13411
7e89e357
JT
134122002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13413
13414 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13415 * config.in: Regenerate.
13416 * configure.in: Update copyright years.
13417 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13418 * configure: Regenerate.
13419 * i386bsd-nat.c: Update copyright years.
13420 (fill_gregset): Use regcache_collect.
13421 (fetch_inferior_registers): Only fetch integer registers
13422 if requested to do so. Add support for XMM registers
13423 using PT_GETXMMREGS.
13424 (store_inferior_registers): Only store integer registers
13425 if requested to do so. Add support for XMM registers
13426 using PT_SETXMMREGS.
13427 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13428 (store_inferior_registers): Remove.
13429 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13430 (fetch_elfcore_registers): New function.
13431 (i386nbsd_elfcore_fns): New.
13432 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13433 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13434 i386bsd-nat.o.
13435 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13436 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13437 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13438 * config/i386/tm-nbsd.h: Update copyright years.
13439 (HAVE_SSE_REGS): Define.
13440 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13441 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13442 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13443 (SIGCONTEXT_PC_OFFSET): Remove.
13444 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13445
a752853e
AC
134462002-01-05 Andrew Cagney <ac131313@redhat.com>
13447
13448 * configure.tgt: Remove powerpc-*-macos* target.
13449 * config/m68k/xm-mpw.h: Delete file.
13450 * config/xm-mpw.h: Delete file.
13451 * ser-mac.c: Delete file.
13452 * mpw-make.sed: Delete file.
13453 * mpw-config.in: Delete file.
13454 * mac-xdep.c: Delete file.
13455 * mac-gdb.r: Delete file.
13456 * mac-defs.h: Delete file.
13457 * mac-nat.c: Delete file.
13458 * config/powerpc/macos.mh: Delete file.
13459 * config/powerpc/macos.mt: Delete file.
13460 * config/powerpc/nm-macos.h: Delete file.
13461 * config/powerpc/tm-macos.h: Delete file.
13462 * source.c (openp, open_source_file): Remove obsolete code.
13463 * top.c (gdb_readline): Ditto.
13464 * utils.c (query): Ditto.
13465 * event-top.c (display_gdb_prompt): Ditto.
13466 * Makefile.in (ser-mac.o): Delete obsolete target.
13467 * NEWS: Update.
13468
d7449b42
AC
134692002-01-04 Andrew Cagney <ac131313@redhat.com>
13470
13471 * defs.h (BIG_ENDIAN): Delete macro definition.
13472 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13473 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13474 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13475 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13476 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13477 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13478 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13479 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13480 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13481 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13482 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13483 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13484 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13485 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13486 * gdbarch.c: Re-generate.
13487
356374e8
DJ
134882002-01-04 Daniel Jacobowitz <drow@mvista.com>
13489
13490 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13491 for core files.
13492
a2b8f8f8
JT
134932002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13494
13495 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13496
12466af9
AC
134972002-01-04 Andrew Cagney <ac131313@redhat.com>
13498
13499 * value.h (value_ptr): Delete typedef.
13500
3549ab40
JT
135012002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13502
13503 * i386nbsd-nat.c: Update copyright years.
13504 Include i386-tdep.h.
13505
fedbd091
EZ
135062002-01-04 Elena Zannoni <ezannoni@redhat.com>
13507
13508 * stabsread.c: Update copyright years.
13509
13510 From Debashis Mahata <debashis.mahata@wipro.com>:
13511 (read_struct_fields): Deal with Sun C compiler erroneous stab
13512 output for structs and unions.
fec8b34f 13513 Fix PR gdb/269.
fedbd091 13514
eb43544b
DJ
135152002-01-04 Daniel Jacobowitz <drow@mvista.com>
13516
13517 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13518 prototype.
13519
1514d34e
DJ
135202002-01-04 Daniel Jacobowitz <drow@mvista.com>
13521
13522 * cp-abi.c: Fix whitespace.
13523 (baseclass_offset): New wrapper function.
13524 * cp-abi.h (baseclass_offset): Add prototype.
13525 (struct cp_abi_ops): Add baseclass_offset pointer.
13526
13527 * valops.c (vb_match): Move to...
13528 * gnu-v2-abi.c (vb_match): here.
13529 * valops.c (baseclass_offset): Move to...
13530 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13531
13532 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13533
13534 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13535 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13536 * hpacc-abi.c (init_hpacc_ops): Likewise.
13537
7f8c9282
DJ
135382002-01-04 Daniel Jacobowitz <drow@mvista.com>
13539
13540 * valops.c (find_overload_match): Accept obj as a
13541 reference parameter. Update it before returning.
13542 * value.h (find_overload_match): Update prototype.
13543 * eval.c (evaluate_subexp_standard): Pass object to
13544 find_overload_match by reference.
13545
f23631e4
AC
135462002-01-03 Andrew Cagney <ac131313@redhat.com>
13547
13548 * valarith.c: Replace value_ptr with struct value pointer. Remove
13549 register attribute from value declarations.
13550 * valops.c: Ditto.
13551 * value.h: Ditto.
13552 * scm-lang.c (scm_lookup_name): Ditto.
13553
79e10fab 135542002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13555
79e10fab
AC
13556 Abstract the functionality of iterating over mapped memory
13557 regions into a general purpose iterator function.
abf22e64 13558 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13559 iterator for memory sections.
13560 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13561 (solib_mappings_callback): New function, callback for above.
13562 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13563 (info_mappings_callback): New function, callback for above.
13564
13565 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13566
c5ad026a
MK
135672002-01-01 Mark Kettenis <kettenis@gnu.org>
13568
d2a7c97a
MK
13569 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13570 * i386-tdep.c: Include "elf-bfd.h".
13571 (process_note_abi_tag_sections): New function.
13572 (i386_gdbarch_init): Add code to recognize various OS/ABI
13573 combinations.
13574
c5ad026a
MK
13575 * maint.c (_initialize_maint_cmds): Add missing \ in
13576 string-literal.
13577
a1a5b71e 13578For older changes see ChangeLog-2001
c906108c
SS
13579\f
13580Local Variables:
13581mode: change-log
13582left-margin: 8
13583fill-column: 74
13584version-control: never
13585End:
This page took 1.003797 seconds and 4 git commands to generate.