2002-11-26 Martin M. Hunt <hunt@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b2a1bd4f
MH
12002-11-26 Martin M. Hunt <hunt@redhat.com>
2
3 * Makefile.in: Remove Tix dependencies.
4 * acinclude.m4: Ditto.
5 * aclocal.m4: Ditto.
6 * configure.in: Ditto.
7 * configure: Regenerated.
8
f09cffaa
AC
92002-11-26 Andrew Cagney <ac131313@redhat.com>
10
11 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
12 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
13 * gdbarch.c: Re-generate.
14
e92b0cc9
AC
152002-11-26 Andrew Cagney <ac131313@redhat.com>
16
17 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
18 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
19 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
20 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
21 pc_in_call_dummy_at_entry_point.
22 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
23 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
24 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
25 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
26 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
27 pc_in_call_dummy_on_stack.
28 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
29 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
30 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
31 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
32 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
33
b4b88177
AC
342002-11-26 Andrew Cagney <ac131313@redhat.com>
35
36 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
37 pc_in_call_dummy_before_text_end
38 (deprecated_pc_in_call_dummy_after_text_end): Rename
39 pc_in_call_dummy_after_text_end.
40 (deprecated_pc_in_call_dummy_on_stack): Rename
41 pc_in_call_dummy_on_stack.
42 (deprecated_pc_in_call_dummy_at_entry_point): Rename
43 pc_in_call_dummy_at_entry_point.
44 * m68k-tdep.c (m68k_gdbarch_init): Update.
45 * s390-tdep.c (s390_gdbarch_init): Update.
46 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
47 * vax-tdep.c (vax_gdbarch_init): Update.
48 * sparc-tdep.c (sparc_gdbarch_init): Update.
49 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
50 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
51 * i386-tdep.c (i386_gdbarch_init): Update.
52 * frv-tdep.c (frv_gdbarch_init): Update.
53 * cris-tdep.c (cris_gdbarch_init): Update.
54 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
55 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
56 (deprecated_pc_in_call_dummy_after_text_end)
57 (deprecated_pc_in_call_dummy_on_stack)
58 (deprecated_pc_in_call_dummy_at_entry_point): Update.
59 * alpha-tdep.c (alpha_gdbarch_init): Update.
60
eb784848
DJ
612002-11-25 Daniel Jacobowitz <drow@mvista.com>
62
63 * acconfig.h (HAVE_PREAD64): Add.
64 * configure.in: Check for pread64.
65 * config.in: Regenerated.
66 * configure: Regenerated.
67 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
68 * linux-proc.c (linux_proc_xfer_memory): New function.
69 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
70
933c6fe4
DC
712002-11-25 David Carlton <carlton@math.stanford.edu>
72
73 * dwarf2read.c (scan_partial_symbols): Descend into namespace
74 pdi's with no name.
75
158a8022
AC
762002-11-25 Andrew Cagney <ac131313@redhat.com>
77
78 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
79 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
80
481d0f41
JB
812002-11-25 Jim Blandy <jimb@redhat.com>
82
e8289572
JB
83 * symfile.c (init_objfile_sect_indices): New function.
84 (default_symfile_offsets): Move the section-index-initializing
85 stuff into init_objfile_sect_indices, and call that.
86
b29c9944
JB
87 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
88 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
89
13de58df
JB
90 * symfile.c (syms_from_objfile): Adjust indentation.
91
481d0f41
JB
92 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
93 || info_verbose isn't true.
94
7d6a26a7
AC
952002-11-24 Andrew Cagney <ac131313@redhat.com>
96
97 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
98 default to get_frame_base.
99 * gdbarch.h, gdbarch.c: Regenerate.
100 * arch-utils.c (default_frame_address): Delete function.
101 * arch-utils.h (default_frame_address): Delete declaration
102
6abe1021
PM
1032002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
104
105 * varobj.c (find_frame_addr_in_frame_chain):
106 Use get_frame_base instead of FRAME_FP,
107 obvious fix.
108
c193f6ac
AC
1092002-11-19 Andrew Cagney <ac131313@redhat.com>
110
111 * frame.h (FRAME_FP): Delete macro.
112 (get_frame_base): New function declaration.
113 * frame.c (get_frame_base): New function.
114 (get_frame_id): Use ->frame.
115 (frame_find_by_id): Rewrite to use get_frame_id.
116 * blockframe.c: Use get_frame_base instead of FRAME_FP.
117 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
118 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
119 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
120 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
121 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
122 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
123
e5d2af14
AC
1242002-11-24 Andrew Cagney <ac131313@redhat.com>
125
126 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
127
931d12c6
AC
1282002-11-24 Andrew Cagney <ac131313@redhat.com>
129
130 * frame.c (set_unwind_by_pc): Revert change below, use
131 PC_IN_CALL_DUMMY.
132 (get_prev_frame): Ditto.
133
5e0f933e
AC
1342002-11-24 Andrew Cagney <ac131313@redhat.com>
135
136 * dummy-frame.c (pc_in_dummy_frame): New function.
137 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
138 (find_dummy_frame): Update comment.
139 (generic_pop_current_frame): Use get_frame_type.
140 * dummy-frame.h (pc_in_dummy_frame): Declare.
141 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
142 (create_new_frame): Use pc_in_dummy_frame.
143 (get_prev_frame): Use pc_in_dummy_frame.
144 (frame_saved_regs_register_unwind): Use get_prev_frame.
145 (deprecated_generic_get_saved_register): Use get_prev_frame.
146
7d8547c9
AC
1472002-11-23 Andrew Cagney <ac131313@redhat.com>
148
149 * blockframe.c (find_frame_addr_in_frame_chain): Move function
150 from here ...
151 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
152 (varobj_create): Note that frame ID should be used.
153 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
154
0225421b
AC
1552002-11-23 Andrew Cagney <ac131313@redhat.com>
156
157 * breakpoint.c: Include "gdb_assert.h".
158 (deprecated_frame_in_dummy): Assert that generic dummy frames are
159 not being used.
160 * Makefile.in (breakpoint.o): Update dependencies.
161 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
162 deprecated_frame_in_dummy.
163 * stack.c (print_frame_info_base): Ditto.
164 (frame_info): Ditto.
165 (print_frame_info_base): Ditto. Delete dead code.
166
32eeb91a
AS
1672002-11-23 Andreas Schwab <schwab@suse.de>
168
169 * Makefile.in (m68k_tdep_h): Define.
170 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
171 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
172 * m68k-tdep.c: Move register number enum ...
173 * m68k-tdep.h: ... to this new file and rename the constants from
174 E_* to M68K_*. All uses changed.
175 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
176 * abug-rom.c: Include "m68k-tdep.h". Use
177 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
178 * cpu32bug-rom.c: Likewise.
179 * dbug-rom.c: Likewise.
180 * m68k-tdep.c: Likewise.
181 * m68klinux-nat.c: Likewise.
182 * remote-est.c: Likewise.
183 * rom68k-rom.c: Likewise.
184 * config/m68k/tm-linux.h: Likewise.
185
9648bac8
AC
1862002-11-23 Andrew Cagney <ac131313@redhat.com>
187
188 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
189 dummy frame initialization code.
190 * mips-tdep.c (mips_gdbarch_init): Ditto.
191
91a175b3
CF
1922002-11-22 Christopher Faylor <cgf@redhat.com>
193
194 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
195 attach will hang.
196
f4ded5b1
AC
1972002-11-22 Andrew Cagney <ac131313@redhat.com>
198
199 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
200 to default_frame_address.
201 * gdbarch.h, gdbarch.c: Re-generate.
202
203 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
204 or frame_locals_address to default_frame_address.
205 * m68k-tdep.c (m68k_gdbarch_init): Update.
206 * i386-tdep.c (i386_gdbarch_init): Update.
207 * frv-tdep.c (frv_gdbarch_init): Update.
208 * sh-tdep.c (sh_gdbarch_init): Update.
209 * v850-tdep.c (v850_gdbarch_init): Update.
210 * sparc-tdep.c (sparc_gdbarch_init): Update.
211 * mips-tdep.c (mips_gdbarch_init): Update.
212 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
213 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
215
216 * cris-tdep.c (cris_frame_args_address): Delete function.
217 (cris_frame_locals_address): Delete function.
218 (cris_gdbarch_init): Do not set frame_args_address or
219 frame_locals_address.
220
f7c1e0f3
MS
2212002-11-22 Michael Snyder <msnyder@redhat.com>
222
223 * thread-db.c (thread_db_load): Tell the user what's going on
224 if dlopen fails on libthread_db.
225
03dac896
AS
2262002-11-23 Andreas Schwab <schwab@suse.de>
227
228 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
229 invariant return values.
230
7a67d0fe
AS
2312002-11-22 Andreas Schwab <schwab@suse.de>
232
233 * valops.c (value_slice): Move declaration of `offset' to avoid
234 warning.
235
5633f842
CF
2362002-11-22 Christopher Faylor <cgf@redhat.com>
237
238 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
239 (struct so_stuff): Add end_addr field.
240 (register_loaded_dll): Calculate and store end address of loaded dll.
241 (solib_address): New function.
242 (child_solib_loaded_library_pathname): Pass carefully constructed
243 section info to safe_symbol_file_add rather than ignoring it.
244 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
245 DLL is loaded.
246 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
247 (child_create_inferior): Fix a compiler warning.
248 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
249 (solib_address): Declare new function.
250
d85fe7f7
AS
2512002-11-22 Andreas Schwab <schwab@suse.de>
252
253 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
254 and FPS registers.
255
8308e54c
DJ
2562002-11-21 Daniel Jacobowitz <drow@mvista.com>
257
258 * maint.c (_initialize_maint_cmds): Fix typo. From
259 Francesco Potorti` <pot@gnu.org>.
260
8997bd5e
AC
2612002-11-21 Andrew Cagney <cagney@redhat.com>
262
263 * mips-tdep.c (mips_dump_tdep): Delete references to
264 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
265 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
266 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
267 * printcmd.c (build_address_symbolic): Delete calls to
268 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
269 (address_info): Ditto.
270 Fix PR gdb/773.
271
4e87b832
KD
2722002-11-19 Klee Dienes <kdienes@apple.com>
273 Adam Fedor <fedor@gnu.org>
274
275 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
276 the ability to explicitly specify the quote characters and word
277 break characters; if NULL is specified for either, use the old
278 behavior of using the characters used by the completer.
279 (skip_chars): New function. Convenience wrapper around
280 skip_quoted_chars to provide the original skip_chars behavior.
281 * completer.h (skip_quoted_chars): Add prototype.
282
9ba8d803
AC
2832002-11-19 Andrew Cagney <ac131313@redhat.com>
284
285 Problems reported by Paul Eggert.
286 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
287
0a595803
AS
2882002-11-19 Andreas Schwab <schwab@suse.de>
289
290 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
291 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
292 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
293 (m68k_linux_frame_saved_pc): Move to ...
294 * m68klinux-tdep.c: ... here. New file.
295 * Makefile.in (m68klinux-tdep.o): Add dependencies.
296 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
297
e8afa4d7
AF
2982002-11-19 Adam Fedor <fedor@gnu.org>
299
300 * objc-exp.y: Revert to old skip_quoted usage.
301
a76c9d72
AF
3022002-11-19 Adam Fedor <fedor@gnu.org>
303
304 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
305 (objc_lang_h): Define.
306 (YYFILES): Add objc-exp.tab.c.
307 (local-maintainer-clean): Remove objc-exp.tab.c.
308 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
309
fd0e9d45
PM
3102002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
311
312 * p-exp.y (typecast rule): Add automatic dereference of
313 pascal classes if needed.
314 (THIS): Set current_type.
315 Automatically dereference pascal classes.
316 (typebase rule): Add ^typebase recognition.
317
82eeeb94
AF
3182002-11-18 Adam Fedor <fedor@gnu.org>
319
320 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
321 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
322 (op_name): Handle OP_OBJC_SELF.
323 * Makefile.in (expprint.o): Add additional depends.
324
646df18d
AF
3252002-11-18 Adam Fedor <fedor@gnu.org>
326
327 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
328 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
329 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
330 * objc-exp.y: Likewise.
331
379b85df
AF
3322002-11-18 Adam Fedor <fedor@gnu.org>
333
334 * gdb/parser-defs.h: (struct objc_class_str): New structure
335 for parsing ObjC classes.
336
85cf597a
AC
3372002-11-18 Andrew Cagney <ac131313@redhat.com>
338
339 * stack.c (frame_relative_level): Copy function from here ...
340 * frame.c (frame_relative_level): ...to here.
341
5a203e44
AC
3422002-11-18 Andrew Cagney <ac131313@redhat.com>
343
344 * frame.h (enum frame_type): Define.
345 (get_frame_type): Declare.
346 (struct frame_info): Add field `type'. Delete field
347 signal_handler_caller.
348 (deprecated_set_frame_signal_handler_caller): Declare.
349 * frame.c (get_frame_type): New function.
350 (deprecated_set_frame_type): New function.
351 (create_new_frame): Set the frame's type.
352 (get_prev_frame): Similar.
353 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
354 * s390-tdep.c: Ditto.
355 * m68klinux-nat.c: Ditto.
356 * ns32k-tdep.c: Ditto.
357 * x86-64-linux-tdep.c: Ditto.
358 * vax-tdep.c: Ditto.
359 * rs6000-tdep.c: Ditto.
360 * ppc-linux-tdep.c: Ditto.
361 * i386-interix-tdep.c: Ditto.
362 * mips-tdep.c: Ditto.
363 * m68k-tdep.c: Ditto.
364 * hppa-tdep.c: Ditto.
365 * ia64-tdep.c: Ditto.
366 * cris-tdep.c: Ditto.
367 * arm-tdep.c: Ditto.
368 * alpha-tdep.c: Ditto.
369 * i386-tdep.c: Ditto.
370 * stack.c: Ditto.
371 * ada-lang.c: Ditto.
372 * blockframe.c: Update.
373 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
374 deprecated_set_frame_type instead of signal_handler_caller.
375 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
376 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
377 * breakpoint.h: Delete FIXME suggesting get_frame_type.
378
bf4ae8b2
KD
3792002-11-18 Klee Dienes <kdienes@apple.com>
380
381 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
382
a672ef13
KD
3832002-11-18 Klee Dienes <kdienes@apple.com>
384
385 * buildsym.c (pop_context): Add comment.
386
0c5e171a
KD
3872002-11-18 Klee Dienes <kdienes@apple.com>
388
389 * buildsym.h (pop_context): Convert to function, defined in
390 buildsym.c.
391 * buildsym.c: Include gdb_assert.h.
392 (pop_context): Implement as C function. Add check for stack
393 underflow.
394 * dbxread.c (process_one_symbol): Complain and stop processing
395 that symbol if we are already at the top of the context stack for
396 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
397 when processing N_RBRAC.
398
8a1f4c4c
DJ
3992002-11-16 Daniel Jacobowitz <drow@mvista.com>
400
401 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
402 define.
403 (struct target_waitstatus): Add opaque definition.
404 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
405 * exec.c (init_exec_ops): Likewise.
406 * fork-child.c (clone_and_follow_inferior): Remove.
407 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
408 * inferior.h (clone_and_follow_inferior): Remove prototype.
409 * infrun.c (follow_fork_mode_both): Remove.
410 (follow_fork_mode_kind_names): Remove commented out "both".
411 (follow_inferior_fork): Remove follow_fork_mode_both support.
412 * inftarg.c (child_clone_and_follow_inferior): Remove.
413 (child_post_follow_inferior_by_clone): Remove.
414 (init_child_ops): Don't set to_clone_and_follow_inferior
415 or to_post_follow_inferior_by_clone.
416 * target.c (default_clone_and_follow_inferior): Remove.
417 (cleanup_target): Don't set to_clone_and_follow_inferior
418 or to_post_follow_inferior_by_clone.
419 (find_default_clone_and_follow_inferior): Remove.
420 (init_dummy_target): Don't set to_clone_and_follow_inferior.
421 (debug_to_clone_and_follow_inferior): Remove.
422 (debug_to_post_follow_inferior_by_clone): Remove.
423 (setup_target_debug): Don't set to_clone_and_follow_inferior
424 or to_post_follow_inferior_by_clone.
425 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
426 and to_post_follow_inferior_by_clone.
427 (child_clone_and_follow_inferior): Remove prototype.
428 (child_post_follow_inferior_by_clone): Remove prototype.
429 (target_clone_and_follow_inferior): Remove macro.
430 (target_post_follow_inferior_by_clone): Remove macro.
431 (find_default_clone_and_follow_inferior): Remove prototype.
432
47932f85
DJ
4332002-11-16 Daniel Jacobowitz <drow@mvista.com>
434
435 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
436 inferior_has_vforked, and inferior_has_execd instead of
437 target_has_forked, target_has_vforked, and target_has_execd.
438 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
439 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
440 (CHILD_WAIT): Define.
441 (child_wait): Add prototype.
442 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
443 Add prototype.
444 (hpux_has_vforked): Likewise, from child_has_vforked.
445 (hpux_has_execd): Likewise, from child_has_execd.
446 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
447 (not_same_real_pid, child_wait): New, copied from inftarg.c.
448 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
449 and hpux_has_syscall_event instead of the target hooks.
450 * infrun.c (inferior_has_forked, inferior_has_vforked)
451 (inferior_has_execd): New functions.
452 * inftarg.c (not_same_real_pid): Remove.
453 (child_wait): Remove references to not_same_real_pid,
454 target_has_forked, target_has_vforked, target_has_execd,
455 and target_has_syscall_event.
456 (child_has_forked, child_has_vforked, child_has_execd)
457 (child_has_syscall_event): Remove.
458 (init_child_ops): Remove references to child_has_forked,
459 child_has_vforked, child_has_execd, and child_has_syscall_event.
460 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
461 (hpux_has_vforked): Likewise, from child_has_vforked.
462 (hpux_has_execd): Likewise, from child_has_execd.
463 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
464 * target.c (cleanup_target): Remove references to
465 to_has_forked, to_has_vforked, to_has_execd, and
466 to_has_syscall_event.
467 (update_current_target): Likewise.
468 (setup_target_debug): Likewise.
469 (debug_to_has_forked): Remove.
470 (debug_to_has_vforked): Remove.
471 (debug_to_has_execd): Remove.
472 (debug_to_has_syscall_event): Remove.
473 * target.h (struct target_ops): Remove to_has_forked.
474 to_has_vforked, to_has_execd, and to_has_syscall_event.
475 (child_has_forked, child_has_vforked, child_has_execd)
476 (child_has_syscall_event): Remove prototypes.
477 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
478 prototypes.
479 (target_has_forked, target_has_vforked, target_has_execd)
480 (target_has_syscall_event): Remove macros.
481
4088142a
DJ
4822002-11-16 Daniel Jacobowitz <drow@mvista.com>
483
484 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
485 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
486 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
487 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
488 * target.c (cleanup_target): Remove reference to
489 to_can_follow_vfork_prior_to_exec.
490 (update_current_target): Likewise.
491 (debug_to_can_follow_vfork_prior_to_exec): Remove.
492 (setup_target_debug): Remove reference to
493 to_can_follow_vfork_prior_to_exec.
494 * target.h (struct target_ops): Remove
495 to_can_follow_vfork_prior_to_exec.
496 (child_can_follow_vfork_prior_to_exec): Remove prototype.
497 (target_can_follow_vfork_prior_to_exec): Remove definition.
498 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
499 define.
500 * infrun.c (follow_vfork_when_exec): Remove.
501 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
502 (follow_exec): Likewise.
503 (handle_inferior_event): Likewise.
504 (keep_going): Likewise.
505
18cde8d5
AC
5062002-11-15 Andrew Cagney <cagney@redhat.com>
507
508 * frame.c (generic_unwind_get_saved_register): Make static.
509 * frame.h (generic_unwind_get_saved_register): Delete declaration.
510 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
511 defaults to generic_unwind_get_saved_register.
512 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
513 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
514 * frv-tdep.c (frv_gdbarch_init): Ditto.
515 * i386-tdep.c (i386_gdbarch_init): Ditto.
516 * s390-tdep.c (s390_gdbarch_init): Ditto.
517 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
518 * v850-tdep.c (v850_gdbarch_init): Ditto.
519 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
520 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
521 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
522
a6b063af
AC
5232002-11-15 Andrew Cagney <cagney@redhat.com>
524
525 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
526 i386-tdep.c.
527
f407986f
AC
5282002-11-15 Andrew Cagney <cagney@redhat.com>
529
530 * frame.h (sigtramp_saved_pc): Delete declaration.
531 * blockframe.c (sigtramp_saved_pc): Delete function.
532 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
533 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
534 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
535 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
536
f18c5a73
AC
5372002-11-15 Andrew Cagney <ac131313@redhat.com>
538
539 * frame.c (frame_pc_unwind): New function.
540 (frame_saved_regs_pc_unwind): New function.
541 (frame_register_unwind): Pass unwind_cache instead of
542 register_unwind_cache.
543 (set_unwind_by_pc): Add unwind_pc parameter, set.
544 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
545 (get_prev_frame): Ditto.
546 * frame.h (frame_pc_unwind_ftype): Declare.
547 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
548 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
549 (frame_pc_unwind): Declare.
550 * dummy-frame.c (dummy_frame_pc_unwind): New function.
551 (struct dummy_frame): Add comment mentioning that values are for
552 previous frame.
553 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
554 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
555 (generic_file_frame_chain_valid): Ditto.
556 * stack.c (frame_info): Ditto.
557
d9285969 5582002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
559
560 * linespec.c (locate_first_half): New function.
561 (decode_line_1): Move code into locate_first_half.
562
d741b867
AC
5632002-11-15 Andrew Cagney <ac131313@redhat.com>
564
565 * complaints.h: Add comment explaining how to eliminate a
566 deprecated_complain call.
24382c5c 567 * complaints.h: Fix spelling errors.
d741b867 568
82d03c99
DC
5692002-11-15 David Carlton <carlton@math.stanford.edu>
570
571 * printcmd.c: Remove #include "disasm.h".
572
c97eb5d9
AC
5732002-11-14 Andrew Cagney <ac131313@redhat.com>
574
575 * frame.h: Move the most relevant interface functions to the start
576 of the file.
577
524d7c18
AC
5782002-11-14 Andrew Cagney <ac131313@redhat.com>
579
580 * regcache.h (deprecated_registers): Rename registers.
581 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
582 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
583 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
584 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
585 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
586 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
587 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
588 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
589 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
590 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
591 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
592 * v850ice.c: Update.
593
6411e720
AC
594Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
595
596 * utils.c (gdb_realpath): Add comment mentioning realpath with a
597 NULL buffer.
598
73937e03
AC
5992002-11-13 Andrew Cagney <cagney@redhat.com>
600
601 * regcache.h (deprecated_read_register_bytes): Rename
602 read_register_bytes.
603 (deprecated_write_register_bytes): Rename write_register_bytes.
604 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
605 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
606 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
607 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
608 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
609 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
610 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
611 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
612 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
613 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
614 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
615 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
616 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
617 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
618
fb0cd46e
JB
6192002-11-13 Jim Blandy <jimb@redhat.com>
620
621 * findvar.c (read_var_value): Doc fix.
622
2d28509a
AC
6232002-11-13 Andrew Cagney <cagney@redhat.com>
624
625 * regcache.c (struct regcache): Replace passthough_p with
626 readonly_p.
627 (regcache_xmalloc): Initialize readonly_p.
628 (build_regcache): Initialize readonly_p.
629 (regcache_save): New function.
630 (regcache_restore): New function.
631 (regcache_cpy): Re-implement using regcache_save and
632 regcache_restore.
633 (regcache_raw_read): Update.
634 (regcache_cooked_read): When a read-only cache, checked for cached
635 pseudo register values.
636 (regcache_raw_write): Assert that the cache is not read-only.
637 Remove code handling a non-passthrough cache.
638 * regcache.h (regcache_save): Declare.
639 (regcache_restore): Declare.
640
067df2e5
AC
6412002-11-13 Andrew Cagney <cagney@redhat.com>
642
643 * regcache.c (struct regcache_descr): Add fields
644 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
645 (init_legacy_regcache_descr): Compute the size of a cooked
646 register cache and then assign that to sizeof_raw_registers. Set
647 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
648 (init_legacy_regcache_descr): Ditto.
649
51b1fe4e
AC
6502002-11-13 Andrew Cagney <cagney@redhat.com>
651
652 * regcache.c (register_buffer): Move to near start of file, update
653 description.
654 (regcache_raw_read): Use.
655 (regcache_raw_write): Use.
656 (struct regcache): Rename raw_registers to registers and
657 raw_register_valid_p to register_valid_p.
658 (regcache_xmalloc): Update.
659 (regcache_xfree): Update.
660 (register_buffer): Update.
661 (regcache_cpy): Update.
662 (regcache_cpy_no_passthrough): Update.
663 (regcache_valid_p): Update.
664 (deprecated_grub_regcache_for_registers): Update.
665 (deprecated_grub_regcache_for_register_valid): Update.
666 (set_register_cached): Update.
667 (regcache_raw_write): Update.
668
80b4c677
PM
6692002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
670
671 * p-exp.y (name_not_typename): Use copy_name to
672 set current_type variable for fields of THIS.
673
0f3fafde
DJ
6742002-11-12 Daniel Jacobowitz <drow@mvista.com>
675
676 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
677 * monitor.c (init_base_monitor_ops): Likewise.
678 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
679 * remote-array.c (init_array_ops): Likewise.
680 * remote-e7000.c (init_e7000_ops): Likewise.
681 * remote-es.c (init_es1800_ops): Likewise.
682 (init_es1800_child_ops): Likewise.
683 * remote-rdp.c (init_remote_rdp_ops): Likewise.
684 * remote-sim.c (init_gdbsim_ops): Likewise.
685 * remote-st.c (init_st2000_ops): Likewise.
686 * sol-thread.c (init_sol_core_ops): Likewise.
687 (init_sol_thread_ops): Likewise.
688 * v850ice.c (init_850ice_ops): Likewise.
689 * win32-nat.c (init_child_ops): Likewise.
690 * wince.c (init_child_ops): Likewise.
691
82c0260e
AC
6922002-11-12 Andrew Cagney <ac131313@redhat.com>
693
694 * utils.c (gdb_realpath): Make rp a constant pointer.
695
70d35819
AC
6962002-11-12 Andrew Cagney <ac131313@redhat.com>
697
698 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
699 a constant buffer; cannonicalize_file_name(); realpath() with a
700 pathconf() defined buffer, xstrdup().
701
9835a8b0
AC
7022002-11-12 Andrew Cagney <ac131313@redhat.com>
703
704 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
705 to hang2.C; hang3.c to hang3.C.
706
3f47be5c
EZ
7072002-11-11 Elena Zannoni <ezannoni@redhat.com>
708
709 * findvar.c (read_var_value): Reenable TLS code.
710
7112002-11-11 Elena Zannoni <ezannoni@redhat.com>
712 Jim Blandy <jimb@redhat.com>
713
714 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
715 * target.c (update_current_target): Add
716 to_get_thread_local_address.
717 * target.h (to_get_thread_local_address): Export.
718 (target_get_thread_local_address): Define.
719 (target_get_thread_local_address_p): Define.
720 * thread-db.c: Include solib-svr4.h.
721 (td_thr_tls_get_addr_p): Define.
722 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
723 (thread_db_get_thread_local_address): New function.
724 (init_thread_db_ops): Initialize to_get_thread_local_address.
725 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
726 * configure: Regenerate.
727 * config.in: Regenerate.
728
636b1a6d
DC
7292002-11-11 David Carlton <carlton@math.stanford.edu>
730
731 * linespec.c (set_flags): New function.
732 (decode_line_1): Move code into set_flags.
733
44fe14ab
DC
7342002-11-11 David Carlton <carlton@math.stanford.edu>
735
736 * linespec.c (decode_line_1): Move chunks of code to separate
737 functions.
738 (initialize_defaults): New function.
739 (decode_indirect): New function.
740
e6f181f5
AC
7412002-11-11 Andrew Cagney <ac131313@redhat.com>
742
8971b011
AC
743 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
744 instead of void_code_ptr.
745 (sigtramp_saved_pc): Ditto.
746
e6f181f5
AC
747 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
748 i386_fp_regnum_p.
749
01ad7f36
DJ
7502002-11-10 Daniel Jacobowitz <drow@mvista.com>
751
752 * gdbtypes.h (struct main_type): Move artificial flag out of
753 loc. New member of ``struct field'' named static_kind. Reduce
754 overloaded meaning of bitsize.
755 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
756 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
757 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
758
759 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
760 new fields.
761 (template_to_fixed_record_type, template_to_static_fixed_type)
762 (to_record_with_fixed_variant_part): Likewise.
763 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
764 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
765 * dwarfread.c (struct_type, enum_type): Likewise.
766 * hpread.c (hpread_read_enum_type)
767 (hpread_read_function_type, hpread_read_doc_function_type)
768 (hpread_read_struct_type): Likewise.
769 * mdebugread.c (parse_symbol): Likewise.
770
bf1e52be
AC
7712002-11-10 Andrew Cagney <ac131313@redhat.com>
772
773 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
774 * stack.c (print_frame_info_base): Update.
775 (print_frame_info_base, frame_info): Update.
776 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
777 (sparc_frame_saved_pc): Update.
778 * ada-lang.c (find_printable_frame): Update.
779 * breakpoint.c (deprecated_frame_in_dummy): Update.
780
ce556f85
MK
7812002-11-09 Mark Kettenis <kettenis@gnu.org>
782
783 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
784 defined.
785 (regmap): Extend to cover all registers.
786 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
787 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
788 definitions.
789 (fetch_register, sore_register): Simplify.
790 (old_fetch_inferior_registers, old_store_inferior_registers):
791 Remove functions.
792 (cannot_fetch_register, cannot_store_register): Change
793 implementation to use regmap array to decide which registers
794 cannot be fetched/stored. This removes $orig_eax from the
795 registers that cannot be fetched/stored.
796 (fetch_inferior_registers): Call fetch_register directly instead
797 of calling old_fetch_inferior_registers.
798 (store_inferior_registers): Call store_register directly instead
799 of calling old_store_inferior_registers.
800 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
801 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
802 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
803
932bb524
KD
8042002-11-09 Klee Dienes <kdienes@apple.com>
805
806 * i387-tdep.c (i387_supply_register): When called with NULL as a
807 buffer, mark the register as not provided (to mirror the behavior
808 of supply_register).
809 (i387_supply_fxsave): Ditto.
810 (i387_supply_fsave): Ditto (inherits the behavior from
811 i387_supply_register).
812
ebe68b27
KD
8132002-11-09 Klee Dienes <kdienes@apple.com>
814
815 * blockframe.c (sigtramp_saved_pc): Use
816 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
817 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
818 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
819
15220c65
AC
8202002-11-09 Andrew Cagney <ac131313@redhat.com>
821
822 * frame.c (get_prev_frame): Test prev_p to identify a previously
823 unwound frame. Initialize prev_p.
824 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
825 comment.
826
95adb866
AC
8272002-11-09 Andrew Cagney <ac131313@redhat.com>
828
829 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
830 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
831 more comments. Zap dead code.
832
e71ecd70
MK
8332002-11-09 Mark Kettenis <kettenis@gnu.org>
834
835 * infcmd.c (print_vector_info, print_float_info): Move code that
836 checks whether the target has any registers and whether there is a
837 selected frame up, such that it is also used if a target provides
838 multi-arch definitions of these functions.
839
c525330d
AC
8402002-11-08 Andrew Cagney <ac131313@redhat.com>
841
72bdd927
AC
842 * Makefile.in (DESTDIR): Define.
843 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
844 prefix.
845
c525330d
AC
846 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
847 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
848
38c968cf
AC
8492002-11-08 Andrew Cagney <ac131313@redhat.com>
850
851 * i386-linux-tdep.c: Include "reggroups.h".
852 (i386_linux_register_reggroup_p): New function.
853 (i386_linux_init_abi): Set register_reggroup_p to
854 i386_linux_register_reggroup_p.
855 * i386-tdep.h (i386_register_reggroup_p): Declare.
856 * i386-tdep.c: Include "reggroups.h".
857 (i386_init_reggroups): New function.
858 (i386_add_reggroups): New function.
859 (i386_register_reggroup_p): New function.
860 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
861 (_initialize_i386_tdep): Call i386_init_reggroups.
862 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
863 specific reggroups.
864
19e33363
MK
8652002-11-09 Mark Kettenis <kettenis@gnu.org>
866
371a6e84
MK
867 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
868 request that's available in *BSD.
869
94ba925a
MK
870 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
871
19e33363
MK
872 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
873 FDOFF_REGNUM.
874
8779790c
AC
8752002-11-08 Andrew Cagney <ac131313@redhat.com>
876
877 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
878 * dummy-frame.c (find_dummy_frame): Rename
879 generic_find_dummy_frame, make static. Return the dummy frame
880 instead of the regcache.
881 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
882 (cached_find_dummy_frame): New function. Use find_dummy_frame.
883 (dummy_frame_register_unwind): Rename
884 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
885 * dummy-frame.h (dummy_frame_register_unwind): Rename
886 generic_call_dummy_register_unwind.
887
8674b74f
MK
8882002-11-08 Mark Kettenis <kettenis@gnu.org>
889
890 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
891 except the inclusion of "i386/tm-i386.h", to...
892 * config/i386/nm-i386v42mp.h: ...here.
893 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
894
4c1e7e9d
AC
8952002-11-08 Andrew Cagney <ac131313@redhat.com>
896
897 * Makefile.in (frame.o): Update dependencies.
898 * blockframe.c (current_frame, frame_obstack_alloc)
899 (frame_saved_regs_zalloc, get_current_frame)
900 (set_current_frame, create_new_frame)
901 (set_unwind_by_pc, get_next_frame)
902 (flush_cached_frames, reinit_frame_cache)
903 (frame_saved_regs_register_unwind)
904 (deprecated_generic_get_saved_register)
905 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
906 (_initialize_blockframe): Move frame code from here...
907 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
908 "annotate.h" and "dummy-frame.h".
909 (_initialize_frame): New function.
910
921e78cf
JB
9112002-11-08 Jim Blandy <jimb@redhat.com>
912
913 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
914 when we finish a function a context.
915 * buildsym.h (outermost_context_p): New macro.
916 (Bug analyzed by David Edelsohn.)
917
9c1412c1
AC
9182002-11-08 Andrew Cagney <ac131313@redhat.com>
919
920 * blockframe.c: Include "dummy-frame.h".
921 (struct dummy_frame, dummy_frame_stack)
922 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
923 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
924 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
925 (generic_save_call_dummy_addr, generic_pop_current_frame)
926 (generic_pop_dummy_frame, generic_fix_call_dummy)
927 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
928 dummy frame code from here...
929 * dummy-frame.c: ...to here. New file.
930 * dummy-frame.h: New file.
931 (generic_call_dummy_register_unwind): Declare.
932 (generic_find_dummy_frame): Declare.
933 * Makefile.in (SFILES): Add dummy-frame.c.
934 (dummy-frame.o): Specify dependencies.
935 (dummy_frame_h): Define.
936 (COMMON_OBS): Add dummy-frame.o.
937 (blockframe.o): Update dependencies.
938
208d8187
JB
9392002-11-08 Jim Blandy <jimb@redhat.com>
940
941 * dwarf2read.c (read_func_scope): Restore local_symbols and
942 param_symbols after we finish the function context. (Based on a
943 patch from David Edelsohn.)
944
413dad4d
DC
9452002-11-08 David Carlton <carlton@math.stanford.edu>
946
947 * linespec.c (symbol_found): New function.
948 (minsym_found): New function.
949 (decode_line_1): Separate out some code into separate functions.
950
5512c44a
JB
9512002-11-08 Joel Brobecker <brobecker@gnat.com>
952
953 * i386-tdep.c (i386_frameless_signal_p): Make non static for
954 the benefit of the interix target.
955 * i386-tdep.h (i386_frameless_signal_p): Declare.
956
1b33ef47
AC
9572002-11-08 Andrew Cagney <ac131313@redhat.com>
958
959 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
960 declaration that snuck in from change below.
961
23a34459
AC
9622002-11-06 Andrew Cagney <cagney@redhat.com>
963
964 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
965 all callers.
966 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
967 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
968 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
969 (i386_mxcsr_regnum_p): new function. Use instead of
970 MXCSR_REGNUM_P.
971 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
972 (i386_sse_regnum_p): Declare.
973 (i386_mxcsr_regnum_p): Declare.
974 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
975 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
976 (IS_FP_REGNUM): Update definition.
977 (IS_FPU_CTRL_REGNUM): Update definition..
978 (IS_SSE_REGNUM): Update definition..
979 * i386v-nat.c (register_u_addr): Update.
980 * go32-nat.c (fetch_register): Update.
981 (store_register): Update.
982
d709c020
JB
9832002-11-07 Joel Brobecker <brobecker@gnat.com>
984
985 Preparation work to convert the hppa targets to multiarch partial.
986
987 * hppa-tdep.c: Add new functions replacing macro bodies from
988 config/pa/tm-hppa.h. These function will be used to initialize
989 the gdbarch structure. Import some comments from tm-hppa.h,
990 and place them where appropriate, to avoid loosing them when
991 we cleanup this file.
992 (hppa_reg_struct_has_addr): New function.
993 (hppa_inner_than): New function.
994 (hppa_stack_align): New function.
995 (hppa_pc_requires_run_before_use): New function.
996 (hppa_instruction_nullified): New function.
997 (hppa_register_byte): New function.
998 (hppa_register_virtual_type): New function.
999 (hppa_store_struct_return): New function.
1000 (hppa_cannot_store_register): New function.
1001 (hppa_frame_args_address): New function.
1002 (hppa_frame_locals_address): New function.
1003 (hppa_smash_text_address): New function.
1004 (hppa_coerce_float_to_double): New function. Requires the inclusion
1005 of "language.h".
1006
1007 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1008
1009 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1010 gdbarch-eligible macro to a call to the new associated function
1011 created in hppa-tdep.c.
1012 (INNER_THAN): Likewise.
1013 (STACK_ALIGN): Likewise.
1014 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1015 (INSTRUCTION_NULLIFIED): Likewise.
1016 (REGISTER_BYTE): Likewise.
1017 (REGISTER_VIRTUAL_TYPE): Likewise.
1018 (STORE_STRUCT_RETURN): Likewise.
1019 (CANNOT_STORE_REGISTER): Likewise.
1020 (FRAME_ARGS_ADDRESS): Likewise.
1021 (FRAME_LOCALS_ADDRESS): Likewise.
1022 (SMASH_TEXT_ADDRESS): Likewise.
1023 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1024 (ABOUT_TO_RETURN): Delete, as no longer used.
1025
83c31e7d
FN
10262002-11-07 Fernando Nasser <fnasser@redhat.com>
1027
1028 * printcmd.c (disassemble_command): Remove obsolete function.
1029 (_initialize_printcmd): Do not create disassemble command here.
1030 * cli/cli-cmds.c (disassemble_command): New function. Implements
1031 disassemble command.
1032 (init_cli_cmds): Create disassemble command here instead.
1033
0ec30a36
AC
10342002-11-07 Andrew Cagney <ac131313@redhat.com>
1035
1036 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1037
e600bd34
AC
10382002-11-07 Andrew Cagney <ac131313@redhat.com>
1039
1040 * regcache.h (regcache_cooked_read_using_offset_hack)
1041 (regcache_cooked_write_using_offset_hack): Delete declarations.
1042 (register_changed): Delete declaration.
1043 * regcache.c (regcache_cooked_read_using_offset_hack)
1044 (regcache_cooked_write_using_offset_hack): Delete functions.
1045 (cooked_xfer_using_offset_hack): Delete function.
1046 (register_changed): Delete function.
1047
568f8739
JB
10482002-11-07 Jim Blandy <jimb@redhat.com>
1049
1050 * macroscope.c: #include "complaints.h".
1051 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1052 but not in the macro table.
1053 * Makefile.in (macroscope.o): Record dependency.
1054
b0718b7b
JB
10552002-11-07 Joel Brobecker <brobecker@gnat.com>
1056
1057 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1058
2b9e5f3f
AC
10592002-11-07 Andrew Cagney <ac131313@redhat.com>
1060
1061 * regcache.c (deprecated_registers_fetched): Update.
1062 * regcache.h (deprecated_registers_fetched): Rename
1063 registers_fetched.
1064 * remote-vxsparc.c (vx_read_register): Update.
1065 * remote-vxmips.c (vx_read_register): Update.
1066 * remote-vx68.c (vx_read_register): Update.
1067 * irix5-nat.c (fetch_core_registers): Update.
1068 * mipsm3-nat.c (fetch_inferior_registers): Update.
1069 * sun3-nat.c (fetch_inferior_registers): Update.
1070 * symm-nat.c (fetch_inferior_registers): Update.
1071 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1072 (fetch_core_registers): Update.
1073 (fetch_kcore_registers): Update.
1074 * mips-nat.c (fetch_inferior_registers): Update.
1075 * corelow.c (get_core_registers): Update.
1076 * a68v-nat.c (fetch_inferior_registers): Update.
1077
e6e68f1f
JB
10782002-11-06 Joel Brobecker <brobecker@gnat.com>
1079
1080 Put in place the framework necessary for multiarching the hppa targets.
1081 * hppa-tdep.c (hppa_gdbarch_init): New function.
1082 (hppa_dump_tdep): New function.
1083 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1084 tdep structure dumper.
1085 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1086 until the multi-arching conversion has partially been completed.
1087
492254e9
AC
10882002-11-06 Andrew Cagney <ac131313@redhat.com>
1089
1090 * valops.c (value_assign): Merge lval_register case into
1091 lval_reg_frame_relative. Use frame_register and
1092 regcache_cooked_write instead of get_saved_register and
1093 write_register_bytes. After flushing the register cache, try to
1094 re-select the selected frame.
1095
8262ee23
AC
10962002-11-06 Andrew Cagney <ac131313@redhat.com>
1097
1098 * regcache.h (deprecated_register_valid): Rename register_valid.
1099 * regcache.c: Update.
1100 * ia64-aix-nat.c: Update.
1101 * i386gnu-nat.c: Update.
1102 * alpha-nat.c: Update.
1103 * sparc-nat.c: Update.
1104 * lynx-nat.c: Update.
1105 * remote-mips.c: Update.
1106
4facf7e8
JB
11072002-11-06 Joel Brobecker <brobecker@gnat.com>
1108
1109 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1110 to end of file, to be more consistent with the pratice followed
1111 by other targets.
1112
f9418c0f
AC
11132002-11-06 Andrew Cagney <ac131313@redhat.com>
1114
1115 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1116 (print_float_info): Print registers in float_reggroup.
1117 (print_vector_info): Print registers in vector_reggroup.
1118 (default_print_registers_info): When all, print registers in
1119 all_reggroup. Otherwize, print registers in general_reggroup.
1120 (registers_info): Rewrite. Add support for register groups.
1121 Eliminate a goto.
1122
3fe235a7
EZ
11232002-11-06 Elena Zannoni <ezannoni@redhat.com>
1124
1125 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1126 ages.
1127 (symtab_symbol_info): Remove eons old ifdeffed out code.
1128 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1129 command.
1130
ef944135
TR
11312002-11-06 Theodore A. Roth <troth@openavr.org>
1132
1133 * c-exp.y: Add missing semi-colons.
1134 * f-exp.y: Add missing semi-colons.
1135 * m2-exp.y: Add missing semi-colons.
1136 * p-exp.y: Add missing semi-colons.
1137 Add empty action to start rule to avoid a type clash error when
1138 building with bison >= 1.50.
1139
f8302a57
JB
11402002-11-06 Jim Blandy <jimb@redhat.com>
1141
1142 * macrotab.h (struct macro_source_file): Doc fix.
1143
6e382aa3
JJ
11442002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1145
1146 * varobj.c (child_exists, cplus_number_of_children): Change
1147 STREQ macro references to strcmp.
1148 (cplus_name_of_child): Change code to handle the fact that
1149 fields are not necessarily contiguous with regards to their
1150 access control. This is a fix for PR gdb/792.
1151
a216a322
AC
11522002-11-05 Andrew Cagney <ac131313@redhat.com>
1153
1154 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1155 * gdbarch.h, gdbarch.c: Regnerate.
1156 * frame.h (frame_register): Declare.
1157 * frame.c (frame_register): New function.
1158 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1159 GET_SAVED_REGISTER, otherwize call
1160 generic_unwind_get_saved_register.
1161 (frame_register_read): Use frame_register instead of
1162 get_saved_register.
1163
7d5b6fdd
EZ
11642002-11-05 Elena Zannoni <ezannoni@redhat.com>
1165
1166 From Jim Ingham <jingham@apple.com>:
1167 * event-top.c (gdb_disable_readline): New function.
1168 (_initialize_event_loop): Move comment.
1169
b7c64260
EZ
11702002-11-05 Elena Zannoni <ezannoni@redhat.com>
1171
1172 * event-loop.c (start_event_loop): Add comment.
1173 Update copyright.
1174
c2e1b8f2
AC
11752002-11-05 Andrew Cagney <ac131313@redhat.com>
1176
1177 * infcmd.c (default_print_registers_info): Do not call
1178 PRINT_REGISTER_HOOK.
1179
87647bb0
AC
11802002-11-05 Andrew Cagney <ac131313@redhat.com>
1181
1182 * sparc-tdep.c (sparc_print_register_hook): Make static.
1183 (sparc_print_registers_info): New function.
1184 (sparc_do_registers_info): New function.
1185 (sparclet_print_registers_info): New function.
1186 (sparclet_do_registers_info): New function.
1187 (do_sparc_print_registers_info): New function.
1188 (sparc_print_registers): New static function, clone of infcmd.c's
1189 default_print_registers_info.
1190 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1191 (sparclet_do_registers_info): Declare.
1192 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1193 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1194 Re-define.
1195 (sparc_do_registers_info): Declare.
1196 (PRINT_REGISTER_HOOK): Delete macro.
1197 (sparc_print_register_hook): Delete declaration.
1198
8155455b
DC
11992002-11-05 David Carlton <carlton@math.stanford.edu>
1200
1201 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1202 functions.
1203 (lookup_symbol_aux_local): New function.
1204 (lookup_symbol_aux_symtabs): New function.
1205 (lookup_symbol_aux_psymtabs): New function.
1206
29924310
DC
12072002-11-05 David Carlton <carlton@math.stanford.edu>
1208
1209 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1210 previous values of 'objfile' and 'block'.
1211
cc303028
PM
12122002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1213
1214 * values.c (value_change_enclosing_type): Set
1215 enclosing_type field correctly also for the case where
1216 more memory needs to be allocated.
1217
1d70089a
MK
12182002-11-03 Mark Kettenis <kettenis@gnu.org>
1219
f16a25ae
MK
1220 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1221 of puts_filtered.
1222
1d70089a
MK
1223 * i387-tdep.c (i387_print_float_info): Replace calls to
1224 register_read and deprecated_read_register_gen with calls to
1225 frame_register_read, and make the necessary adjustments to the
1226 surrounding code.
1227
7e20f3fb
AC
12282002-11-02 Andrew Cagney <ac131313@redhat.com>
1229
1230 * gdbarch.sh (register_reggroup_p): Allow default value.
1231 * gdbarch.h, gdbarch.c: Regenerate.
1232
192dbe33
AC
12332002-11-02 Andrew Cagney <ac131313@redhat.com>
1234
1235 * regcache.h: Add coment indicating replacements for deprecated
1236 functions.
1237
b59ff9d5
AC
12382002-11-02 Andrew Cagney <cagney@redhat.com>
1239
1240 * reggroups.h, reggroups.c: New files.
1241 * regcache.c: Include "reggroups.h".
1242 (enum regcache_dump_what): Add `regcache_dump_groups'.
1243 (regcache_dump): Contract size of the "Type" column. When
1244 specified, dump the register's groups.
1245 (maintenance_print_register_groups): New function.
1246 (_initialize_regcache): Add command `maint print register-groups'.
1247 * Makefile.in (COMMON_OBS): Add reggroups.o
1248 (SFILES): Add reggroups.c.
1249 (reggroups_h): Define.
1250 (regcache.o, gdbarch.o): Update dependencies.
1251 (reggroups.o): Specify dependencies.
1252 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1253 Add opaque declaration for `struct reggroup' in generated .h file.
1254 Include "reggroups.h" in generated .c file.
1255 gdbarch.h, gdbarch.c: Re-generate.
1256
4caf0990
AC
12572002-11-02 Andrew Cagney <cagney@redhat.com>
1258
1259 * regcache.h (deprecated_read_register_gen): Rename
1260 read_register_gen.
1261 (deprecated_write_register_gen): Rename write_register_gen.
1262 * i387-tdep.c: Update.
1263 * x86-64-linux-nat.c: Update
1264 * wince.c: Update.
1265 * thread-db.c: Update.
1266 * win32-nat.c: Update.
1267 * mips-tdep.c: Update.
1268 * d10v-tdep.c: Update.
1269 * cris-tdep.c: Update.
1270 * remote-sim.c: Update.
1271 * remote-rdi.c: Update.
1272 * remote-rdp.c: Update.
1273 * frame.c: Update.
1274 * target.c: Update.
1275 * blockframe.c: Update.
1276 * x86-64-tdep.c: Update.
1277 * xstormy16-tdep.c: Update.
1278 * sh-tdep.c: Update.
1279 * s390-tdep.c: Update.
1280 * rs6000-tdep.c: Update.
1281 * sparc-tdep.c: Update.
1282 * i386-tdep.c: Update.
1283 * dwarf2cfi.c: Update.
1284 * regcache.c: Update.
1285
7a7adcdf
JB
12862002-11-01 Joel Brobecker <brobecker@gnat.com>
1287
1288 New interix-specific files:
1289 * config/i386/nm-interix.h: New file.
1290 * config/i386/interix.mh: New file.
1291 * config/i386/interix.mt: New file.
1292 * i386-interix-nat.c: New file.
1293 * i386-interix-tdep.c: New file.
1294
bdcdd535
AC
12952002-11-01 Andrew Cagney <cagney@redhat.com>
1296
1297 * frame.h (deprecated_generic_get_saved_register): Rename
1298 generic_get_saved_register.
1299 * blockframe.c (deprecated_generic_get_saved_register): Update.
1300 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1301 (xstormy16_frame_saved_register): Update.
1302 * sh-tdep.c (sh_gdbarch_init): Update.
1303 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1304 * ia64-tdep.c (ia64_get_saved_register): Update.
1305 * cris-tdep.c (cris_gdbarch_init): Update.
1306 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1307 * arm-tdep.c (arm_gdbarch_init): Update.
1308
2a4b7c45
DJ
13092002-10-31 Daniel Jacobowitz <drow@mvista.com>
1310
1311 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1312
ef17e74b
DJ
13132002-10-31 Daniel Jacobowitz <drow@mvista.com>
1314
1315 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1316 trampolines in sigaction.
1317
4904ba5b
AC
13182002-10-31 Andrew Cagney <cagney@redhat.com>
1319
1320 * h8300-tdep.c: Include "gdb_assert.h".
1321 (h8300_print_register): Add gdbarch, file and frame parameters.
1322 Use frame_read_unsigned_register to read the register's value.
1323 Use fprintf_filtered to display output.
1324 (h8300_print_registers_info): Replace h8300_do_registers_info.
1325 (h8300_gdbarch_init): Set print_registers_info.
1326
f908a0eb
AC
13272002-10-31 Andrew Cagney <cagney@redhat.com>
1328
1329 * frame.c (frame_read_unsigned_register): New function.
1330 (frame_read_signed_register): New function.
1331 * frame.h (frame_read_unsigned_register): Declare.
1332 (frame_read_signed_register): Declare.
1333
c5646e11
AC
13342002-10-31 Andrew Cagney <cagney@redhat.com>
1335
1336 * h8500-tdep.c (h8500_print_registers_info): New static function,
1337 clone of infcmd.c's default_print_registers_info.
1338 (h8500_do_registers_info): New funtion.
1339 (h8500_print_register_hook): Rename print_register_hook, make
1340 static.
1341
1342 * config/h8500/tm-h8500.h: Update copyright.
1343 (DEPRECATED_DO_REGISTERS_INFO): Define.
1344 (h8500_do_registers_info: Declare.
1345 (PRINT_REGISTER_HOOK): Delete macro.
1346 (print_register_hook): Delete function.
1347
0bdd672b
AC
13482002-10-31 Andrew Cagney <cagney@redhat.com>
1349
1350 * z8k-tdep.c (z8k_print_register_hook): Make static.
1351 (z8k_print_registers_info): New static function, clone of
1352 infcmd.c's default_print_registers_info.
1353 (z8k_do_registers_info): New function. Wrap
1354 z8k_print_registers_info.
1355 * config/z8k/tm-z8k.h: Update copyright.
1356 (PRINT_REGISTER_HOOK): Delete macro.
1357 (z8k_print_register_hook): Delete declaration.
1358 (DEPRECATED_DO_REGISTERS_INFO): Define.
1359 (z8k_do_registers_info): Declare.
1360
bf9c25dc
JB
13612002-10-30 Joel Brobecker <brobecker@gnat.com>
1362
1363 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1364 as this is already provided by value.h, and was actually causing
1365 a compilation error because of a conflict in parameter type
1366 declaration due to a missing const keyword.
1367 (low_text_segment_addres): Fix a compilation warning.
1368
2c665b51
DJ
13692002-10-29 Daniel Jacobowitz <drow@mvista.com>
1370
1371 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1372 registers without a name.
1373 (mips_linux_cannot_store_register): Don't store registers without
1374 a name.
1375
e70ea697
DC
13762002-10-28 David Carlton <carlton@math.stanford.edu>
1377
1378 * symtab.c (find_addr_symbol): Delete. (It was already commented
1379 out.)
1380 * symtab.h: Delete prototype for find_addr_symbol.
1381
903ad3a6
AC
13822002-10-26 Andrew Cagney <cagney@redhat.com>
1383
1384 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1385 DO_REGISTERS_INFO.
1386 gdbarch.h, gdbarch.c: Re-generate.
1387 * infcmd.c (default_print_registers_info): Update reference.
1388 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1389 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1390 * sh-tdep.c (sh_gdbarch_init): Ditto.
1391 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1392 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1393
ab91194c
MK
13942002-10-26 Mark Kettenis <kettenis@gnu.org>
1395
e3033f15
MK
1396 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1397 cfi_init_extra_frame_info.
1398 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1399 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1400
b83b026c
MK
1401 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1402 target where necessary. Add more comments and remove the ones
1403 that don't provide any useful information.
1404
267bf4bb
MK
1405 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1406 deprecated_read_register_dummy with
1407 frame_unwind_unsigned_register.
1408
751f1375
MK
1409 * i386-tdep.c (i386_extract_struct_value_address): Use
1410 regcache_raw_read_unsigned instead of
1411 regcache_cooked_read_unsigned since we know that the register
1412 we're reading isn't a pseudo register. Rename variable 'val' into
1413 the more descriptive 'addr'.
1414
26abbdc4
MK
1415 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1416 (x86_64_push_return_address): Add comment.
1417 (x86_64_pop_frame): Make static.
1418 (examine_argument): Clarify comment.
1419 (x86_64_skip_prologue): Make prolog_expact variable static.
1420
9f1549cc
MK
1421 * dwarf2cfi.c: Fix some formatting problems.
1422 (context_cpy, read_encoded_pointer): Clarify comments.
1423
ab91194c
MK
1424 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1425 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1426 i386 target back into x86_64_gdbarch_init. Add some comments and
1427 remove meaningless ones.
1428
72367fb4
AC
14292002-10-25 Andrew Cagney <cagney@redhat.com>
1430
1431 * complaints.h (struct deprecated_complaint): Rename `struct
1432 complaint'.
1433 * complaints.c (complain): Update.
1434 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1435 incorrect comment indicating that "symfile.h" was being included
1436 for the `struct complaint' definition.
1437 * remote-vx.c: Update.
1438 * objc-lang.c: Update.
1439 * xcoffread.c: Update.
1440 * hpread.c: Update.
1441 * mdebugread.c: Update.
1442 * stabsread.c: Update.
1443 * dwarf2read.c: Update.
1444 * dwarfread.c: Update.
1445 * elfread.c: Update.
1446 * coffread.c: Update.
1447 * stabsread.h: Update.
1448 * dbxread.c: Update.
1449 * buildsym.c: Update.
1450 * gdbtypes.c: Update.
1451 * macrotab.c: Update.
1452
1f2baacc
MK
14532002-10-25 Mark Kettenis <kettenis@gnu.org>
1454
0c1a73d6
MK
1455 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1456 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1457 (x86_64_init_abi): ...new function.
1458
6aee4d54 1459 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1460 * i386v-nat.c: Include "i386-tdep.h".
1461
8f9cbe01
AC
14622002-10-25 Andrew Cagney <cagney@redhat.com>
1463
5f11f355
AC
1464 * gdbtypes.c (address_space_name_to_int): Update.
1465 (address_space_int_to_name): Update.
1466 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1467 multi-arch predicate.
1468 (address_class_name_to_type_flags): Ditto.
1469 * gdbarch.h, gdbarch.c: Re-generate.
1470
8f9cbe01
AC
1471 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1472
e8d96a5d
MH
14732002-10-24 Martin M. Hunt <hunt@redhat.com>
1474
1475 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1476
fe39c653
EZ
14772002-10-24 Elena Zannoni <ezannoni@redhat.com>
1478
1479 * symtab.h (INIT_SAL): Delete macro.
1480 (init_sal): Export.
1481 * symtab.c (init_sal): New function.
1482
1483 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1484 to init_sal function call.
1485 (find_sal_from_funcs_and_line): Ditto.
1486 (all_sals_for_line): Ditto.
1487 * breakpoint.c (create_internal_breakpoint): Ditto.
1488 (create_fork_vfork_event_catchpoint): Ditto.
1489 (create_exec_event_catchpoint): Ditto.
1490 (parse_breakpoint_sals): Ditto.
1491 (watch_command_1): Ditto.
1492 (handle_gnu_4_16_catch_command): Ditto.
1493 (clear_command): Ditto.
1494 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1495 * infcmd.c (run_stack_dummy): Ditto.
1496 * infrun.c (process_event_stop_test): Ditto.
1497 (check_sigtramp2): Ditto.
1498 (step_over_function): Ditto.
1499 * linespec.c (decode_line_2): Ditto.
1500 (decode_line_1): Ditto.
1501 * source.c (line_info): Ditto.
1502 * symtab.c (find_pc_sect_line): Ditto.
1503
baed091b
ML
15042002-10-24 Michal Ludvig <mludvig@suse.cz>
1505
1506 * dwarf2cfi.c (struct context)
1507 (struct context_reg): Moved to dwarf2cfi.h
1508 (context_alloc, frame_state_alloc, context_cpy):
1509 Made extern instead of static, removed prototypes.
1510 * dwarf2cfi.h (struct context)
1511 (struct context_reg): New, moved from dwarf2cfi.c
1512 (context_alloc, frame_state_alloc, context_cpy):
1513 New prototypes.
1514 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1515 Changed from static to extern.
1516 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1517 (LINUX_SIGCONTEXT_FP_OFFSET)
1518 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1519 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1520 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1521 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1522 set_gdbarch_*() calls now use x86-64 specific functions
1523 instead of DWARF2 CFI ones.
1524 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1525 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1526 (x86_64_init_extra_frame_info): New prototypes.
1527
c38da1af
DC
15282002-10-23 David Carlton <carlton@math.stanford.edu>
1529
1530 * linespec.c: #include "parser-defs.h".
1531 Delete prototype for find_template_name_end.
1532 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1533
fb9b6b35
JJ
15342002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1535
1536 * NEWS: add recent mi fixes.
1537 * varobj.c (struct varobj): Add new "updated" flag.
1538 (new_variable): Default "updated" flag to 0.
1539 (varobj_set_value): Set "updated" flag to 1 if value
1540 changes.
1541 (varobj_update): Check varobj "updated" flag before
1542 comparing old and refreshed values. Fix for
1543 PR gdb/702.
1544
8da065d5
DC
15452002-10-23 David Carlton <carlton@math.stanford.edu>
1546
1547 * parse.c (parse_exp_1): Use BLOCK_START.
1548 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1549 SYMBOL_BLOCK_VALUE.
1550 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1551
87f2f08c
DC
15522002-10-23 David Carlton <carlton@math.stanford.edu>
1553
1554 * symtab.c: Delete cplusplus_hint.
1555 Delete prototype for find_template_name_end.
1556
88cda038
EZ
15572002-10-23 Elena Zannoni <ezannoni@redhat.com>
1558
1559 * symtab.h: Update comment.
1560
2625d86c
MS
15612002-10-23 Michael Snyder <msnyder@redhat.com>
1562
1563 * printcmd.c (address_info): Restore quotes in output.
1564 * valops.c (value_of_local): Restore quotes in error message.
1565
9cc0d196
EZ
15662002-10-23 Elena Zannoni <ezannoni@redhat.com>
1567
1568 * symtab.c (symbol_demangled_name): New function.
1569 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1570 turning most of it into a function.
1571 (symbol_demangled_name): Export.
1572
19de93d0
MS
15732002-10-23 Michael Snyder <msnyder@redhat.com>
1574
1575 * valops.c (value_of_local): Restore quotes in error message.
1576
89aad1f9
EZ
15772002-10-23 Elena Zannoni <ezannoni@redhat.com>
1578
1579 * symtab.c (symbol_init_language_specific): New function.
1580 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1581 turning most of it into a function.
1582 (symbol_init_language_specific): Export.
1583
d9fa45fe
DC
15842002-10-23 David Carlton <carlton@math.stanford.edu>
1585
1586 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1587 (dwarf_attr_name): Ditto.
1588 (dwarf_type_encoding_name): Ditto.
1589 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1590 (process_die): Handle DW_TAG_namespace,
1591 DW_TAG_imported_declaration, DW_TAG_imported_module.
1592 (read_namespace): New function.
1593
1045b512
JB
15942002-10-22 Joel Brobecker <brobecker@gnat.com>
1595
1596 * configure.in: Define NEW_PROC_API on Interix too.
1597 * configure: Regenerate.
1598
15992002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1600
1601 * configure: Regenerate using the proper version of autoconf.
1602
3987b9d4
EZ
16032002-10-21 Elena Zannoni <ezannoni@redhat.com>
1604
1605 * findvar.c (read_var_value): Temporarily disable TLS code, until
1606 complete TLS support is added.
1607
9d774e44
EZ
16082002-10-21 Jim Blandy <jimb@redhat.com>
1609 Elena Zannoni <ezannoni@redhat.com>
1610
1611 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1612 for thread local storage locations.
1613 (struct symbol): Add objfile field.
1614 (SYMBOL_OBJFILE): Define.
1615 * dwarf2read.c (is_thread_local): New static variable.
1616 (new_symbol): If variable is in thread local fill in address class
1617 and objfile appropriately.
1618 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1619 stack operation.
1620 * printcmd.c (address_info): Print the information for thread
1621 local storage variable.
1622 * findvar.c (read_var_value): In case of thread local variable,
1623 defer to the target vector code to compute address.
1624
bc4a16ae
EZ
16252002-10-21 Elena Zannoni <ezannoni@redhat.com>
1626
1627 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1628 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1629
407caf07
EZ
16302002-10-21 Elena Zannoni <ezannoni@redhat.com>
1631
1632 * symtab.h (address_class): Rename
1633 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1634 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1635 * printcmd.c (address_info): Ditto.
1636 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1637
005328e3
MK
16382002-10-20 Mark Kettenis <kettenis@gnu.org>
1639
afdb036a
MK
1640 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1641 DBREG_DRX macro to acces debug registers.
1642
ca02e098
MK
1643 * Makefile.in (i386obsd-tdep.o): New target.
1644
03cc47f7
MK
1645 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1646 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1647
005328e3
MK
1648 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1649 * config/i386/obsd.mt: New file.
1650 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1651 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1652 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1653 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1654 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1655 * i386obsd-tdep.c: New file.
1656
9c96f9f2
AF
16572002-10-19 Adam Fedor <fedor@gnu.org>
1658
1659 * objc-exp.y (name_not_typename): Fix invalid comment.
1660
ce1ed485
MK
16612002-10-20 Mark Kettenis <kettenis@gnu.org>
1662
1663 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1664 to allocate partial syms and macro byte caches.
1665
1efc7aaa
DC
16662002-10-18 David Carlton <carlton@math.stanford.edu>
1667
1668 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1669
7e1d63ec
AF
16702002-10-18 Adam Fedor <fedor@gnu.org>
1671
1672 * stabsread.c (find_name_end): New function.
1673 (define_symbol): Use it.
1674
6e8d29a9
DJ
16752002-10-18 Daniel Jacobowitz <drow@mvista.com>
1676
1677 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1678 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1679 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1680 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1681
1efc7aaa 16822002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1683
1684 * symfile.h: Add opaque declaration for struct obstack.
1685 Declare obsavestring to take a const char *.
1686 * symfile.c (obsavestring): Make first argument a const char *.
1687
1aeae86e
AF
16882002-10-16 Adam Fedor <fedor@gnu.org>
1689
1690 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1691 names when matching breakpoints in current file.
1692
8b2dbe47
KB
16932002-10-16 Kevin Buettner <kevinb@redhat.com>
1694
1695 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1696 (read_tag_pointer_type): Add address class support.
1697 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1698 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1699 New methods.
1700 * gdbarch.h, gdbarch.c: Regenerate.
1701 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1702 (make_type_with_address_space, recursive_type_dump): Add address
1703 class support.
1704 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1705 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1706 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1707
74451869
KD
17082002-10-16 Klee Dienes <kdienes@apple.com>
1709
1710 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1711 to get the last character of a char[] buffer, not
1712 name[sizeof(vptr_name)-1].
1713
ff4cb3e8
AF
17142002-10-14 Adam Fedor <fedor@gnu.org>
1715
1716 * symtab.h: New objc_specific struct.
1717 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1718 (SYMBOL_DEMANGLED_NAME): Likewise.
1719
da2cf7e0
AF
17202002-10-14 Adam Fedor <fedor@gnu.org>
1721
1722 * symfile.c (init_filename_language_table): Add ObjC file extension.
1723
4a351cef
AF
17242002-10-14 Adam Fedor <fedor@gnu.org>
1725
1726 * utils.c (puts_filtered_tabular): New function.
1727 (fprintf_symbol_filtered): Get ObjC demangled name.
1728 * defs.h (puts_filtered_tabular): Declared.
1729
9750e763
KB
17302002-10-14 Kevin Buettner <kevinb@redhat.com>
1731
1732 * c-lang.h (c_type_print_varspec_prefix): Delete.
1733 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1734 ``need_post_space'' parameter. Adjust all callers.
1735
eee771c1
DJ
17362002-10-14 Daniel Jacobowitz <drow@mvista.com>
1737
1738 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1739 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1740 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1741 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1742
46c82446
AF
17432002-10-13 Adam Fedor <fedor@gnu.org>
1744
1745 * source.c (print_source_lines): Update comments.
1746
d069f99d
AF
17472002-10-13 Adam Fedor <fedor@gnu.org>
1748
1749 * valops.c (value_of_local): New function.
1750 (value_of_this): Use it.
1751 * value.h (value_of_local): Declared.
1752
53c551b7
AF
17532002-10-13 Adam Fedor <fedor@gnu.org>
1754
1755 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1756 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1757
eb392fbf
AF
17582002-10-12 Adam Fedor <fedor@gnu.org>
1759
1760 * language.c (binop_result_type): Add language_objc to case.
1761 (integral_type): Likewise.
1762 (character_type): Likewise.
1763 (string_type): Likewise.
1764 (boolean_type): Likewise.
1765 (structured_type): Likewise.
1766 (binop_type_check): Likewise.
1767
e2b23ee9
AF
17682002-10-11 Adam Fedor <fedor@gnu.org>
1769
1770 * printcmd.c (address_info): Print 'self' for ObjC.
1771
b01ab485
AF
17722002-10-11 Adam Fedor <fedor@gnu.org>
1773
1774 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1775 OP_SELF.
1776
806e6073
AF
17772002-10-11 Adam Fedor <fedor@gnu.org>
1778
1779 * language.h (CAST_IS_CONVERSION): Add language_objc.
1780
50f85cdf
AF
17812002-10-11 Adam Fedor <fedor@gnu.org>
1782
1783 * defs.h (enum language): Add language_objc.
1784
0d540cdf
KD
17852002-10-11 Klee Dienes <kdienes@apple.com>
1786
69266111 1787 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1788 * gdbcore.h (read_memory_typed_address): Add prototype.
1789 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1790 to read a value destined for a CORE_ADDR, not read_memory_integer.
1791 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1792 (f77_get_dynamic_lowerbound): Ditto.
1793
d5dc7960
MH
17942002-10-11 Martin M. Hunt <hunt@redhat.com>
1795
1796 * utils.c (string_to_core_addr): After turning string into
1797 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1798 which will do necessary sign-extension, etc.
1799
8343f86c
DJ
18002002-10-11 Daniel Jacobowitz <drow@mvista.com>
1801
1802 * c-exp.y (THIS): Delete token and grammar rule.
1803 (yylex): Don't return THIS.
1804 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1805 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1806 * demangle.c (cplus_markers): Update comment. Put '$'
1807 first. Remove CPLUS_MARKER.
1808 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1809 * jv-exp.y (THIS): Delete token and grammar rule.
1810 (yylex): Don't return THIS.
1811 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1812 * objc-exp.y (THIS): Delete token and grammar rule.
1813 (yylex): Don't return THIS.
1814 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1815 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1816 (read_member_functions): Likewise for opname.
1817 (read_tilde_fields): Use is_cplus_marker.
1818
1819 * defs.h (CPLUS_MARKER): Don't define.
1820 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1821 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1822 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1823 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1824 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1825
1826 * config/i386/tm-i386v4.h: Delete file.
1827 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1828 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1829 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1830 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1831 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1832 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1833 * config/i386/i386v4.mt (TM_FILE): Likewise.
1834 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1835
967c0d83
MM
18362002-10-10 Marko Mlinar <markom@opencores.org>
1837
1838 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1839 accidentially not commited 2002-10-09
1840 * gdbarch.h, gdbarch.c: Re-generate.
1841
f74fa174
MM
18422002-10-09 Marko Mlinar <markom@opencores.org>
1843
1844 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1845 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1846 * gdbarch.h, gdbarch.c: Re-generate.
1847
57349743
JB
18482002-10-08 Petr Sorfa <petrs@caldera.com>
1849
1850 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1851
1852 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1853 so we can work on more than one compilation unit at a time. This
1854 helps prepare GDB to handle inter-CU die references.
1855 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1856 the code to be defined before struct comp_unit_head.
1857 (comp_unit_head): Added new members - offset, cu_head,
1858 begin_die, next and dwarf2_abbrevs.
1859 (dwarf2_abbrevs): Removed single static var; now member of
1860 struct comp_unit_head.
1861 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1862 members.
1863 (psymtab_to_symtab_1): Changed to work with the new
1864 struct comp_unit_head.
1865 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1866 constructs the dwarf2_abbrevs[] inside the cu_header.
1867 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1868 dwarf2_abbrev table to clean up.
1869 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1870 handling of dwarf2_abbrevs inside the cu_header.
1871 (read_partial_die): Now supports the call to the new
1872 dwarf2_lookup_abbrev.
1873 (read_full_die): Now supports the call to the new
1874 dwarf2_lookup_abbrev.
1875
4092aadb
CF
18762002-10-06 Christopher Faylor <cgf@redhat.com>
1877
1878 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1879 insure that shell variables, such as "transformed_name" are propagated
1880 to later shell statements in rule.
1881
af0b2512
MK
18822002-10-06 Mark Kettenis <kettenis@gnu.org>
1883
1884 * config/i386/nm-i386sco.h: Add protection against
1885 multiple-inclusion. Include "i386/nm-i386v.h".
1886 (REGISTER_U_ADDR): Remove define.
1887 (i386_register_u_addr): Remove prototype.
1888
d6020d45
MS
18892002-10-04 Michael Snyder <msnyder@redhat.com>
1890
1891 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1892 before treating it as a single-step event.
1893
7248f48e
AF
18942002-10-03 Adam Fedor <fedor@gnu.org>
1895
1896 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1897 (objc_demangle): Remove assignment in if statements, Replace
1898 free with xfree.
1899 (add_msglist): Likewise.
1900 (end_msglist): Likewise.
1901 (complare_selectors): Likewise.
1902 (selectors_info): Likewise.
1903 (compare_classes): Likewise.
1904 (classes_info): Likewise.
1905 (print_object_command): Likewise.
1906 (find_objc_msgcall_submethod): Replace PTR with void *.
1907 * objc-lang.h: Remove check for __STDC__.
1908
52c6a6ac
JJ
19092002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1910
1911 * ui-out.h (ui_out_field_fmt_int): New prototype.
1912 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1913 of field width and alignment.
1914 * stack.c (print_frame_info_base): When printing frame level, use
1915 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1916 PR gdb/192
1917
7e3cec17
JJ
19182002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1919
1920 * MAINTAINERS: Add self to Write After Approval list.
1921
a58dd373
EZ
19222002-10-02 Elena Zannoni <ezannoni@redhat.com>
1923
1924 * infcmd.c (interrupt_target_command_wrapper): Delete.
1925 (interrupt_target_command): Make non static.
1926 (nofp_registers_info): Make static.
1927 * stack.c (return_command_wrapper): Delete.
1928 (return_command): Make non static.
1929
cee6ddeb
EZ
19302002-10-02 Elena Zannoni <ezannoni@redhat.com>
1931
1932 * event-top.c (gdb_setup_readline): New function. Code moved from
1933 _initialize_event_loop().
1934 (_initialize_event_loop): Call gdb_setup_readline().
1935
c4ed33b9
AC
19362002-10-02 Andrew Cagney <ac131313@redhat.com>
1937
1938 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1939 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1940 * gdbarch.h, gdbarch.c: Re-generate.
1941
cef4f5dd
DJ
19422002-10-02 Daniel Jacobowitz <drow@mvista.com>
1943
1944 Fix PR gdb/778
1945 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1946 before recursing.
1947 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1948 of fill_in_vptr_fieldno.
1949
36dc181b 19502002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 1951
36dc181b
EZ
1952 * inferior.h (registers_info, stepi_command, nexti_command,
1953 continue_command, interrupt_target_command): Export from infcmd.c.
1954 * frame.h (args_info, selected_frame_level_changed_hook,
1955 return_command): Export from stack.c.
1956 * v850ice.c (stepi_command, nexti_command, continue_command): use
1957 prototypes from inferior.h.
1958 * tracepoint.c (registers_info, args_info, locals_info): Use
1959 prototypes from frame.h and inferior.h.
1960 * Makefile.in (mi-main.o): Add dependency on frame.h.
1961
6f99cb26
AC
19622002-10-02 Andrew Cagney <ac131313@redhat.com>
1963
da3eff49
AC
1964 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1965 value in register 3 adjusted by ppc_gp0_regnum.
1966
6f99cb26
AC
1967 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1968
da615bee
MM
19692002-10-02 Marko Mlinar <markom@opencores.org>
1970
1971 * MAINTAINERS: Add myself to the Write After Approval list.
1972
d154bee2
AO
19732002-10-01 Alexandre Oliva <aoliva@redhat.com>
1974
62a49b2c
AO
1975 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1976 of the section for the N64 ABI, fixed.
1977
d154bee2
AO
1978 * config/mips/tm-irix6.h: Include solib.h.
1979
ed348acc
EZ
19802002-10-01 Elena Zannoni <ezannoni@redhat.com>
1981
1982 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1983 GNU operators.
1984
da0f9dcd
AC
19852002-10-01 Andrew Cagney <ac131313@redhat.com>
1986
1987 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1988 and that "mi0" syntax has been removed.
1989
bdf64bac
DC
19902002-09-30 David Carlton <carlton@math.stanford.edu>
1991
1992 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1993 * ppc-sysv-tdep.c: #include "gdb_string.h".
1994 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1995 pacify GCC.
1996
54c2a1e6
AC
19972002-10-01 Andrew Cagney <ac131313@redhat.com>
1998
1999 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2000 "vrsave"'s register number.
2001
cedea778
AC
20022002-09-30 Andrew Cagney <ac131313@redhat.com>
2003
2004 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2005 use frame_unwind_signed_register to obtain the PC.
2006 (mips_frame_chain): Handle a generic dummy frame.
2007 (mips_init_extra_frame_info): When a generic dummy frame, don't
2008 re-compute the frame base.
2009 (mips_pop_frame): Handle generic dummy frames.
2010 (mips_gdbarch_init): When generic dummy frames, set
2011 use_generic_dummy_frames, push_dummy_frame to
2012 generic_push_dummy_frame, pc_in_call_dummy to
2013 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2014 generic_save_dummy_frame_tos.
2015
68315eb8
AC
20162002-09-30 Andrew Cagney <ac131313@redhat.com>
2017
2018 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2019 against TOP when TOP was explictly set.
2020 (generic_push_dummy_frame): Set TOP to zero.
2021
3b8630c3
EZ
20222002-09-30 Elena Zannoni <ezannoni@redhat.com>
2023
2024 * event-loop.c (start_event_loop): Rename variable 'result' to
2025 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2026
28ee05e9
KS
20272002-09-30 Keith Seitz <keiths@redhat.com>
2028
2029 * gdb-events.sh (selected_thread_changed): New event.
2030 * gdb-events.c: Regenerated.
2031 * gdb-events.h: Regenerated.
2032
6eecb1c8
HPN
20332002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2034
2035 * MAINTAINERS: Add self to Write After Approval list.
2036
92df71f0
FN
20372002-09-30 Fernando Nasser <fnasser@redhat.com>
2038
3b8630c3
EZ
2039 * disasm.c: New file.
2040 * disasm.h: New file.
92df71f0
FN
2041 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2042 (compare_lines): Ditto.
2043 (dump_insns): Ditto.
3b8630c3
EZ
2044 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2045 argument.
92df71f0 2046 (do_assembly_only): Ditto.
3b8630c3
EZ
2047 (do_disassembly): Renamed to gdb_disassembly and moved to
2048 disasm.c. Sdded uiout argument.
2049 * Makefile.in: Add new files. Reorder SFILES list. Update
2050 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2051
0c22854d
AC
20522002-09-29 Andrew Cagney <ac131313@redhat.com>
2053
2054 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2055 bfd/elf64-alpha-fbsd.c.
2056
e67f2023
AC
20572002-09-29 Andrew Cagney <ac131313@redhat.com>
2058
2059 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2060 i386gnu-tdep.c.
2061
89396210
AC
20622002-09-29 Andrew Cagney <ac131313@redhat.com>
2063
2064 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2065 __FUNCTION__.
2066 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2067 function name.
2068 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2069 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2070 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2071 (S_msg_sig_post_reply): Ditto.
2072
7079c36c
CV
20732002-09-28 Corinna Vinschen <vinschen@redhat.com>
2074
89396210
AC
2075 * sh-tdep.c (sh_use_struct_convention): Use definition according
2076 to ABI.
7079c36c
CV
2077 (sh_push_arguments): Store in register with correct endianess.
2078 (sh_default_store_return_value): Ditto.
2079 (sh_gdbarch_init): Set sizeof long double to 8.
2080
975ac915
MK
20812002-09-27 Mark Kettenis <kettenis@gnu.org>
2082
2083 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2084 Fix some whitespace problems.
2085
9bbe19fb
DC
20862002-09-27 David Carlton <carlton@math.stanford.edu>
2087
2088 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2089 (mcore-tdep.o): Ditto.
2090 (ns32k-tdep.o): Ditto.
2091 (ns32knbsd-tdep.o): Ditto.
2092 (sh3-rom.o): Ditto.
2093 (vax-tdep.o): Ditto.
2094 * cris-tdep.c: #include "gdb_string.h"
2095 * mcore-tdep.c: Ditto.
2096 * ns32k-tdep.c: Ditto.
2097 * ns32knbsd-tdep.c: Ditto.
2098 * sh3-rom.c: Ditto.
2099 * vax-tdep.c: Ditto.
2100
43b2fdc7
DC
21012002-09-27 David Carlton <carlton@math.stanford.edu>
2102
2103 * config/djgpp/fnchange.lst: Add entries for
2104 gdb/testsuite/gdb.c++/m-static files.
2105
e8cfbbd9
JW
21062002-09-27 Jim Wilson <wilson@redhat.com>
2107
2108 * MAINTAINERS: Add myself to the Write After Approval list.
2109
43b2fdc7 21102002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2111
2112 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2113
2114
9f3b7f07
AC
21152002-09-26 Andrew Cagney <ac131313@redhat.com>
2116
2117 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2118 frame.
2119
11269d7e
AC
21202002-09-26 Andrew Cagney <ac131313@redhat.com>
2121
2122 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2123 (rs6000_struct_return_address): Delete variable.
2124 (rs6000_store_struct_return): Update.
2125 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2126 deprecated_extract_struct_value_address.
2127 (rs6000_frame_align): New function.
2128 (rs6000_gdbarch_init): Set frame_align.
2129
f15ab4a7
AC
21302002-09-26 Andrew Cagney <ac131313@redhat.com>
2131
2132 From Grace Sainsbury <graces@redhat.com>:
2133 * Makefile.in (gdbtk-main.o): New target.
2134 (gdb.o): New target.
2135 (main_h): Define.
2136 (main.o): Update dependencies.
2137 (gdb$(EXEEXT)): Add gdb.o.
2138 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2139 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2140 (SUBDIR_GDBTK_CLEAN): Set.
2141 (install-gdbtk): Install the insight binary.
2142 (uninstall-gdbtk): New target.
2143 (all-gdbtk, clean-gdbtk): New rule.
2144 * top.c (use_windows): Default to zero.
2145 * main.c: Include "main.h".
2146 (main): Delete.
2147 (struct captured_main_args): Delete.
2148 (gdb_main): New function.
2149 * main.h: New file.
2150 * gdb.c: New File.
2151
e36180d7
AC
21522002-09-25 Andrew Cagney <cagney@redhat.com>
2153
2154 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2155 (frame_map_regnum_to_name): New function.
2156 (frame_map_name_to_regnum): New function.
2157 * frame.h (frame_map_name_to_regnum): Declare.
2158 (frame_map_regnum_to_name): Declare.
2159 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2160 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2161 * parse.c: Do not include "builtin-regs.h".
2162 (target_map_name_to_register): Delete function.
2163 (write_dollar_variable): Use frame_map_name_to_regnum.
2164 * parser-defs.h (target_map_name_to_register): Delete declaration.
2165 * expprint.c: Include "frame.h".
2166 (print_subexp): Use frame_map_regnum_to_name.
2167 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2168 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2169
8b69000d
AC
21702002-09-25 Andrew Cagney <ac131313@redhat.com>
2171
2172 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2173 wasn't saved, and the next innermost frame is a dummy, return the
2174 dummy frame's link register.
2175
046ca86a
JB
21762002-09-24 Jim Blandy <jimb@redhat.com>
2177
2178 Fix from Paul Breed:
2179 * main.c (captured_main): Add a `break' after the case for 'b'.
2180
94b66fa7
KS
21812002-09-24 Keith Seitz <keiths@redhat.com>
2182
2183 * varobj.c (c_type_of_child): Use get_target_type instead
2184 of TYPE_TARGET_TYPE.
2185
c214a6fd
FN
21862002-09-22 Fernando Nasser <fnasser@redhat.com>
2187
53cb0458
FN
2188 * source.c (get_current_or_default_source_symtab_and_line): Remove
2189 function.
2190 (set_default_source_symtab_and_line): New function. Attempts to
2191 determine a source file to list lines from if one is not currently
2192 defined.
2193 (get_current_source_symtab_and_line): Initialize sal.pc and
2194 sal.end fields.
2195 (set_current_source_symtab_and_line): Mark argument as const.
2196 * source.h: Update declarations and comments.
2197 * linespec.c (decode_line_1): Replace call to removed routine above.
2198 * stack.c (print_frame_info_base): Ditto.
2199 * cli/cli-cmds.c (edit_command): Ditto.
2200 (list_command): Ditto.
2201
22022002-09-22 Fernando Nasser <fnasser@redhat.com>
2203
d6020d45 2204 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2205 sal.pc and sal.end fields.
c214a6fd
FN
2206 (get_current_or_default_source_symtab_and_line): Ditto.
2207 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2208 so we do not cause a new source symtab to be searched for (reverting an
2209 unintentional change from the 2002-09-20 patch).
2210 * scm-lang.c (scm_unpac): Ditto.
2211
cc3b68a5
AC
22122002-09-21 Andrew Cagney <cagney@redhat.com>
2213
2214 * complaints.c (symfile_explanations): Remove new-line from
2215 ``isolated_message''.
2216 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2217 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2218
5835abe7
NC
22192002-09-20 Nick Clifton <nickc@redhat.com>
2220
2221 * NEWS: Announce that V850EA ISA is no longer supported.
2222 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2223
a15ef5f5
DC
22242002-09-20 David Carlton <carlton@math.stanford.edu>
2225
06ba1b39
DC
2226 * Makefile.in (c-lang.o): Correct dependencies.
2227 (utils.o): Gather dependencies.
2228 (charset.o): Move.
a15ef5f5
DC
2229 * c-lang.c: #include "gdb_string.h"
2230
87885426
FN
22312002-09-20 Fernando Nasser <fnasser@redhat.com>
2232
2233 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2234 * cli/cli-cmds.c (list_command): New function. Implements the new
2235 cli edit command.
2236 (_init_cli_cmds): Add new command definition.
2237 * gdb.1: Document edit command.
2238 * doc/gdb.texinfo: Document edit command.
2239
22402002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2241
2242 * source.c: Make global variables current_source_symtab and
2243 current_source_line static.
2244 (list_command): Moved to cli/cli-cmds.c.
2245 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2246 (get_first_line_listed): New accessor function.
2247 (get_lines_to_list): New accessor function.
2248 (get_current_source_symtab_and_line): New function. Retrieves the
2249 position in the source code that we consider current.
2250 (get_current_or_default_source_symtab_and_line): New function.
2251 Like the above but attempts to determine a default position if one
2252 is not currently defined.
2253 (set_current_source_symtab_and_line): New function. Sets the source
2254 code position considered current and returns the previously set one.
2255 (clear_current_source_symtab_and_line): Reset stored information about
2256 a current source line.
2257 (_initialize_source): Remove registration for the "list" command and
2258 its alias.
2259 * source.h: Add declarations for the new functions above.
2260 * symtab.h: Remove declarations for the global variables mentioned
2261 above.
2262 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2263 obtain current source line.
2264 * linespec.c (decode_line_1): Ditto.
2265 * macroscope.c (default_macro_scope): Ditto.
2266 * scm-lang.c (scm_unpac): Ditto.
2267 * stack.c (print_frame_info_base): Ditto.
2268 * symfile.c (clear_symtab_users): Ditto.
2269 * symtab.c (decode_line_spec): Ditto.
2270 * cli/cli-cmds.c (list_command): Moved here from source.c.
2271 (ambiguous_line_spec): Moved here from source.c.
2272 (_init_cli_cmds): Add definition for "list" and its alias.
2273 * Makefile.in: Update dependencies.
2274
ddd216ea
CV
22752002-09-20 Corinna Vinschen <vinschen@redhat.com>
2276
2277 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2278 with what gcc thinks is correct.
2279
6d305052
CV
22802002-09-20 Corinna Vinschen <vinschen@redhat.com>
2281
2282 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2283 multiple register push instruction.
2284
234b45d4
KB
22852002-09-19 Jim Blandy <jimb@redhat.com>
2286
2287 Add support for distinct host and target character sets.
2288 * charset.c, charset.h: New files.
2289 * c-exp.y: #include "charset.h".
2290 (yylex): Convert character and string literals to the target
2291 character set, before returning them as the semantic value of the
2292 token.
2293 * c-lang.c: #include "charset.h".
2294 (c_emit_char): Use charset-specific methods to recognize
2295 characters with backslash escape forms, to decide which characters
2296 to print literally and which to print using numeric escape
2297 sequences, and to convert target characters to host characters
2298 before printing.
2299 * utils.c: #include "charset.h".
2300 (no_control_char_error): New function.
2301 (parse_escape): Use charset-specific methods to recognize
2302 backslash escapes, parse `control character' notation, and convert
2303 characters from the host character set to the target character set.
2304 * configure.in: Set the default host character set.
2305 Check where to find iconv, and what its argument types might be.
2306 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2307 * Makefile.in (SFILES): List charset.c.
2308 (COMMON_OBS): List charset.o.
2309 (charset.o): New rule.
2310 (charset_h): New header dependency variable.
2311 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2312 (LIBICONV): New variable, set by configure.
2313 (CLIBS): Include $(LIBICONV) here.
2314 * aclocal.m4, config.in, configure: Regenerated.
2315
525d6a61
JB
23162002-09-19 Joel Brobecker <brobecker@gnat.com>
2317
2318 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2319 bison 1.35 warning.
2320
3ed93867
RE
23212002-09-19 Richard Earnshaw <rearnsha@arm.com>
2322
2323 * gdb_mbuild.sh: New file.
2324
437666f8
AC
23252002-09-19 Andrew Cagney <ac131313@redhat.com>
2326
2327 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2328
389e51db
AC
23292002-09-18 Andrew Cagney <ac131313@redhat.com>
2330
2331 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2332 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2333 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2334 valops.c, value.h: Revert previous change.
2335
3b4efeaa
MS
23362002-09-18 Michael Snyder <msnyder@redhat.com>
2337
2338 Preliminary support for Objective-C:
2339 * defs.h (language_objc): New enum value.
2340 (puts_filtered_tabular): Declaration only, exported from utils.c.
2341 (skip_quoted): Delete, declared in completer.h.
2342 * c-exp.y: Include completer.h.
2343 * p-exp.y: Ditto.
2344 * jv-exp.y: Ditto.
2345 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2346 New operator enum values.
2347 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2348 * language.c (binop_result_type): Handle language_objc case.
2349 (integral_type, character_type, string_type, boolean_type,
2350 structured_type, binop_type_check): Ditto.
2351 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2352 (struct objc_specific): Add to general_symbol_info.
2353 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2354 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2355 * parser-defs.h (struct objc_class_str): New struct type.
2356 (start_msglist, end_msglist, add_msglist): Declaration only,
2357 exported from objc-lang.c.
2358 * value.h (value_of_local, value_nsstring,
2359 call_function_by_hand_expecting_type): Exported from valops.c.
2360 * valops.c (find_function_addr): Export.
2361 (call_function_by_hand_expecting_type): New function.
2362 (value_of_local): New function.
2363 * symfile.c (init_filename_language_table): Add ".m" extension
2364 for Objective-C.
2365 * utils.c (puts_filtered_tabular): New function.
2366 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2367 (set/show demangle): Extend help-string to refer to ObjC.
2368 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2369 * stabsread.c (symbol_reference_defined): Objective-C symbols
2370 may contain colons: make allowances when scanning stabs strings
2371 for colons.
2372 (objc_find_colon): New function.
2373 * printcmd.c (address_info): If language == objc then print
2374 "self" instead of "this".
2375 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2376 OP_NSSTRING, and OP_SELF.
2377 (prefixify_subexp): Ditto.
2378 * source.c (print_source_lines): Mention objc in comment.
2379 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2380 method names.
2381
b9caf505
AC
23822002-09-18 Andrew Cagney <ac131313@redhat.com>
2383
2384 * complaints.h: Update copyright.
2385 (struct complaints): Declare.
2386 (struct complaint): Make `message' constant.
2387 (internal_complaint): Declare.
2388 (complaint): Declare.
2389 (complaint_root): Delete declaration.
2390 (symfile_complaints): Delete declaration.
2391 (struct complaints): Add opaque declaration.
2392 (clear_complaints): Add a complaints parameter.
2393 * complaints.c: Update copyright.
2394 (enum complaint_series): Define.
2395 (complaint_root): Delete.
2396 (struct complaints): Define.
2397 (complaint_sentinel, symfile_complaint_book): New variables.
2398 (symfile_explanations, symfile_complaints): New variables.
2399 New variables.
2400 (get_complaints): New function.
2401 (vcomplaint): New function.
2402 (complaint): New function.
2403 (internal_complaint): New function.
2404 (complain): Call vcomplain with symfile_complaint.
2405 (clear_complaints): Rewrite.
2406 (_initialize_complaints): Use add_setshow_command.
2407 * Makefile.in (complaints.o): Update dependencies.
2408 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2409 to call to clear_complaints.
2410 (new_symfile_objfile, reread_symbols): Ditto.
2411 (oldsyms_complaint): Delete.
2412 (empty_symtab_complaint, unknown_option_complaint): Delete.
2413 (free_named_symtabs): Use complaint instead of complain.
2414
d2e6263c
MS
24152002-09-18 Michael Snyder <msnyder@redhat.com>
2416
5fb2031a
AC
2417 Contributed by Apple Computer, Inc. Merged with current sources
2418 by Adam Fedor <fedor@doc.com> [cagney].
2419
d2e6263c
MS
2420 * objc-lang.c: First clean-up round: comments, indentation.
2421 * objc-lang.h: Ditto.
2422 * objc-lang.y: Ditto.
2423
dec43320
AC
24242002-09-18 Andrew Cagney <ac131313@redhat.com>
2425
2426 * maint.c (maintenance_internal_error): Print the parameter as the
2427 error message.
2428 (maintenance_internal_warning): New function.
2429 (_initialize_maint_cmds): Add command `maint internal-warning'.
2430
2431 * defs.h (internal_warning, internal_vwarning): Declare.
2432 * utils.c (struct internal_problem): Define.
2433 (internal_vproblem): New function.
2434 (internal_warning): New function.
2435 (internal_vwarning): New function.
2436 (internal_warning_problem, internal_error_problem): New variables.
2437 (internal_verror): Just call internal_vproblem.
2438
b81654f1
MS
24392002-09-18 Michael Snyder <msnyder@redhat.com>
2440
2441 * objc-lang.c: New file, support for Objective-C.
2442 Preliminary check-in, not yet integrated into gdb.
2443 * objc-lang.h: New file.
2444 * objc-exp.y: New file.
2445
0542c381
AC
24462002-09-18 Andrew Cagney <ac131313@redhat.com>
2447
7bda5e4a
AC
2448 * infrun.c (signal_stop_update): Convert definition to ISO C.
2449 (signal_print_update): Ditto.
2450 (signal_pass_update): Ditto.
2451 * inflow.c (terminal_save_ours): Ditto.
2452
5247b418
AC
2453 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2454 comments.
2455
fc60962c
AC
2456 * config/djgpp/fnchange.lst: Handle name clashes between
2457 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2458 bfd/coff-tic80.c.
2459
0542c381
AC
2460 * i386-linux-tdep.h: Fix tipo.
2461
5b924b9b
AF
24622002-09-18 Adam Fedor <fedor@gnu.org>
2463
2464 * MAINTAINERS: Add myself to the Write After Approval list.
2465
5afc051b
JB
24662002-09-18 Jim Blandy <jimb@redhat.com>
2467
2468 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2469 texthigh and textlow to reader-specific structs caused
2470 objfile_relocate to miss them. This is fixable, but the work that
2471 the change was supposed to prepare GDB for never got done anyway.
2472
eb944380
DC
24732002-09-18 David Carlton <carlton@math.stanford.edu>
2474
2475 * MAINTAINERS: Alphabetize Write After Approval list.
2476
948e66d9
DJ
24772002-09-18 Daniel Jacobowitz <drow@mvista.com>
2478
2479 Fix PR gdb/709
2480 * values.c (value_static_field): Call read_var_value.
2481
dc604539
AC
24822002-09-18 Andrew Cagney <ac131313@redhat.com>
2483
2484 * valops.c (hand_function_call): Align the initial stack pointer
2485 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2486 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2487 return value.
2488 * mips-tdep.c (mips_frame_align): New function.
2489 (mips_gdbarch_init): Set frame_align.
2490 * gdbarch.sh (FRAME_ALIGN): New method.
2491 * gdbarch.h, gdbarch.c: Re-generate.
2492
cb7e422f
ML
24932002-09-18 Michal Ludvig <mludvig@suse.cz>
2494
2495 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2496 registers.
2497
a094c6fb
AC
24982002-09-17 Andrew Cagney <ac131313@redhat.com>
2499
2500 * NEWS: Mention that MIPS $fp behavior changed.
2501 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2502 reference to FP_REGNUM.
2503 (mipsnbsd_cannot_store_register): Ditto.
2504 * mips-linux-nat.c: Update copyright.
2505 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2506 (mips_linux_cannot_store_register): Ditto.
2507 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2508 * config/mips/tm-mips.h: Update copyright.
2509 (FP_REGNUM): Delete macro.
2510 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2511 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2512 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2513 (mips_r3041_reg_names, mips_r3051_reg_names)
2514 (mips_r3081_reg_names): Replace "fp" with "".
2515 Fix PR gdb/480.
2516
45cf40d1
TR
25172002-09-17 Theodore A. Roth <troth@verinet.com>
2518
2519 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2520 generic_read_register_dummy() (PR gdb/703).
2521 (avr_push_return_address): #if 0 out unused vars.
2522 (avr_gdbarch_init): Enable use of avr_push_return_address().
2523
c7e701b5
MS
25242002-09-17 Michael Snyder <msnyder@redhat.com>
2525
d76ba2a5 2526 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2527 RTE will take care of it.
2528
20bcf01c
AC
25292002-09-17 Andrew Cagney <ac131313@redhat.com>
2530
2531 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2532 invalid, return SP_REGNUM.
2533
009a9971 25342002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2535
2536 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2537 point registers without sign extension.
2538
135c175f
AC
25392002-09-17 Andrew Cagney <cagney@redhat.com>
2540
2541 * blockframe.c (deprecated_read_register_dummy): Rename
2542 generic_read_register_dummy.
2543 * frame.c (frame_unwind_signed_register): New function.
2544 (frame_unwind_unsigned_register): New function.
2545 * frame.h (frame_unwind_signed_register): Declare.
2546 (frame_unwind_unsigned_register): Declare.
2547 (deprecated_read_register_dummy): Rename
2548 generic_read_register_dummy.
2549
2550 * h8300-tdep.c (h8300_frame_chain): Update.
2551 (h8300_frame_saved_pc): Update.
2552 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2553 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2554 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2555 (s390_frame_chain): Update.
2556 * v850-tdep.c (v850_find_callers_reg): Update.
2557 (v850_frame_saved_pc): Update.
2558 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2559 (m32r_find_callers_reg): Update.
2560 (m32r_frame_saved_pc): Update.
2561 * sh-tdep.c (sh_find_callers_reg): Update.
2562 (sh64_get_saved_pr): Update.
2563 (sh_init_extra_frame_info): Update.
2564 (sh_init_extra_frame_info): Update.
2565 (sh64_init_extra_frame_info): Update.
2566 (sh64_init_extra_frame_info): Update.
2567 * mcore-tdep.c (mcore_find_callers_reg): Update.
2568 (mcore_frame_saved_pc): Update.
2569 (mcore_init_extra_frame_info): Update.
2570 * i386-tdep.c (i386_frame_saved_pc): Update.
2571 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2572 (ia64_init_extra_frame_info): Update.
2573 (ia64_init_extra_frame_info): Update.
2574 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2575 * cris-tdep.c (cris_init_extra_frame_info): Update.
2576 * avr-tdep.c (avr_frame_chain): Update.
2577 (avr_init_extra_frame_info): Update.
2578 (avr_frame_saved_pc): Update.
2579 * arm-tdep.c (arm_find_callers_reg): Update.
2580 (arm_init_extra_frame_info): Update.
2581 (arm_frame_saved_pc): Update.
2582
a741e514
TT
25832002-09-17 Tom Tromey <tromey@redhat.com>
2584
2585 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2586 is "'".
2587
d1a8e808
CV
25882002-09-17 Corinna Vinschen <vinschen@redhat.com>
2589
2590 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2591 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2592 NEXT_PROLOGUE_INSN.
2593 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2594 NEXT_PROLOGUE_INSN.
2595
d9025a18
JB
25962002-09-16 Joel Brobecker <brobecker@gnat.com>
2597
2598 * osfsolib.c: Remove file, replaced by solib-osf.c.
2599 * Makefile.in: Remove compilation rules for osfsolib.c.
2600
1b2ef1b6
DC
26012002-09-16 David Carlton <carlton@math.stanford.edu>
2602
2603 * cp-valprint.c (cp_print_class_method): Correct args to
2604 check_stub_method_group.
2605
928e48af
CV
26062002-09-16 Corinna Vinschen <vinschen@redhat.com>
2607
2608 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2609 `set architecture'. Unify naming convention of functions.
2610 (h8300_skip_prologue): Improve prologue analysis.
2611 (h8300_push_arguments): Rewritten to more closely match GCC's
2612 bizarre argument-passing behavior, along with the comment describing
2613 said behavior.
2614 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2615 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2616 sim, remote-e7000.c, remote-hms.c and remote.c
2617
5e3397bb
MK
26182002-09-15 Mark Kettenis <kettenis@gnu.org>
2619
2620 * i386-tdep.c (gdb_print_insn_i386): Removed.
2621 (i386_print_insn): New function.
2622 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2623 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2624 tm_print_insn_info.
2625
f710f4fc
MK
26262002-09-14 Mark Kettenis <kettenis@gnu.org>
2627
2628 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2629 zero.
2630
db54fef4
CV
26312002-09-14 Corinna Vinschen <vinschen@redhat.com>
2632
2633 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2634 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2635 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2636
2becadee
CF
26372002-09-13 Christopher Faylor <cgf@redhat.com>
2638
2639 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2640
de17c821
DJ
26412002-09-13 Daniel Jacobowitz <drow@mvista.com>
2642
2643 * gdbtypes.c (check_stub_method): Make static.
2644 (check_stub_method_group): New function.
2645 * gdbtypes.h: Update prototypes.
2646 * cp-support.c: New file.
2647 * cp-support.h: New file.
2648
2649 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2650 (update_method_name_from_physname): New function.
2651 (read_member_functions): Correct method names for operators
2652 and v3 constructors/destructors. Separate v2 constructors and
2653 destructors.
2654 * Makefile.in (stabsread.o): Update dependencies.
2655 (SFILES): Add cp-support.c.
2656 (COMMON_OBS): Add cp-support.o.
2657 (cp_support_h, cp-support.o): Add.
2658
2659 * cp-valprint.c (cp_print_class_method): Call
2660 check_stub_method_group instead of check_stub_method. Remove
2661 extraneous QUITs.
2662 * p-valprint.c (pascal_object_print_class_method): Likewise.
2663 * valops.c (search_struct_method): Likewise.
2664 (find_method_list, value_struct_elt_for_reference): Likewise.
2665
e76cff22
AC
26662002-09-13 Andrew Cagney <cagney@redhat.com>
2667
2668 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2669 * gdbarch.h, gdbarch.c: Regenerate.
2670
905abb3f
AC
26712002-09-13 Andrew Cagney <ac131313@redhat.com>
2672
2673 * frame.c (find_saved_register): Delete function.
2674 * frame.h (find_saved_register): Delete declaration.
2675 Fix PR gdb/631.
2676
64159455
AC
2677Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2678
2679 * mips-tdep.c (read_next_frame_reg): Re-hack using
2680 frame_register_unwind.
2681
795e1e11
AC
2682Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2683
2684 * mips-tdep.c (mips_get_saved_register): Re-hack using
2685 frame_register_unwind.
2686
5720643c
JB
26872002-09-12 Joel Brobecker <brobecker@gnat.com>
2688
2689 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2690 vector. Will be useful for Interix.
2691 * gdbarch.h, gdbarch.c: Regenerate.
2692
2693 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2694 name of the malloc function by NAME_OF_MALLOC.
2695
3bada2a2
JB
26962002-09-12 Joel Brobecker <brobecker@gnat.com>
2697
2698 * value.h (find_function_in_inferior): Add const keyword to
2699 one of the parameters. Allows us to invoke this function with
2700 a const char *.
2701 * valops.c (find_function_in_inferior): Likewise.
2702
3db26b01
JB
27032002-09-12 Joel Brobecker <brobecker@gnat.com>
2704
2705 * exec.c (xfer_memory): Fix compilation warning with old versions
2706 of GCC.
2707 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2708
17c5ed2c
DC
27092002-09-12 David Carlton <carlton@math.stanford.edu>
2710
2711 * symtab.h: Run through gdb_indent.h.
2712 Add 2002 to Copyright year list.
2713
ecd1107e
AM
27142002-09-12 Alan Modra <amodra@bigpond.net.au>
2715
2716 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2717 mach constants.
2718 * MAINTAINERS: Add myself to write after approval list.
2719
e64f66d1
JB
27202002-09-11 J. Brobecker <brobecker@gnat.com>
2721
2722 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2723
f9395794
JB
27242002-09-11 J. Brobecker <brobecker@gnat.com>
2725
2726 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2727 Interix.
2728
1a303dec
MS
27292002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2730
2731 * procfs.c (do_detach): Clear current signal, not just fault.
2732 Corrects problem with breakpoint trap signal leaking to detached
2733 process on Tru64.
2734
c0219d42
MS
27352002-09-10 Michael Snyder <msnyder@redhat.com>
2736
2737 * buildsym.c (finish_block): Protect against null pointer.
2738
9d84ac84
AC
27392002-09-10 Andrew Cagney <cagney@redhat.com>
2740
2741 * infcmd.c (default_print_registers_info): Send all output to
2742 ``file'' instead of ``gdb_stdout''.
2743
77d8f2b4
MS
27442002-09-10 Michael Snyder <msnyder@redhat.com>
2745
2746 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2747 LONGEST, and use signed register read (addresses are sign-
2748 extended for mips).
2749
99656a61
SC
27502002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2751
2752 * event-loop.c (gdb_do_one_event): Make public.
2753 * event-loop.h (gdb_do_one_event): Declare.
2754
da12f4d8
JL
27552002-09-10 Jeff Law <law@redhat.com>
2756
2757 * infttrace.c (child_resume): Simplify and rework to avoid
2758 TT_PROC_CONTINUE.
2759
d0aee0c4
FF
27602002-09-09 Fred Fish <fnf@intrinsity.com>
2761
2762 * printcmd.c (print_scalar_formatted): "len" is the number of
2763 target bytes, NOT the number of target bits.
2764
7cb3ec5e
EZ
27652002-09-09 Elena Zannoni <ezannoni@redhat.com>
2766
2767 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2768 * top.c (init_main): Set rl_terminal_name.
2769
4dc81987
AS
27702002-09-08 Aidan Skinner <aidan@velvet.net>
2771
2772 * ada-lang.c (ada_array_bound, ada_type_match,
2773 _initialize_ada_language): Fix K&R definitions.
2774 * ada-tasks.c (get_current_task): Fix K&R definitions.
2775 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2776
842330b4
CF
27772002-09-07 Christopher Faylor <cgf@redhat.com>
2778
2779 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2780 Add XP.
2781
43156d82
MK
27822002-09-06 Mark Kettenis <kettenis@gnu.org>
2783
66da5fd8
MK
2784 * i386-tdep.c (i386_register_virtual_type,
2785 i386_register_convertible, i386_register_convert_to_virtual,
2786 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2787 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2788 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2789 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2790 Don't set push_arguments twice.
2791
4b218c18
MK
2792 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2793 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2794 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2795 sigtramp_end to NULL.
2796 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2797 defines.
2798 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2799
4cc314d5
MK
2800 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2801 whitespace.
2802
43156d82
MK
2803 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2804 * gdbarch.h, gdbarch.c: Re-generate.
2805 * blockframe.c (find_pc_sect_partial_function): Convert to use
2806 SIGTRAMP_START_P predicate.
2807
6672060b
MS
28082002-09-05 Michael Snyder <msnyder@redhat.com>
2809
a90c3637
MS
2810 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2811 generic_dummy_frame method and old method. Also distinguish
2812 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2813 (arm_extract_return_value): Use new regcache method.
a90c3637 2814
6672060b
MS
2815 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2816 adjustment that doesn't conform to the ABI.
2817 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2818 saved regcache, not from current regcache.
2819
299ffc64
AC
28202002-09-05 Andrew Cagney <ac131313@redhat.com>
2821
2822 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2823 * README: Update.
2824
a3a2ee65
JT
28252002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2826
2827 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2828 if arm_apcs_32 is false.
2829
2bc7eea9
AC
28302002-09-04 Andrew Cagney <ac131313@redhat.com>
2831
2832 GDB 5.3 branch created.
2833
8a55a7c5
TR
28342002-09-03 Theodore A. Roth <troth@verinet.com>
2835
2836 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2837 generic_unwind_get_saved_register.
2838
e26fb1d7
DC
28392002-09-03 David Carlton <carlton@math.stanford.edu>
2840
2841 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2842 argument (PR gdb/653). Update call to smash_to_method_type.
2843 (read_structure_scope): Update call to dwarf2_add_member_fn.
2844
30d52491
ML
28452002-09-03 Michal Ludvig <mludvig@suse.cz>
2846
2847 * x86-64-linux-tdep.c: Include gdb_string.h
2848 * x86-64-linux-nat.c: Ditto.
2849
06891d83
JT
28502002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2851
2852 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2853 when YYDEBUG is set to 1.
2854 * c-exp.y: Likewise.
2855 * f-exp.y: Likewise.
2856 * jv-exp.y: Likewise.
2857 * m2-exp.y: Likewise.
2858 * p-exp.y: Likewise.
2859
7d400e77
JT
28602002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2861
2862 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2863 dependency list.
2864 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2865 solib_svr4_fetch_link_map_offsets to
2866 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2867 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2868 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2869 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2870 solib-svr4.o, and solib-legacy.o.
2871 * config/i386/tm-nbsd.h: Include solib.h.
2872
704a27c4
JT
28732002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2874
2875 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2876 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2877 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2878 comment noting that this needs its own target configuration.
2879 * config/i386/nbsd.mt: New file.
2880 * config/i386/nbsdaout.mt: Remove.
2881 * config/i386/nbsdelf.mt: Ditto.
2882 * config/i386/tm-nbsdaout.h: Ditto.
2883
d66198e1
JT
28842002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2885
2886 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2887 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2888 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2889 tdep->sigtramp_end.
2890 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2891 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2892 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2893
3cac699e
JT
28942002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2895
2896 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2897 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2898 * i386-tdep.h (i386bsd_init_abi): New prototype.
2899 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2900 function declaration.
2901 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2902 for NetBSD-a.out or NetBSD-ELF.
2903 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2904 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2905 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2906 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2907 and nbsd-tdep.h.
2908 (i386nbsd_pc_in_sigtramp): New function.
2909 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2910 i386nbsd_pc_in_sigtramp.
2911 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2912 and i386nbsdelf_init_abi OS ABI handlers.
2913 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2914 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2915
7010ca0a
MK
29162002-09-02 Mark Kettenis <kettenis@gnu.org>
2917
2918 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2919 registers if the target really has them.
2920
6dd93b72
JT
29212002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2922
2923 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2924 than nbsd-tdep.h.
2925
2ca8ae21
JT
29262002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2927
2928 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2929 list.
2930 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2931 (alphanbsd_skip_sigtramp_frame): New functions.
2932 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2933 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2934 to alphanbsd_sigcontext_addr.
2935
3d9b49b0
JT
29362002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2937
2938 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2939 list.
2940 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2941 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2942 nbsd_pc_in_sigtramp.
2943 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2944 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2945 * nbsd-tdep.c: Include gdb_string.h.
2946 (nbsd_pc_in_sigtramp): New function.
2947 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2948 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2949 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2950 ppcnbsd_pc_in_sigtramp.
2951 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2952 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2953 shnbsd_pc_in_sigtramp.
2954 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2955 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2956 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2957
c860120c
PM
29582002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2959
2960 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2961 watchpoints to NULL.
2962 (insert_breakpoints): set val field of watchpoints if NULL.
2963
2964
c7612d53
JB
29652002-08-29 Jim Blandy <jimb@redhat.com>
2966
2967 * symtab.c (lookup_symbol_aux): In the cases where we find a
2968 minimal symbol of an appropriate name and use its address to
2969 select a symtab to read and search, use `name' (as passed to us)
2970 as the demangled name when searching the symtab's global and
2971 static blocks, not the minsym's name.
2972
66609862
KS
29732002-08-29 Keith Seitz <keiths@redhat.com>
2974
2975 * stack.c (print_frame_info_base): Always set current_source_symtab
2976 and current_source_line.
2977
151fefe2
JB
29782002-08-29 Donn Terry <donnte@microsoft.com>
2979
2980 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2981
bfb3754e
KS
29822002-08-28 Keith Seitz <keiths@redhat.com>
2983
2984 * stack.c (select_frame): Add FIXME concerning selected-frame
2985 events.
2986 (select_frame_command): Send selected-frame-level-changed
2987 event notification, but only if the level actually changed.
2988 (up_silently_base): Add selected-frame-level-changed event
2989 notification.
2990 (down_silently_base): Likewise.
2991
e822a2a0
AC
29922002-08-28 Andrew Cagney <ac131313@redhat.com>
2993
2994 * Makefile.in: Update dependencies for all gdb/*.c files.
2995
309367d4
TT
29962002-08-27 Tom Tromey <tromey@redhat.com>
2997
2998 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2999 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3000 Update dependencies.
3001 * i387-tdep.c: Include gdb_string.h.
3002 * osabi.c: Likewise.
3003 * i386-linux-nat.c: Likewise.
3004 * lin-lwp.c: Likewise.
3005 * ax-gdb.c: Likewise.
3006 * signals/signals.c: Likewise.
3007 * jv-valprint.c: Likewise.
3008 * p-lang.c: Likewise.
3009 * c-valprint.c: Likewise.
3010 * cp-abi.c: Likewise.
3011
e1507482
EZ
30122002-08-27 Elena Zannoni <ezannoni@redhat.com>
3013
3014 * cli/cli-script.h (copy_command_lines): Export.
3015 * breakpoint.c: Include cli/cli-script.h.
3016 * Makefile.in (breakpoint.o): Update dependencies.
3017
c6510018
MS
30182002-08-26 Michael Snyder <msnyder@redhat.com>
3019
3020 * breakpoint.c (insert_breakpoints): Protect all references
3021 to 'process_warning'. Shorten long lines.
3022
c2b8ed2c
MS
30232002-08-26 Joel Brobecker <brobecker@gnat.com>
3024
3025 * cli/cli-script.c (copy_command_lines): New function.
3026 * defs.h (copy_command_lines): Export.
3027 * testsuite/gdb.base/commands.exp: New tests for commands
3028 attached to a temporary breakpoint, and for commands that
3029 delete the breakpoint they are attached to.
3030
30312002-08-26 Michael Snyder <msnyder@redhat.com>
3032
3033 * breakpoint.c (bpstat_stop_status): Instead of copying the
3034 pointer to the breakpoint commands struct, make a new copy
3035 of the struct and point to that.
3036 (bpstat_clear): Free the commands struct.
3037 (bpstat_clear_actions): Free the commands struct.
3038 (bpstat_do_actions): Free the command actions. Also execute
3039 the local cleanups, instead of deleting them.
3040 (delete_breakpoint): Leave the commands field of the bpstat
3041 chain alone -- it will be freed later.
3042
64b84175
KB
30432002-08-26 Kevin Buettner <kevinb@redhat.com>
3044
3045 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3046 deleted in 2002-08-20 commit. This function is still used by
3047 ppc-linux-nat.c.
3048
55970da6
KS
30492002-08-26 Keith Seitz <keiths@redhat.com>
3050
3051 * gdb-events.sh: Add selected-frame-level-changed event.
3052 * gdb-events.c: Regenerated.
3053 * gdb-events.h: Regenerated.
3054
a790ad35
SC
30552002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3056
3057 Fix PR gdb/393:
3058 * inflow.c (terminal_save_ours): New function to save terminal
3059 settings.
3060 * inferior.h (terminal_save_ours): Declare.
3061 * target.c (debug_to_terminal_save_ours): New function.
3062 (cleanup_target): Defaults to_terminal_save_ours.
3063 (update_current_target): Inherit to_terminal_save_ours.
3064 (setup_target_debug): Set to_terminal_save_ours.
3065 * target.h (target_terminal_save_ours): New to save terminal settings.
3066 (target_ops): New member to_terminal_save_ours.
3067 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3068 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3069 * inftarg.c (init_child_ops): Likewise.
3070 * m3-nat.c (init_m3_ops): Likewise.
3071 * procfs.c (init_procfs_ops): Likewise.
3072 * wince.c (init_child_ops): Likewise.
3073 * win32-nat.c (init_child_ops): Likewise.
3074 * sol-thread.c (init_sol_thread_ops): Likewise.
3075
c00dcbe9
MK
30762002-08-26 Mark Kettenis <kettenis@gnu.org>
3077
3d7f4f49
MK
3078 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3079 use regcache_* functions.
3080 (i386_gdbarch_init): Set store_return_value instead of
3081 deprecated_store_return_value.
3082
c00dcbe9
MK
3083 * regcache.c (regcache_raw_write_signed,
3084 regcache_raw_write_unsigned): New functions.
3085 * regcache.h (regcache_raw_write_signed,
3086 regcache_raw_write_unsigned): New prototypes.
3087
0e0d15ca
AC
30882002-08-25 Andrew Cagney <ac131313@redhat.com>
3089
3090 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3091 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3092 source file dependencies. Cleanup corresponding generator rules.
3093
d3b22ed5
AC
30942002-08-25 Andrew Cagney <ac131313@redhat.com>
3095
3096 * regcache.h (register_offset_hack): Declare.
3097 (regcache_cooked_read_using_offset_hack): Declare.
3098 (regcache_cooked_write_using_offset_hack): Declare.
3099
3100 * regcache.c (register_offset_hack): New function.
3101 (regcache_cooked_read_using_offset_hack): New function.
3102 (regcache_cooked_write_using_offset_hack): New function.
3103 (regcache_dump): Check that the registers, according to their
3104 offset, are packed hard against each other.
3105 (cooked_xfer_using_offset_hack): New function.
3106
bb425013
AC
31072002-08-25 Andrew Cagney <ac131313@redhat.com>
3108
3109 * regcache.c (struct regcache_descr): Add field register_type.
3110 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3111 in as a parameter
3112 (init_regcache_descr): Initialize register_type. Pass the descr
3113 to init_legacy_regcache_descr. Use register_type instead of
3114 REGISTER_VIRTUAL_TYPE.
3115 (register_type): New function.
3116 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3117 * regcache.h (register_type): Declare.
3118
d0403e00
AC
31192002-08-25 Andrew Cagney <ac131313@redhat.com>
3120
3121 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3122 instead of deprecated_store_return_value. Fix fallout from
3123 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3124
0ed04cce
AC
31252002-08-25 Andrew Cagney <ac131313@redhat.com>
3126
3127 * regcache.c (max_register_size): New function.
3128 (init_legacy_regcache_descr): Ensure that max_register_size is
3129 large enough for REGISTER_VIRTUAL_SIZE.
3130 * regcache.h (max_register_size): Declare.
3131
46d79c04
AC
31322002-08-24 Andrew Cagney <ac131313@redhat.com>
3133
3134 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3135 store_return_value.
3136 (e500_extract_return_value): Change type of valbuf pointer to
3137 void.
3138
853c7bd0
MK
31392002-08-24 Mark Kettenis <kettenis@gnu.org>
3140
cd87e769
MK
3141 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3142 workaround.
3143
853c7bd0
MK
3144 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3145 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3146 long long) to prevent compiler warning on 64-bit systems.
3147
ebba8386
AC
31482002-08-23 Andrew Cagney <cagney@redhat.com>
3149
3150 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3151 (DEPRECATED_STORE_RETURN_VALUE): New method.
3152 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3153 * gdbarch.h, gdbarch.c: Re-generate.
3154
3155 * values.c (set_return_value): Pass current_regcache to
3156 STORE_RETURN_VALUE.
3157 * arch-utils.h (legacy_store_return_value): Declare.
3158 * arch-utils.c (legacy_store_return_value): New function.
3159 (legacy_extract_return_value): Update parameters.
3160
3161 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3162 STORE_RETURN_VALUE.
3163 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3164 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3165 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3166 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3167 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3168 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3169 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3170 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3171 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3172 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3173
3174 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3175 * i386-tdep.c (i386_extract_return_value): Update.
3176 * arch-utils.c (legacy_extract_return_value): Update.
3177 * frv-tdep.c (frv_gdbarch_init): Update.
3178 * cris-tdep.c (cris_gdbarch_init): Update.
3179 * d10v-tdep.c (d10v_gdbarch_init): Update.
3180 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3181 * m68k-tdep.c (m68k_gdbarch_init): Update.
3182 * mcore-tdep.c (mcore_gdbarch_init): Update.
3183 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3184 * s390-tdep.c (s390_gdbarch_init): Update.
3185 * sparc-tdep.c (sparc_gdbarch_init): Update.
3186 * sh-tdep.c (sh_gdbarch_init): Update.
3187 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3188 * v850-tdep.c (v850_gdbarch_init): Update.
3189 * avr-tdep.c (avr_gdbarch_init): Update.
3190 * ia64-tdep.c (ia64_gdbarch_init): Update.
3191 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3192 * vax-tdep.c (vax_gdbarch_init): Update.
3193 * alpha-tdep.c (alpha_gdbarch_init): Update.
3194 * arm-tdep.c (arm_gdbarch_init): Update.
3195 * mips-tdep.c (mips_gdbarch_init): Update.
3196 * i386-tdep.c (i386_gdbarch_init): Update.
3197
5bd8c6d0
AC
31982002-08-23 Andrew Cagney <ac131313@redhat.com>
3199
3200 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3201 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3202
e73e1724
MK
32032002-08-24 Mark Kettenis <kettenis@gnu.org>
3204
3205 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3206 problems.
3207
3e6564e1
JB
32082002-08-23 Joel Brobecker <brobecker@gnat.com>
3209
3210 * infrun.c (handle_inferior_event): Move a comment outside of a
3211 function call, in order to avoid indent reformatting this part
3212 of the code in an unreadable way.
3213
81d0cc19
GS
32142002-08-23 Grace Sainsbury <graces@redhat.com>
3215
3216 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3217 when breakpoints fail. Move general breakpoint error messages to
3218 insert_breakpoints.
3219 * breakpoint.c (insert_breakpoints): Change warnings when
3220 breakpoints are nto inserted to specify the type. Remove call to
3221 memory_error when hardware breakpoints can't be inserted. Remove
3222 multiple calls to warning so all messages are sent to the user at
3223 once.
3224 (delete_breakpoints): Make insert error messsages more explicit.
3225
17574093
DJ
32262002-08-23 Daniel Jacobowitz <drow@mvista.com>
3227
3228 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3229 gdbserver/ChangeLog.
3230
8acc2935
MK
32312002-08-23 Mark Kettenis <kettenis@gnu.org>
3232
dfe01d39
MK
3233 * i386-tdep.c: Include "objfiles.h".
3234 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3235 skip_trampoline_code.
3236 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3237 (CPLUS_MARKER): Define to '.'.
3238
8acc2935
MK
3239 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3240 member.
3241 (linux_corefile_thread_callback): Increase args->num_notes.
3242 (linux_make_note_section): Initialize thread_args.num_notes, and
3243 use it to determine whether notes for any threads were created.
3244
151fefe2 32452002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3246
3247 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3248 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3249 and PCUNKILL.
3250 (write_with_trace): Conditionalize out the switch branch handling
3251 PCSHOLD if the corresponding macro is not defined. Likewise for
3252 PRSABORT and PRSTOP.
3253 This change will be needed by the Interix port.
3254
e1507482
EZ
32552002-08-22 Elena Zannoni <ezannoni@redhat.com>
3256
3257 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3258 write_register wherever possible instead of manipulating the
3259 register bytes directly.
3260 Assign VALUE_CONTENTS to a variable and use that.
3261 The GPR numbers are now dependent on the architecture.
3262
96ff0de4
EZ
32632002-08-22 Elena Zannoni <ezannoni@redhat.com>
3264
3265 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3266 ev_offset fields.
3267 (skip_prologue): Add support for BookE/e500 instructions.
3268 (e500_extract_return_value): New function.
3269 (frame_get_saved_regs): Add support for saving ev registers and
3270 pseudo gpr's.
3271 (e500_store_return_value): New function.
3272 (rs6000_gdbarch_init): Move up default intializations of
3273 deprecated_extract_return_value and store_return_value. Overwrite
3274 init of store_return_value with e500 specific version.
3275 Set extract_return_value for e500.
3276
fbefca5b
EZ
32772002-08-22 Elena Zannoni <ezannoni@redhat.com>
3278
3279 * blockframe.c (generic_call_dummy_register_unwind): Use
3280 regcache_cooked_read to catch cases in which the variable is
3281 stored in a pseudo register.
3282
4d210288
AC
32832002-08-22 Andrew Cagney <cagney@redhat.com>
3284
3285 * NEWS: Mention that the i960 has been made obsolete.
3286 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3287 i960-tdep.c
3288 (remote-nrom.o): Obsolete target.
3289 (remote-nindy.o, i960-tdep.o): Ditto.
3290 * remote-nrom.c: Make file obsolete.
3291 * remote-nindy.c, remote-vx960.c: Ditto.
3292 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3293 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3294 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3295 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3296 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3297 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3298 i960-*-vxworks* obsolete.
3299 * MAINTAINERS: Note that the i960 is obsolete.
3300
6c0c456d
CV
33012002-08-21 Corinna Vinschen <vinschen@redhat.com
3302
3303 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3304 detach to allow reinitialization.
3305
9f9d12b3
AC
33062002-08-22 Andrew Cagney <ac131313@redhat.com>
3307
3308 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3309 attempt).
3310
ebeb39fe
JB
33112002-08-22 Jim Blandy <jimb@redhat.com>
3312
3313 * coffread.c (coff_symfile_read): Don't try to read the line
3314 number table from disk if the image file doesn't have a symbol
3315 table; we'll never actually look at the info anyway, and Windows
3316 ships DLL's with bogus file offsets for the line number data.
3317
5bf1c677
EZ
33182002-08-21 Elena Zannoni <ezannoni@redhat.com>
3319
3320 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3321 an e500 executable.
3322
71b8ef93
MS
33232002-08-21 Michael Snyder <msnyder@redhat.com>
3324
3325 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3326 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3327 (DEFAULT_MIPS_TYPE): Delete unused macro.
3328 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3329 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3330
d174216d
JB
33312002-08-21 Jim Blandy <jimb@redhat.com>
3332
3333 * valops.c (value_cast): Simplify and correct logic for doing a
3334 static cast from a pointer to a base class to a pointer to a
3335 derived class.
3336
0ab7a791
AC
33372002-08-21 Andrew Cagney <ac131313@redhat.com>
3338
3339 * infcmd.c (default_print_registers_info): Replace
3340 do_registers_info.
3341 (registers_info): Use gdbarch_print_registers_info instead of
3342 DO_REGISTERS_INFO.
3343 * inferior.h (default_print_registers_info): Replace
3344 do_registers_info.
3345 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3346 (DO_REGISTERS_INFO): Change to a predicate function.
3347 * gdbarch.h, gdbarch.c: Regenerate.
3348
e23792cc
KS
33492002-08-21 Keith Seitz <keiths@redhat.com>
3350
3351 * gdb-events.sh: Add target-changed event.
3352 * gdb-events.c: Regenerated.
3353 * gdb-events.c: Regenerated.
3354 * valops.c (value_assign): Add target-changed event notification
3355 to inlval_register, lval_memory, and lval_reg_frame_relative.
3356
9fb14e79
JB
33572002-08-21 Joel Brobecker <brobecker@gnat.com>
3358
3359 * NEWS: Add an entry regarding the improvement of the next/step
3360 operation on Alpha Tru64 multi-processor machines.
3361
6d39a69f
AC
33622002-08-21 Andrew Cagney <ac131313@redhat.com>
3363
72acd513
AC
3364 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3365 directores.
342af04b 3366 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3367 * Makefile.in (install-gdbtk): Move to install section.
3368 (rdi-share/libangsd.a): Move to end of file.
3369
fa5f27c7
AC
33702002-08-19 Andrew Cagney <ac131313@redhat.com>
3371
3372 * frame.c (frame_register_unwind): When a register, set addrp to
3373 the register's byte.
3374
5a89d8aa
MS
33752002-08-20 Michael Snyder <msnyder@redhat.com>
3376
3377 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3378 used locally, so move them from the target machine header to here.
3379 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3380 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3381 Make static.
3382 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3383
822e978b
AC
33842002-08-20 Andrew Cagney <cagney@redhat.com>
3385
3386 * NEWS: Mention that the Apollo line was made obsolete.
3387 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3388 m68*-hp-hpux* obsolete.
3389 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3390 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3391 * buildsym.c (make_blockvector): Make static.
3392 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3393 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3394 (ALLDEPFILES): Remove dstread.c.
3395 (dstread.o): Obsolete make rule.
3396 * dstread.c: Makefile obsolete.
3397 * dst.h: Ditto.
3398 * config/m68k/hp300hpux.mt: Ditto.
3399 * config/m68k/hp300hpux.mh: Ditto.
3400 * config/m68k/hp300bsd.mt: Ditto.
3401 * config/m68k/hp300bsd.mh: Ditto.
3402 * config/m68k/apollo68b.mt: Ditto.
3403 * config/m68k/apollo68v.mh: Ditto.
3404 * config/m68k/apollo68b.mh: Ditto.
3405
e41b17f0
MS
34062002-08-20 Michael Snyder <msnyder@redhat.com>
3407
3408 * mips-tdep.c (mips_in_return_stub): Make static.
3409 (mips_gdbarch_init): Set in_solib_return_trampoline.
3410 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3411
d50355b6
MS
34122002-08-20 Michael Snyder <msnyder@redhat.com>
3413
3414 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3415 * gdbarch.c, gdbarch.h: Regenerate.
3416 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3417 Add.
3418 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3419
757a7cc6
MS
34202002-08-20 Michael Snyder <msnyder@redhat.com>
3421
3422 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3423 (mips_gdbarch_init): Set skip_trampoline_code,
3424 in_solib_call_trampoline.
3425 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3426 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3427
c8001721
EZ
34282002-08-20 Elena Zannoni <ezannoni@redhat.com>
3429
3430 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3431
3432 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3433 vector type for ev registers.
3434 (e500_pseudo_register_read): New function.
3435 (e500_pseudo_register_write): New function.
3436 (e500_dwarf2_reg_to_regnum): New function.
3437 (PPC_UISA_NOFP_SPRS): New macro.
3438 (PPC_EV_REGS): New macro.
3439 (PPC_GPRS_PSEUDO_REGS): New macro.
3440 (registers_e500): New register set for e500.
3441 (variants): Add e500 variant.
3442 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3443 before setting architectural dependent variations. Initialize ev
3444 registers numbers. Add case for e500 architecture. Set the
3445 number of pseudo registers.
3446
64366f1c
EZ
34472002-08-20 Elena Zannoni <ezannoni@redhat.com>
3448
3449 * rs6000-tdep.c: Clean up comments.
3450
7e78f0ca
AC
34512002-08-20 Andrew Cagney <cagney@redhat.com>
3452
3453 * h8300-tdep.c: Re-indent file.
3454
697f7479
JB
34552002-08-20 Jim Blandy <jimb@redhat.com>
3456
3457 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3458 default for this.
697f7479 3459
e86ae29f
KS
34602002-08-20 Keith Seitz <keiths@redhat.com>
3461
3462 * breakpoints.c (watch_command_1): Use internal breakpoint
3463 when setting a watchpoint_scope breakpoint.
3464
216b504f
EZ
34652002-08-20 Elena Zannoni <ezannoni@redhat.com>
3466
3467 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3468 (build_builtin_type_vec64i): Ditto.
3469 (build_builtin_type_vec128): Ditto.
3470 (build_builtin_type_vec128i): Ditto.
3471
f7ab6ec6
MS
34722002-08-19 Michael Snyder <msnyder@redhat.com>
3473
3474 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3475 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3476 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3477 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3478 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3479 CALL_DUMMY_ADDRESS): Delete.
3480 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3481 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3482 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3483 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3484 push_return_address.
3485 (mips_register_raw_size, mips_eabi_use_struct_convention,
3486 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3487 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3488 mips_init_extra_frame_info, mips_eabi_push_arguments,
3489 mips_n32n64_push_arguments, mips_push_return_address,
3490 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3491 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3492
b5d1566e
MS
34932002-08-19 Michael Snyder <msnyder@redhat.com>
3494
3495 * mips-tdep.c (mips_frame_num_args): New function.
3496 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3497 frame_saved_pc, frame_args_address, frame_locals_address,
3498 frame_num_args, and frame_args_skip.
3499 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3500 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3501 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3502 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3503
2f1488ce
MS
35042002-08-20 Michael Snyder <msnyder@redhat.com>
3505
3506 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3507 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3508 * mips-tdep.c (mips_store_struct_return): New function.
3509 (mips_extract_struct_value_address): New function.
3510 (mips_gdbarch_init): Set store_struct_return and
3511 extract_struct_value_address.
3512
41ff2da1
DC
35132002-08-20 David Carlton <carlton@math.stanford.edu>
3514
3515 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3516 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3517 (read_file_scope): Check that line_header is nonzero before
3518 decoding macro information.
3519
e5451d58
MK
35202002-08-20 Mark Kettenis <kettenis@gnu.org>
3521
3522 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3523 flag the general-purpose registers as floating-point on targets
3524 that don't support the floating-point registers.
3525
4a6daafa
EZ
35262002-08-20 Elena Zannoni <ezannoni@redhat.com>
3527
3528 * rs6000-tdep.c (altivec_register_p): Delete.
3529 (rs6000_do_altivec_registers): Delete.
3530 (rs6000_altivec_registers_info): Delete.
3531 (rs6000_do_registers_info): Delete.
3532 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3533 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3534
ab4327e0
EZ
35352002-08-20 Elena Zannoni <ezannoni@redhat.com>
3536
3537 * infcmd.c (do_registers_info): Print vector registers in hex
3538 format only.
3539 (print_vector_info): Check that printing registers
3540 makes sense.
3541 (print_float_info): Ditto.
3542
cb1d2653
AC
35432002-08-20 Andrew Cagney <ac131313@redhat.com>
3544
3545 * mips-tdep.c (mips_gdbarch_init): Update.
3546 (mips_o32_extract_return_value): Rewrite.
3547 (mips_o32_store_return_value): Rewrite.
3548 (mips_o32_xfer_return_value): New function.
3549 (mips_xfer_register): Tweak debug print message. Allow for
3550 buf_offset when dumping the value transfered.
3551
dfc3d9b2
AC
35522002-08-20 Andrew Cagney <ac131313@redhat.com>
3553
3554 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3555 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3556 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3557 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3558 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3559
7807aa61
MS
35602002-08-14 Michael Snyder <msnyder@redhat.com>
3561
3562 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3563
489461e2
EZ
35642002-08-19 Elena Zannoni <ezannoni@redhat.com>
3565
3566 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3567 register.
3568 (P): New macro to define a register as a pseudo register.
3569 (R, R4, R8, R16, FR32, R64, R0): Updated.
3570 (struct variant): Add new fields for number of pseudo registers
3571 and number of total registers.
3572 (tot_num_registers): New macro replacing....
3573 (num_registers): ...deleted macro.
3574 (num_registers): New function.
3575 (num_pseudo_registers): New function.
3576 (variants): Update all variants to intialize new fields correctly.
3577 Postpone initialization of number of pseudo regs and real regs.
3578 (init_variants): New function.
3579 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3580 registers offsets.
3581
fcaffe4c
DC
35822002-08-19 David Carlton <carlton@math.stanford.edu>
3583
2c2738a0
DC
3584 * valops.c (search_struct_field): Change error message to treat
3585 return value of 0 from value_static_field as meaning that field is
3586 optimized out.
3587 (value_struct_elt_for_reference): Ditto.
3588 * values.c (value_static_field): Treat an unresolved location the
3589 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3590 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3591 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3592 * MAINTAINERS: Add self to Write After Approval list.
3593
88658117
AC
35942002-08-19 Andrew Cagney <ac131313@redhat.com>
3595
3596 * mips-tdep.c (mips_xfer_register): New function.
3597 (mips_n32n64_extract_return_value): Rewrite.
3598 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3599 instead of deprecated_extract_return_value.
3600
21283beb
EZ
36012002-08-19 Elena Zannoni <ezannoni@redhat.com>
3602
3603 * rs6000-tdep.c (TDEP): Delete macro.
3604 (branch_dest): Replace use of TDEP macro with its body.
3605 (rs6000_pop_frame): Ditto.
3606 (rs6000_push_arguments): Ditto.
3607 (rs6000_skip_trampoline_code): Ditto.
3608 (rs6000_frame_saved_pc): Ditto.
3609 (rs6000_frame_chain): Ditto.
3610 (rs6000_register_name): Ditto.
3611 (rs6000_register_byte): Ditto.
3612 (rs6000_register_raw_size): Ditto.
3613 (rs6000_register_virtual_type): Ditto.
3614 (rs6000_register_convertible): Ditto.
3615 (rs6000_convert_from_func_ptr_addr): Ditto.
3616
bf072999
DJ
36172002-08-19 Daniel Jacobowitz <drow@mvista.com>
3618
3619 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3620 conditionally.
3621 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3622 MIPS_LINUX_JB_ELEMENT_SIZE.
3623 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3624 for MAX_REGISTER_RAW_SIZE arrays.
3625 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3626 MIPS_LINUX_JB_ELEMENT_SIZE.
3627
9b949a49
PM
36282002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3629
3630 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3631
6d3e79c6
AS
36322002-08-19 Aidan Skinner <aidan@velvet.net>
3633
3634 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3635 ada-valprint.c ada-tasks.c.
3636 (YYFILES): Add ada-exp.y.
3637 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3638 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3639 (ada-exp.tab.o): New target.
3640
06c0b04e
AC
36412002-08-18 Andrew Cagney <ac131313@redhat.com>
3642
3643 * regcache.c (regcache_xfer_part): New function.
3644 (regcache_raw_read_part): New function.
3645 (regcache_raw_write_part): New function.
3646 (regcache_cooked_read_part): New function.
3647 (regcache_cooked_write_part): New function.
3648 * regcache.h (regcache_raw_read_part): Declare.
3649 (regcache_raw_write_part): Declare.
3650 (regcache_cooked_read_part): Declare.
3651 (regcache_cooked_write_part): Declare.
3652
92d1e331
DJ
36532002-08-18 Daniel Jacobowitz <drow@mvista.com>
3654
3655 * remote.c (remote_open_1): Add async_p.
3656 (remote_async_open_1): Delete.
3657 (open_remote_target): Delete.
3658 (remote_open, extended_remote_open): Update calls to remote_open_1.
3659 (remote_async_open, extended_remote_async_open): Call
3660 remote_open_1 instead of remote_async_open_1.
3661
247055de
MK
36622002-08-19 Mark Kettenis <kettenis@gnu.org>
3663
3664 * blockframe.c: Fix a few coding standard violations.
3665
641eda39
MK
36662002-08-19 Mark Kettenis <kettenis@gnu.org>
3667
0b717710
MK
3668 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3669 here from ...
3670 * config/i386/tm-i386sco5.h: ... here. File removed.
3671 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3672
26d28e12 3673 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3674 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3675 (TM_FILE): Set to tm-i386.h.
3676 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3677 * config/i386/tm-i386v.h: Remove file.
3678 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3679 instead of "i386/tm-i386v.h".
3680 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3681 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3682 "i386/tm-i386v.h".
3683 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3684 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3685 "i386/tm-i386.h".
3686
d4e0bab4
MK
36872002-08-18 Mark Kettenis <kettenis@gnu.org>
3688
3689 * config/i386/nm-i386v.h: Add protection against
3690 multiple-inclusion.
3691 (i386_register_u_addr): Remove prototype.
3692 (register_u_addr): New prototype.
3693 (REGISTER_U_ADDR): Redefine accordingly.
3694 * i386v-nat.c: Improve several comments.
3695 (i386_register_u_addr): Change signature and rename to
3696 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3697 ubase variable.
3698
46cac009
AC
36992002-08-18 Andrew Cagney <ac131313@redhat.com>
3700
3701 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3702 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3703 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3704 deprecated_extract_return_value.
3705 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3706 rename mips_o32o64_push_arguments.
3707 (mips_gdbarch_init): Update.
3708 (mips_extract_return_value): Delete.
3709 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3710 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3711 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3712 (mips_n32n64_extract_return_value): Clone
3713 mips_extract_return_value.
3714 (mips_store_return_value): Delete.
3715 (mips_o32_store_return_value): Clone mips_store_return_value.
3716 (mips_o64_store_return_value): Clone mips_store_return_value.
3717 (mips_eabi_store_return_value): Clone mips_store_return_value.
3718 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3719
d2e4a39e
AS
37202002-08-18 Aidan Skinner <aidan@velvet.net>
3721
0c30c098
AS
3722 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3723 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3724
37252002-08-18 Aidan Skinner <aidan@velvet.net>
3726
3727 * ada-lang.c: Run through gdb_indent.sh.
3728 * ada-lang.h: Run through gdb_indent.sh.
3729 * ada-tasks.c: Run through gdb_indent.sh.
3730 * ada-typeprint.c: Run through gdb_indent.sh.
3731 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3732
01fc4e33
AC
37332002-08-18 Andrew Cagney <ac131313@redhat.com>
3734
3735 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3736 ABI.
3737
d8ee244c
MK
37382002-08-18 Mark Kettenis <kettenis@gnu.org>
3739
c38d8261
MK
3740 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3741
222db64c
MK
3742 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3743 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3744
c2848c82
MK
3745 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3746 write_register_gen instead of write_register_bytes.
3747
d8ee244c
MK
3748 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3749 i[3456]-*-osf1mk* configurations have been made obsolete.
3750 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3751 i[3456]86-*-osf1mk* hosts obsolete.
3752 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3753 targets obsolete.
3754 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3755 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3756 config/i386/i386m3.mt, config/i386/nm-m3.h,
3757 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3758 config/i386/i386mk.mh, config/i386/i386mk.mt,
3759 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3760 obsolete.
3761 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3762 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3763 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3764
61d8d407
AC
37652002-08-18 Andrew Cagney <ac131313@redhat.com>
3766
3767 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3768 (hppa_value_returned_from_stack): Declare.
3769 (hppa_extract_return_value): Declare.
3770 * config/pa/hppa.mt: New file.
3771 * configure.tgt: Recognize hppa*-*-*.
3772 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3773
0c52bd59
MK
37742002-08-18 Mark Kettenis <kettenis@gnu.org>
3775
3776 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3777 comment.
3778
b5686e99
MK
37792002-08-17 Mark Kettenis <kettenis@gnu.org>
3780
3781 * top.c (gdb_rl_operate_and_get_next): Make sure
3782 operate-and-get-next functions correctly even when the history
3783 list is completely filled.
3784
c1bab85b
AC
37852002-08-18 Andrew Cagney <ac131313@redhat.com>
3786
3787 * MAINTAINERS (Target Instruction Set Architectures): Rename
3788 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3789 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3790 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3791 already listed under Host/Native.
3792
3793 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3794 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3795 mips*-*-*.
3796
32089c7c
AC
37972002-08-17 Andrew Cagney <ac131313@redhat.com>
3798
3799 * config/ia64/ia64.mt: New file.
3800 * config/alpha/alpha.mt: New file.
3801 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3802 ia64-linux-gnu. Mention that ia64-elf is broken.
3803 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3804
b4671f85
MK
38052002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3806
3807 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3808 generic_func_frame_valid instead of func_frame_valid.
3809
c8edd8b4
JB
38102002-08-16 Joel Brobecker <brobecker@gnat.com>
3811
3812 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3813 procfs appears to be broken when debugging on multi-processor
3814 machines. So enable software single stepping in order to avoid
3815 using the procfs interface to do next/step operations, using
3816 internal breakpoints instead.
3817
3818 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3819 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3820 make this pc address equal to the value it would have if the
3821 system stepping capability was used. Also set a new flag used
3822 to ensure that we don't readjust the PC one more time later.
3823
3824 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3825 address by DECR_PC_AFTER_BREAK when software single step is
3826 in use for this architecture, as this has already been taken
3827 care of in handle_inferior_event().
3828
238617f6
JB
38292002-08-16 Joel Brobecker <brobecker@gnat.com>
3830
3831 * infrun.c (handle_inferior_event): Minor reformatting, to make
3832 a rather long condition expression easier to read.
3833
541a7aac
AC
38342002-08-16 Andrew Cagney <ac131313@redhat.com>
3835
3836 * Makefile.in (gdbtk.o): Move to end of file.
3837 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3838 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3839 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3840 (gdbtk-wrapper.o, gdbres.o): Ditto.
3841
f92d4a7b
AC
38422002-08-16 Andrew Cagney <ac131313@redhat.com>
3843
3844 * Makefile.in (copying.o): Separate out compile rule.
3845 (hpux-thread.o, procfs.o, signals.o): Ditto.
3846 (v850ice.o, z8k-tdep.o): Ditto.
3847 (tui-file.o): Move to TUI section.
3848 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3849 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3850
1cce71eb
JB
38512002-08-16 Joel Brobecker <brobecker@gnat.com>
3852
3853 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3854 skip_trampoline_code, for better namespace-proofing.
3855
3856 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3857
0851f23d
JB
38582002-08-16 Joel Brobecker <brobecker@gnat.com>
3859
3860 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3861
f8d40ec8
JB
38622002-08-16 Joel Brobecker <brobecker@gnat.com>
3863
3864 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3865 signal, check whether we hit a breakpoint before checking for a
3866 single step breakpoint. Otherwise, GDB fails to notice that a
3867 breakpoint has been hit when stepping onto a breakpoint.
3868
63d022e0
KS
38692002-08-16 Keith Seitz <keiths@redhat.com>
3870
3871 * gdb-events.sh (clear_gdb_event_hooks): New function.
3872 * gdb-events.c: Regenerate.
3873 * gdb-events.h: Regenerate.
3874
6e31adb3
AC
38752002-08-16 Andrew Cagney <ac131313@redhat.com>
3876
3877 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3878 not_a_sw_breakpoint.
3879 * breakpoint.h (bpstat_stop_status): Add parameter names.
3880
c8189ed1
GS
38812002-08-16 Grace Sainsbury <graces@redhat.com>
3882
3883 * remote.c (remote_insert_hw_breakpoint)
3884 (remote_remove_hw_breakpoint): Fix calculation of length field
3885 for Z-packet.
3886
d05285fa
MS
38872002-08-15 Michael Snyder <msnyder@redhat.com>
3888
466d7106
MS
3889 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3890 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3891 (supply_fpregset): Ditto.
3892
d05285fa
MS
3893 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3894 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3895 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 3896 (TARGET_READ_SP): Delete.
bf1f5b4c 3897 (DO_REGISTERS_INFO): Delete.
102182a9
MS
3898 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3899 Delete.
3900 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3901 from macros to functions.
bf1f5b4c 3902
d05285fa
MS
3903 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3904 (mips_register_convertible, mips_register_convert_to_virtual,
3905 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
3906 (mips_read_sp): New function.
3907 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
3908 (mips_do_registers_info): Make static.
3909 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
3910 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3911 (mips_register_convert_from_type, mips_register_convert_to_type):
3912 New functions.
3913 (mips_gdbarch_init): Set up function_start_offset,
3914 register_virtual_size, pc_in_sigtramp.
d05285fa 3915
e76f1f2e
AC
39162002-08-15 Andrew Cagney <ac131313@redhat.com>
3917
3918 * infcmd.c (vector_info): New function.
3919 (_initialize_infcmd): Add command "info vector".
3920 (print_vector_info): New function.
3921
3922 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3923 * gdbarch.h, gdbarch.c: Regenerate.
3924
4782dc19
AC
39252002-08-15 Andrew Cagney <ac131313@redhat.com>
3926
3927 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3928 ``print_all''. Only print vector registers when ``print_all''.
3929
23e3a7ac
AC
39302002-08-15 Andrew Cagney <ac131313@redhat.com>
3931
8e186fd6
AC
3932 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3933 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3934
23e3a7ac
AC
3935 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3936 Add `args' parameter.
3937 * gdbarch.h, gdbarch.c: Regenerate.
3938
3939 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3940
3941 * infcmd.c (float_info): Call print_float_info.
3942 (print_float_info): New function. By default, print the
3943 floating-point registers.
3944
3945 * arch-utils.h (default_print_float_info): Delete declaration.
3946 * arch-utils.c (default_print_float_info): Delete function.
3947
e0ca2bb9
MK
39482002-08-16 Mark Kettenis <kettenis@gnu.org>
3949
3f733acc
MK
3950 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3951 out define.
3952
7d8d2918
MK
3953 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3954 FRAME.
3955
1c7cc583
MK
3956 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3957 * configure.host: Make i[3456]86-*-aix host obsolete.
3958 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3959 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3960 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3961 config/i386/xm-i386aix.h: Make files obsolete.
3962 * i386aix-nat.c: Make file obsolete.
3963 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3964 (i386aix-nat.o): Make target obsolete.
3965
e0ca2bb9
MK
3966 * config/i386/nm-gnu.h: Removed.
3967 * config/i386/nm-i386gnu.h: New file.
3968 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3969 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3970 Moved here from ...
3971 * config/i386/tm-i386gnu.h: ... here. Removed.
3972 * config/i386/xm-i386gnu.h: Removed.
3973 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3974 (NAT_FILE): Set to nm-i386gnu.h.
3975 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3976 * i386-tdep.c: New file.
3977 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3978 (i386gnu-tdep.o): Specify dependencies.
3979
16057ec7 39802002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 3981
6b99ee2e
MK
3982 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3983 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3984 Adjust a few comments to reflect reality a bit closer.
3985 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3986 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3987 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3988 target_insert_watchpoint, target_remove_watchpoint):
3989 Move defines to ...
3990 * config/i386/nm-i386sco5.h: ... here.
3991 (kernel_u_size): Add prototype. Improve a few comments and add
3992 protection against multiple inclusion.
3993
d9a6f65c
MK
3994 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3995 out define.
3996
047eff6a
MK
3997 * uw-thread.c (SP_ARG0): Define if not already defined.
3998 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3999
dcdb1290
MK
4000 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4001
5d2d0b2a
MK
4002 * config/i386/tm-i386.h: Don't include "regcache.h".
4003
61113f8b
MK
4004 * i387-tdep.h (i387_print_float_info): New prototype.
4005 * i387-tdep.c (print_i387_value, print_i387_ext,
4006 print_i387_status_word, print_i387_control_word): Add `struct
4007 ui_file *' argument and use it for output.
4008 (i387_print_float_info): Renamed from i387_float_info. Add
4009 `struct gdbarch *' and `struct ui_file *' arguments and use the
4010 latter for output.
4011 * i386-tdep.c: Include "i387-tdep.h".
4012 (i386_gdbarch_init): Set print_float_info.
4013 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4014 (FLOAT_INFO): Remove define.
4015
46e0f506
MS
40162002-08-13 Michael Snyder <msnyder@redhat.com>
4017
4018 * mips-tdep.c (mips_push_arguments): Rename to
4019 mips_eabi_push_arguments, and tune for EABI.
4020 (MIPS_REGS_HAVE_HOME_P): Delete.
4021 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4022 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4023 Delete references to mips_regs_have_home_p.
4024
409268de
KS
40252002-08-14 Keith Seitz <keiths@redhat.com>
4026
4027 * Makefile.in (install-gdbtk): Create insight plugin directory.
4028 Install plugins.tcl file.
4029
ffc6a242
KS
40302002-08-14 Keith Seitz <keiths@redhat.com>
4031
4032 * configure.in: Move SUBDIRS to near top of the file so that
4033 --enable options may add things to it.
4034 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4035 * configure: Regenerate.
4036
ebafbe83
MS
40372002-08-13 Michael Snyder <msnyder@redhat.com>
4038
4039 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4040 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4041 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4042
32f6f25d
AC
40432002-08-13 Andrew Cagney <ac131313@redhat.com>
4044
4045 * vax-tdep.c (vax_get_saved_register): Delete function.
4046 (vax_gdbarch_init): Update.
4047 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4048 (ns32k_gdbarch_init): Update.
4049 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4050 (alpha_gdbarch_init): Update.
4051
53826de9
AC
40522002-08-13 Andrew Cagney <cagney@redhat.com>
4053
4054 * regcache.c (init_regcache_descr): Overallocate the
4055 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4056 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4057 nr_raw_registers.
4058 (set_register_cached): Add range checking assertions. Use
4059 current_regcache.
4060
16057ec7 40612002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4062
4063 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4064 numbers for MMX registers.
4065
7b4c2dce
AC
40662002-08-13 Andrew Cagney <cagney@redhat.com>
4067
4068 * i386-tdep.c (i386_gdbarch_init): Use
4069 generic_unwind_get_saved_register.
4070
1e03ad20
KB
40712002-08-13 Kevin Buettner <kevinb@redhat.com>
4072
4073 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4074 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4075 target vector.
4076 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4077 Delete. Add comment regarding this now-deleted target method.
4078
548bcbec
SC
40792002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4080
4081 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4082 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4083 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4084 real PC and the page number (if it's within the memory bank window).
4085 (m68hc11_pseudo_register_write): Likewise when saving.
4086 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4087 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4088 (m68hc11_register_raw_size): And use 32-bit for it.
4089 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4090 16K memory bank is used by the prog; also use the virtual pc.
4091
7df11f59
SC
40922002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4093
4094 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4095 (m68hc11_gdbarch_init): Install it in gdbarch.
4096 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4097 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4098 (MSYMBOL_SIZE): New for documentation.
4099 (insn_return_kind): Enum to specify how a function returns.
4100 (frame_extra_info): Cleanup and record the return mode.
4101 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4102 register in address computation.
4103 (m68hc11_get_return_insn): New to obtain the return instruction used
4104 by the function.
4105 (m68hc11_frame_init_saved_regs): Take into account the return
4106 instruction used by the function for far and interrupt functions.
4107 (m68hc11_init_extra_frame_info): Take into account page register.
4108 (m68hc11_frame_args_address): Adjust according to the return mode.
4109 (show_regs): Print page register only when it's used.
4110
5706502a
SC
41112002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4112
4113 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4114 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4115 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4116 registers.
4117 (m68hc11_register_raw_size): Likewise.
4118
28fc6740
AC
41192002-08-13 Andrew Cagney <cagney@redhat.com>
4120
4121 * i386-tdep.c (i386_register_name): Handle mmx registers.
4122 (mmx_regnum_p): New function.
4123 (i386_mmx_names): New array.
4124 (mmx_num_regs): New variable.
4125 (i386_pseudo_register_read): New function.
4126 (i386_pseudo_register_write): New function.
4127 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4128
4129 * regcache.c (regcache_raw_read_unsigned): New function.
4130 (regcache_raw_read_signed): New function.
4131 * regcache.h (regcache_raw_read_unsigned): Declare.
4132 (regcache_raw_read_signed): Declare.
4133
a378f419
AC
41342002-08-13 Andrew Cagney <cagney@redhat.com>
4135
4136 * regcache.c (regcache_raw_read_as_address): Delete function.
4137 (regcache_cooked_read_signed): New function.
4138 (regcache_cooked_read_unsigned): New function.
4139 * regcache.h (regcache_cooked_read_signed): Declare.
4140 (regcache_cooked_read_unsigned): Declare.
4141 (regcache_raw_read_as_address): Delete declaration.
4142
4143 * blockframe.c (generic_read_register_dummy): Use
4144 regcache_cooked_read_unsigned.
4145 * i386-tdep.c (i386_extract_struct_value_address): Use
4146 regcache_cooked_read_unsigned.
4147
81967506
SC
41482002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4149
4150 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4151 double sizes according to ELF ABI flags.
4152 (gdbarch_tdep): Record elf_flags.
4153
ffe1f3ee
SC
41542002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4155
4156 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4157 (m6812_prolog): They can appear in 68HC12 function prologue.
4158 (m68hc11_frame_chain): Cleanup.
4159
98216c5d
AC
41602002-08-12 Andrew Cagney <cagney@redhat.com>
4161
4162 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4163 declarations.
4164 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4165 (i386_linux_register_raw_size): Delete function.
4166 (i386_linux_init_abi): Update.
4167 * i386-tdep.c (i386_register_raw_size): Delete function.
4168 (i386_register_byte): Delete function.
4169 (i386_gdbarch_init): Update.
4170 (i386_register_size): Delete array.
4171 (i386_register_offset): Delete array.
4172
4173 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4174 (REGISTER_RAW_SIZE): Delete macro.
4175 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4176 (REGISTER_BYTE): Delete macro.
4177
3b19021e
AS
41782002-08-11 Aidan Skinner <aidan@velvet.net>
4179
4180 * ada-lang.c (ada_lookup_partial_symbol)
4181 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4182 prototype names so that grep ^func works properly.
4183
4184 * ada-lang.c (ada_array_element_type)
4185 (ada_lookup_partial_symbol): Fix typos in parameter list.
4186
4187 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4188 Fix prototype names so that grep ^func works properly.
4189
b063e7a2
AC
41902002-08-10 Andrew Cagney <cagney@redhat.com>
4191 Elena Zannoni <ezannoni@redhat.com>
4192 Martin M. Hunt <hunt@redhat.com>
4193
4194 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4195 (build_builtin_type_vec128i): Set the vector bit.
4196 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4197 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4198 (build_builtin_type_vec64): New function.
4199 (build_builtin_type_vec64i): New function.
4200 (build_gdbtypes): Initialize builtin_type_vec64 and
4201 builtin_type_vec64i.
4202
a7e3c2ad
AC
42032002-08-09 Andrew Cagney <cagney@redhat.com>
4204
4205 * regcache.c (regcache_dump): Compare the register offset
4206 with REGISTER_BYTE.
4207 * arch-utils.c (generic_register_byte): New function.
4208 * arch-utils.h (generic_register_byte): Declare.
4209 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4210 * gdbarch.h, gdbarch.c: Regenerate.
4211
af030b9a
AC
42122002-08-09 Andrew Cagney <cagney@redhat.com>
4213
4214 * regcache.c: Include "gdbcmd.h"
4215 (_initialize_regcache): Add commands "maintenance print
4216 registers", "maintenance print raw-registers" and "maintenance
4217 print cooked-registers".
4218 (enum regcache_dump_what): Define.
4219 (dump_endian_bytes): New function.
4220 (regcache_dump): New function.
4221 (regcache_print): New function.
4222 (maintenance_print_registers): New function.
4223 (maintenance_print_raw_registers): New function.
4224 (maintenance_print_cooked_registers): New function.
4225 * Makefile.in (regcache.o): Update dependencies.
4226
cb3d25d1
MS
42272002-08-09 Michael Snyder <msnyder@redhat.com>
4228
4229 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4230 (mips_push_arguments): Correct some comments. Use paddr_nz
4231 for printing addresses in debug output. Replace static
4232 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4233 (mips_n32n64_push_arguments): New function, cloned from
4234 mips_push_arguments and tuned for the n32/n64 ABI.
4235 (mips_push_register): Buffer needs dynamic allocation.
4236 (mips_print_register): Ditto.
4237 (do_gp_register_row): Ditto.
4238 (mips_store_return_value): Ditto.
4239 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4240
2163ab9d
DH
42412002-08-09 Don Howard <dhoward@redhat.com>
4242
4243 * memattr.c (mem_info_command): Print special case of upper bound
4244 as max CORE_ADDR + 1.
4245
b78bcb18
MS
42462002-08-08 Michael Snyder <msnyder@redhat.com>
4247
4248 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4249 returns structs by ref if they're too big to fit in two registers.
4250
ffabd70d
KB
42512002-08-09 Kevin Buettner <kevinb@redhat.com>
4252
4253 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4254 saved regs value.
4255 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4256 mips_find_saved_regs().
4257 (mips_pop_frame): Likewise.
4258
fbcdb4a3
KB
42592002-08-09 Kevin Buettner <kevinb@redhat.com>
4260
4261 * blockframe.c (frame_saved_regs_register_unwind): Revise
4262 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4263 frames are in use.
4264
3c3bea1c
GS
42652002-08-09 Grace Sainsbury <graces@redhat.com>
4266
4267 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4268 T-packets; the 'a' is not taken as a register number.
4269 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4270 (remote_stopped_data_address): New functions; add to target
4271 vector.
4272 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4273 prototypes to match other implementations of this
4274 function. replace integer argument with pointer -- the length
4275 field in the Z-packet is the length of what is pointed to or 1 if
4276 pointer is null. Add to target vector.
4277 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4278 target vector.
4279
4280 From Mark Salter:
4281 * remote.c (remote_wait): Add support to extract optional
4282 watchpoint information from T-packet. Ignore unrecognized
4283 optional info in T-packet.
4284 (remote_async_wait): Ditto.
4285
5d1d95de
CV
42862002-08-09 Corinna Vinschen <vinschen@redhat.com>
4287
4288 * cli/cli-dump.c: Change fopen modes to use binary open modes
4289 as defined in include/fopen-bin.h throughout.
4290
c86b5b38
MS
42912002-08-08 Michael Snyder <msnyder@redhat.com>
4292
4293 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4294
b30590dc
KB
42952002-08-08 Kevin Buettner <kevinb@redhat.com>
4296
4297 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4298 assertion failure by returning early after a warning.
4299
498868ed
KB
43002002-08-08 Kevin Buettner <kevinb@redhat.com>
4301
4302 * mips-tdep.c (mips_find_saved_regs): Make static.
4303 (mips_frame_init_saved_regs): New function.
4304 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4305 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4306 (mips_find_saved_regs): Delete declaration.
4307
b2dd6311
GS
43082002-08-08 Grace Sainsbury <graces@redhat.com>
4309
3c3bea1c
GS
4310 * remote.c (remote_wait, remote_async_wait): Change
4311 thread_num from int to ULONGEST.
4312 (unpack_varlen_hex): Change result parameter from
4313 int * to ULONGEST *.
b2dd6311 4314
ea47855f
AC
43152002-08-08 Andrew Cagney <ac131313@redhat.com>
4316
4317 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4318 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4319 powerpc*-*-*.
4320 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4321
69db8bae
AC
43222002-08-08 Andrew Cagney <cagney@redhat.com>
4323
4324 * gcore.c (override_derive_stack_segment): Delete variable.
4325 (preempt_derive_stack_segment): Delete function.
4326 (derive_stack_segment): Delete function.
4327 (default_derive_stack_segment): Renamed to derive_stack_segment.
4328 (override_derive_heap_segment): Delete variable.
4329 (preempt_derive_heap_segment): Delete function.
4330 (derive_heap_segment): Delete function.
4331 (default_derive_heap_segment): Rename to derive_heap_segment.
4332
cb811fe7
MS
43332002-08-06 Michael Snyder <msnyder@redhat.com>
4334
4335 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4336 * mips-tdep.c (mips_EABI_use_struct_convention,
4337 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4338 New functions. (mips_use_struct_convention): Delete.
4339 (mips_gdbarch_init): set use_gdbarch_convention.
4340
8b389c40
MS
43412002-08-06 Michael Snyder <msnyder@redhat.com>
4342
4343 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4344 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4345 mips_o32_reg_struct_has_addr): New functions.
4346 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4347
5c27f28a
AC
43482002-08-07 Andrew Cagney <ac131313@redhat.com>
4349
4350 * regcache.c (pseudo_register): Delete function.
4351 (fetch_register): Delete function.
4352 (store_register): Delete function.
4353 (regcache_raw_read, legacy_read_register_gen): Use
4354 target_fetch_registers instead of fetch_register.
4355 (legacy_write_register_gen, regcache_raw_write): Use
4356 target_store_register instead of store_register.
4357 (write_register_bytes): Ditto.
4358
4359 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4360 (STORE_PSEUDO_REGISTER): Delete.
4361 * gdbarch.h, gdbarch.c: Regenerate.
4362
5b331675
CV
43632002-08-06 Corinna Vinschen <vinschen@redhat.com>
4364
4365 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4366 write dump file binary.
4367
6acdf5c7
MS
43682002-08-05 Michael Snyder <msnyder@redhat.com>
4369
4370 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4371 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4372 (mips_gdbarch_init): Set N32 target to be mips64.
4373
b2f01c35
KB
43742002-08-06 Kevin Buettner <kevinb@redhat.com>
4375
4376 * frame.c (find_saved_register): Break out of loop once saved
4377 register address is found. Don't mention sparc in loop comment
4378 anymore.
4379
63db5580
KB
43802002-08-06 Kevin Buettner <kevinb@redhat.com>
4381
4382 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4383 mips_default_saved_regsize to 8.
4384
5e34e75e
AC
43852002-08-06 Andrew Cagney <ac131313@redhat.com>
4386
4387 * gcore.c: Do not include <sys/procfs.h>.
4388 * Makefile.in (gcore.o): Update dependencies.
4389
eb4c54a2
AC
43902002-08-06 Andrew Cagney <cagney@redhat.com>
4391
4392 * configure.tgt: Make arc-*-* obsolete.
4393 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4394 * MAINTAINERS: Make arc-elf obsolete.
4395 * arc-tdep.c: Make file obsolete.
4396 * config/arc/arc.mt: Ditto.
4397 * config/arc/tm-arc.h: Ditto.
4398
ced15480
TR
43992002-08-05 Theodore A. Roth <troth@verinet.com>
4400
c1bab85b 4401 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4402
b4743822
AC
44032002-08-05 Andrew Cagney <ac131313@redhat.com>
4404
4405 * mcore-tdep.c (mcore_gdbarch_init): Use
4406 generic_unwind_get_saved_register instead of
4407 generic_get_saved_register.
4408 * v850-tdep.c (v850_gdbarch_init): Ditto.
4409 * frv-tdep.c (frv_gdbarch_init): Ditto.
4410 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4411 * s390-tdep.c (s390_gdbarch_init): Ditto.
4412 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4413 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4414 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4415
3956d554
JB
44162002-08-05 Joel Brobecker <brobecker@gnat.com>
4417
4418 * objfiles.h: Add missing #include "symfile.h"
4419
4420 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4421
8249c0d6
AC
44222002-08-04 Andrew Cagney <ac131313@redhat.com>
4423
4424 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4425 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4426 of FIELD_BITSIZE.
4427
b9d14705
DJ
44282002-08-04 Daniel Jacobowitz <drow@mvista.com>
4429
4430 * NEWS: Cleanup and nitpick.
4431
dd73b9bb
AC
44322002-08-03 Andrew Cagney <ac131313@redhat.com>
4433
4434 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4435
043a27f8
AC
44362002-08-03 Andrew Cagney <ac131313@redhat.com>
4437
4438 * Makefile.in (gdbtk-bp.o): Update dependencies.
4439 (gdbtk-register.o): Ditto.
4440 (gdbtk-varobj.o): Ditto.
4441
46ce284d
AC
44422002-08-03 Andrew Cagney <cagney@redhat.com>
4443
4444 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4445 m68hc11_fetch_pseudo_register.
4446 (m68hc11_pseudo_register_write): Replace
4447 m68hc11_store_pseudo_register.
4448 (m68hc11_gdbarch_init): Update.
4449
b66d6d2e
AC
4450Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4451
4452 * gdbarch.sh: Include "gdb_string.h".
4453 * gdbarch.c: Regenerate.
4454
4455 * regcache.c: Include "gdb_string.h".
4456 * ax-general.c: Ditto.
4457 * varobj.c: Ditto.
4458 * std-regs.c: Ditto.
4459 * fbsd-proc.c: Ditto.
4460 * thread.c: Ditto.
4461
4462 * Makefile.in (regcache.o): Update dependencies.
4463 (thread.o, gdbarch.o): Ditto.
4464 (ax-general.o, gdbarch.o): Ditto.
4465 (varobj.o, std-regs.o): Ditto.
4466 (fbsd-proc.o): Specify dependencies.
4467
29e1842b
AC
44682002-08-02 Andrew Cagney <cagney@redhat.com>
4469
4470 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4471 regnum.
4472 (regcache_cooked_write): Ditto.
4473
68365089
AC
44742002-08-02 Andrew Cagney <ac131313@redhat.com>
4475
4476 * regcache.c (regcache_cooked_read): New function.
4477 (regcache_cooked_write): New function.
4478 (read_register_gen): Rewrite using regcache_cooked_read.
4479 (write_register_gen): Rewrite using regcache_cooked_write.
4480
4481 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4482 Declare.
4483
d8124050
AC
44842002-08-02 Andrew Cagney <cagney@redhat.com>
4485
4486 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4487 Replace the architecture methods register_read and register_write.
4488 * gdbarch.h, gdbarch.c: Regenerate.
4489 * regcache.c (init_regcache_descr): Update.
4490 (read_register_gen): Update.
4491 (write_register_gen): Update.
4492 (supply_register): Update comment.
4493
4494 * sh-tdep.c (sh_gdbarch_init): Update.
4495 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4496 `regcache' and `gdbarch' parameters. Make `buffer' a void
4497 pointer. Update code.
4498 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4499 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4500 void pointer. Update code.
4501 (sh64_register_write): Delete.
4502 (sh4_register_read): Delete.
4503 (sh64_register_read): Delete.
4504 (sh4_register_write): Delete.
4505 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4506 void pointer, `to' parameter a void pointer.
4507 (sh_sh64_register_convert_to_raw): Ditto.
4508
a6425924
KB
45092002-08-01 Kevin Buettner <kevinb@redhat.com>
4510
4511 * mips-tdep.c (mips_register_virtual_type): Use architecture
4512 invariant return values.
4513
ff5922b5
AC
45142002-08-01 Andrew Cagney <cagney@redhat.com>
4515
4516 * linux-proc.c: Include "gdb_string.h".
4517 * Makefile.in (linux-proc.o): Update dependency list.
4518
32a6503c
KB
45192002-08-01 Kevin Buettner <kevinb@redhat.com>
4520
4521 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4522 comment.
4523
ccaa32c7
GS
45242002-08-01 Grace Sainsbury <graces@redhat.com>
4525
4526 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4527 to_insert_watchpoint, to_remove_watchpoint,
4528 to_stopped_by_watchpoint, to_stopped_data_address,
4529 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4530 target vecctor. Define their corresponding macros so they call
4531 them.
4532
4533 * target.c: Add default and debug versions of for
4534 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4535 to_insert_watchpoint, to_remove_watchpoint,
4536 to_stopped_by_watchpoint, to_stopped_data_address,
4537 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4538
78fde5f8
KB
45392002-08-01 Kevin Buettner <kevinb@redhat.com>
4540
4541 * mips-tdep.c (mips_register_virtual_type): New function.
4542 (mips_gdbarch_init): Register mips_register_virtual_type()
4543 with gdbarch machinery.
4544 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4545 this file instead of tm-bigmips.h.
4546 (MIPS_REGSIZE): Delete this macro.
4547 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4548 multiarch version in mips-tdep.c will be found.
4549
db034ac5
AC
45502002-08-01 Andrew Cagney <cagney@redhat.com>
4551
4552 * NEWS: Menion that CHILL has been made obsolete.
4553
4554 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4555 * stabsread.c (read_range_type): Ditto.
4556 * gdbtypes.h: Ditto.
4557 * language.c (binop_type_check): Ditto.
4558 (binop_result_type): Ditto.
4559 (integral_type): Ditto.
4560 (character_type): Ditto.
4561 (string_type): Ditto.
4562 (boolean_type): Ditto.
4563 (structured_type): Ditto.
4564 (lang_bool_type): Ditto.
4565 (binop_type_check): Ditto.
4566 * language.h (_LANG_chill): Ditto.
4567 * dwarfread.c (set_cu_language): Ditto.
4568 * dwarfread.c (CHILL_PRODUCER): Ditto.
4569 * dwarfread.c (handle_producer): Ditto.
4570 * expression.h (enum exp_opcode): Ditto.
4571 * eval.c: Ditto for comments.
4572 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4573 * expprint.c (print_subexp): Ditto.
4574 (print_subexp): Ditto.
4575 * valops.c (value_cast): Ditto.
4576 (search_struct_field): Ditto.
4577 * value.h (COERCE_VARYING_ARRAY): Ditto.
4578 * symfile.c (init_filename_language_table): Ditto.
4579 (add_psymbol_with_dem_name_to_list): Ditto.
4580 * valarith.c (value_binop): Ditto.
4581 (value_neg): Ditto.
4582 * valops.c (value_slice): Ditto.
4583 * symtab.h (union language_specific): Ditto.
4584 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4585 (SYMBOL_DEMANGLED_NAME): Ditto.
4586 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4587 * defs.h (enum language): Ditto.
4588 * symtab.c (got_symtab): Ditto.
4589 * utils.c (fprintf_symbol_filtered): Ditto.
4590
4591 * ch-typeprint.c: Make file obsolete.
4592 * ch-valprint.c: Make file obsolete.
4593 * ch-lang.h: Make file obsolete.
4594 * ch-exp.c: Make file obsolete.
4595 * ch-lang.c: Make file obsolete.
4596
4597 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4598 CHILL_LIB.
4599 (TARGET_FLAGS_TO_PASS): Ditto.
4600 (CHILLFLAGS): Obsolete.
4601 (CHILL): Obsolete.
4602 (CHILL_FOR_TARGET): Obsolete.
4603 (CHILL_LIB): Obsolete.
4604 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4605 ch-valprint.c.
4606 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4607 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4608 ch-lang.o.
4609 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4610 targets.
4611
8aaf0b47
JB
46122002-07-31 Joel Brobecker <brobecker@gnat.com>
4613
4614 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4615 This does not change anything at the moment, but will be helpful
4616 later when full Ada support is integrated.
4617
f3a7b3a5
KB
46182002-07-31 Kevin Buettner <kevinb@redhat.com>
4619
4620 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4621 help message.
4622
fb850278
KB
46232002-07-31 Kevin Buettner <kevinb@redhat.com>
4624
4625 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4626 and save it in a local variable. Use variable in later test.
4627
e3bddbfa
KB
46282002-07-31 Kevin Buettner <kevinb@redhat.com>
4629
4630 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4631 test. (Thanks to Daniel Jacobowitz.)
4632
28d169de
KB
46332002-07-31 Kevin Buettner <kevinb@redhat.com>
4634
4635 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4636 (mips_abi_strings): Add "n64".
4637 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4638
7fe7e44e
KB
46392002-07-31 Kevin Buettner <kevinb@redhat.com>
4640
4641 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4642 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4643
c6caf090
KB
46442002-07-31 Kevin Buettner <kevinb@redhat.com>
4645
4646 * utils.c (host_pointer_to_address, address_to_host_pointer):
4647 Use gdb_assert() instead of explicit call to internal_error().
4648
c41669e0
KB
46492002-07-30 Kevin Buettner <kevinb@redhat.com>
4650
4651 * Makefile.in (rs6000-nat.o): Update dependencies.
4652
4653 From Nicholas Duffek:
4654 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4655 (aix-thread.o): New rule.
4656 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4657 * config/powerpc/aix432.mh: New file.
4658
2fda4977
DJ
46592002-07-30 Daniel Jacobowitz <drow@mvista.com>
4660
4661 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4662 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4663 (fetch_core_registers, ppc_linux_supply_gregset)
4664 (ppc_linux_supply_fpregset): New functions.
4665 (ppc_linux_regset_core_fns): New.
4666 (_initialize_ppc_linux_tdep): Call add_core_fns.
4667 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4668 and ppc_linux_supply_gregset.
4669 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4670 (supply_fpregset): Call ppc_linux_supply_fpregset.
4671 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4672 corelow.o.
4673 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4674
729051e6
DJ
46752002-07-30 Daniel Jacobowitz <drow@mvista.com>
4676
4677 * symtab.c (lookup_symbol): Demangle before lowercasing.
4678
5f8a3188
AC
46792002-07-30 Andrew Cagney <ac131313@redhat.com>
4680
4681 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4682 declaration.
4683 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4684 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4685 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4686 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4687 "gdb_string.h".
4688 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4689 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4690 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4691 (avr-tdep.o, mon960-rom.o): Ditto.
4692 (aout_stabs_gnu_h): Define.
4693 (symtab_h): Remove $(gdb_obstack_h).
4694
67f07146
JB
46952002-07-30 Jim Blandy <jimb@redhat.com>
4696
4697 Patch from David Carlton <carlton@math.stanford.edu>:
4698 * gdbinit.in: Move the `dir' commands that add GDB's own source
4699 directory to the search path to the end, so that the `gdb' source
4700 directory will be searched first.
4701
04ea0df1
AC
47022002-07-29 Andrew Cagney <ac131313@redhat.com>
4703
4704 * gdb_obstack.h: New file.
4705 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4706 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4707 * objfiles.h: Include "gdb_obstack.h".
4708 * Makefile.in (gdb_obstack_h): Define.
4709 (symtab_h): Add $(gdb_obstack_h).
4710 (objfiles_h): Add $(gdb_obstack_h).
4711
4712 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4713 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4714 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4715 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4716 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4717 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4718 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4719 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4720
4721 * Makefile.in (bcache.o): Update dependencies.
4722 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4723 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4724 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4725 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4726 (stabsread.o, symfile.o, symmisc.o): Ditto.
4727 (symtab.o, typeprint.o, macroexp.o): Ditto.
4728 (macrotab.o, mdebugread.o): Ditto.
4729 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4730 (coff_ecoff_h, aout_aout64_h): Define.
4731 (aout_stabs_gnu_h, libaout_h): Define.
4732
d138e37a
AC
47332002-07-29 Andrew Cagney <cagney@redhat.com>
4734
4735 * regcache.c (struct regcache_descr): Rename nr_registers to
4736 nr_cooked_registers. Revise comments describing the structure
4737 member fields.
4738 (init_regcache_descr): Update.
4739 (init_legacy_regcache_descr): Update.
4740 (read_register_gen, write_register_gen): When a cooked register in
4741 the raw register range, directly access the value from the raw
4742 register cache.
4743
460e6ec3
AC
47442002-07-29 Andrew Cagney <ac131313@redhat.com>
4745
4746 * z8k-tdep.c: Do not include "obstack.h".
4747 * h8300-tdep.c, h8500-tdep.c: Ditto.
4748 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4749 * valprint.c, v850-tdep.c: Ditto.
4750 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4751 * mn10200-tdep.c: Ditto.
4752
4753 * Makefile.in (z8k-tdep.o): Update dependencies.
4754 (m68hc11-tdep.o, valprint.o): Ditto.
4755 (v850-tdep.o, d10v-tdep.o): Ditto.
4756 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4757 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4758 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4759 (sh_opc_h, gdb_sim_sh_h): Define.
4760 (elf_sh_h, elf_bfd_h): Define.
4761 (opcode_m68hc11_h): Define.
4762 (OPCODES_SRC, OPCODES_DIR): define.
4763 (OPCODES): Use $(OPCODES_DIR).
4764 (gdb_sim_d10v_h): Rename sim_d10v_h.
4765 (gdb_sim_arm_h): Rename sim_arm_h.
4766
790c9cf0
KB
47672002-07-26 Kevin Buettner <kevinb@redhat.com>
4768
4769 * utils.c (host_pointer_to_address, address_to_host_pointer):
4770 Change internal_error() message to indicate function responsible
4771 for the error.
4772
9647fa49
KB
47732002-07-26 Kevin Buettner <kevinb@redhat.com>
4774
4775 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4776 calls to local_hex_string_custom().
4777
dabbe2c0
KB
47782002-07-26 Kevin Buettner <kevinb@redhat.com>
4779
4780 * irix5-nat.c: Move IRIX shared library support from here...
4781 * solib-irix.c: ...to here. Revised substantially to work with
4782 generic solib framework.
4783
b96d0a4e
KB
4784 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4785 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4786 * mips-irix-tdep.c: New file.
4787
313fb2f6
KB
4788 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4789 (mips-irix-tdep.o, solib-irix.o): New rules.
4790 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4791 solib-irix.o.
4792 * config/mips/irix6.mt (TDEPFILES): Likewise.
4793 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4794
ab2eaf26
KB
47952002-07-26 Kevin Buettner <kevinb@redhat.com>
4796
177e4768 4797 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4798 disabled (via ``#if 0'') includes.
4799
7244546a
KB
48002002-07-26 Kevin Buettner <kevinb@redhat.com>
4801
4802 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4803 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4804 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4805 Add support for the fpscr register.
4806 * rs6000-nat.c (regmap, fetch_inferior_registers)
4807 (store_inferior_registers, fetch_core_registers): Likewise.
4808
dd7be90a
KB
48092002-07-26 Kevin Buettner <kevinb@redhat.com>
4810
4811 * rs6000-nat.c (language.h): Include.
4812 (special_regs): Delete this array.
4813 (regmap): New function.
4814 (fetch_register, store_register): Use regmap() to map gdb
4815 register numbers to ptrace register numbers. Also, use
4816 outputs from regmap() to make decisions regarding type of
4817 ptrace() call to make. In particular, don't compare against
4818 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4819 (fetch_inferior_registers, store_inferior_registers): Where
4820 possible, obtain register numbers from tdep struct. Don't
4821 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4822 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4823 (LAST_UISA_SP_REGNUM): Delete.
4824
11bf77db
KB
48252002-07-25 Kevin Buettner <kevinb@redhat.com>
4826
4827 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4828 (fetch_registers, store_register, fetch_core_registers): Don't
4829 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4830 regcache_collect() as appropriate.
4831 (find_toc_address): Format hex address with local_hex_string().
4832
06afebeb
AC
48332002-07-25 Andrew Cagney <ac131313@redhat.com>
4834
4835 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4836 bfd/elf32-frv.c.
4837
8c554d79
TT
48382002-07-24 Tom Tromey <tromey@redhat.com>
4839
4840 * jv-exp.y: Marked all strings with _().
4841 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4842 internal_error.
4843 (MethodInvocation, CastExpression, parse_number, yyerror,
4844 java_type_from_name, push_expression_name, yylex): Typo fixes.
4845
e4c242d9
DJ
48462002-07-24 Daniel Jacobowitz <drow@mvista.com>
4847
4848 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4849 (tee_file_flush, tee_file_write, tee_file_fputs)
4850 (tee_file_isatty): New.
4851 * ui-file.h (tee_file_new): Add prototype.
4852
ebf56fd3
AS
48532002-07-24 Aidan Skinner <aidan@velvet.net>
4854
4855 * ada-lang.c: Change k&r style function definitions to prototyped
4856 form.
4857 * ada-typeprint.c: Change k&r style function definitions to prototyped
4858 form.
4859 * ada-valprint.c: Change k&r style function definitions to prototyped
4860 form.
4861
7fb623f7
AC
48622002-07-24 Andrew Cagney <cagney@redhat.com>
4863
4864 * README: Remove reference to remote-bug.
4865 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4866 remote-bug.c.
4867 (m88k-nat.o): Delete rule.
4868 (m88k-tdep.o): Delete rule.
4869 (remote-bug.o): Delete rule.
4870 * MAINTAINERS: Mark as obsolete.
4871 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4872 * m88k-tdep.c: Make file obsolete.
4873 * config/m88k/m88k.mh: Ditto.
4874 * config/m88k/delta88v4.mh: Ditto.
4875 * config/m88k/delta88v4.mt: Ditto.
4876 * config/m88k/delta88.mt: Ditto.
4877 * config/m88k/delta88.mh: Ditto.
4878 * remote-bug.c: Ditto.
4879 * config/m88k/tm-delta88.h: Ditto.
4880 * config/m88k/nm-delta88v4.h: Ditto.
4881 * config/m88k/xm-delta88.h: Ditto.
4882 * config/m88k/xm-dgux.h: Ditto.
4883 * config/m88k/tm-m88k.h: Ditto.
4884 * config/m88k/nm-m88k.h: Ditto.
4885 * config/m88k/tm-delta88v4.h: Ditto.
4886 * m88k-nat.c: Ditto.
4887 * cxux-nat.c: Ditto.
4888 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4889 and m88*-*-* obsolete.
4890 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4891 m88*-*-* obsolete.
4892
37611a2b
AC
48932002-07-24 Andrew Cagney <cagney@redhat.com>
4894
4895 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4896 constant. Same for local pointer variables.
4897 (extract_signed_integer): Ditto.
4898 * defs.h (extract_unsigned_integer): Update.
4899 (extract_signed_integer): Update.
4900
1aaa5f99
AC
49012002-07-24 Andrew Cagney <cagney@redhat.com>
4902
4903 * regcache.c (regcache_raw_write): Change buf parameter to a
4904 constant void pointer.
4905 (regcache_raw_read): Change buf parameter to a void pointer.
4906 (legacy_write_register_gen): Change myaddr parameter a constant
4907 void pointer.
4908 (supply_register): Change val parameter to a const void pointer.
4909 * regcache.h (regcache_raw_write): Update declaration.
4910 (regcache_raw_read): Update declaration.
4911 (supply_register): Update declaration.
4912
b4f5539f
TT
49132002-07-24 Tom Tromey <tromey@redhat.com>
4914
4915 * defs.h (gdb_readline_wrapper): Declare.
4916 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4917 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4918 * top.c (gdb_readline_wrapper): New function.
4919 (command_line_input): Use it.
4920
0818c12a
AC
49212002-07-24 Andrew Cagney <cagney@redhat.com>
4922
4923 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4924 regcache_read and regcache_write.
4925 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4926 * regcache.c: Update.
4927 * sh-tdep.c (sh64_push_arguments): Update comment.
4928 (sh_pseudo_register_read): Update.
4929 (sh_pseudo_register_write): Update.
4930 (sh4_register_read): Update.
4931 (sh4_register_write): Update.
4932 (sh64_pseudo_register_read): Update.
4933 (sh64_pseudo_register_write): Update.
4934 (sh64_register_read): Update.
4935 (sh64_register_write): Update.
4936 * i386-tdep.c (i386_extract_return_value): Update.
4937 (i386_extract_struct_value_address): Update.
4938 (i386_extract_return_value): Update.
4939 * blockframe.c (generic_read_register_dummy): Update.
4940 (generic_call_dummy_register_unwind): Update
4941 * infrun.c (write_inferior_status_register): Update.
4942
f7321c06
JB
49432002-07-23 Jim Blandy <jimb@redhat.com>
4944
4945 * parser-defs.h (expression_context_pc): Make this extern.
4946 (Thanks to Michael Snyder.)
4947
2037aebb
AC
49482002-07-23 Andrew Cagney <ac131313@redhat.com>
4949
4950 GDB 5.2.1 released from 5.2 branch.
4951 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4952 * README: Update to mention 5.2.1.
4953
66504d44
MS
49542002-07-23 Mark Salter <msalter@redhat.com>
4955
4956 * remote.c (remote_read_bytes): Fix check for error.
4957
27bae383
KB
49582002-07-22 Kevin Buettner <kevinb@redhat.com>
4959
4960 * aix-thread.c (language.h): Include.
4961 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4962 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4963 Print newlines at end of debug messages.
4964 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4965 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4966
49672002-07-22 Kevin Buettner <kevinb@redhat.com>
4968
4969 * aix-thread.c (ppc-tdep.h): Include.
4970 (special_register_p): New function.
4971 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4972 (store_regs_user_thread): Use register number information from
4973 gdbarch_tdep struct instead of hardcoded offsets relative to
4974 FIRST_UISA_SP_REGNUM.
4975 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4976 special_register_p() instead of using FPLAST_REGNUM and
4977 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4978 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4979 will be MQ's register number.
4980
49812002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
4982
4983 * aix-thread.c (ops): Rename to aix_thread_ops.
4984 (base_ops): Rename to base_target.
4985 (ops_attach): Rename to aix_thread_attach.
4986 (ops_detach): Rename to aix_thread_detach.
4987 (ops_resume): Rename to aix_thread_detach.
4988 (ops_wait): Rename to aix_thread_wait.
4989 (ops_kill): Rename to aix_thread_kill.
4990 (init_ops): Rename to init_aix_thread_ops.
4991 (ops_fetch_register): Rename to aix_thread_fetch_register.
4992 (ops_store_register): Rename to aix_thread_store_register.
4993 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4994 (ops_thread_alive): Rename to aix_thread_thread_alive.
4995 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4996 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4997 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4998 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4999 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5000 (store_regs_lib): Rename to store_regs_user_thread.
5001 (store_regs_kern): Rename to store_regs_kernel_thread.
5002
27bae383 50032002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5004
5005 * aix-thread.c (ops_prepare_to_store): Eliminate.
5006 (init_ops): Don't initialize ops.prepare_to_store.
5007 (store_regs_kern): Pre-fetch register buffers from child,
5008 because some registers may not be in the cache. Copy
5009 regs from register cache only if they are cached.
5010 (store_regs_lib): Copy regs from register cache only
5011 if they are cached.
5012 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5013 fill_gprs64): Ditto.
5014
61c5da0b
KB
50152002-07-22 Kevin Buettner <kevinb@redhat.com>
5016
5017 * aix-thread.c (gdb_assert.h): Include.
5018 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5019 register sizes (from register cache) match size of buffer holding
5020 register data.
5021 (fill_sprs32): Change parameter types to match those in the ptrace()
5022 buffer.
5023 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5024 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5025
50262002-07-22 Michael Snyder <msnyder@redhat.com>
5027
5028 * aix-thread.c (supply_sprs64): Cosmetic change.
5029 (supply_sprs32): Cosmetic change.
5030 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5031 (fill_sprs64): Use regcache_collect instead of read_register.
5032 (store_regs_lib): Use regcache_collect instead of
5033 read_register. Use fill_sprs32 instead of fill_sprs64,
5034 if debugging a 32-bit architecture.
5035 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5036 out of the register cache, instead of passing a pointer into
5037 the register cache directly to ptrace. Use regcache_collect
5038 insteaad of read_register.
5039 (ops_prepare_to_store): Use target_read_registers instead
5040 of read_register_bytes.
5041
36479eb1
AS
50422002-07-20 Aidan Skinner <aidan@velvet.net>
5043
5044 * MAINTAINERS: Add self under write after approval.
5045
80ae6ee2
AS
50462002-07-20 Aidan Skinner <aidan@velvet.net>
5047
5048 * ada-tasks.c: Change k&r style function definitions to prototyped
5049 form.
5050
8a8ab2b9
AC
50512002-07-19 Andrew Cagney <ac131313@redhat.com>
5052
5053 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5054 * x86-64-tdep.c: Include "objfiles.h".
5055 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5056 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5057
fb16b900
ML
50582002-07-17 Michal Ludvig <michal@suse.cz>
5059
5060 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5061 (update_context): Initialise cfa variable.
5062
0fe7bf7b
MS
50632002-07-17 Michael Snyder <msnyder@redhat.com>
5064
5065 * aix-thread.c: Shorten some long lines.
5066 Bring comments into line with code spec.
5067
488f131b
JB
50682002-07-18 Joel Brobecker <brobecker@gnat.com>
5069
5070 * infrun.c: Re-indent using gdb_indent.sh.
5071
46c415d2
JB
50722002-07-18 Joel Brobecker <brobecker@gnat.com>
5073
5074 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5075 Leave the indentation temporarily untouched, to minimize the diffs.
5076
cdecafbe
EZ
50772002-07-18 Elena Zannoni <ezannoni@redhat.com>
5078
5079 * stabsread.c: Make os9k sections of the code obsolete,
5080 for real this time.
5081 * stabsread.h: Make os9k sections of the code obsolete.
5082
7b6aa020
ML
50832002-07-18 Michal Ludvig <mludvig@suse.cz>
5084
09ec9b38
ML
5085 * linux-low.c (regsets_store_inferior_registers): Add free()
5086 at the end of a loop to prevent memory leak.
5087 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5088 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5089 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5090 line a comment.
4894ac5d 5091 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5092
233282cd
JB
50932002-07-17 Jim Blandy <jimb@redhat.com>
5094
5095 * macrocmd.c (info_macro_command): Remove newline from error
5096 message.
5097
7b6aa020 50982002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5099
5100 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5101 (sh_gdbarch_init): Use it for sh-dsp.
5102
f7ef9339
KB
51032002-07-16 Kevin Buettner <kevinb@redhat.com>
5104
5105 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5106 64-bit DWARF2 format.
5107
8dd72958
JB
51082002-07-16 Joel Brobecker <brobecker@gnat.com>
5109
5110 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5111 <sys/proc.h> when not available.
5112
a99a9e1b
AC
51132002-07-16 Andrew Cagney <ac131313@redhat.com>
5114
5115 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5116 * stabsread.c: Make os9k sections of the code obsolete.
5117 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5118 * config/i386/i386os9k.mt: Make file obsolete.
5119 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5120 (COMMON_OBS): Remove os9kread.o
5121 (SFILES): Remove os9kread.c.
5122 (os9kread.o, remote-os9k.o): Make target obsolete.
5123 * remote-os9k.c: Make file obsolete.
5124 * os9kread.c: Make file obsolete.
5125 * Makefile.in
5126
7a3085c1
AC
51272002-07-16 Andrew Cagney <ac131313@redhat.com>
5128
5129 * NEWS: Mention that the FR30 has been made obsolete.
5130 * fr30-tdep.c: Make file obsolete.
5131 * config/fr30/tm-fr30.h: Ditto.
5132 * config/fr30/fr30.mt: Ditto.
5133 * configure.tgt: Make fr30-*-elf obsolete.
5134 * MAINTAINERS: Make fr30-elf obsolete.
5135
28a93f5a
PM
51362002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5137
5138 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5139 found is not inside a section.
5140
be006b8b
KB
51412002-07-15 Kevin Buettner <kevinb@redhat.com>
5142
5143 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5144 strerror().
5145 (pdc_realloc): Use xrealloc() instead of realloc().
5146
14fa3751
KB
51472002-07-15 Kevin Buettner <kevinb@redhat.com>
5148
5149 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5150 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5151 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5152 macros.
5153
42cc437f
KB
51542002-07-15 Kevin Buettner <kevinb@redhat.com>
5155
5156 * aix-thread.c (ptrace_check): Eliminate goto.
5157 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5158 problem.
5159
8e2c28d4
KB
51602002-07-15 Kevin Buettner <kevinb@redhat.com>
5161
5162 * aix-thread.c (gdbcmd.h): Include.
5163 (DEBUG, DBG, DBG2, dbg): Eliminate.
5164 (debug_aix_thread): New static global.
5165 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5166 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5167 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5168 invocations to DBG and DBG2 macros to test against
5169 ``debug_aix_thread'' and call fprintf_unfiltered().
5170 (_initialize_aix_thread): Add new command "set debug aix-thread".
5171
30413464
AC
51722002-07-15 Andrew Cagney <ac131313@redhat.com>
5173
5174 From Gerhard Tonn <TON@de.ibm.com>:
5175 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5176 instead of supply_register.
5177
7c43edc1
AC
51782002-07-15 Andrew Cagney <ac131313@redhat.com>
5179
5180 * dwarf2cfi.c: Include "gdb_assert.h".
5181 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5182 non-NULL.
5183 (update_context): Do not use __func__. Add missing ``break''.
5184 (update_context): Do not use __func__.
5185
9364a0ef
EZ
51862002-07-15 Elena Zannoni <ezannoni@redhat.com>
5187
5188 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5189 and its setting. Set gdbarch instruction printing functions
5190 directly. For non-rs6000 case use new function
5191 gdb_print_insn_powerpc.
5192 (gdb_print_insn_powerpc): New function.
5193
3fbeef0b
AC
51942002-07-13 Andrew Cagney <ac131313@redhat.com>
5195
92eb23c5 5196 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5197 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5198 * configure.tgt: Mark d30v-*-* as obsolete.
5199 * d30v-tdep.c: Mark file as obsolete.
5200 * config/d30v/d30v.mt: Ditto.
5201 * config/d30v/tm-d30v.h: Ditto.
5202
aacb1f0a
AS
52032002-07-13 Aidan Skinner <aidan@velvet.net>
5204
5205 * ada-tasks.c (add_task_entry): replace calls to
5206 malloc() with xmalloc
5207 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5208
5209 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5210 ada_finish_decode_line_1, all_sals_for_line
5211 ada_breakpoint_rewrite): replace calls to free() with xfree()
5212
c11d79f2
KB
52132002-07-12 Kevin Buettner <kevinb@redhat.com>
5214
5215 From Nicholas Duffek (with minor changes by Martin Hunt,
5216 Louis Hamilton, and Kevin Buettner):
5217 * aix-thread.c: New file.
5218
8e19ed76
PS
52192002-07-12 Petr Sorfa <petrs@caldera.com>
5220
5221 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5222 complaint for invalid attribute class or form.
5223 (read_func_scope): DW_AT_frame_base
5224 better handling of DW_AT_block*.
5225 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5226 better handling of DW_AT_block*.
5227 (read_common_block): DW_AT_location
5228 better handling of DW_AT_block*.
5229 (read_partial_die): DW_AT_location better handling
5230 of DW_AT_block*.
5231 (new_symbol): DW_AT_external better handling of
5232 DW_AT_block*. Proper initialization of variable
5233 "addr".
5234 (attr_form_is_block): New function that returns true
5235 if the attribute's form is of DW_FORM_block*.
5236
295401f7
DJ
52372002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5238
5239 * valops.c (find_method_list): Remove comment about
5240 removed STATIC_MEMFUNCP argument.
5241 (value_find_oload_method_list): Likewise.
5242
e42dc924
KB
52432002-07-12 Kevin Buettner <kevinb@redhat.com>
5244
5245 From Nicholas Duffek:
5246 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5247 target_new_objfile_hook.
5248
6904b546
KB
52492002-07-12 Kevin Buettner <kevinb@redhat.com>
5250
5251 From Nicholas Duffek:
5252 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5253 csect.
5254
53fe9346
AC
52552002-07-12 Andrew Cagney <cagney@redhat.com>
5256
5257 * MAINTAINERS: Mention --enable-sim-build-warnings.
5258 (m68hc11-elf): Disable sim build warnings.
5259 (m32r-elf): Mark as broken obsolete candidate.
5260 (x86_64-linux-gnu): Mark as buildable with -Werror.
5261 (arm-elf): Change -w to ``,'' which enables warnings but not
5262 -Werror.
5263
af5f3db6
AC
52642002-07-12 Andrew Cagney <ac131313@redhat.com>
5265
5266 * bcache.h: Update copyright.
5267 (struct bstring, struct bcache): Move definition to "bcache.c".
5268 Replaced by opaque declaration.
5269 (bcache_xfree): Replace free_bcache.
5270 (bcache_xmalloc, bcache_memory_used): Declare.
5271
5272 * bcache.c: Update copyright.
5273 (struct bstring, struct bcache): Moved to here from "bcache.h".
5274 Update comments.
5275 (bcache_xmalloc, bcache_memory_used): New functions.
5276 (bcache_xfree): Replace function free_bcache.
5277
5278 * Makefile.in (objfiles.o): Add $(bcache_h).
5279 (objfiles_h): Remove $(bcache_h).
5280 (symfile.o): Add $(bcache_h).
5281
5282 * symmisc.c: Update copyright.
5283 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5284 (print_objfile_statistics): Use bcache_memory_used.
5285
5286 * symfile.c: Include "bcache.h".
5287 (reread_symbols): Use bcache_xfree.
5288 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5289 (add_psymbol_to_list): Pass psymbol_cache by value.
5290 (add_psymbol_with_dem_name_to_list): Ditto.
5291
5292 * objfiles.h: Update copyright.
5293 (struct bcache): Declare opaque. Do not include "bcache.h".
5294 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5295 bcache'' pointers.
5296 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5297
5298 * objfiles.c: Include "bcache.h". Update copyright.
5299 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5300 macro_cache.
5301 (free_objfile): Use bcache_xfree.
5302
444199e7
GS
53032002-07-11 Grace Sainsbury <graces@redhat.com>
5304
5305 * monitor.c (monitor_fetch_register): Make name a constant.
5306 (monitor_store_register): Same.
5307
261397f8
DJ
53082002-07-11 Daniel Jacobowitz <drow@mvista.com>
5309
5310 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5311 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5312 (finish_block) For non-function blocks, hash the symbol table. For
5313 function blocks, mark the symbol table as unhashed.
5314 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5315 (msymbol_hash_iw): Likewise.
5316 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5317 value.
5318 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5319 (lookup_minimal_symbol): Likewise for both.
5320 * symtab.h (struct block): Add `hashtable' flag. Comment the
5321 hashtable.
5322 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5323 (ALL_BLOCK_SYMBOLS): Update.
5324 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5325 (struct symbol): Add `hash_next' pointer.
5326 * symtab.c (lookup_block_symbol): Search using the hash table when
5327 possible.
5328 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5329 (search_symbols, find_addr_symbol): Likewise.
5330
5331 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5332 (read_dst_symtab): Likewise.
5333 * jv-lang.c (get_java_class_symtab): Likewise.
5334 * mdebugread.c: Include "gdb_assert.h".
5335 (shrink_block): Assert that the block being modified is not hashed.
5336 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5337 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5338 symbols.
5339 (dump_symtab): Recognize hashed blocks.
5340 * printcmd.c (print_frame_args): Assert that function blocks do not
5341 have hashed symbol tables.
5342 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5343 (fill_in_ada_prototype, debug_print_block): Likewise.
5344 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5345
6f0eaa01
CV
53462002-07-11 Corinna Vinschen <vinschen@redhat.com>
5347
5348 * stack.c (print_frame): Use result of frame_address_in_block()
5349 instead of fi->pc when evaluating symbols.
5350 (backtrace_command_1): Ditto.
5351
a208b0cb
AC
53522002-07-11 Andrew Cagney <cagney@redhat.com>
5353
5354 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5355 Make static.
5356
5357 * arm-tdep.c (arm_register_name): Make return type constant.
5358
a6b6b089
AC
53592002-07-10 Andrew Cagney <ac131313@redhat.com>
5360
5ae5f592
AC
5361 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5362 prototype.
5363 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5364 * s390-tdep.c (s390_fp_regnum): Ditto.
5365 (s390_read_fp): Ditto.
5366 (s390_pop_frame): Ditto.
5367 (_initialize_s390_tdep): Ditto.
5368 * remote.c (get_remote_state): Ditto.
5369 * procfs.c (mappingflags): Ditto.
5370 * memattr.c (_initialize_mem): Ditto.
5371 * mcore-tdep.c (mcore_pop_frame): Ditto.
5372 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5373 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5374 * language.c (set_case_str): Ditto.
5375 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5376 * frv-tdep.c (new_variant): Ditto.
5377 (frv_stopped_data_address): Ditto.
5378 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5379 (context_alloc): Ditto.
5380 (frame_state_alloc): Ditto.
5381 (unwind_tmp_obstack_init): Ditto.
5382 (unwind_tmp_obstack_free): Ditto.
5383 (cfi_read_fp): Ditto.
5384 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5385 (cris_pop_frame): Ditto.
5386 * c-lang.c (scanning_macro_expansion): Ditto.
5387 (finished_macro_expansion): Ditto.
5388 (c_preprocess_and_parse): Ditto.
5389 * gdbarch.sh: Ditto.
5390 * gdbarch.h, gdbarch.c: Regenerate.
5391 * config/mn10200/tm-mn10200.h: Adjust indentation.
5392 * target.c: Adjust indentation.
5393 * symtab.h: Adjust indentation.
5394 * stabsread.h: Adjust indentation.
5395 * remote-es.c: Adjust indentation.
5396 * os9kread.c: Adjust indentation.
5397
53982002-07-10 Andrew Cagney <ac131313@redhat.com>
5399
a6b6b089
AC
5400 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5401 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5402
a1789893
GS
54032002-07-10 Grace Sainsbury <graces@redhat.com>
5404
5405 * NEWS: Mention m68k, mcore multi-arching.
5406 * MAINTAINERS: Change status of m68k, mcore to reflect
5407 multi-arching.
5408
02f0d45d
DJ
54092002-07-10 Daniel Jacobowitz <drow@mvista.com>
5410
5411 * valops.c (find_overload_match): Free oload_syms.
5412
f15f768e
JB
54132002-07-09 Joel Brobecker <brobecker@gnat.com>
5414
5415 Define HAVE_SYS_PROC_H if sys/proc.h exists
5416 * configure.in: Add check for sys/proc.h
5417 * config.in: Regenerate.
5418 * configure: Regenerate.
5419
902a7139
GS
54202002-07-09 Grace Sainsbury <graces@redhat.com>
5421
5422 * config/m68k/tm-m68k.h: Remove macros wrapped in
5423 #if !GDB_MULTI_ARCH.
5424
a534e424
AC
54252002-07-08 Andrew Cagney <ac131313@redhat.com>
5426
5427 * config.in, configure: Regenerate.
5428
9b94f7bf
MK
54292002-07-08 Mark Kettenis <kettenis@gnu.org>
5430
5431 * dwarf2cfi.c: Include "gcore.h".
5432 (execute_stack_op): Fix implementation of the
5433 DW_OP_deref and DW_OP_deref_size operators by letting do their
5434 lookup in the target.
5435
1d34db41
MK
54362002-07-07 Mark Kettenis <kettenis@gnu.org>
5437
5438 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5439 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5440 tdep->sc_sp_offset.
5441
79d5b63a
DJ
54422002-07-05 Daniel Jacobowitz <drow@mvista.com>
5443
5444 Fix PR gdb/595, gdb/602
5445 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5446 Don't call value_cast, just read the vtable pointer; update comments
5447 to match.
5448
3bb912e8
GS
54492002-07-05 Grace Sainsbury <graces@redhat.com>
5450
5451 * config/mcore/tm-mcore.h: Remove file.
5452 * config/mcore/mcore.mt: Remove definition of TM_FILE
5453 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5454
ca39387d
MK
54552002-07-05 Mark Kettenis <kettenis@gnu.org>
5456
5457 * i386bsd-tdep.c: Include "gdb_string.h".
5458
efdc1108
GS
54592002-07-04 Grace Sainsbury <graces@redhat.com>
5460
5461 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5462 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5463 mcore-tdep.
5464 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5465 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5466 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5467 (RETVAL_REGNUM): Move macros from tm-mcore.h
5468 (mcore_reg_struct_has_addr): New function.
5469 (mcore_gdbarch_init): Added initializations for the macros removed
5470 from tm-mcore.h.
5471
bb21884d
MK
54722002-07-04 Mark Kettenis <kettenis@gnu.org>
5473
5474 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5475 traditonal string branding within the ELF header.
5476
228c6d41
DJ
54772002-07-04 Daniel Jacobowitz <drow@mvista.com>
5478
5479 * symtab.c (remove_params): New function.
5480 (make_symbol_overload_list): Use it instead of cplus_demangle.
5481 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5482
2404952e
MK
54832002-07-04 Mark Kettenis <kettenis@gnu.org>
5484
e5e4acad
MK
5485 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5486
baadce09
MK
5487 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5488 New variables.
5489 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5490 and tdep->sigtramp_end.
5491 * i386obsd-nat.c: New file.
5492 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5493
2404952e
MK
5494 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5495 Don't call get_current_frame().
5496
9b4f1ba7
PM
54972002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5498
5499 * i386-nat.c (child_post_startup_inferior): New function
5500 calling i386_cleanup_dregs if
5501 I386_USE_GENERIC_WATCHPOINTS is defined.
5502 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5503 conditional to acknowledge that i386-nat.c has its
5504 own child_post_startup_inferior function.
5505
c0d1d883
MK
55062002-07-04 Mark Kettenis <kettenis@gnu.org>
5507
00f8375e
MK
5508 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5509 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5510 instead of MAX_REGISTER_RAW_SIZE.
5511 (i386_extract_return_value, i386_extract_struct_value_address):
5512 Convert to use regcache.
5513 (i386_gdbarch_init): Set max_register_raw_size and
5514 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5515 Set extract_return_value and extract_struct_value_address instead
5516 of their deprecated variants.
5517
c0d1d883
MK
5518 Convert i386 target to generic dummy frames.
5519 * i386-tdep.c: Include "symfile.h".
5520 (i386_frameless_signal_p): Consider a function to be frameless if
5521 the pc points at the first instruction of the function.
5522 (i386_frame_chain): Handle (generic) call dummies.
5523 (i386_frame_saved_pc): Likewise.
5524 (i386_frame_init_saved_regs): Remove code dealing with call
5525 dummies on the stack.
5526 (i386_push_dummy_frame): Removed.
5527 (i386_call_dummy_words): Removed.
5528 (i386_fix_call_dummy): Removed.
5529 (i386_push_return_address): New function.
5530 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5531 parameter, and don't call get_current_frame.
5532 (i386_pop_frame): New function.
5533 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5534 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5535 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5536 call_dummy_length to 0, set call_dummy_words to NULL, set
5537 sizeof_call_dummy_words to 0, set fix_call_dummy to
5538 generic_fix_call_dummy, set pc_in_call_dummy to
5539 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5540 generic_push_dummy_frame, set push_return_address to
5541 i386_push_return_address and set frame_chain_valid to
5542 generic_file_frame_chain_valid.
5543
049ee0e4
AC
55442002-07-03 Andrew Cagney <ac131313@redhat.com>
5545
5546 * gdbarch.sh (struct regcache): Add opaque declaration.
5547 (EXTRACT_RETURN_VALUE): New architecture method.
5548 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5549 * gdbarch.h, gdbarch.c: Regenerate.
5550 * arch-utils.c (legacy_extract_return_value): New function.
5551 * arch-utils.h (legacy_extract_return_value): Declare.
5552 * values.c (value_being_returned): Re-enable code handling
5553 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5554 deprecated_grub_regcache_for_registers call to block handling
5555 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5556 (EXTRACT_RETURN_VALUE): Do not define.
5557
4e0d9804
GS
55582002-07-03 Grace Sainsbury <graces@redhat.com>
5559
5560 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5561 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5562 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5563 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5564 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5565 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5566 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5567 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5568 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5569 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5570 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5571 argument so the function fits the prototype in the architecture
5572 vector.
5573 (mcore_pop_frame): Remove argument so the function fits the
5574 prototype. Use get_current_frame instead of the argument.
5575 (mcore_push_arguments): Change type of struct_return so the
5576 function can be used in the architecture vector.
5577 (mcore_store_struct_return): Add.
5578 (mcore_frame_init_saved_regs): Add.
5579 (mcore_gdbarch_init): Add function calls to replace the macros
5580 removed from tm-mcore.h
5581
36160dc4
AC
55822002-07-03 Andrew Cagney <ac131313@redhat.com>
5583
5584 * infcmd.c (print_return_value): Remove compatibility code calling
5585 deprecated_grub_regcache_for_registers.
5586
5587 * values.c: Include "regcache.h".
5588 (value_being_returned): Update. Use
5589 deprecated_grub_regcache_for_registers to extract the register
5590 buffer address.
5591 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5592 ``struct regcache''.
5593 * Makefile.in (values.o): Add dependency on $(regcache_h).
5594
5595 * inferior.h (run_stack_dummy): Change type of second parameter to
5596 a ``struct regcache''.
5597 * valops.c (hand_function_call): Change type of retbuf to ``struct
5598 regcache''. Allocate using regcache_xmalloc, clean using
5599 make_cleanup_regcache_xfree.
5600 * infcmd.c (run_stack_dummy): Update. Use
5601 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5602
5603 * regcache.c (do_regcache_xfree): New function.
5604 (make_cleanup_regcache_xfree): New function.
5605 * regcache.h (make_cleanup_regcache_xfree): Declare.
5606
e64d9b3d
MH
56072002-07-03 Martin M. Hunt <hunt@redhat.com>
5608
4dd79c29
MH
5609 * event-top.c (command_line_handler): Don't read past
5610 beginning of buffer.
e64d9b3d 5611
4dd79c29
MH
56122002-07-03 Martin M. Hunt <hunt@redhat.com>
5613
e64d9b3d
MH
5614 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5615 struct frame_id.
5616 (varobj_create): Store frame_id for root.
5617 (varobj_gen_name): Use xasprintf.
5618 (varobj_update): Save and restore frame using get_frame_id() and
5619 frame_find_by_id().
5620 (create_child): Use xasprintf.
5621 (new_root_variable): Initialize frame_id.
5622 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5623 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5624 to prevent memory leak.
5625
26e6c56a
AC
56262002-07-03 Andrew Cagney <ac131313@redhat.com>
5627
5628 * valops.c (hand_function_call): Move declaration of retbuf to
5629 start of function, allocate using malloc, add a cleanup but before
5630 the inf_status cleanup, cleanup the buffer. Rename local variable
5631 old_chain to inf_status_cleanup.
5632
f436dd25
MH
56332002-07-03 Martin M. Hunt <hunt@redhat.com>
5634
5635 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5636
5637 * cli/cli-decode.c (cmd_func_p): New function.
5638 (cmd_func): New function.
5639
5640 * command.h: Add cmd_func() and cmd_func_p().
5641
4cfe2084
GS
56422002-07-03 Grace Sainsbury <graces@redhat.com>
5643
5644 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5645 (REGISTER_SIZE): Remove.
5646 (MAX_REGISTER_RAW_SIZE): Remove.
5647 (REGISTER_VIRTUAL_TYPE): Remove.
5648 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5649 (REGISTER_NAME): Remove.
5650 (USE_GENERIC_DUMMY_FRAMES): Remove.
5651 (CALL_DUMMY): Remove.
5652 (CALL_DUMMY_START_OFFSET): Remove.
5653 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5654 (CALL_DUMMY_LOCATION): Remove.
5655 (FIX_CALL_DUMMY): Remove.
5656 (CALL_DUMMY_ADDRESS): Remove.
5657 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5658 (SAVE_DUMMY_FRAME_TOS): Remove.
5659 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5660 (mcore_register_virtual_type): New function.
5661 (mcore_register_byte): New function.
5662 (mcore_register_size): New function.
5663 (mcore_register_name): New function.
5664 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5665 macros removed from tm-mcore.h.
5666 (mcore_dump_tdep): Add.
5667 (_initialize_mcore_tdep): Add gdbarch_register call.
5668
4fd667e9
MK
56692002-07-03 Mark Kettenis <kettenis@gnu.org>
5670
5671 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5672 frameless_look_for_prologue, such that we actually call this
5673 function.
5674
42f99ac2
JB
56752002-07-02 Joel Brobecker <brobecker@gnat.com>
5676
5677 * frame.h (frame_address_in_block): New function.
5678
5679 * blockframe.c (frame_address_in_block): New function extracted
5680 from get_frame_block().
5681 (get_frame_block): Use frame_address_in_block().
5682 (block_innermost_frame): Use frame_address_in_block() to match
5683 the frame pc address against the block boundaries rather than
5684 the frame pc directly. This prevents a failure when a frame pc
5685 is actually a return-address pointing immediately after the end
5686 of the given block.
5687
103a1597 56882002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5689
5690 * MAINTAINERS: Add self under write after approval.
5691
56922002-07-02 Grace Sainsbury <graces@redhat.com>
5693
103a1597
GS
5694 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5695 used in architecture vector. The default is
5696 m68k_local_breakpoint_from_pc.
5697 (m68k_local_breakpoint_from_pc): Add.
5698 (enum): Add register numbers from tm-m68k.h.
5699 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5700 vector.
5701 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5702 GDB_MULTI_ARCH_PARTIAL.
5703 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5704 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5705 m68k-tdep.c.
5706 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5707 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5708 to enum in m68k-tdep.c
5709
7a5a0534
JB
57102002-07-02 Joel Brobecker <brobecker@gnat.com>
5711
5712 * solib-osf.c (open_map): Compute the list of shared libraries
5713 loaded by the inferior, rather than the list of libraries loaded
5714 by GDB itself. Otherwise, GDB ends up reading the symbols from
5715 the wrong shared libraries...
5716
6f558d74
MK
57172002-07-02 Mark Kettenis <kettenis@gnu.org>
5718
b7d15bf7
MK
5719 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5720 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5721 macros.
5722 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5723 Remove functions.
5724 (FRAMELESS_SIGNAL): Remove function.
5725 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5726 i386_linux_saved_pc_after_call): Removed.
5727 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5728 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5729 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5730
6bff26de
MK
5731 * i386-tdep.c (i386_frameless_signal_p): New function.
5732 (i386_frame_chain): Deal with frameless signals.
5733 (i386_sigtramp_saved_sp): New function.
5734 (i386_frame_saved_pc): Deal with frameless signals.
5735 (i386_saved_pc_after_call): Make sure the correct value is
5736 returned just after entry into a sigtramp.
5737 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5738 i386fbsd4_sc_sp_offset): New variables.
5739 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5740 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5741 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5742 similiar to what we already did for sc_pc_offset.
5743 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5744 tdep->sc_sp_offset.
5745
6f558d74
MK
5746 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5747
145564b7
ML
57482002-07-02 Michal Ludvig <mludvig@suse.cz>
5749
5750 * config/i386/tm-x86-64linux.h: New.
5751 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5752 definitions.
5753 * config/i386/nm-x86-64.h: Rename to ...
5754 * config/i386/nm-x86-64linux.h: ... this one.
5755 * config/i386/x86-64linux.mh: Reflect the above change.
5756
3a1e71e3
MK
57572002-07-01 Mark Kettenis <kettenis@gnu.org>
5758
21d0e8a4
MK
5759 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5760 with sigcontext_addr. Add sc_sp_offset.
5761 (i386bsd_sigtramp_saved_pc): Remove prototype.
5762 (i386bsd_sicontext_addr): Add prototype.
5763 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5764 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5765 (i386_svr4_sigtramp_saved_pc): Removed.
5766 (i386_svr4_sigcontext_addr): New function.
5767 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5768 Initialize tdep->sigcontext_addr instead. Initialize
5769 tdep->sc_pc_offset and tdep->sc_sp_offset.
5770 (i386_gdbarch_init): Likewise.
5771 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5772 any more.
5773 (i386bsd_sigtramp_saved_pc): Remove function.
5774 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5775 Initialize tdep->sigcontext_addr instead. Initialize
5776 tdep->sc_pc_offset.
5777 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5778 of tdep->sigtramp_saved_pc.
5779 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5780 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5781 instead.
5782
3a1e71e3
MK
5783 * i386-tdep.c (i386_frameless_function_invocation,
5784 i386_frame_num_args, i386_frame_init_saved_regs,
5785 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5786 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5787 i386_extract_return_value, i386_store_return_value,
5788 i386_extract_struct_value_address, i386_register_virtual_type,
5789 i386_register_convertible, i386_register_convert_to_virtual,
5790 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5791 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5792 static.
5793
52e9098c
MK
57942002-07-01 Mark Kettenis <kettenis@gnu.org>
5795
77b13a25
MK
5796 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5797
52e9098c
MK
5798 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5799 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5800 this macro. Include "value.h".
5801
1b372fff
AS
58022002-06-30 Aidan Skinner <aidan@velvet.net>
5803
5804 * ada-exp.tab.c: remove as it's a generated file
5805 * ada-lex.c: remove as it's a generated file
5806
9c5045b5
MK
58072002-06-30 Mark Kettenis <kettenis@gnu.org>
5808
4a93c5bb
MK
5809 * config/i386/tm-i386.h (struct frame_info, struct
5810 frame_saved_regs, struct value, struct type): Remove forward
5811 declarations.
5812
322d4fe0
MK
5813 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5814 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5815 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5816 (FILL_FPXREGSET): Define.
5817
fdd8263d
MK
5818 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5819
482e577b
MK
5820 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5821 i[3456]86-*-netbsd* case.
5822 * config/i386/tm-obsd.h: Removed.
5823 * config/i386/obsd.mt: Removed.
5824 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5825 core-aout.o.
5826 (MH_CFLAGS): Add -DYYDEBUG=0.
5827
6916549a
MK
5828 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5829 i386nbsd_sc_pc_offset on OpenBSD too.
5830
9c5045b5
MK
5831 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5832 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5833 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5834 define.
5835 * i386bsd-tdep.c: Include "arch-utils.h".
5836 (i386bsd_aout_in_solib_call_trampoline): New function.
5837 (i386bsd_init_abi): Set in_solib_call_trampoline to
5838 i386bsd_aout_in_solib_call_trampoline.
5839 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5840 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5841
aa84d1bb
AC
58422002-06-28 Andrew Cagney <ac131313@redhat.com>
5843
5844 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5845 (struct obstack, struct bcache): Add opaque declarations.
5846 * Makefile.in (macrotab_h): Update
5847
b4d83933
AC
58482002-06-28 Andrew Cagney <ac131313@redhat.com>
5849
5850 * blockframe.c (generic_find_dummy_frame): Change return type to
5851 ``struct regcache''.
5852 (struct dummy_frame): Replace field ``registers'' with regcache, a
5853 struct regcache object.
5854 (generic_find_dummy_frame): Update.
5855 (generic_push_dummy_frame): Update. Use regcache_xfree,
5856 regcache_xmalloc and regcache_cpy.
5857 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5858 regcache_xfree.
5859 (deprecated_generic_find_dummy_frame): Update.
5860 (generic_read_register_dummy): Update. Use
5861 regcache_read_as_address.
5862 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5863 (generic_get_saved_register): Update. Use regcache_read.
5864
08c0b5bc
AC
58652002-06-28 Andrew Cagney <ac131313@redhat.com>
5866
5867 * Makefile.in (objfiles_h): Add $(bcache_h).
5868 * objfiles.h: Include "bcache.h".
5869
5870 * Makefile.in (symtab_h): Remove $(bcache_h).
5871 * symtab.h: Do not include "bcache.h".
5872
1f89801a
AC
58732002-06-28 Andrew Cagney <ac131313@redhat.com>
5874
5875 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5876 generic_func_frame_chain_valid.
5877
b9644b58
DB
58782002-06-28 David O'Brien <obrien@FreeBSD.org>
5879
5880 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5881 * config/i386/tm-fbsd.h: Likewise.
5882
dd486634
AC
58832002-06-28 Andrew Cagney <ac131313@redhat.com>
5884
5885 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5886 generic_unwind_get_saved_register.
5887
0b434a00
AC
58882002-06-27 Andrew Cagney <ac131313@redhat.com>
5889
5890 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5891 * regcache.c (supply_register): Add missing argument to
5892 register_buffer call.
5893
f30e5a77
AC
58942002-06-27 Andrew Cagney <ac131313@redhat.com>
5895
5896 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5897 Solaris /bin/grep does not not like it. From Peter Schauer.
5898
9f064c95
TT
58992002-06-26 Tom Tromey <tromey@redhat.com>
5900
5901 * command.h (add_setshow_cmd): Declare.
5902 (add_setshow_cmd_full): Declare.
5903 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5904 returns void. Use add_setshow_cmd_full.
5905 (add_setshow_cmd_full): New function.
5906 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5907 (add_setshow_boolean_cmd): Likewise.
5908
099c7589
JT
59092002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5910
5911 * config/vax/tm-vax.h: Protect from multiple inclusion.
5912 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5913 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5914 * config/vax/tm-vaxbsd.h: ...here. New file.
5915 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5916
1d049c5e
JT
59172002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5918
5919 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5920 (BELIEVE_PCC_PROMOTION): Remove.
5921 (AP_REGNUM): Move to...
5922 * config/vax/nm-vax.h: ...here.
5923 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5924 (vax_breakpoint_from_pc): New function.
5925 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5926 and gdbarch_believe_pcc_promotion.
5927
4791e091
JT
59282002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5929
5930 * Makefile.in (vax_tdep_h): Define.
5931 (vax-tdep.o): Use $(vax_tdep_h).
5932 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5933 (vax_dump_tdep): New function.
5934 (_initialize_vax_tdep): Register vax_dump_tdep.
5935 * vax-tdep.h: Include osabi.h.
5936 (struct gdbarch_tdep): New.
5937
da130f98
AC
59382002-06-26 Andrew Cagney <cagney@redhat.com>
5939
5940 * frame.h (deprecated_generic_find_dummy_frame): Rename
5941 generic_find_dummy_frame.
5942 * blockframe.c (generic_find_dummy_frame): Make static.
5943 (deprecated_generic_find_dummy_frame): New function.
5944 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5945 generic_find_dummy_frame with deprecated_find_dummy_frame.
5946 (sh64_nofp_frame_init_saved_regs): Ditto.
5947 (sh_fp_frame_init_saved_regs): Ditto.
5948 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5949 (s390_frame_chain): Ditto.
5950 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5951
6300c360
GS
59522002-06-26 Grace Sainsbury <graces@redhat.com>
5953
5954 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5955 gdbarch vector are at the top.
5956 (NUM_REGS): Remove.
5957 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5958 (FRAME_ARGS_ADDRESS): Remove.
5959 (FRAME_LOCALS_ADDRESS): Remove.
5960 (FRAME_NUM_ARGS): Remove.
5961 (FRAME_ARGS_SKIP): Remove.
5962 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5963 (m68k_gdbarch_init): Add gdbarch initializations for macros
5964 undefined in tm-m68k.h
5965
1c617db8
GS
59662002-06-26 Grace Sainsbury <graces@redhat.com>
5967
5968 * monitor.h: Add the function regname to monitor_ops
5969 structure. This way NUM_REGS does not have to be a constant.
5970 * monitor.c (monitor_fetch_register): Added support for regname
5971 function. The function is called if the array regnames is NULL.
5972 (monitor_store_register): Same.
da130f98
AC
5973 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5974 regnames array.
1c617db8
GS
5975 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5976 cpu32bug_cmds.regname to point to new function.
5977 * abug-rom.c (abug_regname): Same as above.
5978 (init_abug_cmds): Same.
5979 * dbug-rom.c (dbug_regname): Same as above.
5980 (init_dbug_cmds): Same.
5981 * remote-est.c (est_regname): Same.
5982 (init_est_cmds): Same.
5983 * rom68k-rom.c (rom68k_regname): Same.
5984 (init_rom68k_cmds): Same.
5985
ea9365bb
TT
59862002-06-25 Tom Tromey <tromey@redhat.com>
5987
5988 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5989
72cec141
AC
59902002-06-25 Andrew Cagney <cagney@redhat.com>
5991
5992 * infrun.c (stop_registers): Change variable's type to ``struct
5993 regcache'''.
5994 (xmalloc_inferior_status): Delete function.
5995 (free_inferior_status): Delete function.
5996 (normal_stop): Use regcache_cpy.
5997 (struct inferior_status): Change type of fields ``stop_registers''
5998 and ``registers'' to ``struct regcache''.
5999 (write_inferior_status_register): Use regcache_write.
6000 (save_inferior_status): Instead of calling
6001 xmalloc_inferior_status, allocate the inf_status buffer directly.
6002 Use regcache_dup_no_passthrough and regcache_dup to save the
6003 buffers.
6004 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6005 Replace the stop_registers regcache instead of overriding it. Use
6006 regcache_xfree. Instead of calling free_inferior_status, xfree
6007 the buffer directly.
6008 (discard_inferior_status): Use regcache_xfree. Instead of calling
6009 free_inferior_status, xfree the buffer directly.
6010 (build_infrun): Use regcache_xmalloc.
6011 (_initialize_infrun): Delete redundant call to build_infrun.
6012
6013 * Makefile.in (infcmd.o): Add $(regcache_h).
6014
6015 * infcmd.c: Include "regcache.h".
6016 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6017 obtain the address of `stop_registers' register buffer.
6018 (print_return_value): Ditto.
6019
6020 * inferior.h (struct regcache): Add opaque declaration.
6021 (stop_registers): Change variable's declared type to ``struct
6022 regcache''.
6023
defc6f8c
TT
60242002-06-24 Tom Tromey <tromey@redhat.com>
6025
c0e624e7
TT
6026 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6027 * target.c (initialize_targets): Fixed typo in
6028 trust-readonly-sections `show' documentation.
6029
defc6f8c
TT
6030 * main.c: Marked all strings with _().
6031
2b236d82
DH
60322002-06-24 Don Howard <dhoward@redhat.com>
6033
6034 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6035 that means max CORE_ADDR+1.
6036 (lookup_mem_region): Ditto.
6037 (mem_info_command): Ditto.
6038
942dc0e9
GS
60392002-06-24 Grace Sainsbury <graces@redhat.com>
6040
6041 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6042 (REGISTER_BYTES_OK): Remove.
6043 (REGISTER_BYTES): Remove.
6044 (STORE_STRUCT_RETURN): Remove.
6045 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6046 (STORE_RETURN_VALUE): Remove.
6047 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6048 (FRAME_CHAIN): Remove.
6049 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6050 (FRAME_SAVED_PC): Remove.
6051 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6052 (m68k_store_struct_return): Add.
6053 (m68k_deprecated_extract_return_value): Add.
6054 (m68k_deprecated_extract_struct_value_address): Add.
6055 (m68k_store_return_value): Add.
6056 (m68k_frame_chain): Add.
6057 (m68k_frameless_function_invocation): Add.
6058 (m68k_frame_saved_pc): Add.
6059 (m68k_gdbarch_init): added set_gdbarch calls for new
6060 functions and deleted macros.
6061
03c30d4d
TT
60622002-06-23 Tom Tromey <tromey@redhat.com>
6063
6064 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6065 (ALLDEPFILES): Likewise.
6066 (udiheaders): Removed.
6067 (udip2soc.o): Likewise.
6068 (udi2go32.o): Likewise.
6069 (udr.o): Likewise.
6070 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6071
37e71372
AC
60722002-06-22 Andrew Cagney <ac131313@redhat.com>
6073
06a6ac57
AC
6074 * infrun.c (_initialize_infrun): Delete unnecessary call to
6075 build_infrun.
6076
37e71372
AC
6077 * regcache.h: Update comments describing the regcache_cpy family
6078 of functions.
6079 (regcache_save, regcache_restore): Delete declaration.
6080 (regcache_save_no_passthrough): Delete declaration.
6081 (regcache_restore_no_passthrough): Delete declaration.
6082 * regcache.c (regcache_save): Delete function.
6083 (regcache_save_no_passthrough): Delete function.
6084 (regcache_restore): Delete function.
6085 (regcache_restore_no_passthrough): Delete function.
6086
78f6d055
AC
60872002-06-21 Andrew Cagney <ac131313@redhat.com>
6088
6089 * config/m68k/tm-m68k.h: Fix typo.
6090 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6091 (m68k_frame_init_saved_regs): Declare.
6092
78b119cb
JB
60932002-06-21 Jim Blandy <jimb@redhat.com>
6094
6095 Remove some vestiges of Harris 88k support.
6096 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6097 register numbering quirk.
6098 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6099 odd symbols occurring in Harris 88k ELF targets.
6100
0fbb3da7
TT
61012002-06-21 Tom Tromey <tromey@redhat.com>
6102
6103 * gdb_locale.h: New file.
6104 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6105 (defs_h): Added gdb_locale.h.
6106 * configure, config.in: Rebuilt.
6107 * configure.in (PACKAGE): Define.
6108 * defs.h: Include gdb_locale.h.
6109 * main.c (captured_main): Call setlocale, bindtextdomain,
6110 textdomain.
6111
456f8b9d
DB
61122002-06-21 Dave Brolley <brolley@redhat.com>
6113
6114 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6115 * config/frv/frv.mt: New file.
6116 * config/frv/tm-frv.h: New file.
6117 * configure.tgt: Support frv-*-*.
6118 * Makefile.in (frv-tdep.o): New target.
6119 * frv-tdep.c: New file.
6120 * NEWS: Mention frv.
6121
cdd463f9
DB
61222002-06-21 Dave Brolley <brolley@redhat.com>
6123
6124 * MAINTAINERS: Add self to "Write After Approval" list.
6125
5d3ed2e3
GS
61262002-06-21 Grace Sainsbury <graces@redhat.com>
6127
6128 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6129 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6130 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6131 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6132 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6133
6134 * m68k-tdep.c: Include arch-utils.h
6135 (m68k_register_raw_size): Add.
6136 (m68k_register_virtual_size): Add.
6137 (m68k_register_virtual_type): Add.
6138 (m68k_register_name): Add.
6139 (m68k_stack_align): Add.
6140 (m68k_register_byte): Add.
6141 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6142 tm-m68k.h.
6143
7f8e7424
GS
61442002-06-21 Grace Sainsbury <graces@redhat.com>
6145
a2c6a6d5 6146 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6147 m68k_find_saved_regs.
6148 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6149 references to it with frame->saved_regs.
7f8e7424
GS
6150 (m68k_gdbarch_init): Added function calls to initialize the
6151 gdbarch structure.
a2c6a6d5
GS
6152 (m68k_fix_call_dummy): Add.
6153 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6154 (CALL_DUMMY): Remove.
6155 (CALL_DUMMY_LENGTH): Remove.
6156 (CALL_DUMMY_START_OFFSET): Remove.
6157 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6158 (FIX_CALL_DUMMY): Remove.
6159 (PUSH_DUMMY_FRAME): Remove.
6160 (POP_FRAME): Remove.
7f8e7424 6161
f461f5cf
PM
61622002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6163
6164 * parse.c (parse_fprintf): New function used to avoid calls to
6165 fprintf in bison parser generated debug code.
6166 * parser-defs.h: Declaration of new parse_fprintf function.
6167 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6168 Set YYDEBUG to 1 by default.
6169 Set YYFPRINTF as parse_fprintf.
6170
7f0c12ed
ML
61712002-06-21 Michal Ludvig <mludvig@suse.cz>
6172
6173 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6174 encoding anymore.
6175 (pointer_encoding, enum ptr_encoding): New.
6176 (execute_cfa_program): Take care about pointer encoding.
6177 (dwarf2_build_frame_info): Only call parse_frame_info for
6178 .debug_frame and .eh_frame.
6179 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6180 fixed augmentation handling, added relative addressing,
6181 ignore duplicate FDEs. Added comments.
19d833a2 6182 * dwarf2cfi.c: Reindented.
7f0c12ed 6183
87c4a039
EZ
61842002-06-20 Elena Zannoni <ezannoni@redhat.com>
6185
6186 * event-top.c (command_handler): Don't use space_at_cmd_start
6187 unless there is sbrk() on the host. Assign time and space data
6188 to union fields of the appropriate length.
6189
1cf877ad
ML
61902002-06-20 Michal Ludvig <mludvig@suse.cz>
6191
6192 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6193 x86_64_register_name. Return type changed to 'const char *'.
6194 (x86_64_register_name2nr): Rename to x86_64_register_number.
6195 (x86_64_gdbarch_init): Update to reflect the change.
6196 * x86-64-tdep.h: Ditto.
6197 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6198 (supply_fpregset): Ditto.
6199
3fadccb3
AC
62002002-06-19 Andrew Cagney <cagney@redhat.com>
6201
6202 * regcache.h: Update copyright.
6203 (struct regcache, struct gdbarch): Add opaque declarations.
6204 (current_regcache): Declare global variable.
6205 (regcache_read, regcache_write): Add gdbarch parameter.
6206 (regcache_save, regcache_save_no_passthrough)
6207 (regcache_restore, regcache_restore_no_passthrough)
6208 (regcache_dup, regcache_dup_no_passthrough)
6209 (regcache_cpy, regcache_cpy_no_passthrough)
6210 (deprecated_grub_regcache_for_registers)
6211 (deprecated_grub_regcache_for_register_valid)
6212 (regcache_valid_p): Add function declarations.
6213
6214 * regcache.c: Update copyright.
6215 (regcache_descr_handle): New global variable.
6216 (struct regcache_descr): Define.
6217 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6218 (regcache_descr, xfree_regcache_descr): New functions.
6219 (struct regcache): Define.
6220 (regcache_xmalloc, regcache_xfree): New functions.
6221 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6222 (regcache_dup, regcache_dup_no_passthrough): New functions.
6223 (regcache_valid_p, regcache_read_as_address): New functions.
6224 (deprecated_grub_regcache_for_registers): New function.
6225 (deprecated_grub_regcache_for_register_valid): New function.
6226 (current_regcache): New global variable.
6227 (register_buffer): Add regcache parameter. Update calls.
6228 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6229 (read_register_gen, write_register_gen): Update register_buffer
6230 call. Test for legacy_p instead of gdbarch_register_read_p or
6231 gdbarch_register_write_p.
6232 (regcache_collect): Update register_buffer call.
6233 (build_regcache): Rewrite. Use deprecated grub functions.
6234 (regcache_save, regcache_save_no_passthrough): New functions.
6235 (regcache_restore, regcache_restore_no_passthrough): New
6236 functions.
6237 (_initialize_regcache): Create the regcache_data_handle. Swap
6238 current_regcache global variable.
6239
6240 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6241 parameter to regcache_read and regcache_write calls.
6242 (sh4_register_read): Ditto.
6243 (sh64_pseudo_register_read): Ditto.
6244 (sh64_register_read): Ditto.
6245 (sh_pseudo_register_write): Ditto.
6246 (sh4_register_write): Ditto.
6247 (sh64_pseudo_register_write): Ditto.
6248 (sh64_register_write): Ditto.
6249
6250 * defs.h (XCALLOC): Define.
6251
152d9db6
GS
62522002-06-19 Grace Sainsbury <graces@redhat.com>
6253
6254 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6255 * m68k-tdep.c (m68k_gdbarch_init): Added.
6256 (m68k_dump_tdep): Added.
6257
170911c7
DJ
62582002-06-19 Daniel Jacobowitz <drow@mvista.com>
6259
6260 * ada-lang.c (fill_in_ada_prototype): Update comment.
6261
2e4ebe70
DJ
62622002-06-19 Daniel Jacobowitz <drow@mvista.com>
6263
6264 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6265 MIPS_ABI_LAST.
6266 (mips_abi_string, mips_abi_strings): New.
6267 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6268 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6269 tdep->mips_abi_string. Honor mips_abi_string. Default to
6270 O32 if no ABI is found.
6271 (mips_dump_tdep): Use mips_abi_strings.
6272 (mips_abi_update): New function.
6273 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6274 ``set mips abi'' and ``show mips abi''. Check the size of
6275 mips_abi_strings.
6276
16775908
AC
62772002-06-19 Andrew Cagney <cagney@redhat.com>
6278
6279 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6280 constant.
6281
5051bfa4 62822002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6283
5051bfa4
JB
6284 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6285 current frame using only the first stack size adjustment. All
6286 subsequent size adjustments are not considered to be part of
6287 the "static" part of the current frame.
6288 Compute the address of the saved registers relative to the
6289 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6290 in use in this frame.
6291
56468235
DH
62922002-06-18 Don Howard <dhoward@redhat.com>
6293
6294 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6295 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6296 suggesting this solution.
6297
0b624158
AC
62982002-06-18 Andrew Cagney <ac131313@redhat.com>
6299
6300 * config/romp/xm-rtbsd.h: Delete file.
6301 * config/romp/rtbsd.mh: Delete file.
6302
221ea385
KS
63032002-06-18 Keith Seitz <keiths@redhat.com>
6304
6305 * breakpoint.c (condition_command): Post breakpoint_modify
6306 when a condition is added to an existing breakpoint.
6307 (commands_command): Likewise for commands.
6308 (set_ignore_count): Likewise for ignore counts.
6309 If no tty, do not simply return, still need to send event
6310 notification.
6311 (ignore_command): Only print a newline if the command came
6312 from a tty.
6313 Don't call breakpoints_changed, since this is now properly
6314 handled by set_ignore_count.
6315
5402eed1
AC
63162002-06-18 Andrew Cagney <cagney@redhat.com>
6317
6318 * MAINTAINERS: Note that cris-elf target can be compiled with
6319 -Werror.
6320 * cris-tdep.c (cris_register_name): Make return type constant.
6321 (cris_breakpoint_from_pc): Ditto.
6322
cc22880b
ML
63232002-06-18 Michal Ludvig <mludvig@suse.cz>
6324
6325 * frame.h (struct frame_info): Change type of context to
6326 'struct context'.
6327
fa88f677
AC
63282002-06-17 Andrew Cagney <cagney@redhat.com>
6329
6330 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6331 pointer.
6332 * gdbarch.h, gdbarch.c: Regenerate.
6333 * config/mips/tm-mips.h (mips_register_name): Update.
6334 * i386-tdep.h (i386_register_name): Update.
6335 * mips-tdep.c (mips_register_name): Update
6336 * alpha-tdep.c (alpha_register_name): Update.
6337 * arch-utils.c (legacy_register_name): Update.
6338 * arch-utils.h (legacy_register_name): Update.
6339 * avr-tdep.c (avr_register_name): Update.
6340 * ia64-tdep.c (ia64_register_name): Update.
6341 * i386-tdep.c (i386_register_name): Update.
6342 * sparc-tdep.c (sparc32_register_name): Update.
6343 (sparc64_register_name): Update.
6344 (sparclite_register_name): Update.
6345 (sparclet_register_name): Update.
6346 * sh-tdep.c (sh_generic_register_name): Update.
6347 (sh_sh_register_name): Update.
6348 (sh_sh3_register_name): Update.
6349 (sh_sh3e_register_name): Update.
6350 (sh_sh_dsp_register_name): Update.
6351 (sh_sh3_dsp_register_name): Update.
6352 (sh_sh4_register_name): Update.
6353 (sh_sh64_register_name): Update.
6354 * s390-tdep.c (s390_register_name): Update.
6355 * rs6000-tdep.c (rs6000_register_name): Update.
6356 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6357 (ns32k_register_name_32382): Update.
6358 * d10v-tdep.c (d10v_ts2_register_name): Update.
6359 (d10v_ts3_register_name): Update.
6360 * xstormy16-tdep.c (xstormy16_register_name): Update.
6361 * vax-tdep.c (vax_register_name): Update.
6362 * v850-tdep.c (v850_register_name): Update.
6363 * m68hc11-tdep.c (m68hc11_register_name): Update.
6364 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6365 (am33_register_name): Update.
6366
ea1e7ef6
GS
63672002-06-17 Grace Sainsbury <graces@redhat.com>
6368
6369 * m68k-tdep.c: Reindented.
6370
9b02dd1b
AC
63712002-06-17 Andrew Cagney <ac131313@redhat.com>
6372
6373 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6374 list of predefined types.
6375
8758dec1
MK
63762002-06-16 Mark Kettenis <kettenis@gnu.org>
6377
b6197528
MK
6378 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6379 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6380 REGISTER_CONVERT_TO_RAW): Remove defines.
6381 (i386_register_virtual_type, i386_register_convertible,
6382 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6383 Remove prototypes.
6384 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6385 macros mentioned above.
6386
82b47e62
MK
6387 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6388 (i386lynx_saved_pc_after_call): Remove prototype.
6389 * i386ly-tdep.c: Include "i386-tdep.h".
6390 (i386lynx_saved_pc_after_call): Make static. Use
6391 read_memory_nobpt instead of read_memory. Use
6392 read_memory_unsigned_integer instead of read_memory_integer.
6393 (i386lynx_init_abi): New function.
6394 (i386lynx_coff_osabi_sniffer): New function.
6395 (_initialize_i386bsd_tdep): New function.
6396
8758dec1
MK
6397 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6398 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6399 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6400 (i386_fix_call_dummy): Remove prototype.
6401 * i386-tdep.c (i386_call_dummy_words): New variable.
6402 (i386_gdbarch_init): Adjust for removal of the
6403 macros mentioned above.
6404
e9e68a56
AC
64052002-06-15 Andrew Cagney <ac131313@redhat.com>
6406
6407 * command.h (add_setshow_auto_boolean_cmd): Replace
6408 add_set_auto_boolean_cmd.
6409 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6410 add_set_auto_boolean_cmd.
6411 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6412 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6413 mask-address'' command.
6414 (show_mask_address): Add cmd parameter.
6415 * remote.c (add_packet_config_cmd): Update. Change type of
6416 set_func and show_func to cmd_sfunc_ftype.
6417 (_initialize_remote): Update `set remote Z-packet'
6418 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6419 (show_remote_protocol_e_packet_cmd): Ditto.
6420 (show_remote_protocol_E_packet_cmd): Ditto.
6421 (show_remote_protocol_P_packet_cmd): Ditto.
6422 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6423 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6424 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6425 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6426 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6427 (show_remote_protocol_Z_packet_cmd): Ditto.
6428 (show_remote_protocol_binary_download_cmd): Ditto.
6429 (show_remote_cmd): Pass NULL to all of above.
6430
fc08ec52
MK
64312002-06-15 Mark Kettenis <kettenis@gnu.org>
6432
6433 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6434 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6435 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6436 POP_FRAME): Remove defines.
6437 (i386_push_arguments, i386_store_struct_return,
6438 i386_extract_return_value, i386_store_return_value,
6439 i386_extract_struct_value_address, i386_push_dummy_frame,
6440 i386_pop_frame): Renove prototypes.
6441 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6442 macros mentioned above.
6443
e707bbc2
AC
64442002-06-15 Andrew Cagney <ac131313@redhat.com>
6445
6446 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6447 add_set_boolean_cmd.
6448 (add_setshow_cmd): New function.
6449 * command.h (add_setshow_boolean_cmd): Replace
6450 add_set_boolean_cmd.
6451 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6452 and ``set rdiromatzero''.
6453 * maint.c (_initialize_maint_cmds): Update commented out code.
6454 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6455 * target.c (initialize_targets): Update `set
6456 trust-readonly-sections'.
6457 * remote.c (_initialize_remote): Update `set remotebreak'.
6458
42fdc8df
MK
64592002-06-15 Mark Kettenis <kettenis@gnu.org>
6460
93924b6b
MK
6461 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6462 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6463 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6464 fit into multi-arch framework.
6465 (i386_breakpoint_from_pc): New function.
6466 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6467 above.
6468
42fdc8df
MK
6469 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6470 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6471 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6472 (i386_frameless_function_invocation, i386_frame_num_args,
6473 i386_frame_init_saved_regs): Remove prototypes.
6474 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6475 macros mentioned above.
6476
9773a94b
AC
64772002-06-15 Andrew Cagney <ac131313@redhat.com>
6478
6479 * cli/cli-decode.c (set_cmd_cfunc): Update.
6480 (set_cmd_sfunc): Update.
6481 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6482 (set_cmd_sfunc, set_cmd_cfunc): Update.
6483 * cli/cli-decode.h: Update.
6484
6e157172
MK
64852002-06-15 Mark Kettenis <kettenis@gnu.org>
6486
6487 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6488 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6489
7f19b9a2
AC
64902002-06-15 Andrew Cagney <ac131313@redhat.com>
6491
6492 * defs.h (auto_boolean): Declare enum.
6493 * command.h (cmd_auto_boolean): Delete enum.
6494 * mips-tdep.c (mask_address_var): Update.
6495 (mips_mask_address_p): Update.
6496 (show_mask_address): Update.
6497 * remote.c (struct packet_config): Update.
6498 (update_packet_config): Update.
6499 (show_packet_config_cmd): Update.
6500 (packet_ok): Update.
6501 (add_packet_config_cmd): Update.
6502 (_initialize_remote):
6503 * command.h: Update.
6504 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6505 (do_setshow_command): Update.
6506 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6507 * cli/cli-decode.h: Update.
6508
1cf88de5
MK
65092002-06-15 Mark Kettenis <kettenis@gnu.org>
6510
22ba8cf2
MK
6511 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6512 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6513 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6514 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6515 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6516 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6517
762c5349
MK
6518 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6519 list of DJGPP COFF targets.
6520
091198bb
MK
6521 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6522 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6523 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6524 (FP0_REGNUM): Remove define.
6525 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6526 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6527 (i386_register_virtual_size): Remove protoype.
6528 * i386-tdep.c (i386_register_virtual_size): Removed.
6529 (i386_extract_return_value, i386_store_return_value): Use
6530 FP0_REGNUM instead of NUM_FREGS to determine whether the
6531 floating-point registers are available.
6532 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6533 Adjust for removal of macros mentioned above.
6534
65352002-06-15 Mark Kettenis <kettenis@gnu.org>
6536
fcc9bf01
MK
6537 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6538 comments.
6539 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6540 Remove prototypes.
6541 (supply_gregset, fill_gregset): Remove use of register keyword and
6542 remove declaration for regmap. Use I386_NUM_GREGS instead of
6543 NUM_REGS and NUM_FREGS.
6544 (FPREGSET_FSAVE_OFFSET): Remove.
6545 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6546 NUM_FREGS to determine whether the floating-point registers are
6547 available.
6548
65e78234
MK
6549 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6550 gnu_store_registers): Replace usage of NUM_GREGS with
6551 I386_NUM_GREGS.
6552
98df6387
MK
6553 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6554 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6555 usage of NUM_GREGS with I386_NUM_GREGS.
6556
099a9414
MK
6557 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6558
57976e88
MK
6559 * i386bsd-nat.c: Include "i386-tdep.h".
6560 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6561 I386_NUM_GREGS.
6562
b335f4a6
MK
6563 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6564 and associated comment. They no longer make any sense, since we
6565 don't use this file anymore on Linux.
6566
1cf88de5
MK
6567 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6568 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6569 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6570 elements in these arrays.
6571 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6572 MAX_NUM_REGS.
6573
daa66587
MK
65742002-06-15 Mark Kettenis <kettenis@gnu.org>
6575
6576 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6577 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6578
26e9b323
AC
65792002-06-14 Andrew Cagney <cagney@redhat.com>
6580
6581 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6582 EXTRACT_RETURN_VALUE.
6583 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6584 EXTRACT_STRUCT_VALUE_ADDRESS.
6585 * gdbarch.h, gdbarch.c: Regenerate.
6586
6587 * values.c (value_being_returned): Handle
6588 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6589 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6590
6591 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6592 * arm-tdep.c (arm_gdbarch_init): Update.
6593 * avr-tdep.c (avr_gdbarch_init): Update.
6594 * cris-tdep.c (cris_gdbarch_init): Update.
6595 * d10v-tdep.c (d10v_gdbarch_init): Update.
6596 * ia64-tdep.c (ia64_gdbarch_init): Update.
6597 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6598 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6599 * s390-tdep.c (s390_gdbarch_init): Update.
6600 * sh-tdep.c (sh_gdbarch_init): Update.
6601 * s390-tdep.c (s390_gdbarch_init): Update.
6602 * sparc-tdep.c (sparc_gdbarch_init): Update.
6603 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6604 * v850-tdep.c (v850_gdbarch_init): Update.
6605 * vax-tdep.c (vax_gdbarch_init): Update.
6606 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6607 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6608
6609 * config/arc/tm-arc.h: Update.
6610 * config/d30v/tm-d30v.h: Update.
6611 * config/fr30/tm-fr30.h: Update.
6612 * config/h8300/tm-h8300.h: Update.
6613 * config/h8500/tm-h8500.h: Update.
6614 * config/i386/tm-i386.h: Update.
6615 * config/i386/tm-ptx.h: Update.
6616 * config/i386/tm-symmetry.h: Update.
6617 * config/i960/tm-i960.h: Update.
6618 * config/m32r/tm-m32r.h: Update.
6619 * config/m68k/tm-delta68.h: Update.
6620 * config/m68k/tm-linux.h: Update.
6621 * config/m68k/tm-m68k.h: Update.
6622 * config/m88k/tm-m88k.h: Update.
6623 * config/mcore/tm-mcore.h: Update.
6624 * config/mips/tm-mips.h: Update.
6625 * config/mn10200/tm-mn10200.h: Update.
6626 * config/pa/tm-hppa.h: Update.
6627 * config/pa/tm-hppa64.h: Update.
6628 * config/sparc/tm-sp64.h: Update.
6629 * config/sparc/tm-sparc.h: Update.
6630 * config/sparc/tm-sparclet.h: Update.
6631 * config/z8k/tm-z8k.h: Update.
6632
5179e78f
AC
66332002-06-14 Andrew Cagney <cagney@redhat.com>
6634
6635 * Makefile.in (i386_linux_tdep_h): Define.
6636 (i386_tdep_h, i387_tdep_h): Define.
6637 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6638 $(i386_tdep_h) and $(i387_tdep_h).
6639 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6640
8201327c
MK
66412002-06-14 Mark Kettenis <kettenis@gnu.org>
6642
edf393ac
MK
6643 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6644 Already covered by the default.
6645
896fb97d
MK
6646 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6647 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6648 (i386_gdbarch_init): Initialize long_double_format and long_double
6649 bit.
6650
8201327c
MK
6651 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6652 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6653 Move these to ...
6654 * config/i386/i386sol2.mh: ... here.
6655 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6656 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6657 (SIGCONTEXT_PC_OFFSET): Remove define.
6658 (IN_SIGTRAMP): Remove define.
6659 * i386-sol2-tdep.c: New file.
6660
6661 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6662 * config/i386/tm-i386nw.h: Removed.
6663
6664 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6665 USE_STRUCT_CONVENTION): Remove defines.
6666 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6667 (get_longjmp_target): Remove prototype.
6668 (IN_SIGTRAMP): Remove define.
6669 (i386bsd_in_sigtramp): Remove prototype.
6670 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6671 function. Update comment accordingly
6672 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6673 (FRAME_SAVED_PC): Remove define.
6674 (i386bsd_frame_saved_pc): Remove prototype.
6675 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6676 GET_LONGJMP_TARGET): Remove defines.
6677 (get_longjmp_target): Remove prototype.
6678 (IN_SIGTRAMP): Remove define.
6679 (i386bsd_in_sigtramp): Remove prototype.
6680 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6681 function. Update comment accordingly
6682 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6683 (FRAME_SAVED_PC): Remove define.
6684 (i386bsd_frame_saved_pc): Remove prototype.
6685 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6686 Remove prototype.
6687 (USE_STRUCT_CONVENTION): Remove prototype.
6688 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6689 declaration.
6690 (_initialize_i386bsd_nat): Revise logic to determine some
6691 constants at compile time when compiling a native GDB. Warn if
6692 things don't match up with what we expect.
6693 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6694 Remove variables.
6695 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6696 to use date stored in `struct gdbarch_tdep'.
6697 (i386bsd_sigcontext_offset): Remove varaible.
6698 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6699 stored in `struct gdbarch_tdep'.
6700 (i386bsd_frame_saved_pc): Make static.
6701 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6702 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6703 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6704 i386fbsd4_sc_pc_offset): New variables.
6705 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6706 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6707 functions.
6708 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6709 functions.
6710 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6711 Modify the value of i386fbsd_sigtramp_start and
6712 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6713 i386fbsd_sigtramp_end.
6714 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6715 function.
6716
6717 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6718 define to i386-linux-tdep.h.
6719 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6720 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6721 defines.
6722 (i386_linux_register_name, i386_linux_register_byte,
6723 i386_linux_register_raw_size): Remove prototypes.
6724 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6725 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6726 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6727 TARGET_WRITE_PC): Remove defines.
6728 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6729 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6730 i386_linux_write_pc): Remove prototypes.
6731 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6732 (get_longjmp_target): Remove prototype.
6733 * i386-linux-tdep.h: New file.
6734 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6735 * i386-linux-tdep.c: Include "i386-tdep.h" and
6736 "i386-linux-tdep.h".
6737 (i386_linux_register_name, i386_linux_register_byte,
6738 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6739 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6740 Make static.
6741 (i386_linux_init_abi): New function.
6742 (_initialize_i386_linux_tdep): New function.
6743
6744 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6745 (i386_saved_pc_after_call): Remove prototype.
6746 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6747 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6748 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6749 (i386_register_name, i386_stab_reg_to_regnum,
6750 i386_dwarf_reg_to_regnum): Remove prototypes.
6751 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6752 SIZEOF_SSE_REGS): Remove defines.
6753 (REGISTER_BYTES): Remove define.
6754 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6755 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6756 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6757 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6758 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6759 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6760 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6761 (get_longjmp_target): Remove prototype.
6762 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6763 (sigtramp_saved_pc): Remove define.
6764 (i386v4_sigtramp_saved_pc): Remove prototype.
6765 * config/i386/tm-go32.h (FRAME_CHAIN,
6766 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6767 (i386go32_frame_saved_pc): Remove prototype.
6768 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6769 (get_longjmp_target): Remove prototype.
6770 * i386-tdep.h: Include "osabi.h".
6771 (enum i386_abi): Removed.
6772 (enum struct_return): New enum.
6773 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6774 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6775 sc_pc_offset members.
6776 (i386_gdbarch_register_os_abi): Remove prototype.
6777 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6778 I386_SSE_NUM_REGS): New defines.
6779 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6780 I386_SSE_SIZEOF_REGS): New defines.
6781 (i386_register_name, i386_register_byte, i386_register_raw_size):
6782 New prototypes.
6783 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6784 (i386bsd_sigtramp_saved_pc): New prototype.
6785 * i386-tdep.c: Don't include "elf-bfd.h".
6786 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6787 i386_frame_chain, i386_saved_pc_after_call): Make static.
6788 (i386_frame_saved_pc): Rewrite to call architecture dependent
6789 function to deal with signal handlers. Make static.
6790 (i386go32_frame_saved_pc): Removed.
6791 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6792 Removed.
6793 (i386_get_longjmp_target): New function.
6794 (default_struct_convention, pcc_struct_convention,
6795 reg_struct_convention, valid_conventions, struct_convention): New
6796 variables.
6797 (i386_use_struct_convention): New function.
6798 (i386v4_sigtramp_saved_pc): Renamed to
6799 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6800 (i386_pc_in_sigtramp): New function.
6801 (i386_abi_names): Removed.
6802 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6803 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6804 Removed.
6805 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6806 i386_gdbarch_register_os_abi): Removed.
6807 (struct i386_abi_handler): Removed.
6808 (i386_abi_handler_list): Removed.
6809 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6810 functions.
6811 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6812 i386_nw_init_abi): New functions.
6813 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6814 Use set_gdbarch_xxx() calls instead of relying on macros for a
6815 number of calls.
6816 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6817 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6818 Register the various architecture variants defined in this file.
6819
ad2f7632
DJ
68202002-06-14 Daniel Jacobowitz <drow@mvista.com>
6821
6822 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6823 (struct main_type): Remove arg_types member. Update comments for
6824 struct field.
6825 (TYPE_ARG_TYPES): Remove.
6826 (TYPE_FN_FIELD_ARGS): Update.
6827 (smash_to_method_type): Update prototype.
6828
6829 * c-typeprint.c (cp_type_print_method_args): Take method type
6830 instead of argument list. Use new argument layout. Simplify.
6831 (c_type_print_args): Use new argument layout. Simplify.
6832 (c_type_print_base): Update call to cp_type_print_method_args.
6833 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6834 argument; use die->type instead. Update call to
6835 smash_to_method_type.
6836 (read_structure_scope): Update call to dwarf2_add_member_fn.
6837 * gdbtypes.c (allocate_stub_method): Update comment.
6838 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6839 Use new argument layout.
6840 (check_stub_method): Use new argument layout. Don't count
6841 void as an argument.
6842 (print_arg_types): Update comments. Use new argument layout.
6843 (recursive_dump_type): Don't print arg_types member.
6844 * hpread.c (hpread_read_struct_type): Use new argument layout.
6845 (fixup_class_method_type): Likewise.
6846 (hpread_type_lookup): Likewise.
6847 * stabsread.c (read_type): Update calls to read_args and
6848 smash_to_method_type.
6849 (read_args): Use new argument layout. Simplify.
6850 * valops.c (typecmp): Use new argument layout. Update parameters
6851 and comments. Simplify.
6852 (hand_function_call): Use new argument layout.
6853 (search_struct_method): Update call to typecmp.
6854 (find_overload_match): Use new argument layout.
6855
6da02953
DJ
68562002-06-13 Daniel Jacobowitz <drow@mvista.com>
6857
6858 * NEWS: Mention multithreaded debug support for gdbserver.
6859
519b2366
DJ
68602002-06-13 Daniel Jacobowitz <drow@mvista.com>
6861
6862 * MAINTAINERS: Mention NEWS.
6863
6c0d6680
DJ
68642002-06-13 Daniel Jacobowitz <drow@mvista.com>
6865
6866 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6867 (struct mips_objfile_private, compare_pdr_entries): New.
6868 (non_heuristic_proc_desc): Read the ".pdr" section if it
6869 is present.
6870
6529d2dd
AC
68712002-06-12 Andrew Cagney <ac131313@redhat.com>
6872
6873 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6874 (arm_debug): New static variable.
6875 (_initialize_arm_tdep): Add ``set debug arm'' command.
6876
26216b98
AC
68772002-06-12 Andrew Cagney <ac131313@redhat.com>
6878
6879 * Makefile.in (sim_arm_h): Define.
6880 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6881 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6882 (arm_register_sim_regno): New function, map an internal REGNUM
6883 onto a simulator register number.
6884 (arm_gdbarch_init): Set register_sim_regno.
6885
814b3ba0
AH
68862002-06-09 Aldy Hernandez <aldyh@redhat.com>
6887
6888 * MAINTAINERS: Add self.
6889
475b0867
JB
68902002-06-11 Jim Blandy <jimb@redhat.com>
6891
919d772c
JB
6892 * source.c (source_info): Mention whether the symtab has
6893 information about preprocessor macros.
6894
475b0867
JB
6895 Call the command `info macro', not `show macro'.
6896 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6897 Fix error message.
6898 (_initialize_macrocmd): Register `info_macro_command' in
6899 `infolist', not `showlist'.
6900
9e364162
DJ
69012002-06-11 Daniel Jacobowitz <drow@mvista.com>
6902
6903 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6904 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6905 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6906 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6907 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6908 unconditionally.
6909 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6910 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6911 (_initialize_mips_tdep): Remove dead code.
6912 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6913 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6914 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6915 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6916 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6917 MIPS_LAST_FP_ARG_REGNUM): Remove.
6918
23aa4c72
ML
69192002-06-11 Michal Ludvig <mludvig@suse.cz>
6920
6921 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6922 (unwind_tmp_obstack_free, parse_frame_info)
6923 (update_context, cfi_read_fp, cfi_write_fp)
6924 (cfi_frame_chain, cfi_init_extra_frame_info)
6925 (cfi_virtual_frame_pointer): Use the above function.
264d1763 6926 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 6927
70eb15a4
CV
69282002-06-11 Corinna Vinschen <vinschen@redhat.com>
6929
6930 * v850-tdep.c (v850_type_is_scalar): New function.
6931 (v850_use_struct_convention): Match current gcc implementation
6932 as close as possible.
6933 (v850_push_arguments): Fix stack_offset handling. Don't write
6934 struct_addr into register. This is done by v850_store_struct_return.
6935 (v850_extract_return_value): Care for structs.
6936 (v850_store_return_value): Ditto.
6937 (v850_store_struct_return): Actually write address.
6938
482a4d06
ML
69392002-06-11 Michal Ludvig <mludvig@suse.cz>
6940
6941 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6942 without debug information too.
6943
d855c300
AC
69442002-06-10 Andrew Cagney <ac131313@redhat.com>
6945
6946 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6947 Make multi-arch pure.
6948 * gdbarch.h, gdbarch.c: Re-generate.
6949 * arm-tdep.c (arm_print_float_info): Update.
6950 * arch-utils.h (default_print_float_info): Update.
6951 * arch-utils.c (default_print_float_info): Update.
6952 * infcmd.c (float_info): Update call.
6953
dd12a101
AC
69542002-06-10 Andrew Cagney <ac131313@redhat.com>
6955
6956 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6957 the front of the initialize list.
6958
101dcfbe
AC
69592002-06-10 Andrew Cagney <ac131313@redhat.com>
6960
6961 * infrun.c (struct inferior_status): Replace fields
6962 selected_frame_address and selected_level with field
6963 selected_frame_id.
6964 (save_inferior_status): Update. Use get_frame_id.
6965 (struct restore_selected_frame_args): Delete.
6966 (restore_selected_frame): Update. Use frame_find_by_id.
6967 (restore_inferior_status): Update.
6968
6969 * breakpoint.h (struct breakpoint): Change type of
6970 watchpoint_frame to frame_id.
6971 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6972 call to get_current_frame.
6973 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6974 get_current_frame.
6975 (watchpoint_check): Use frame_find_by_id.
6976
6977 * frame.h (record_selected_frame): Delete declaration.
6978 * stack.c (record_selected_frame): Delete function.
6979
6980 * frame.h (struct frame_id): Define.
6981 (get_frame_id): Declare.
6982 (frame_find_by_id): Declare.
6983 * frame.c (frame_find_by_id): New function.
6984 (get_frame_id): New function.
6985
304270b6
AV
69862002-06-10 Andrey Volkov <avolkov@transas.com>
6987
6988 * ser-e7kpc.c: Fix duplicated define and call of
6989 _initialize_ser_e7000pc
6990
2f2cf184
DJ
69912002-06-09 Daniel Jacobowitz <drow@mvista.com>
6992
6993 * signals/signals.c (target_signal_from_host): Fix #ifdef
6994 SIGRTMIN case.
6995 (do_target_signal_to_host): Likewise.
6996
caaa3122
DJ
69972002-06-09 Daniel Jacobowitz <drow@mvista.com>
6998
6999 * mips-tdep.c (mips_find_abi_section): New function.
7000 (mips_gdbarch_init): Call it.
7001
6ac5df3a
MK
70022002-06-09 Mark Kettenis <kettenis@gnu.org>
7003
7004 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7005 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7006 after Andrew's 2002-06-08 gdbarch change.
7007
82ea117a
MK
70082002-06-09 Mark Kettenis <kettenis@gnu.org>
7009
7010 * i386-linux-nat.c (suppy_gregset): Don't supply
7011 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7012 register cache.
7013 (fill_gregset): Don't fetch it under the same circumstances.
7014
3c25f8c7
AC
70152002-06-09 Andrew Cagney <cagney@redhat.com>
7016
7017 * Makefile.in (callback_h): Define.
7018 (remote_sim_h): Update path to remote-sim.h.
7019 (remote-rdp.o): Add $(callback_h).
7020 (remote-sim.o): Use $(callback_h).
7021 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7022 * remote-rdp.c: Include "gdb/callback.h".
7023
1029b7fa
MK
70242002-06-09 Mark Kettenis <kettenis@gnu.org>
7025
7026 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7027 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7028
616675d3
AC
70292002-06-08 Andrew Cagney <ac131313@redhat.com>
7030
a3efda28
AC
7031 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7032 * rdi-share/serpardr.c: Ditto.
7033 * rdi-share/unixcomm.c: Ditto.
7034 * rdi-share/serdrv.c: Ditto.
7035 * rdi-share/hostchan.h: Ditto.
7036 * rdi-share/hostchan.c: Ditto.
7037 * rdi-share/host.h: Ditto.
7038 * rdi-share/devsw.c: Ditto.
7039
c5f10366
AC
7040 * objfiles.h: Change type of obj_private to void pointer.
7041 * pa64solib.c: Update copyright. Don't include "assert.h", use
7042 strcmp instead of STREQ, use LONGEST, do not use PTR
7043 * somsolib.c: Ditto.
7044
616675d3
AC
7045 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7046 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7047 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7048
e4b415d9
AC
70492002-06-08 Andrew Cagney <ac131313@redhat.com>
7050
7051 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7052 (default_get_saved_register): Delete function.
7053 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7054 generic_unwind_get_saved_register.
7055 * gdbarch.h, gdbarch.c: Re-generate.
7056
ca0d0b52
AC
70572002-06-08 Andrew Cagney <ac131313@redhat.com>
7058
7059 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7060 generic_func_frame_chain_valid.
7061 * gdbarch.h, gdbarch.c: Re-generate.
7062 * blockframe.c (generic_func_frame_chain_valid): Only check
7063 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7064 passing FP to PC_IN_CALL_DUMMY.
7065 Fix PR gdb/360.
7066
76860b5f
AC
70672002-06-08 Andrew Cagney <ac131313@redhat.com>
7068
7069 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7070 (register_gdbarch_data): Initialize init_p.
7071 (gdbarch_data): Initialize data pointer using the init function.
7072 (init_gdbarch_data): Delete function.
7073 (gdbarch_update_p): Update.
7074 (initialize_non_multiarch): Update.
7075 (struct gdbarch): Add field initialized_p.
7076 * gdbarch.h, gdbarch.c: Re-generate.
7077
8dda9770
ML
70782002-06-07 Michal Ludvig <mludvig@suse.cz>
7079
7080 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7081 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7082 better do the things actually here.
7083 * x86-64-tdep.c (x86_64_register_name2nr): New.
7084 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7085 (x86_64_gdbarch_init): Respect the above change.
7086 * x86-64-tdep.h (x86_64_register_name2nr)
7087 (x86_64_register_nr2name): Add prototypes.
7088 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7089
3d79a47c
MS
70902002-06-06 Michael Snyder <msnyder@redhat.com>
7091
7bd91a28
MS
7092 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7093 Delete extra braces and re-indent.
7094 (d10v_store_return_value): Char return values
3d79a47c
MS
7095 must be shifted over by one byte in R0.
7096 (d10v_extract_return_value): Delete extra braces, re-indent.
7097
095a4c96
EZ
70982002-06-06 Elena Zannoni <ezannoni@redhat.com>
7099
7100 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7101 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7102 (d10v_integer_to_address): Rewrite.
7103 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7104 the d10v specific functions which take care of converting to the
7105 correct space.
7106
e8a77ca4
EZ
71072002-06-06 Elena Zannoni <ezannoni@redhat.com>
7108
7109 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7110 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7111
4f2e4a4f
AC
71122002-06-02 Andrew Cagney <ac131313@redhat.com>
7113
7114 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7115 includes.
7116 * config/tm-linux.h: Ditto.
7117 * config/alpha/tm-alphalinux.h: Ditto.
7118 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7119 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7120 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7121 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7122 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7123 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7124 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7125 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7126 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7127 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7128 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7129 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7130 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7131 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7132 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7133 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7134 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7135 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7136 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7137 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7138 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7139 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7140 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7141 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7142 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7143 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7144 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7145 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7146 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7147 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7148 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7149 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7150 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7151 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7152 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7153 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7154 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7155
ae2ab2ce
AS
71562002-05-04 Aidan Skinner <aidan@velvet.net>
7157
7158 * ada-exp.tab.c: New file
7159 * ada-exp.y: New file
7160 * ada-lang.c: New file
7161 * ada-lang.h: New file
7162 * ada-lex.c: New file
7163 * ada-lex.l: New file
7164 * ada-tasks.c: New file
7165 * ada-typeprint.c: New file
7166 * ada-valprint.c: New file
7167
0ddd0135
JT
71682002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7169
7170 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7171 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7172
750fbacc
JT
71732002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7174
7175 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7176 insetead of ppc-linux-tdep.o.
7177 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7178 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7179
df94e18a
AC
71802002-06-02 Andrew Cagney <ac131313@redhat.com>
7181
7182 2002-05-07 Christian Groessler <chris@groessler.org>
7183 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7184 bit register contents for little endian hosts.
7185
1a38ab75
AC
71862002-06-01 Andrew Cagney <ac131313@redhat.com>
7187
7188 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7189 any maintainer.
7190
8b1632ac
AC
71912002-06-01 Andrew Cagney <ac131313@redhat.com>
7192
7193 * gdbarch.h: Regenerate.
7194
627054c8
AC
71952002-06-01 Andrew Cagney <ac131313@redhat.com>
7196
7197 * MAINTAINERS: Add everyone to write-after-approval list.
7198
4f460812
AC
71992002-06-01 Andrew Cagney <ac131313@redhat.com>
7200
7201 * stack.c (frame_info): Use frame_register_unwind instead of
7202 saved_regs. Mention when the SP is on the stack or in a register.
7203
7204 * frame.h (frame_register_unwind_ftype): Define. Document.
7205 (struct frame_info): Add field register_unwind and
7206 register_unwind_cache.
7207 (frame_register_unwind): Declare.
7208 (generic_unwind_get_saved_register): Declare.
7209
7210 * frame.c (frame_register_unwind): New function.
7211 (generic_unwind_get_saved_register): New function.
7212
7213 * blockframe.c (generic_call_dummy_register_unwind): New function.
7214 (frame_saved_regs_register_unwind): New function.
7215 (set_unwind_by_pc): New function.
7216 (create_new_frame): New function.
7217 (get_prev_frame): New function.
7218
de888f76
AC
72192002-05-30 Andrew Cagney <ac131313@redhat.com>
7220
7221 * a29k-share/: Delete directory.
7222 * remote-vx29k.c: Delete file.
7223
2f2c3626
JT
72242002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7225
7226 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7227 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7228
9ce5c36a
JT
72292002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7230
7231 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7232 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7233 (sparc64nbsd-nat.o)
7234 (sparcnbsd-nat.o)
7235 (sparcnbsd-tdep.o): New dependency lists.
7236 * NEWS: Note new UltraSPARC NetBSD native configuration.
7237 * configure.host (sparc64-*-netbsd*): New host.
7238 * configure.tgt (sparc-*-netbsdelf*)
7239 (sparc-*-netbsd*): Set gdb_target to nbsd.
7240 (sparc64-*-netbsd*): New target.
7241 * sparc64nbsd-nat.c: New file.
7242 * sparcnbsd-nat.c: New file.
7243 * sparcnbsd-tdep.c: New file.
7244 * sparcnbsd-tdep.h: New file.
7245 * config/sparc/nbsd.mt: New file.
7246 * config/sparc/nbsd64.mh: New file.
7247 * config/sparc/nbsd64.mt: New file.
7248 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7249 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7250 (HOST_IPC): Remove.
7251 * config/sparc/nbsdaout.mt: Remove.
7252 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7253 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7254 (HOST_IPC): Remove.
7255 * config/sparc/nbsdelf.mt: Remove.
7256 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7257 sparc-nat.c compatiblity defines.
7258 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7259 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7260 * config/sparc/tm-nbsd64.h: New file.
7261 * config/sparc/tm-nbsdaout.h: Remove.
7262 * config/sparc/xm-nbsd.h: Remove.
7263
ef3cf062
JT
72642002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7265
7266 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7267 * sparc-tdep.c: Include osabi.h.
7268 (gdbarch_tdep): Add osabi member.
7269 (_initialize_sparc_tdep): Use gdbarch_register.
7270 (sparc_gdbarch_init): Use generic OS ABI framework.
7271 (sparc_dump_tdep): New function.
7272
ee8ff470
KB
72732002-05-30 Kevin Buettner <kevinb@redhat.com>
7274
7275 * corefile.c (do_captured_read_memory_integer): Return non-zero
7276 result.
7277 (safe_read_memory_integer): Copy result of memory read when
7278 status is non-zero. Also, add comments.
7279
7b112f9c
JT
72802002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7281
7282 * Makefile.in (ppc_tdep_h): Define.
7283 (ppc-linux-nat.o)
7284 (ppc-linux-tdep.o)
7285 (rs6000-tdep.o): Use $(ppc_tdep_h).
7286 (ppc-sysv-tdep.o)
7287 (ppcnbsd-nat.o)
7288 (ppcnbsd-tdep.o): New dependency lists.
7289 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7290 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7291 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7292 (ppc_sysv_abi_broken_use_struct_convention)
7293 (ppc_sysv_abi_use_struct_convention)
7294 (ppc_sysv_abi_push_arguments): Move to...
7295 * ppc-sysv-tdep.c: ...here.
7296 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7297 * rs6000-tdep.c (process_note_abi_tag_sections)
7298 (get_elfosabi): Remove.
7299 (rs6000_gdbarch_init): Use generic OS ABI framework.
7300 (rs6000_dump_tdep): New function.
7301 (_initialize_rs6000_tdep): Use gdbarch_register.
7302 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7303 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7304 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7305 of ppc-linux-tdep.o.
7306 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7307 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7308 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7309 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7310 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7311 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7312
480dd42a
JB
73132002-05-29 Jim Blandy <jimb@redhat.com>
7314
7315 * macroscope.c (default_macro_scope): Put `void' in empty argument
7316 list.
7317
4182591f
AC
73182002-05-29 Andrew Cagney <ac131313@redhat.com>
7319
7320 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7321 * arch-utils.c: Include "sim-regno.h".
7322 * gdbarch.sh: Don't include "sim-regno.h".
7323 * gdbarch.h, gdbarch.c: Regenerate.
7324 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7325 here.
7326 * arch-utils.h (legacy_register_sim_regno): To here.
7327 * remote-sim.c (legacy_register_sim_regno): Move function from
7328 here.
7329 * arch-utils.c (legacy_register_sim_regno): To here.
7330
8238d0bf
AC
73312002-05-28 Andrew Cagney <ac131313@redhat.com>
7332
7333 * sim-regno.h: New file.
7334 * Makefile.in (sim_regno_h): Define.
7335 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7336 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7337 (legacy_register_sim_regno): New function.
7338 (one2one_register_sim_regno): New function.
7339 (gdbsim_fetch_register): Rewrite.
7340 (gdbsim_store_register): Only store a register when
7341 REGISTER_SIM_REGNO is valid.
7342 * d10v-tdep.c: Include "sim-regno.h".
7343 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7344 (d10v_ts3_register_sim_regno): Ditto.
7345 * gdbarch.sh: Include "sim-regno.h".
7346 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7347 * gdbarch.h, gdbarch.c: Regenerate.
7348 * arch-utils.h (default_register_sim_regno): Delete declaration.
7349 * arch-utils.c (default_register_sim_regno): Delete function.
7350
485721b1
JT
73512002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7352
7353 * ppcnbsd-nat.c: Rewrite.
7354 * ppcnbsd-tdep.c: New file.
7355 * ppcnbsd-tdep.h: New file.
7356 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7357 solib.o, and solib-svr4.o.
7358 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7359 nbsd-tdep.o, and corelow.o.
7360
697f244d
AC
73612002-05-28 Andrew Cagney <ac131313@redhat.com>
7362
7363 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7364 `tr' and `sed'. Mention that `broken' targets are not expected to
7365 build.
7366
f08caad1 73672002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7368
7369 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7370 Let PC point right after the prologue before looking up symbols.
7371
3139facc
MH
73722002-05-27 Martin M. Hunt <hunt@redhat.com>
7373
7374 * i386-tdep.c (i386_register_virtual_type): Return
7375 builtin_type_vec128i for SSE registers.
7376
7377 * gdbtypes.h (builtin_type_vec128i): Declare.
7378
7379 * gdbtypes.c (build_builtin_type_vec128i): New function.
7380 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7381 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7382 (build_gdbtypes): Initialize new builtin vector types.
7383 (_initialize_gdbtypes): Register new vector types with gdbarch.
7384
6e3ba3b8
JT
73852002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7386
7387 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7388 since it has been multi-arch'd.
7389 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7390 Move Alpha and VAX multi-arch news entries to same section
7391 as other multi-arch news.
7392
93d5585d
JT
73932002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7394
7395 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7396 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7397 static. Rename some register numbers to put them in ns32k-tdep
7398 private namespace.
7399 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7400 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7401 functions.
7402 (_initialize_ns32k_tdep): Use gdbarch_register.
7403 * ns32k-tdep.h: New file.
7404 * ns32knbsd-tdep.c: New file.
7405 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7406 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7407 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7408 REGISTER_BYTES, REGISTER_BYTE): Remove.
7409 * config/ns32k/tm-ns32k.h: New file.
7410 * config/ns32k/tm-umax.h: Remove.
7411
efb2c70e
JT
74122002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7413
7414 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7415 ns32k_store_struct_return, ns32k_extract_return_value,
7416 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7417 functions.
7418 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7419 ns32k_saved_pc_after_call.
7420 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7421 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7422 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7423 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7424 ns32k_extract_struct_value_address.
7425
7bcc927b
JT
74262002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7427
7428 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7429 ns32k_fix_call_dummy): New.
7430 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7431 ns32k_call_dummy_words.
7432 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7433 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7434 CALL_DUMMY_NARGS): Remove.
7435 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7436
78f9d765
JT
74372002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7438
7439 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7440 ns32k_frame_saved_pc, ns32k_frame_args_address,
7441 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7442 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7443 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7444 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7445 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7446 (BREAKPOINT): Remove..
7447 (FRAME_CHAIN): Define as ns32k_frame_chain.
7448 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7449 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7450 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7451 (FRAME_FIND_SAVED_REGS): Remove.
7452 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7453 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7454 (POP_FRAME): Define as ns32k_pop_frame.
7455
f2c762e0
JT
74562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7457
7458 * ns32k-tdep.c (ns32k_register_byte_32082,
7459 ns32k_register_byte_32382, ns32k_register_raw_size,
7460 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7461 functions.
7462 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7463 ns32k_register_byte_32382.
7464 * config/ns32k/tm-umax.h: Update copyright years.
7465 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7466 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7467 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7468 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7469 (ns32k_get_enter_addr): Fix prototype.
7470
af137673
JT
74712002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7472
7473 * ns32k-tdep.c: Update copyright years.
7474 (ns32k_register_name_32082): New function.
7475 (ns32k_register_name_32382): Ditto.
7476 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7477 (REGISTER_NAME): Define as ns32k_register_name_32382.
7478 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7479 (REGISTER_NAME): Define as ns32k_register_name_32082.
7480
a8bc7b56
JB
74812002-05-24 Jim Blandy <jimb@redhat.com>
7482
7483 * dwarf2read.c (free_line_header): Use xfree, not free.
7484
83a45910
JT
74852002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7486
7487 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7488 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7489
0db71247
AC
74902002-05-23 Andrew Cagney <ac131313@redhat.com>
7491
7492 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7493
b9e5e4dd
AC
74942002-05-23 Andrew Cagney <ac131313@redhat.com>
7495
7496 From Ross Alexander at NEC Europe:
7497 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7498
de530e84
MS
74992002-05-23 Michael Snyder <msnyder@redhat.com>
7500
7501 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7502 for input, rather than parse_and_eval_address.
7503
b91b96f4
AC
75042002-05-23 Andrew Cagney <ac131313@redhat.com>
7505
7506 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7507 * Makefile.in (sim_d10v_h): Update definition.
7508
8b279e7a
AC
75092002-05-24 Andrew Cagney <cagney@redhat.com>
7510
7511 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7512 change `2002-05-22 Michael Snyder' below.
7513 (d10v_push_arguments): Ditto.
7514 (d10v_extract_return_value): Ditto.
7515
0a3d0425
JB
75162002-05-23 Jim Blandy <jimb@redhat.com>
7517
7518 * macrotab.c (check_for_redefinition): Don't complain if the new
7519 definition is the same as the previous one. Take more arguments
7520 to allow the comparison.
7521 (macro_define_object, macro_define_function): Pass more arguments
7522 to check_for_redefinition.
7523
78eac43e
MS
75242002-05-22 Michael Snyder <msnyder@redhat.com>
7525
7526 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7527 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7528 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7529 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7530 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7531 Add a temp variable to save a call (and a memory read).
7532 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7533 if possible (so that PC_IN_CALL_DUMMY will work).
7534
9bc1edb8
CV
75352002-05-22 Corinna Vinschen <vinschen@redhat.com>
7536
7537 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7538
005ef3d2
ML
75392002-05-22 Michal Ludvig <mludvig@suse.cz>
7540
7541 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7542 fde->cie_ptr.
7543 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7544 (dwarf2_build_frame_info): Add offset to fde->initial_location
7545 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7546 (execute_stack_op): Change type of 'result' from ULONGEST to
7547 CORE_ADDR.
005ef3d2 7548
fcf4f891
JT
75492002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7550
7551 * config/alpha/tm-nbsd.h: Include solib.h.
7552
cfef91e4
JT
75532002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7554
7555 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7556 assumptions about the host's byte order.
7557
9964235a
JT
75582002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7559
7560 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7561 to dependency list.
7562 * alphanbsd-tdep.c: Include solib-svr4.h.
7563 * shnbsd-tdep.c: Ditto.
7564
9eeef8ef
JT
75652002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7566
7567 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7568 nbsd-tdep.h to dependency list.
7569 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7570 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7571 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7572 nbsdaout.mh and nbsdelf.mh consistently.
7573 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7574 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7575 nbsdaout.mt and nbsdelf.mh consistently.
7576 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7577 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7578 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7579 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7580 a.out shared library stuff from here...
7581 * config/nm-nbsdaout.h: ...to here.
7582 * config/tm-nbsd.h: Remove.
7583 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7584 * config/arm/nbsd.mh: Remove.
7585 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7586 nbsd-tdep.o.
7587 * config/arm/nbsdaout.mh: New file.
7588 * config/arm/nbsdelf.mh: New file.
7589 * config/arm/nm-nbsdaout.h: New file.
7590 * config/i386/nbsd.mh: Remove.
7591 * config/i386/nbsd.mt: Remove.
7592 * config/i386/nbsdaout.mh: New file.
7593 * config/i386/nbsdaout.mt: New file.
7594 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7595 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7596 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7597 i386_register_u_addr): Remove.
7598 * config/i386/nm-nbsdaout.h: New file.
7599 * config/i386/nm-nbsdelf.h: Remove.
7600 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7601 (USE_STRUCT_CONVENTION): Remove.
7602 * config/i386/tm-nbsdaout.h: New file.
7603 * config/i386/tm-nbsdelf.h: Remove.
7604 * config/m68k/nbsd.mh: Remove.
7605 * config/m68k/nbsd.mt: Remove.
7606 * config/m68k/nbsdaout.mh: New file.
7607 * config/m68k/nbsdaout.mt: New file.
7608 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7609 * config/m68k/nm-nbsdaout.h: New file.
7610 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7611 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7612 * config/ns32k/nbsd.mh: Remove.
7613 * config/ns32k/nbsd.mt: Remove.
7614 * config/ns32k/nbsdaout.mh: New file.
7615 * config/ns32k/nbsdaout.mt: New file.
7616 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7617 * config/ns32k/nm-nbsdaout.h: New file.
7618 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7619 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7620 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7621 (SVR4_SHARED_LIBS): Remove.
7622 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7623 * config/sparc/nbsd.mh: Remove.
7624 * config/sparc/nbsd.mt: Remove.
7625 * config/sparc/nbsdaout.mh: New file.
7626 * config/sparc/nbsdaout.mt: New file.
7627 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7628 * config/sparc/nbsdelf.mt: New file.
7629 * config/sparc/nm-nbsdaout.h: New file.
7630 * config/sparc/nm-nbsdelf.h: Remove.
7631 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7632 * config/sparc/tm-nbsdaout.h: New file.
7633
257ce470
JT
76342002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7635
7636 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7637 mipsnbsd-tdep.c
7638 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7639
76a6d5fe
JT
76402002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7641
7642 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7643 shnbsd-nat.c.
7644 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7645
45888261
JT
76462002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7647
7648 * NEWS: Note new MIPS NetBSD native configuration.
7649 * configure.host (mips*-*-netbsd*): New host.
7650 * configure.tgt (mips*-*-netbsd*): New target.
7651 * mipsnbsd-nat.c: New file.
7652 * mipsnbsd-tdep.c: New file.
7653 * mipsnbsd-tdep.h: New file.
7654 * config/mips/nbsd.mh: New file.
7655 * config/mips/nbsd.mt: New file.
7656 * config/mips/nm-nbsd.h: New file.
7657 * config/mips/tm-nbsd.h: New file.
7658
70f80edf
JT
76592002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7660
7661 * Makefile.in (SFILES): Add osabi.c.
7662 (COMMON_OBS): Add osabi.o.
7663 (osabi.o): New dependency list.
7664 * osabi.c: New file.
7665 * osabi.h: New file.
7666 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7667
7668 * Makefile.in (alpha_tdep_h): Define and use instead of
7669 alpha-tdep.h.
7670 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7671 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7672 Remove.
7673 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7674 * alpha-tdep.h: Include osabi.h.
7675 (alpha_abi): Remove.
7676 (gdbarch_tdep): Use generic OS ABI framework.
7677 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7678 gdbarch_register_osabi.
7679 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7680 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7681 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7682
7683 * Makefile.in (sh_tdep_h): Add osabi.h.
7684 * sh-tdep.h (sh_osabi): Remove.
7685 (gdbarch_tdep): Use generic OS ABI framework.
7686 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7687 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7688 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7689 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7690
7691 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7692 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7693 gdbarch_register_osabi.
7694 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7695 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7696 (get_elfosabi): Rename to...
7697 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7698 ABI framework support routines.
7699 (arm_gdbarch_init): Use generic OS ABI framework.
7700 (arm_dump_tdep): Likewise.
7701 (_initialize_arm_tdep): Likewise.
7702 * arm-tdep.h: Include osabi.h.
7703 (arm_abi): Remove.
7704 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7705 osabi member.
7706 (arm_gdbarch_register_os_abi): Remove prototype.
7707 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7708 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7709
7710 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7711 * mips-tdep.c: Include osabi.h.
7712 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7713 OS ABI framework.
7714
d194345b
KH
77152002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7716
7717 * h8300-tdep.c: Fix formatting.
7718
70c6b0d1
EZ
77192002-05-20 Elena Zannoni <ezannoni@redhat.com>
7720
7721 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7722 printing vector registers.
7723
165b8e33
AC
77242002-05-19 Andrew Cagney <ac131313@redhat.com>
7725
7726 From Fernando Nasser:
7727 * remote.c (remote_async_open_1): Re-throw the exception when the
7728 connection fails.
7729 (remote_cisco_open): Ditto.
7730 (remote_open_1): Ditto.
7731
36918e70
AC
77322002-05-19 Andrew Cagney <ac131313@redhat.com>
7733
7734 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7735 (remote_start_remote): Add uiout parameter. Pass through to
7736 remote_start_remote_dummy.
7737 (remote_open_1): Use catch_exception instead of catch_errors.
7738 (remote_async_open_1): Ditto.
7739 (remote_cisco_open): Ditto.
7740
ae44c0c4
AC
77412002-05-19 Andrew Cagney <ac131313@redhat.com>
7742
7743 * remote.c (remote_start_remote): Replace PTR with void pointer.
7744 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7745 static.
7746
8efe637d
AC
77472002-05-18 Andrew Cagney <ac131313@redhat.com>
7748
7749 * gdb_indent.sh: Allow the script to be run in the sim directory.
7750
2f1b5984
MK
77512002-05-18 Mark Kettenis <kettenis@gnu.org>
7752
f0f625e2
MK
7753 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7754 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7755
2f1b5984
MK
7756 * corelow.c (core_open): Only call set_gdbarch_from_file if
7757 exec_bfd is NULL.
7758
fc974602
AV
77592002-05-17 Andrey Volkov <avolkov@transas.com>
7760
7761 * h8300-tdep.c: Add support of EXR register
7762 * config/h8300/tm-h8300.h: Ditto.
7763
906709f4
AV
77642002-05-17 Andrey Volkov <avolkov@transas.com>
7765
7766 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7767
6e591d68
AV
77682002-05-17 Andrey Volkov <avolkov@transas.com>
7769
7770 * h8300-tdep.c: Change literal regnums to REGNO.
7771
84f0252a
JB
77722002-05-17 Jim Blandy <jimb@redhat.com>
7773
e0e9281e
JB
7774 * NEWS: Note addition of macro support.
7775
84f0252a
JB
7776 Expand preprocessor macros in C expressions.
7777 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7778 (scan_macro_expansion, scanning_macro_expansion,
7779 finished_macro_expansion): New function declarations.
7780 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7781 variable declarations.
7782 * parser-defs.h (expression_context_pc): New declaration.
7783 * parse.c (expression_context_pc): New variable.
7784 (parse_exp_1): Set expression_context_pc, as well as
7785 expression_context_block.
7786 * c-exp.y (yylex): If we're not already reading the result of a
7787 macro expansion, try to macro-expand the next token. When we're
7788 done scanning a macro expansion, switch back to the mainline text.
7789 Commas and `if's in a macro's expansion don't terminate the input.
7790 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7791 (macro_original_text, macro_expanded_text,
7792 expression_macro_lookup_func, expression_macro_lookup_baton): New
7793 variables.
7794 (scan_macro_expansion, scanning_macro_expansion,
7795 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7796 c_preprocess_and_parse): New functions.
7797 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7798 c_preprocess_and_parse, instead of c_parse.
7799 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7800 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7801
1c509ca8
JR
7802Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7803
7804 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7805 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7806 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7807
2250ee0c
CV
78082002-05-17 Corinna Vinschen <vinschen@redhat.com>
7809
7810 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7811
ab3b8126
JT
78122002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7813
7814 * Makefile.in (sh_tdep_h): Define and use.
7815 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7816 register enum): Move to...
7817 * * sh-tdep.h: ...here.
7818 * sh-tdep.c: Include sh-tdep.h.
7819 * sh3-rom.c: Likewise.
7820 * shnbsd-tdep.c: Likewise.
7821
ed9d4749
MS
78222002-05-16 Michael Snyder <msnyder@redhat.com>
7823
7824 * arm-tdep.c: Spelling fix in comment.
7825
2e276125
JB
78262002-05-16 Jim Blandy <jimb@redhat.com>
7827
6821892e
JB
7828 Add commands for manually expanding macros and showing their
7829 definitions.
7830 * macrocmd.c, macroscope.c, macroscope.h: New files.
7831 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7832 (macroscope_h): New variable.
7833 (HFILES_NO_SRCDIR): Add macroscope.h.
7834 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7835 (macroscope.o, macrocmd.o): New rules.
7836
2e276125
JB
7837 Teach the Dwarf 2 reader to read macro information.
7838 * dwarf2read.c: #include "macrotab.h".
7839 (dwarf_macinfo_buffer): New variable.
7840 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7841 dwarf_macinfo_size.
7842 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7843 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7844 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7845 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7846 dwarf2_macro_spaces_in_definition): New complaints.
7847 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7848 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7849 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7850 the partial symbol table.
7851 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7852 from what's recorded in the partial symbol table.
7853 (read_file_scope): If the compilation unit has a
7854 `DW_AT_macro_info' attribute, read its macro information.
7855 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7856
2f53fe6c
DJ
78572002-05-16 Daniel Jacobowitz <drow@mvista.com>
7858
7859 Fix PR gdb/546
7860 * ser-tcp.c: Don't include <netinet/udp.h>.
7861
2be99286
SC
78622002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7863
7864 * MAINTAINERS: Update my email address.
7865
c9af212b 78662002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
7867
7868 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7869 include file of the same name.
7870
bf5f1a52
CV
78712002-05-16 Corinna Vinschen <vinschen@redhat.com>
7872
7873 * configure.tgt: Mark v850 as multi-arched.
7874 * config/v850/tm-v850.h: Remove file.
7875 * config/v850/v850.mt: Eliminate TM_FILE.
7876
435e042a
CV
78772002-05-16 Corinna Vinschen <vinschen@redhat.com>
7878
7879 * v850-tdep.c: Full multi-arch.
7880 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7881 Define GDB_MULTI_ARCH to 2.
7882
9819c6c8
PM
78832002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7884
7885 * p-exp.y (current_type): New static variable.
7886 Carries the type of the expression at the position that is parsed.
7887 (push_current_type, pop_current_type): Two new functions. Used
7888 to store/restore current_type in expression on specific tokens.
c9af212b
RE
7889 (search_field): New static variable. Set to one after parsing a point
7890 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
7891 (FIELDNAME): New token. After a point only a token belonging to
7892 current_type type definition is allowed.
7893 (all over token rules): reset and change current_type according
7894 to rules.
7895 (exp '[' rule): insert implicit array index field if
7896 exp is a pascal string type.
7897
3a06899a
CV
78982002-05-16 Corinna Vinschen <vinschen@redhat.com>
7899
7900 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7901 frame info. Use frame_info's saved_regs instead of matching member
7902 in extra_frame_info throughout.
7903 (v850_frame_init_saved_regs): New function.
7904 (v850_init_extra_frame_info): Move most functionality into
7905 v850_frame_init_saved_regs().
7906 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7907 (v850_frame_find_saved_regs): Remove declaration.
7908 (FRAME_FIND_SAVED_REGS): Remove definition.
7909 (v850_frame_init_saved_regs): Add declaration.
7910 (FRAME_INIT_SAVED_REGS): Add definition.
7911
6ed14b0e
CV
79122002-05-16 Corinna Vinschen <vinschen@redhat.com>
7913
7914 * v850-tdep.c: Begin multi-arch'ing v850.
7915 (v850_target_architecture_hook): Remove function.
7916 (v850_gdbarch_init): New function. Add code previously in
7917 v850_target_architecture_hook().
7918 (_initialize_v850_tdep): Don't set target_architecture_hook.
7919 Call register_gdbarch_init() instead.
7920
42725910
DJ
79212002-05-16 Daniel Jacobowitz <drow@mvista.com>
7922
7923 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7924 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7925 (fixup_class_method_type): Likewise.
7926
99d9066e
JB
79272002-05-15 Jim Blandy <jimb@redhat.com>
7928
7929 Add macro structures to GDB's symbol tables. Nobody puts anything
7930 in them yet.
7931 * symtab.h (struct symtab): New member: `macro_table'.
7932 * buildsym.h (pending_macros): New global variable.
7933 * buildsym.c: #include "macrotab.h".
7934 (buildsym_init): Initialize `pending_macros'.
7935 (end_symtab): If we found macro information while reading a CU's
7936 debugging info, do build a symtab structure for it. Make the
7937 symtab point to the macro information, and clear the
7938 `pending_macros' pointer which held it while we were reading the
7939 debug info.
7940 (really_free_pendings): Free any pending macro table.
7941 * objfiles.h (struct objfile): New member: `macro_cache'.
7942 * objfiles.c (allocate_objfile): Set allocate and free functions
7943 for the macro cache's objstack.
7944 (free_objfile): Empty the macro cache's obstack.
7945 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7946 set new allocate and free functions for it.
7947 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7948 free functions for the macro cache's objstack. (Why is this
7949 function building its own objfile?)
7950 * symmisc.c (print_objfile_statistics): Print statistics on the
7951 macro bcache.
7952 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7953
c899585b
RE
79542002-05-15 Richard Earnshaw <rearnsha@arm.com>
7955
7956 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7957 (REGISTER_U_ADDR): Delete definition.
7958 (arm_register_u_addr): Delete declaration.
7959
a6cdd8c5
RE
79602002-05-15 Richard Earnshaw <rearnsha@arm.com>
7961
7962 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7963 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7964
c97dcfc7
AC
79652002-05-14 Andrew Cagney <ac131313@redhat.com>
7966
7967 * regcache.c (register_valid): Revise comments refering to "Not
7968 available" and "unavailable".
7969 * frame.c (frame_register_read): Ditto.
7970 * findvar.c (value_of_register): Ditto.
7971
93021b7d
AC
79722002-05-15 Andrew Cagney <cagney@redhat.com>
7973
7974 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7975 (remote-sim.o): Update dependencies.
7976 (d10v-tdep.o): Specify dependencies.
7977 (sim_d10v_h): Define.
7978
a86bc61c
JB
79792002-05-14 Jim Blandy <jimb@redhat.com>
7980
7981 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7982 * macrotab.c (macro_lookup_inclusion, find_definition,
7983 new_macro_table): Same.
7984
7985 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7986 not `! strcmp ()'. This is a dubious improvement.
7987 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7988
7989 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7990 although it's not necessary, to avoid a warning.
7991
2fdde8f8
DJ
79922002-05-14 Daniel Jacobowitz <drow@mvista.com>
7993
7994 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7995 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7996 TYPE_INSTANCE_FLAGS.
7997 (struct main_type): New.
7998 (struct type): Move most members to struct main_type. Change
7999 cv_type and as_type to new type_chain member. Add instance_flags.
8000 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8001 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8002 (finish_cv_type): Remove prototype.
8003 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8004 Set TYPE_CHAIN.
8005 (alloc_type_instance): New function.
8006 (smash_type): New function.
8007 (make_pointer_type, make_reference_type, make_function_type)
8008 (smash_to_member_type, smash_to_method_type): Call smash_type.
8009 (make_qualified_type): New function.
8010 (make_type_with_address_space): Call make_qualified_type.
8011 (make_cv_type): Likewise.
8012 (finish_cv_type): Remove unnecessary function.
8013 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8014 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8015 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8016 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8017 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8018 * hpread.c (hpread_read_struct_type): Likewise.
8019 * stabsread.c (read_struct_type): Likewise.
8020
843fedf4
EZ
80212002-05-14 Elena Zannoni <ezannoni@redhat.com>
8022
8023 * configure.tgt: Add a catch all sh* target, for cases like
8024 sh[2,3,4]-elf and sh-hms.
8025
05a6c72c
KS
80262002-05-14 Keith Seitz <keiths@redhat.com>
8027
8028 * event-loop.c (create_file_handler): Don't do anything but
8029 update data when we are given a fd which we are already
8030 monitoring.
8031
5d085aaf
ML
80322002-05-14 Michal Ludvig <mludvig@suse.cz>
8033
8034 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8035 (update_context): Use __func__ in warnings.
8036
9db8d71f
DJ
80372002-05-14 Daniel Jacobowitz <drow@mvista.com>
8038
8039 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8040 and tcp_close to net_open and net_close.
8041 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8042 using UDP if requested. Don't try to disable Nagle on UDP
8043 sockets.
8044 * remote.c (remote_serial_open): New function. Warn about UDP.
8045 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8046
5dbc6baa
EZ
80472002-05-13 Elena Zannoni <ezannoni@redhat.com>
8048
8049 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8050
cc3023f7
EZ
80512002-05-13 Elena Zannoni <ezannoni@redhat.com>
8052
8053 * configure.tgt: Remove sh-hms target.
8054 * MAINTAINERS: Don't list sh-hms as a separate target.
8055
ec2bcbe7
JB
80562002-05-13 Jim Blandy <jimb@redhat.com>
8057
8058 Add first preprocessor macro-expansion files.
8059 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8060 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8061 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8062 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8063 (COMMON_OBS): Add macrotab.o, macroexp.o.
8064 (macroexp.o, macrotab.o): New rules.
8065
6d531722
AC
80662002-05-13 Andrew Cagney <ac131313@redhat.com>
8067
8068 * config/m88k/tm-m88k.h: Update copyright.
8069 (m88k_target_write_pc): Declare
8070 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8071 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8072 (SHIFT_INST_REGS): Update definition.
8073 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8074 using old definition of TARGET_WRITE_PC.
8075 * regcache.c (generic_target_write_pc): Delete code handling
8076 NNPC_REGNUM.
8077 * gdbarch.sh (NNPC_REGNUM): Delete.
8078 * gdbarch.h, gdbarch.c: Regenerate.
8079
3e3f2739
RE
80802002-05-13 Richard Earnshaw <rearnsha@arm.com>
8081
8082 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8083 builtin reg number.
8084
0004e5a2
DJ
80852002-05-13 Daniel Jacobowitz <drow@mvista.com>
8086
8087 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8088 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8089 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8090 access macros.
8091 * c-typeprint.c (cp_type_print_method_args): Likewise.
8092 (c_type_print_args): Likewise.
8093 * d10v-tdep.c (d10v_push_arguments): Likewise.
8094 (d10v_extract_return_value): Likewise.
8095 * expprint.c (print_subexp): Likewise.
8096 * gdbtypes.c (lookup_primitive_typename): Likewise.
8097 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8098 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8099 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8100 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8101 (TYPE_VECTOR): Likewise.
8102 * hpread.c (hpread_read_struct_type)
8103 (fix_static_member_physnames, fixup_class_method_type)
8104 (hpread_type_lookup): Likewise.
8105 * mdebugread.c (parse_symbol, parse_type): Likewise.
8106 * p-lang.c (is_pascal_string_type): Likewise.
8107 * valops.c (hand_function_call): Likewise.
8108 * x86-64-tdep.c (classify_argument): Likewise.
8109
8110 * hpread.c (hpread_read_function_type)
8111 (hpread_read_doc_function_type): Call replace_type.
8112 * dstread.c (create_new_type): Delete.
8113 (decode_dst_structure, process_dst_function): Call alloc_type.
8114 Use type access macros.
8115
dff95cc7
MK
81162002-05-12 Mark Kettenis <kettenis@gnu.org>
8117
8118 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8119 the're not supported by the current architecture.
8120 (i387_fill_fxsave): Likewise.
8121
bbcd32ad
FF
81222002-05-12 Fred Fish <fnf@redhat.com>
8123
8124 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8125 sect_index_xxx members to index the first slot in section_offsets
8126 if all of the section_offsets are zero.
8127
89cf4787
MK
81282002-05-12 Mark Kettenis <kettenis@gnu.org>
8129
8130 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8131 checked in with last change.
8132
1f77ffc5
MK
81332002-05-12 Mark Kettenis <kettenis@gnu.org>
8134
8135 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8136 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8137 config.sub.
8138
89b8b4a9
DJ
81392002-05-12 Daniel Jacobowitz <drow@mvista.com>
8140
8141 * Makefile.in: Update dependencies.
8142
14a5e767
AC
81432002-05-11 Andrew Cagney <ac131313@redhat.com>
8144
8145 * language.c (local_hex_string_custom): Simplify. Do not depend
8146 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8147
8148 * memattr.c (mem_info_command): Replace calls to
8149 longest_local_hex_string and longest_local_hex_string_custom.
8150 * buildsym.c (make_blockvector): Ditto.
8151 * solib.c (info_sharedlibrary_command): Ditto.
8152 * tracepoint.c (tracepoints_info): Ditto.
8153 * symtab.c (print_msymbol_info): Ditto.
8154
8155 * language.c (local_hex_string): Delete.
8156 (local_hex_string_custom): Delete.
8157 (longest_local_hex_string): Rename to local_hex_string.
8158 (longest_local_hex_string_custom): Rename to
8159 local_hex_string_custom.
8160 * language.h (local_hex_string): Change parameter type to LONGEST.
8161 (local_hex_string_custom): Ditto.
8162 (longest_local_hex_string): Delete declaration.
8163 (longest_local_hex_string_custom): Ditto.
8164
8165 * solib.c: Update copyright.
8166 * memattr.c: Update copyright.
8167
13d01224
AC
81682002-05-11 Andrew Cagney <ac131313@redhat.com>
8169
8170 * arch-utils.h (legacy_register_to_value): Declare.
8171 (legacy_value_to_register): Declare.
8172 (legacy_convert_register_p): Declare.
8173 * arch-utils.c (legacy_register_to_value): New function.
8174 (legacy_value_to_register): New function.
8175 (legacy_convert_register_p): New function.
8176
8177 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8178 (VALUE_TO_REGISTER): Define.
8179 (CONVERT_REGISTER_P): Define.
8180 * gdbarch.h, gdbarch.c: Regenerate.
8181
8182 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8183 VALUE_TO_REGISTER.
8184 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8185 CONVERT_REGISTER_P.
8186
4a1970e4
DJ
81872005-05-11 Daniel Jacobowitz <drow@mvista.com>
8188 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8189
8190 * Makefile.in: Update dependencies for valops.c.
8191 * valops.c: Include "gdb_assert.h".
8192 (typecmp): Skip THIS parameter to methods.
8193 (find_method_list): Remove static_memfuncp argument,
8194 update callers. Check for stub methods.
8195 (find_value_oload_method_list): Don't set *static_memfuncp.
8196 (find_overload_match): Don't check for stub methods. Assert
8197 that methods are not stubbed. Handle static methods.
8198 (value_find_oload_method_list): Remove static_memfuncp argument.
8199 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8200 to the argument list for static stub methods.
8201 * value.h (value_find_oload_method_list): Update prototype.
8202
b2e75d78
AC
82032002-05-11 Andrew Cagney <ac131313@redhat.com>
8204
8205 * arch-utils.h (generic_register_size): Declare.
8206 (generic_register_raw_size, generic_register_virtual_size): Delete
8207 declarations.
8208 * arch-utils.c (generic_register_raw_size): Delete.
8209 (generic_register_size): New function.
8210 (generic_register_virtual_size): Delete.
8211
8212 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8213 default generic_register_size.
8214 * gdbarch.h, gdbarch.c: Re-generate.
8215
8216 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8217 register_virtual_size.
8218 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8219 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8220
451fbdda
AC
82212002-05-11 Andrew Cagney <ac131313@redhat.com>
8222
8223 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8224 * gdbarch.h, gdbarch.c: Regenerate.
8225 * gnu-v3-abi.c: Update copyright.
8226 (vtable_address_point_offset): Update.
8227 (gnuv3_rtti_type): Update.
8228 (gnuv3_baseclass_offset): Update.
8229 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8230 (init_fetch_link_map_offsets): Update.
8231 * remote.c (get_remote_state): Update.
8232
6d2f5cea
DJ
82332002-05-11 Daniel Jacobowitz <drow@mvista.com>
8234
8235 * TODO: Remove value_headof/value_from_vtable_info comment.
8236 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8237 * values.c (value_headof, value_from_vtable_info): Delete.
8238 * value.h (value_from_vtable_info): Delete prototype.
8239
d2324da4
AC
82402002-05-11 Andrew Cagney <ac131313@redhat.com>
8241
8242 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8243 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8244 $(gdb_regex_h).
8245 (gdb_assert_h): Define.
8246 (gdb_wait_h): Define.
8247 (gdb_regex_h): Define.
8248
5c717440
DJ
82492002-05-11 Daniel Jacobowitz <drow@mvista.com>
8250
8251 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8252 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8253
6c7861b3
JT
82542002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8255
8256 * nbsd-tdep.c: Fix comment.
8257
ea5bc2a6
JT
82582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8259
8260 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8261 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8262 (nbsd-tdep.o): New dependency list.
8263 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8264 nbsd-tdep.h.
8265 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8266 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8267 * nbsd-tdep.c: New file.
8268 * nbsd-tdep.h: New file.
8269 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8270 nbsd-tdep.h.
8271 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8272 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8273 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8274 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8275
b28da865
JT
82762002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8277
8278 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8279 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8280 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8281 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8282 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8283 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8284
4b8ff1fa
JT
82852002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8286
8287 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8288 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8289 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8290 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8291 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8292 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8293 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8294
dfe6eb1f
JT
82952002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8296
8297 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8298 fetch_elfcore_registers to...
8299 * i386nbsd-tdep.c: ...here.
8300 (i386nbsd_use_struct_convention): Rename to...
8301 (i386nbsd_aout_use_struct_convention): ...this.
8302 (i386nbsd_supply_reg): New function.
8303 (i386nbsd_fill_reg): New function.
8304 (fetch_core_registers): Use i386nbsd_supply_reg.
8305 (fetch_elfcore_registers): Likewise.
8306 (_initialize_i386nbsd_tdep): New function.
8307 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8308 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8309 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8310 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8311 (i386nbsd_aout_use_struct_convention): ...this.
8312
20cb8cda
JT
83132002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8314
8315 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8316 (store_inferior_registers): Use shnbsd_fill_reg.
8317 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8318 sh_nbsd_supply_register): Collapse into...
8319 (shnbsd_supply_reg): ...this.
8320 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8321 (shnbsd_fill_reg): ...this.
8322 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8323 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8324 (fetch_core_registers): Use shnbsd_supply_reg.
8325 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8326 (sh_nbsd_core_fns): Rename to...
8327 (shnbsd_core_fns): ...this.
8328 (sh_nbsd_elfcore_fns): Rename to...
8329 (shnbsd_elfcore_fns): ...this.
8330 (sh_nbsd_init_abi): Rename to...
8331 (shnbsd_init_abi): ...this.
8332 (_initialize_sh_nbsd_tdep): Rename to...
8333 (_initialize_shnbsd_tdep): ...this.
8334 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8335 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8336 sh_nbsd_fill_register): Remove prototypes.
8337 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8338
e750d25e
JT
83392002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8340
8341 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8342 (i387-nat.o): Delete dependency list.
8343 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8344 (x86-64-linux-nat.o): Likewise.
8345 * i387-nat.c: Delete file, moving contents to...
8346 * i387-tdep.c: ...here.
8347 * i387-nat.h: Rename...
8348 * i387-tdep.h: ...to this.
8349 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8350 * i386-linux-nat.c: Likewise.
8351 * i386bsd-nat.c: Likewise.
8352 * i386gnu-nat.c: Likewise.
8353 * i386nbsd-nat.c: Likewise.
8354 * i386v4-nat.c: Likewise.
8355 * x86-64-linux-nat.c: Likewise.
8356 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8357 * config/i386/go32.mh (NATDEPFILES): Likewise.
8358 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8359 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8360 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8361 * config/i386/linux.mh (NATDEPFILES): Likewise.
8362 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8363 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8364 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8365 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8366
1aee598a
JT
83672002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8368
8369 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8370 (alphanbsd-nat.o): Remove dependency list.
8371 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8372 * alphanbsd-nat.c: Delete. Contents moved to...
8373 * alphanbsd-tdep.c: ...here.
8374 (_initialize_alphanbsd_tdep): Register core functions.
8375 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8376
12bcb0fe
JT
83772002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8378
8379 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8380 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8381 (alphanbsd-nat.o): Likewise.
8382 (alphabsd-tdep.o): New dependency list.
8383 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8384 (fill_gregset): Use alphabsd_fill_reg.
8385 (supply_fpregset): Use alphabsd_supply_fpreg.
8386 (fill_fpregset): Use alphabsd_fill_fpreg.
8387 (fetch_inferior_registers): Use struct reg and struct fpreg
8388 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8389 and alphabsd_supply_fpreg.
8390 (store_inferior_registers): Use struct reg and struct fpreg
8391 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8392 and alphabsd_fill_fpreg.
8393 * alphabsd-tdep.c: New file.
8394 * alphabsd-tdep.h: New file.
8395 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8396 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8397 alphabsd_supply_fpreg.
8398 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8399 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8400
361d1df0
EC
84012002-05-11 Eric Christopher <echristo@redhat.com>
8402
8403 * mips-tdep.c (mips_double_register_type): Fix thinko.
8404 (mips_single_register_type): Ditto.
8405 * MAINTAINERS: Add self.
8406
92dd7cee
MK
84072002-05-11 Mark Kettenis <kettenis@gnu.org>
8408
8409 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8410 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8411 right thing on architectures with different endianness and/or
8412 integer sizes.
8413
e27da16d
JT
84142002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8415
8416 From Christian Limpach <chris@Pin.LU>
8417 * configure.in: Change sed expression which comments out
8418 NATDEPFILES to also comment out continuation lines.
8419 * configure: Regenerate.
8420
ddde02bd
EZ
84212002-05-10 Elena Zannoni <ezannoni@redhat.com>
8422
8423 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8424 big patch.
8425
1c922164
EZ
84262002-05-10 Elena Zannoni <ezannoni@redhat.com>
8427
8428 * sh-tdep.c: Include correct file.
8429
283150cd
EZ
84302002-05-10 Elena Zannoni <ezannoni@redhat.com>
8431
8432 New support for sh64-elf (sh5) target.
8433
8434 * configure.tgt: For sh64-elf target, default to sh-elf.
8435
8436 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8437 (struct gdbarch_tdep): Add new fields for new registers and ABI
8438 info.
361d1df0 8439
283150cd
EZ
8440 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8441 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8442 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8443 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8444 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8445 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8446 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8447 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8448 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8449 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8450 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8451 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8452 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8453 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8454 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8455 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8456 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8457 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8458 sign_extend, sh64_nofp_frame_init_saved_regs,
8459 sh64_init_extra_frame_info, sh64_get_saved_register,
8460 sh64_extract_struct_value_address, sh64_pop_frame,
8461 sh64_push_arguments, sh64_extract_return_value,
8462 sh64_store_return_value, sh64_show_media_regs,
8463 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8464 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8465 sh_sh64_register_virtual_type,
8466 sh_sh64_register_convert_to_virtual,
8467 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8468 sh64_register_read, sh64_pseudo_register_write,
8469 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8470 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8471 sh64_do_pseudo_register, sh_compact_do_registers_info,
8472 sh64_do_registers_info, sh_gdbarch_init): New functions.
8473
3117ed25
EZ
84742002-05-10 Elena Zannoni <ezannoni@redhat.com>
8475
8476 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8477
2654e6d4
DJ
84782002-05-10 Daniel Jacobowitz <drow@mvista.com>
8479
8480 * linespec.c (decode_line_1): Check for a double quote after
8481 a filename correctly.
8482
9ab3e532
JB
84832002-05-10 Jim Blandy <jimb@redhat.com>
8484
8485 Properly track the size of the current objfile's .debug_line section.
8486 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8487 (DWARF_LINE_SIZE): New macro.
8488 (dwarf2_build_psymtabs_hard): Record the line section's size in
8489 the partial symbol table.
8490 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8491 symbol table.
8492
126fa72d
PS
84932002-05-10 Petr Sorfa <petrs@caldera.com>
8494
8495 * ia64-tdep.c: Handle breakpoints on L instruction type
8496 in MLX instruction bundle by moving the breakpoint to
8497 the third slot (X instruction type) as L holds only data.
8498
1f077a3e
KB
84992002-05-10 Kevin Buettner <kevinb@redhat.com>
8500
8501 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8502 (process_one_symbol): Complain about discarding local symbols
8503 due to a misplaced N_LBRAC entry.
8504
8120c9d5 85052002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8506
8507 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8508 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8509 decrease the depth we are at, in the case of templates.
361d1df0 8510
67b2c998
DJ
85112002-05-09 Daniel Jacobowitz <drow@mvista.com>
8512
8513 * mips-tdep.c (mips_float_register_type): New function.
8514 (mips_double_register_type): New function.
8515 (mips_print_register): Use them.
8516 (do_fp_register_row): Likewise.
8517
fd326606
DJ
85182002-05-09 Daniel Jacobowitz <drow@mvista.com>
8519
6609d9af 8520 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8521 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8522 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8523
bef35864
MS
85242002-05-09 Michael Snyder <msnyder@redhat.com>
8525
8526 * remote-rdp.c (remote_rdp_can_run): Remove.
8527
c55a3f73
TT
85282002-05-09 Tom Tromey <tromey@redhat.com>
8529
8530 * jv-valprint.c (java_val_print): Handle `char' as a special case
8531 of TYPE_CODE_INT.
8532
b8d5e71d
MS
85332002-05-09 Michael Snyder <msnyder@redhat.com>
8534
8535 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8536 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8537 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8538 str r(0123),[sp,#nn].
361d1df0 8539 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8540 order-independent by placing it in a loop.
8541
e2cd42dd
MS
85422002-05-06 Michael Snyder <msnyder@redhat.com>
8543
8544 * stabsread.c (read_type): Add recognition for new attribute:
8545 "@V;" means that an array type is actually a vector.
8546 This is analogous to the vector flag that's been added to dwarf2.
8547
3ce1502b
MK
85482002-05-09 Mark Kettenis <kettenis@gnu.org>
8549
8550 * i386-tdep.h (i386_abi): New enum.
8551 (struct gdbarch_tdep): Replace os_ident member with abi.
8552 (i386_gdbarch_register_os_abi): New prototype.
8553 * i386-tdep.c (i386_abi_names): New array.
8554 (process_note_abi_tag_sections): Removed.
8555 (process_note_sections): New function.
8556 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8557 (struct i386_abi_handler): New struct.
8558 (i386_abi_handler_list): New variable.
8559 (i386_gdbarch_register_os_abi): New function.
8560 (i386_gdbarch_init): Adapt for the changes given above.
8561
084c156a
DJ
85622002-05-08 Daniel Jacobowitz <drow@mvista.com>
8563
8564 * gregset.h: Say "GNU/Linux".
8565
6599f021
EZ
85662002-05-08 Elena Zannoni <ezannoni@redhat.com>
8567
8568 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8569 (build_gdbtypes): Build builtin_type_v2_float.
8570 (_initialize_gdbtypes): Register new builtin type.
8571
40af4b0c
AC
85722002-05-08 Andrew Cagney <ac131313@redhat.com>
8573
8574 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8575 (clear_gdbarch_swap): New function.
8576 (initialize_non_multiarch): Call.
8577 (gdbarch_update_p): Before calling init(), swap out and clear the
8578 existing architecture.
8579 * gdbarch.c: Regenerate.
8580
4fe84f46
JT
85812002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8582
8583 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8584 alphanbsd-tdep.c.
8585
4015edd1
JT
85862002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8587
8588 * sh-nbsd-nat.c: Rename to...
8589 * shnbsd-nat.c: ...this.
8590 * sh-nbsd-tdep.c: Rename to...
8591 * shnbsd-tdep.c: ...this.
8592 * sh-nbsd-tdep.h: Rename to...
8593 * shnbsd-tdep.h: ...this.
8594 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8595 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8596
0e2bd219
RE
85972002-05-08 Richard Earnshaw <rearnsha@arm.com>
8598
8599 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8600 concatenation for command help messages.
8601
13a38d45
JT
86022002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8603
8604 * NEWS: Note new sh*-*-netbsdelf* configuration.
8605 * configure.host: Set gdb_host_cpu to sh for all sh*.
8606 (sh*-*-netbsdelf*): New host.
8607 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8608 (sh*-*-netbsdelf*): New target.
8609 * sh-nbsd-nat.c: New file.
8610 * sh-nbsd-tdep.c: New file.
8611 * sh-nbsd-tdep.h: New file.
8612 * config/sh/nbsd.mh: New file.
8613 * config/sh/nbsd.mt: New file.
8614 * config/sh/nm-nbsd.h: New file.
8615 * config/sh/tm-nbsd.h: New file.
8616
d658f924
JT
86172002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8618
8619 * sh-tdep.c (sh_osabi_names): Declare.
8620 (process_note_abi_tag_sections): New function.
8621 (get_elfosabi): Ditto.
8622 (sh_gdbarch_register_os_abi): Ditto.
8623 (sh_dump_tdep): Ditto.
8624 _initialize_sh_tdep): Use gdbarch_register to register
8625 sh_gdbarch_init and sh_dump_tdep.
8626 * config/sh/tm-sh.h (sh_osabi): Declare.
8627 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8628
848cfffb
AC
86292002-05-07 Andrew Cagney <ac131313@redhat.com>
8630
8631 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8632 (thumb_scan_prologue): Ditto.
8633 (arm_find_callers_reg): Ditto.
8634 (arm_frame_chain): Ditto.
8635 (arm_init_extra_frame_info): Ditto.
8636 (arm_frame_saved_pc): Ditto.
8637 (arm_pop_frame): Ditto.
8638 (arm_push_return_address): New function.
8639 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8640 call_dummy_location, call_dummy_breakpoint_offset_p,
8641 call_dummy_breakpoint_offset, call_dummy_p,
8642 call_dummy_stack_adjust_p, call_dummy_words,
8643 sizeof_call_dummy_words, call_dummy_start_offset,
8644 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8645 call_dummy_address, push_return_address and push_dummy_frame for
8646 generic dummy frames.
8647
e7d717c0
JT
86482002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8649
8650 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8651 size computation for alloca.
8652 (sh_fp_frame_init_saved_regs): Likewise.
8653
7bbcf283
RE
86542002-05-07 Richard Earnshaw <rearnsha@arm.com>
8655
8656 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8657 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8658 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8659 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8660 * remote-rdp.c (remote_rdp_fetch_register): Use
8661 ARM_MAX_REGISTER_RAW_SIZE.
8662 (remote_rdp_store_register): Likewise.
8663
4657573b
ML
86642002-05-07 Michal Ludvig <mludvig@suse.cz>
8665
361d1df0 8666 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8667 added default labels to switch {} statements.
8668 * x86-64-tdep.c: Ditto.
8669 * x86-64-linux-nat.c: Ditto.
8670
010f3b2f
JT
86712002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8672
8673 * solib.h: Protect against multiple inclusion.
8674
debd256d
JB
86752002-05-06 Jim Blandy <jimb@redhat.com>
8676
9ab3e532
JB
8677 Add first preprocessor macro-expansion files.
8678 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8679 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8680 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8681 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8682 (COMMON_OBS): Add macrotab.o, macroexp.o.
8683 (macroexp.o, macrotab.o): New rules.
8684
debd256d
JB
8685 Separate the job of reading the line number info statement program
8686 header (...expialidocious) out into its own function.
8687 * dwarf2read.c (struct line_head, struct filenames, struct
8688 directories): Replace with...
8689 (struct line_header): New structure, containing the full
8690 contents of the statement program header, including the
8691 include directory and file name tables.
8692 (read_file_scope): If we have line number info, instead of just
8693 calling dwarf_decode_lines to do all the work, call
8694 dwarf_decode_line_header first to get a `struct line_header'
8695 containing the data in the statement program header, and then
8696 pass that to dwarf_decode_lines, which will pick up where that
8697 left off. Be sure to clean up the `struct line_header' object.
8698 (dwarf_decode_line_header, free_line_header, add_include_dir,
8699 add_file_name): New functions.
8700 (dwarf_decode_lines): Move all the code to read the statement
8701 program header into dwarf_decode_line_header. Take the line
8702 header it built as the first argument, instead of the offset to
8703 the compilation unit's line number info. Use the new `struct
8704 line_header' type instead of the old structures. No need to do
8705 cleanups here now, since we don't allocate anything.
8706 (dwarf2_statement_list_fits_in_line_number_section,
8707 dwarf2_line_header_too_long): New complaints.
8708
ac3aafc7
EZ
87092002-05-06 Elena Zannoni <ezannoni@redhat.com>
8710
8711 * gdbtypes.c (init_vector_type): New function.
8712 (build_builtin_type_vec128): Simplify the representation of SIMD
8713 registers.
8714 (build_gdbtypes): Initialize new builtin vector types.
8715 (_initialize_gdbtypes): Register new vector types with gdbarch.
8716 (builtin_type_v4_float, builtin_type_v4_int32,
8717 builtin_type_v8_int16, builtin_type_v16_int8,
8718 builtin_type_v2_int32, builtin_type_v4_int16,
8719 builtin_type_v8_int8): New (renamed) SIMD types.
8720
13e49980
MK
87212002-05-06 Mark Kettenis <kettenis@gnu.org>
8722
8723 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8724 (i387_fill_fxsave): Likewise.
8725
997b20b8
AO
87262002-05-05 Alexandre Oliva <aoliva@redhat.com>
8727
8728 * alpha-tdep.c (alpha_extract_return_value): Don't use
8729 non-constant array size in prototype.
8730
535c96ce
AC
87312002-05-04 Andrew Cagney <ac131313@redhat.com>
8732
8733 From Brian Taylor <briant at model dot com>:
8734 * ui-out.c (ui_out_field_core_addr): Use the function
8735 longest_local_hex_string_custom'to format addresses > 32 bits
8736 wide.
8737
8738 * ui-out.c (ui_out_field_core_addr): Update comment.
8739
bedfa57b
AC
87402002-05-04 Andrew Cagney <ac131313@redhat.com>
8741
8742 * stack.c (select_and_print_frame): Make static. Delete the
8743 parameter `level'.
8744 (func_command): Update call.
8745 (select_frame_command): Delete code computing the frame level.
8746 * frame.h (select_and_print_frame): Delete declaration.
8747
f621c63e
AC
87482002-05-04 Andrew Cagney <ac131313@redhat.com>
8749
8750 * sparc-tdep.c (sparc_get_saved_register): Comment why
8751 get_prev_frame call is safe.
8752
0f7d239c
AC
87532002-05-04 Andrew Cagney <ac131313@redhat.com>
8754
8755 * frame.h (select_frame): Delete level parameter.
8756 * stack.c (select_frame): Update. Use frame_relative_level to
8757 obtain the frame's level.
8758 (select_and_print_frame): Update call.
8759 (select_frame_command): Ditto.
8760 (up_silently_base): Ditto.
8761 (down_silently_base): Ditto.
8762 * ocd.c (ocd_start_remote): Ditto.
8763 * remote-rdp.c (remote_rdp_open): Ditto.
8764 * remote-mips.c (mips_initialize): Ditto.
8765 (common_open): Ditto.
8766 * remote-e7000.c (e7000_start_remote): Ditto.
8767 * m3-nat.c (select_thread): Ditto.
8768 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8769 (child_get_current_exception_event): Ditto.
8770 * varobj.c (varobj_create): Ditto.
8771 (varobj_update): Ditto.
8772 (c_value_of_root): Ditto.
8773 * tracepoint.c (finish_tfind_command): Ditto.
8774 * corelow.c (core_open): Ditto.
8775 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8776 * thread.c (info_threads_command): Ditto.
8777 (switch_to_thread): Ditto.
8778 * infrun.c (normal_stop): Ditto.
8779 (restore_selected_frame): Ditto.
8780 (restore_inferior_status): Ditto.
8781 * breakpoint.c (insert_breakpoints): Ditto.
8782 (watchpoint_check): Ditto.
8783 (bpstat_stop_status): Ditto.
8784 (do_enable_breakpoint): Ditto.
8785 * blockframe.c (flush_cached_frames): Ditto.
8786 (reinit_frame_cache): Ditto.
8787
71d6c7b1
AC
87882002-05-04 Andrew Cagney <ac131313@redhat.com>
8789
8790 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8791 maintainer.
8792
cda6c68a
JB
87932002-05-04 Jim Blandy <jimb@redhat.com>
8794
8795 * gdbtypes.c (replace_type): Doc fix.
8796
5c1c87f0
AC
87972002-05-04 Andrew Cagney <ac131313@redhat.com>
8798
8799 * valprint.c (strcat_longest): Delete commented out function.
8800 Update copyright.
8801
cd9bfe15
AC
88022002-05-04 Andrew Cagney <ac131313@redhat.com>
8803
8804 * MAINTAINERS: Mark a29k as deleted.
8805 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8806 Move new configurations to the top.
8807 * configure.tgt: Remove a29k.
8808 * config/a29k/tm-vx29k.h: Delete.
8809 * config/a29k/vx29k.mt: Delete.
8810 * config/a29k/tm-a29k.h: Delete.
8811 * config/a29k/a29k-udi.mt: Delete.
8812 * config/a29k/a29k.mt: Delete.
8813 * a29k-tdep.c: Delete.
8814 * remote-udi.c: Delete.
8815 * remote-mm.c: Delete.
8816 * remote-eb.c: Delete.
8817 * remote-adapt.c: Delete.
8818 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8819 * config/s390/s390x.mt: Ditto.
8820 * config/s390/s390.mt: Ditto.
8821 * config/sparc/sparclynx.mh: Ditto.
8822 * config/sparc/linux.mh: Ditto.
8823 * config/pa/hppaosf.mh: Ditto.
8824 * config/pa/hppabsd.mh: Ditto.
8825 * config/ns32k/nbsd.mt: Ditto.
8826 * config/mips/vr5000.mt: Ditto.
8827 * config/m68k/sun3os4.mh: Ditto.
8828 * config/m68k/nbsd.mt: Ditto.
8829 * config/m68k/m68klynx.mh: Ditto.
8830 * config/m32r/m32r.mt: Ditto.
8831 * config/i386/x86-64linux.mt: Ditto.
8832 * config/i386/nbsdelf.mt: Ditto.
8833 * config/i386/nbsd.mt: Ditto.
8834 * config/i386/i386lynx.mh: Ditto.
8835
bf0c5130
AC
88362002-05-04 Andrew Cagney <ac131313@redhat.com>
8837
8838 * target.c (debug_print_register): New function. Handle oversize
8839 registers.
8840 (debug_to_fetch_registers): Call.
8841 (debug_to_store_registers): Call.
8842
2ae1c2d2
JB
88432002-05-03 Jim Blandy <jimb@redhat.com>
8844
13a393b0
JB
8845 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8846 (read_type): Doc fix.
8847 * gdbtypes.c (replace_type): Doc fix.
8848
2ae1c2d2
JB
8849 * stabsread.c (multiply_defined_struct): New complaint.
8850 (read_struct_type): If the type we were passed isn't empty, or
8851 incomplete, don't read the new struct type into it; complain,
8852 and return the original type unchanged. Take a new `type_code'
8853 argument, which is the type code for the new type.
8854 (read_type): Rather than storing the type's type code here, pass
8855 it as an argument to read_struct_type, and let that take care of
8856 storing it. That way, we don't overwrite the original type code,
8857 so read_struct_type can use it to decide whether we're overwriting
8858 something we shouldn't.
8859 (complain_about_struct_wipeout): New function.
8860
8de9bdc4
AC
88612002-05-03 Andrew Cagney <ac131313@redhat.com>
8862
8863 * gdbarch.sh: Assert that gdbarch is non-NULL.
8864 * gdbarch.c: Regenerate.
8865
f773fdbb
JM
88662002-05-03 Jason Merrill <jason@redhat.com>
8867
8868 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8869 and return NULL.
8870
0e04a514
ML
88712002-05-03 Michal Ludvig <mludvig@suse.cz>
8872
8873 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8874 (x86_64_dwarf2gdb_regno_map_length),
8875 (x86_64_dwarf2_reg_to_regnum): Added.
8876 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8877 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8878 (_initialize_x86_64_tdep): Synced with the change above.
8879 (x86_64_skip_prologue): Reformulated message.
8880
065432a8
PM
88812002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8882
8883 * f-exp.y: Also use new prev_lexptr variable
8884 to improve error reporting. Based on Michael Snyder
8885 2002-04-24 dated patch to c-exp.y.
8886 * jv-exp.y: Likewise.
8887 * m2-exp.y: Likewise.
8888
a3162708
EZ
88892002-05-02 Elena Zannoni <ezannoni@redhat.com>
8890
8891 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8892 we are dealing with vectors.
8893
03620c38
PM
88942002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8895
8896 * config/m68k/tm-nbsd.h: Obvious fix,
8897 correct machine name.
8898
6604db2e
PM
88992002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8900
8901 * p-typeprint.c (pascal_type_print_base): Add support
8902 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8903
0906b739
PM
89042002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8905
8906 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8907 for fondamental pascal 'char' type.
8908
e2625b33
PM
89092002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8910
8911 * p-lang.h (is_pascal_string_type): Declaration changed,
8912 new sixth argument of type char ** added.
361d1df0 8913 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
8914 changed. Args length_pos, length_size, string_pos, char_size
8915 can now be NULL. New argument arrayname set to the field
8916 name of the char array. Return value set to char array
8917 field index plus one.
361d1df0 8918 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
8919 is_pascal_string_type function.
8920
cf17c188
AC
89212002-05-02 Andrew Cagney <cagney@redhat.com>
8922
8923 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8924 <cagney@redhat.com> change.
8925 * gdbarch.c: Regenerate.
8926
52bca491
AC
89272002-05-02 Andrew Cagney <cagney@redhat.com>
8928
8929 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8930 before probing for a new one. Detect errorenous gdbarch_init
8931 functions.
8932 * gdbarch.c: Regenerate.
8933
d5e72505
AC
89342002-05-01 Andrew Cagney <cagney@redhat.com>
8935
8936 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8937 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8938 * config/v850/tm-v850.h: Ditto. Update copyright.
8939
af566d9f
AC
89402002-04-30 Andrew Cagney <ac131313@redhat.com>
8941
8942 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8943 current_gdbarch.
8944
880d85fa
MS
89452002-04-30 Michael Snyder <msnyder@redhat.com>
8946
94c30b78
MS
8947 * arm-tdep.c: Whitespace clean-ups.
8948 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
8949 should have been removed as part of 4/24 change.
8950
6f5987a6
KB
89512002-04-30 Kevin Buettner <kevinb@redhat.com>
8952
8953 * rs6000-tdep.c: Added comment describing how fpscr register
8954 numbers were chosen.
8955
1a113c93
MS
89562002-04-30 Michael Snyder <msnyder@redhat.com>
8957
8958 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8959
9a6f53fe
EZ
89602002-04-29 Elena Zannoni <ezannoni@redhat.com>
8961
8962 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8963 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8964 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8965
11ed25ac
KB
89662002-04-29 Kevin Buettner <kevinb@redhat.com>
8967
8968 From Louis Hamilton <hamilton@redhat.com>:
8969 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8970 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8971 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8972 not bfd-private xcoff data, to determine wordsize.
8973 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8974
ae232405
AC
89752002-04-29 Andrew Cagney <ac131313@redhat.com>
8976
8977 GDB 5.2 released from 5.2 branch.
8978
91fd20f7
ML
89792002-04-29 Michal Ludvig <mludvig@suse.cz>
8980
8981 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8982 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8983 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 8984
2dc5091b
EZ
89852002-04-29 Elena Zannoni <ezannoni@redhat.com>
8986
8987 * rs6000-tdep.c (rs6000_extract_return_value,
8988 rs6000_store_return_value): Handle returning vectors.
8989 (rs6000_gdbarch_init): Use
8990 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8991 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8992 New function.
8993 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8994 vectors.
8995 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8996 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 8997
2b9848d8
PM
89982002-04-24 Pierre Muller <ics.u-strasbg.fr>
8999
9000 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9001 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9002 with fprintf_unfiltered (gdb_stderr,...).
9003
f8d17dc5
PM
90042002-04-24 Pierre Muller <ics.u-strasbg.fr>
9005
9006 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9007 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9008 Replace fprintf (stderr,...
9009 with fprintf_unfiltered (gdb_stderr,....
9010 * remote-es.c: Likewise.
9011 * remote-os9k.c: Likewise.
9012 * remote-st.c: Likewise.
9013
2f2f1ad1
AS
90142002-04-28 Andreas Schwab <schwab@suse.de>
9015
9016 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9017 linux-proc.o and gcore.o.
9018
b6779aa2
AC
90192002-04-26 Michal Ludvig <mludvig@suse.cz>
9020
9021 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9022 code without frame pointers.
9023
7e57f5f4
AC
90242002-04-26 Andrew Cagney <ac131313@redhat.com>
9025
9026 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9027 ON_STACK is needed.
9028
2ceb85d0
BE
90292002-04-26 Ben Elliston <bje@redhat.com>
9030
9031 * target.c (do_xfer_memory): Correct reference to the new option
9032 "trust-readonly-sections".
9033
f5f8a009
EZ
90342002-04-26 Elena Zannoni <ezannoni@redhat.com>
9035
9036 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9037 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9038 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9039 vectors.
9040 (read_array_type): Record the fact that this array type is really a
9041 vector (i.e. are passed in by value).
9042
5868c862
JT
90432002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9044
9045 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9046 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9047 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9048 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9049 * alpha-linux-tdep.c: Include frame.h.
9050 (alpha_linux_sigcontext_addr): New function.
9051 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9052 alpha_linux_sigcontext_addr.
9053 * alpha-osf1-tdep.c: Include gdbcore.h.
9054 (alpha_osf1_sigcontext_addr): New function.
9055 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9056 alpha_osf1_sigcontext_addr.
9057 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9058 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9059
bfb01f37
AC
90602002-04-26 Andrew Cagney <ac131313@redhat.com>
9061
361d1df0 9062 * stack.c (selected_frame_level):
bfb01f37
AC
9063 (select_frame): Do not set selected_frame_level.
9064 * frame.h (selected_frame_level): Delete declaration.
9065
15813d3f
AC
90662002-04-26 Andrew Cagney <ac131313@redhat.com>
9067
9068 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9069 convert_from_func_ptr-addr when AIX / PowerOpen.
9070
6096c27a
AC
90712002-04-25 Andrew Cagney <ac131313@redhat.com>
9072
9073 * valops.c (hand_function_call): Call
9074 generic_save_call_dummy_addr.
9075 * frame.h (generic_save_call_dummy_addr): Declare.
9076 * blockframe.c (struct dummy_frame): Add fields call_lo and
9077 call_hi.
9078 (generic_find_dummy_frame): Check for PC in range call_lo to
9079 call_hi instead of entry_point_address.
9080 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9081 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9082 (generic_save_call_dummy_addr): New function.
9083
f510d44e
DM
90842002-04-24 David S. Miller <davem@redhat.com>
9085
9086 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9087 sparc_skip_prologue.
9088 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9089 information to find prologue when possible.
9090 (sparc_prologue_frameless_p): Call examine_prologue directly.
9091 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9092 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9093 second argument.
9094 (SKIP_PROLOGUE): Likewise.
9095
15d72a92
JT
90962002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9097
9098 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9099 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9100 indicate that the condition it was testing is always true.
9101 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9102 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9103 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9104
accc6d1f
JT
91052002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9106
9107 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9108 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9109 tdep->jb_pc and tdep->jb_elt_size.
9110 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9111 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9112 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9113 * alpha-nat.c (get_longjmp_target): Remove.
9114 (JB_ELEMENT_SIZE): Ditto.
9115 (JB_PC): Ditto.
9116 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9117 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9118 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9119 to alpha_get_longjmp_target.
9120 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9121 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9122 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9123
1bfdc549
AC
91242002-04-25 Andrew Cagney <ac131313@redhat.com>
9125
9126 * README: Update to GDB 5.2.
9127
1bd316f0
AC
91282002-04-25 Andrew Cagney <ac131313@redhat.com>
9129
9130 * gdbarch.sh (LC_ALL): Set to `c'.
9131
2e5ff58c
TR
91322002-04-25 Theodore A. Roth <troth@verinet.com>
9133
9134 * avr-tdep.c: Ran through gdb_indent.sh.
9135
e33ce519
TR
91362002-04-25 Theodore A. Roth <troth@verinet.com>
9137
9138 * MAINTAINERS: Add myself as AVR maintainer.
9139 * NEWS: Note new target avr.
9140
8818c391
TR
91412002-04-25 Theodore A. Roth <troth@verinet.com>
9142
9143 * Makefile.in: Add support for AVR target.
9144 * configure.tgt: Add support for AVR target.
9145 * avr-tdep.c: New file
9146 * config/avr/avr.mt: New file.
9147
79509c2d
TR
91482002-04-25 Theodore A. Roth <troth@verinet.com>
9149
9150 * MAINTAINERS: Add myself to write-after-approval.
9151
dac8068e
PM
91522002-04-24 Pierre Muller <ics.u-strasbg.fr>
9153
9154 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9155 with fprintf_unfiltered (gdb_stderr,....
9156
25bf3106
PM
91572002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9158
9159 Fix PR gdb/508.
9160 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9161
24467a86
PM
91622002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9163
9164 * p-exp.y: Also use new prev_lexptr variable
9165 to improve error reporting. Based on Michael Snyder
9166 2002-04-24 dated patch to c-exp.y.
9167
95b80706
JT
91682002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9169
9170 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9171 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9172 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9173 to 0.
9174 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9175 and struct value.
9176 (FUNCTION_START_OFFSET): Remove.
9177 (BREAKPOINT): Ditto.
9178
e90cc612
JT
91792002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9180
9181 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9182 * NEWS: Ditto.
9183
6c72f9f9
JT
91842002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9185
9186 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9187 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9188 alpha_linux_pc_in_sigtramp.
9189 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9190 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9191 alpha_osf1_pc_in_sigtramp.
9192 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9193 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9194 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9195 alphafbsd_pc_in_sigtramp.
9196 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9197 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9198 alphanbsd_pc_in_sigtramp.
9199 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9200 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9201
5e4f3379
JT
92022002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9203
9204 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9205
da8ca43d
JT
92062002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9207
9208 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9209 alphanbsd-tdep.c.
9210 (alphanbsd-nat.o): New dependency list.
9211 (alphanbsd-tdep.o): Ditto.
9212 * NEWS: Note new native NetBSD/alpha configuration.
9213 * alphanbsd-nat.c: New file.
9214 * alphanbsd-tdep.c: Ditto.
9215 * configure.host (alpha*-*-netbsd*): New host.
9216 * configure.tgt (alpha*-*-netbsd*): New target.
9217 * config/alpha/nbsd.mh: New file.
9218 * config/alpha/nbsd.mt: Ditto.
9219 * config/alpha/nm-nbsd.h: Ditto.
9220 * config/alpha/tm-nbsd.h: Ditto.
9221
36a6271d
JT
92222002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9223
9224 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9225 (alpha-osf1-tdep.o): New dependency list.
9226 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9227 and skip_sigtramp_frame members.
9228 * alpha-linux-tdep.c: Include gdbcore.h.
9229 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9230 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9231 * alpha-osf1-tdep.c: New file.
9232 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9233 alpha-osf1-dep.c.
9234 (alpha_frame_past_sigtramp_frame): New function.
9235 (alpha_dynamic_sigtramp_offset): Ditto.
9236 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9237 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9238 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9239 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9240 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9241 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9242 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9243 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9244 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9245 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9246 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9247 to find_solib_trampoline_target.
9248 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9249 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9250 (SKIP_TRAMPOLINE_CODE): Remove.
9251 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9252 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9253 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9254 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9255 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9256 (PROC_SIGTRAMP_MAGIC): Ditto.
9257 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9258 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9259 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9260 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9261 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9262
2f4bc57b
JT
92632002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9264
9265 * NEWS: Note that Alpha targets are now multi-arch.
9266
665132f9
MS
92672002-04-24 Michael Snyder <msnyder@redhat.com>
9268
9269 * parser-defs.h (prev_lexptr): New external variable.
9270 * parse.c (parse_exp_1): Set prev_lexptr to null before
9271 calling the language-specific parser.
9272 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9273 (yyerror): Use prev_lexptr in error reporting.
9274
32872fa7
DJ
92752002-04-24 Daniel Jacobowitz <drow@mvista.com>
9276
9277 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9278 * gregset.h: If FILL_FPXREGSET is defined, provide
9279 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9280 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9281 is defined, call fill_fpxregset.
9282
57e76fac
MS
92832002-04-24 Roland McGrath <roland@frob.com>
9284
9285 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9286 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9287 (supply_gregset, supply_fpregset): New functions.
9288
9289 * gnu-nat.c (gnu_find_memory_regions): New function.
9290 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9291 (gnu_xfer_memory): Add a cast.
9292
f43845b3
MS
92932002-04-24 Michael Snyder <msnyder@redhat.com>
9294
361d1df0 9295 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9296 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9297 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9298 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9299 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9300 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9301
a0abec03
AC
9302Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9303
9304 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9305 NUM_PSEUDO_REGS can be used.
9306
d7bd68ca
AC
93072002-04-24 Andrew Cagney <ac131313@redhat.com>
9308
9309 * arch-utils.h: Update copyright.
9310
9311 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9312 * gdbarch.h, gdbarch.c: Re-generate.
9313
9314 * inferior.h (IN_SIGTRAMP): Delete definition.
9315 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9316 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9317
9318 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9319 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9320 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9321 (find_proc_framesize): Ditto.
9322 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9323 (alpha_init_extra_frame_info): Ditto.
9324 * infrun.c (handle_inferior_event): Ditto.
9325 (handle_inferior_event): Ditto.
9326 (check_sigtramp2): Ditto.
9327 * blockframe.c (create_new_frame): Ditto.
9328 (get_prev_frame): Ditto.
9329 * ppc-linux-tdep.c: Update comments.
9330 * i386-linux-tdep.c: Update comments.
9331 * breakpoint.c (bpstat_what): Update comment.
9332
4867e41e
DM
93332002-04-24 David S. Miller <davem@redhat.com>
9334
21d83aa5
DM
9335 * i960-tdep.c (register_in_window_p): New function.
9336 (i960_find_saved_register): Use it instead of
9337 REGISTER_IN_WINDOW_P.
9338 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9339
4867e41e
DM
9340 * symtab.h (find_stab_function_addr): Kill extern.
9341 * minsyms.c (find_stab_function_addr): Remove from here...
9342 * dbxread.c: ... to here, and mark it static.
9343
69cdf6a2
DM
93442002-04-20 David S. Miller <davem@redhat.com>
9345
9346 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9347 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9348
5a595886
DM
93492002-04-21 David S. Miller <davem@redhat.com>
9350
9351 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9352 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9353 (vx_write_register): Likewise.
9354
1da1a192
JB
93552002-04-23 J. Brobecker <brobecker@gnat.com>
9356
9357 * source.c (is_regular_file): New function.
9358 (openp): Check wether file to open is a regular file
9359 to avoid opening directories.
9360
baa6f10b
JT
93612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9362
9363 * findvar.c (extract_signed_integer): Cast printf argument
9364 to suppress format warning.
9365 (extract_unsigned_integer): Likewise.
9366 * infcmd.c (registers_info): Likewise.
9367 * top.c (get_prompt_1): Likewise.
9368 * valops.c (value_assign): Likewise.
9369 * valprint.c (print_decimal): Likewise.
9370
b2c4da81
L
93712002-04-22 H.J. Lu (hjl@gnu.org)
9372
9373 * c-exp.y (typebase): Support
361d1df0 9374
b2c4da81
L
9375 [long|long long|short] [signed|unsigned] [int|]
9376
9377 and
9378
9379 signed [long|long long|short] int
9380
f267bd6a
JT
93812002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9382
9383 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9384 and vax-tdep.h.
9385 * vax-tdep.h: New file.
9386 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9387 Make several routines static.
9388 (vax_get_saved_register): New function.
9389 (vax_gdbarch_init): New function.
9390 (_initialize_vax_tdep): Register vax_gdbarch_init.
9391 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9392 Remove macros now under the control of gdbarch.
9393
da3c6d4a
MS
93942002-04-22 Michael Snyder <msnyder@redhat.com>
9395
11d3b27d
MS
9396 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9397 Some whitespace and coding standards tweaks.
da3c6d4a 9398
a33f7558
JT
93992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9400
9401 * vax-tdep.c: Include regcache.h.
9402 (vax_call_dummy_words): New.
9403 (sizeof_vax_call_dummy_words): New.
9404 (vax_fix_call_dummy): New function.
9405 (vax_saved_pc_after_call): Ditto.
9406 * config/vax/tm-vax.h: Don't include regcache.h.
9407 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9408 (CALL_DUMMY): Remove.
9409 (CALL_DUMMY_WORDS): Define.
9410 (SIZEOF_CALL_DUMMY_WORDS): Define.
9411 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9412
47a73475
MS
94132002-04-18 Michael Snyder <msnyder@redhat.com>
9414
9415 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9416
52efde73
JT
94172002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9418
9419 * vax-tdep.c (vax_frame_chain): New function.
9420 (vax_push_dummy_frame): Ditto.
9421 (vax_pop_frame): Ditto.
9422 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9423 (FRAMELESS_FUNCTION_INVOCATION): Use
9424 generic_frameless_function_invocation_not.
9425 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9426 (POP_FRAME): Use vax_pop_frame.
9427
ea74468c
JT
94282002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9429
9430 * vax-tdep.c (vax_store_struct_return): New function.
9431 (vax_extract_return_value): Ditto.
9432 (vax_store_return_value): Ditto.
9433 (vax_extract_struct_value_address): Ditto.
9434 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9435 vax_store_struct_return.
9436 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9437 (STORE_RETURN_VALUE): Use vax_store_return_value.
9438 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9439
5516aa92
JT
94402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9441
9442 * vax-tdep.c (vax_frame_saved_pc): New function.
9443 (vax_frame_args_address_correct): Ditto.
9444 (vax_frame_args_address): Ditto.
9445 (vax_frame_locals_address): Ditto.
9446 (vax_frame_num_args): Move code to be in proximity to
9447 other frame-related functions.
9448 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9449 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9450 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9451 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9452 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9453
36af0b35
L
94542002-04-22 H.J. Lu (hjl@gnu.org)
9455
9456 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9457 includedir.
9458
ab62c900
JT
94592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9460
9461 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9462 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9463 (FRAME_INIT_SAVED_REGS): New macro.
9464
7232b100
JT
94652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9466
9467 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9468
b70d2aee
JT
94692002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9470
9471 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9472 where needed.
9473 (fetch_osf_core_registers): Likewise.
9474 (supply_gregset): Likewise.
9475
a0e8a2d1 94762002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9477
a0e8a2d1
JB
9478 * symfile.h (get_section_index): Define.
9479 * symfile.c (get_section_index): New function.
9480 * mdebugread.c (SC_IS_SBSS): New macro.
9481 (SC_IS_BSS): Return true for the scBss storage class only, as
9482 the scSBss storage class refers to the .sbss section.
9483 (parse_partial_symbols): Discard the symbols which associated
9484 section does not exist.
9485 Make sure to use the .sbss section index for symbols which
9486 storage class is scBss, rather than using the .bss section index.
9487
51eb8b08
JT
94882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9489
9490 * vax-tdep.c: Update copyright years.
9491 (vax_register_name): New function.
9492 (vax_register_byte): Ditto.
9493 (vax_register_raw_size): Ditto.
9494 (vax_register_virtual_size): Ditto.
9495 (vax_register_virtual_type): Ditto.
9496 * config/vax/tm-vax.h: Update copyright years.
9497 (REGISTER_NAMES): Remove.
9498 (REGISTER_NAME): Define.
9499 (REGISTER_BYTE): Use vax_register_byte.
9500 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9501 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9502 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9503
6cc1c0a8
AC
95042002-04-21 Andrew Cagney <ac131313@redhat.com>
9505
9506 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9507 declaration
9508 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9509
9319a2fe
DM
95102002-04-21 David S. Miller <davem@redhat.com>
9511
9512 * arch-utils.c (generic_prologue_frameless_p): Kill
9513 SKIP_PROLOGUE_FRAMELESS_P code.
9514 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9515 references.
9516 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9517 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9518 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9519 references.
9520 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9521 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9522 (sparc_gdbarch_init): Pass it to
9523 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9524
e9ed6d01
JT
95252002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9526
9527 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9528 (alphabsd-nat.o): New dependency list.
9529
36012033
JT
95302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9531
9532 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9533 alphafbsd-tdep.c.
9534 (alpha-linux-tdep.o): New dependency list.
9535 (alphafbsd-tdep.o): Likewise.
9536
3379287a
JT
95372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9538
9539 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9540 to here...
9541 * alpha-tdep.c: ...from here.
9542 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9543
4bcbd6cb
JT
95442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9545
9546 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9547 prototype from here...
9548 * alpha-tdep.h: ...to here.
9549
b31da25e
AC
95502002-04-21 Andrew Cagney <ac131313@redhat.com>
9551
9552 * frame.h (selected_frame_level): Document as deprecated.
9553 (frame_relative_level): Declare.
9554 * stack.c (frame_relative_level): New function.
9555 (selected_frame_level): Document as deprecated.
9556 (select_frame): Do not set the selected_frame_level.
9557
9558 * stack.c (frame_info, record_selected_frame): Update.
9559 (frame_command, current_frame_command): Update.
9560 (up_silently_base, up_command, down_silently_base): Update.
9561 (down_command): Update.
9562 * inflow.c (kill_command): Update.
9563 * tracepoint.c (finish_tfind_command): Update.
9564 * corelow.c (core_open): Update.
9565 * thread.c (info_threads_command): Update.
9566 (do_captured_thread_select): Update.
9567 * infcmd.c (finish_command): Update.
9568 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9569
9c1d6fe5
JT
95702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9571
9572 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9573
ab89facf
AC
95742002-04-21 Andrew Cagney <ac131313@redhat.com>
9575
9576 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9577 type const.
9578
82a4efa1
JT
95792002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9580
9581 * alphafbsd-tdep.c: Update copyright years. Include
9582 alpha-tdep.h.
9583 (alphafbsd_use_struct_convention): Make static.
9584 (alphafbsd_init_abi): New function.
9585 (_initialize_alphafbsd_tdep): New function.
9586 * config/alpha/tm-fbsd.h: Update copyright years.
9587 (USE_STRUCT_CONVENTION): Remove.
9588
44dffaac
JT
95892002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9590
9591 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9592 an Alpha ABI variant.
9593 (alpha_abi_handler_list): Declare.
9594 (alpha_gdbarch_register_os_abi): New function.
9595 (alpha_gdbarch_init): Give registered ABI variant handlers a
9596 chance to tweak the gdbarch once we have set up defaults.
9597 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9598
65585be4
JT
95992002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9600
9601 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9602 to standard_coerce_float_to_double.
9603 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9604
d9b023cc
JT
96052002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9606
9607 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9608 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9609 from gdbarch_tdep rather than a constant.
9610 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9611 the default text address for all Alpha Unix ABIs.
9612 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9613 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9614
dc129d82
JT
96152002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9616
9617 * alpha-tdep.h: New file. Includes several Alpha target constants
9618 taken from...
9619 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9620 let gdbarch deal with.
9621 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9622 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9623 to dependency list.
9624 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9625 Alpha target register names.
9626 * alphabsd-nat.c: Likewise.
9627 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9628 Alpha target register names. Make serveral routines static.
9629 (alpha_get_saved_register): New function.
9630 (alpha_abi_names): New.
9631 (process_note_abi_tag_sections): New function.
9632 (get_elfosabi): New function.
9633 (alpha_gdbarch_init): New function.
9634 (alpha_dump_tdep): New function.
9635 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9636
d49d1e0a
AC
96372002-04-21 Andrew Cagney <ac131313@redhat.com>
9638
9639 * frame.c (find_saved_register): Delete #ifdef
9640 HAVE_REGISTER_WINDOWS code.
9641 * config/sparc/tm-sparc.h: Update comments.
9642 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9643
92e8c9ed
AC
96442002-04-21 Andrew Cagney <ac131313@redhat.com>
9645
9646 * i960-tdep.c (i960_find_saved_register): New function.
9647 (i960_get_saved_register): New function.
9648 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9649 (i960_get_saved_register): Declare.
9650 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9651
e1925118
DM
96522002-04-20 David S. Miller <davem@redhat.com>
9653
9654 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9655
29673b29
AC
96562002-04-20 Andrew Cagney <ac131313@redhat.com>
9657
9658 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9659 instead of NUM_PSEUDO_REGS.
9660
6c86dcd5
DM
96612002-04-20 David S. Miller <davem@redhat.com>
9662
9663 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9664 GDB_MULTI_ARCH_PARTIAL
9665 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9666 define, let tm-sp64.h do it.
9667
aa40ec90
JT
96682002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9669
9670 * frame.c (find_saved_register): Avoid a NULL pointer
9671 dereference and actually walk the frame list.
9672
0f79675b
AC
96732002-04-20 Andrew Cagney <ac131313@redhat.com>
9674
9675 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9676 sorted in most most-recent-used order. Document.
9677 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9678
f91305dd 96792002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9680
9681 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9682 instead of ->prev.
9683 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9684 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9685 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9686 instead of ->prev.
9687
73d322b1
EZ
96882002-04-19 Elena Zannoni <ezannoni@redhat.com>
9689
9690 Fix PR gdb/471.
9691 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9692 (build_builtin_type_vec128): Ditto.
9693 (append_composite_type_field): Fix calculation of type length in
9694 union case.
9695
ccd9a834
EZ
96962002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9697
9698 * config/djgpp/README: Update.
9699
9700 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9701 compiler warnings.
9702
a57f9e49
JT
97032002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9704
9705 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9706 (alpha_setup_arbitrary_frame): ...to this.
9707 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9708 for alpha_setup_arbitrary_frame.
9709
f4f9705a
AC
97102002-04-18 Andrew Cagney <cagney@redhat.com>
9711
9712 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9713 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9714
f4f9705a
AC
9715 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9716 * target.h (memory_breakpoint_from_pc): Update declaration.
9717 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9718
9719 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9720 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9721 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9722 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9723 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9724 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9725 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9726 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9727 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9728 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9729 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9730 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9731
9732 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9733 const pointer.
9734 * monitor.c (monitor_insert_breakpoint): Ditto.
9735 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9736
9737 * config/mcore/tm-mcore.h: Update copyright.
9738 * mem-break.c: Ditto.
9739 * xstormy16-tdep.c: Ditto.
9740
29f319b8
PM
97412002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9742
9743 * p-exp.y: Add precedence rule for '^' token.
9744 This removes the shift/reduce conflicts.
9745 Remove the comment concerning these shift/reduce conflicts.
9746
ebeac11a
EZ
97472002-04-18 Elena Zannoni <ezannoni@redhat.com>
9748
9749 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9750 (registers_powerpc_nofp): New register set for processors
9751 without floating point unit.
9752
27c31547
DM
97532002-04-18 David S. Miller <davem@redhat.com>
9754
9755 * MAINTAINERS: Add myself to write-after-approval.
9756
47a73475
MS
97572002-04-17 Michael Snyder <msnyder@redhat.com>
9758
9759 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9760
953836b2
AC
97612002-04-17 Andrew Cagney <ac131313@redhat.com>
9762
9763 * rs6000-tdep.c (frame_initial_stack_address): Use
9764 frame_register_read to read the alloca_reg.
9765
8b0d4340
AC
97662002-04-17 Andrew Cagney <ac131313@redhat.com>
9767
9768 * frame.c (find_saved_register): Find saved registers in the next
9769 not prev frame.
9770 Fix PR gdb/365.
9771
d8864532
AC
97722002-04-17 Andrew Cagney <ac131313@redhat.com>
9773
9774 * gdbarch.sh (LANG): Set to ``c''.
9775
36cc83a3 97762002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9777
36cc83a3 9778 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9779
2f4150cc 97802002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9781
9782 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9783 Update copyright.
9784
628703c6 9785 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9786 Also fix PR gdb/391.
361d1df0 9787
56157b4a
AC
97882002-04-14 Andrew Cagney <ac131313@redhat.com>
9789
9790 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9791 * aclocal.m4, configure: Re-generate.
9792 Fix PR gdb/391.
361d1df0 9793
6d1e3329
EZ
97942002-04-14 Elena Zannoni <ezannoni@redhat.com>
9795
9796 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9797 instead of tm_print_insn.
9798
cb06fa07
EZ
97992002-04-14 Elena Zannoni <ezannoni@redhat.com>
9800
9801 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9802
f208ba17
AC
98032002-04-14 Andrew Cagney <ac131313@redhat.com>
9804
9805 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9806 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9807 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9808
20f01a46
DH
98092002-04-12 Don Howard <dhoward@redhat.com>
9810
9811 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9812 max_user_call_depth.
9813 (init_cmd_lists): Initialize the new value;
9814 * cli/cli-script.c (execute_user_command): Limit the call depth of
9815 user defined commands. This avoids a core-dump when user commands
9816 are infinitly recursive.
9817
a88376a3
KB
98182002-04-12 Kevin Buettner <kevinb@redhat.com>
9819
9820 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9821 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9822 from tdep struct instead of DEFAULT_LR_SAVE.
9823 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9824 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9825 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9826
f2172603
MS
98272002-04-12 Michael Snyder <msnyder@redhat.com>
9828
694f61fb 9829 * Remote.c: Spelling fix.
20fe79c8
MS
9830 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9831 If no symbol found for "sbrk", try "_sbrk".
9832 (make_output_phdrs): Use bfd_section_name.
9833 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9834 * eval.c: Indentation fix-ups.
169a7369
MS
9835 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9836 in case it gets applied to an address that is already
9837 in the instruction space.
de74f71f
MS
9838 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9839 * symfile.c: Fix indentation, long lines.
f2172603
MS
9840 * source.c: White space fix-up.
9841
cda5a58a
AC
98422002-04-12 Andrew Cagney <cagney@redhat.com>
9843
9844 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9845 * frame.c (frame_register_read): New function. Return non-zero on
9846 success.
9847 (read_relative_register_raw_bytes_for_frame): Delete.
9848 (read_relative_register_raw_bytes): Delete.
9849 * frame.h (frame_register_read): Declare.
9850 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9851 * sh-tdep.c: Ditto.
9852 * infcmd.c (do_registers_info): Ditto.
9853 * hppa-tdep.c: Ditto.
9854 * rs6000-tdep.c: Ditto.
9855 * h8500-tdep.c: Ditto.
9856 * mips-tdep.c: Ditto.
9857 * h8300-tdep.c: Ditto.
9858 * z8k-tdep.c: Ditto.
9859
2ea5f656
KB
98602002-04-12 Kevin Buettner <kevinb@redhat.com>
9861
9862 From Jimi X <jimix@watson.ibm.com>:
9863 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9864 64-bit SysV ABI.
9865
27b15785
KB
98662002-04-12 Kevin Buettner <kevinb@redhat.com>
9867
9868 From Jimi X <jimix@watson.ibm.com>:
9869 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9870 bfd info.
9871
5d57ee30
KB
98722002-04-12 Kevin Buettner <kevinb@redhat.com>
9873
9874 From Jimi X <jimix@watson.ibm.com>:
9875 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9876 register sets for these processor variants.
9877
bc1e36ca
DJ
98782002-04-11 Daniel Jacobowitz <drow@mvista.com>
9879
bc1e36ca
DJ
9880 * regformats/reg-ppc.dat: Support FPSCR.
9881
e3f36dbd
KB
98822002-04-11 Kevin Buettner <kevinb@redhat.com>
9883
9884 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9885 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9886 Add fpscr as an invalid/unfetchable register.
9887 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9888 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9889 (fill_fpregset): Add support for register fpscr.
9890 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9891 (fill_gregset): Account for the fact that register ``mq'' might
9892 not exist.
9893 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9894 (registers_power): Add fpscr to register set at slot 71.
9895 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9896 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9897
943c9c25
MS
98982002-04-11 Michael Snyder <msnyder@redhat.com>
9899
9900 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9901 * configure: Regenerate.
9902 * config.in: Regenerate.
9903 * acconfig.h: Add define for _SYSCALL32.
9904 * core-sol2.c: Remove #define _SYSCALL32.
9905 * solib-legacy.c: Remove #define _SYSCALL32.
9906
d8c0a2e7
AC
99072002-04-10 Andrew Cagney <ac131313@redhat.com>
9908
9909 * stack.c (select_frame): Cleanup internal error message, do not
9910 use %p.
9911
7cc19214
AC
99122002-04-10 Andrew Cagney <ac131313@redhat.com>
9913
9914 * stack.c (select_frame): Check that selected_frame and the
9915 specified level are as expected.
9916 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9917 Update copyright.
9918 * frame.h (struct frame_info): Add field `level'. Update
9919 copyright.
9920 Work-in-progress PR gdb/464.
9921
67a2b77e
AC
99222002-04-10 Andrew Cagney <ac131313@redhat.com>
9923
9924 * maint.c (maint_print_section_info): Rename print_section_info.
9925 (print_bfd_section_info, print_objfile_section_info): Update.
9926 * inferior.h (struct gdbarch): Add opaque declaration.
9927 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9928 * gdbarch.h: Regenerate.
9929
8cfda98c
ML
99302002-04-10 Michal Ludvig <mludvig@suse.cz>
9931
9932 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9933 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9934 (kernel_u_size): Added.
9935 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9936 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9937
ca439ad2 99382002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 9939
ca439ad2
JI
9940 * valarith.c (find_size_for_pointer_math): New function, either returns
9941 the size for a pointer's target, returns 1 for void *, or errors for
9942 incomplete types.
9943 (value_add, value_sub): use find_size_for_pointer_math.
9944
2f2893d9
DJ
99452002-04-09 Daniel Jacobowitz <drow@mvista.com>
9946
9947 * linux-low.c (linux_look_up_symbols): New hook.
9948 (linux_target_ops): Add linux_look_up_symbols.
9949 * remote-utils.c (decode_address): New function.
9950 (look_up_one_symbol): New function.
9951 * server.c (handle_query): Call target look_up_symbols hook.
9952 * server.h (look_up_one_symbol): Add prototype.
9953 * target.h (struct target_ops): Add look_up_symbols hook.
9954
96cb11df
AC
99552002-04-09 Andrew Cagney <ac131313@redhat.com>
9956
9957 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9958 override FP_REGNUM with frame->fp. Update copyright.
9959 * parse.c (num_std_regs, std_regs): Delete.
9960 (target_map_name_to_register): Do not search std_regs. Update
9961 function description.
9962 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9963 declarations. Update copyright.
9964 Fix PR gdb/251.
361d1df0 9965
97658e92
DJ
99662002-04-09 Daniel Jacobowitz <drow@mvista.com>
9967
9968 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9969 after the last symbol in a block.
9970
6044e3eb
PM
99712002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9972
9973 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9974 is non zero as a found symbol.
9975
0406ec40
AC
99762002-04-08 Andrew Cagney <ac131313@redhat.com>
9977
9978 * findvar.c: Include "builtin-regs.h".
9979 (value_of_register): Call value_of_builtin_reg when applicable.
9980 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9981 (target_map_name_to_register): Call
9982 builtin_reg_map_name_to_regnum.
9983 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9984 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9985 (builtin_regs_h): Define.
9986 (builtin-regs.o): New target.
9987 (findvar.o): Add $(builtin_regs_h).
9988 * builtin-regs.c, builtin-regs.h: New files.
9989 * std-regs.c: New file.
9990 Partial fix for PR gdb/251.
9991
56a6dfb9
KB
99922002-04-08 Kevin Buettner <kevinb@redhat.com>
9993
9994 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9995 it's no longer required.
9996
3a808432
AC
99972002-04-08 Andrew Cagney <ac131313@redhat.com>
9998
9999 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10000
7c40d541
KB
100012002-04-08 Kevin Buettner <kevinb@redhat.com>
10002
10003 From Jimi X <jimix@watson.ibm.com>:
10004 * rs6000-tdep.c (rs6000_software_single_step): Use
10005 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10006 and size. Use target_insert_breakpoint() and
10007 target_remove_breakpoint() to insert and remove breakpoints
10008 instead of explicit memory reads and writes.
10009
cc9836a8
KB
100102002-04-08 Kevin Buettner <kevinb@redhat.com>
10011
10012 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10013 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10014 ELF_OBJECT_FORMAT ifdef.
10015
7495d1dc
KB
100162002-04-08 Kevin Buettner <kevinb@redhat.com>
10017
10018 From Jimi X <jimix@watson.ibm.com>:
10019 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10020
4288e836
KB
100212002-04-08 Kevin Buettner <kevinb@redhat.com>
10022
10023 From Jimi X <jimix@watson.ibm.com>:
10024 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10025 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10026
a4e4e501
MK
100272002-04-07 Mark Kettenis <kettenis@gnu.org>
10028
10029 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10030 s/asprintf/xasprintf/.
10031 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10032
006defba
AC
100332002-04-07 Andrew Cagney <ac131313@redhat.com>
10034
10035 I believe Jeff Law denies responsability for this one:
10036 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10037 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10038 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10039 Work-around for PR gdb/366.
10040
7aa83cac
EZ
100412002-04-07 Elena Zannoni <ezannoni@redhat.com>
10042
10043 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10044 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10045 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10046
cf1fcca1
EZ
100472002-04-07 Elena Zannoni <ezannoni@redhat.com>
10048
10049 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10050 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10051 information.
10052
3f289e6f
AC
100532002-04-07 Andrew Cagney <ac131313@redhat.com>
10054
10055 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10056 maintainer.
10057
129188f6
AC
100582002-04-07 Andrew Cagney <ac131313@redhat.com>
10059
10060 * README (Reporting Bugs in GDB): Document the bug web page as the
10061 prefered way of submitting bugs.
10062 Fix PR gdb/402.
10063
1200cd6e
AC
100642002-04-06 Andrew Cagney <ac131313@redhat.com>
10065
10066 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10067 -1. Update comment.
10068 * gdbarch.h, gdbarch.c: Re-generate.
10069
2853c33c
AS
100702002-04-07 Andreas Schwab <schwab@suse.de>
10071
10072 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10073 buffer to regcache_collect.
10074
c2169756
AC
100752002-04-06 Andrew Cagney <ac131313@redhat.com>
10076
10077 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10078 * gdbarch.c, gdbarch.h: Re-generate.
10079
25f1b008
AC
100802002-04-06 Andrew Cagney <ac131313@redhat.com>
10081
10082 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10083 declaration. Fix -Werror.
10084
59263426
DJ
100852002-04-05 Daniel Jacobowitz <drow@mvista.com>
10086
10087 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10088 * gdbarch.c: Regenerate.
10089
f5db4da3
MS
100902002-04-05 Michael Snyder <msnyder@redhat.com>
10091
80f8a6eb
MS
10092 * breakpoint.c (clear_command): Rewrite middle section to
10093 combine two loops with identical control conditions.
10094 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10095 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10096
ad3dcc5c
L
100972002-04-05 H.J. Lu (hjl@gnu.org)
10098
10099 * solib-svr4.c (bkpt_names): Add "__start".
10100
f32e7a74
AC
101012002-04-04 Andrew Cagney <ac131313@redhat.com>
10102
10103 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10104 as test for 64 bit target.
10105
8227c0ff
AC
101062002-04-05 Andrew Cagney <ac131313@redhat.com>
10107
10108 * h8500-tdep.c (h8500_write_fp): Delete function.
10109 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10110 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10111 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10113 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10114 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10115 (s390_write_fp):
10116 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10117 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10118 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10119 (d10v_write_fp): Delete function.
10120 * inferior.h (write_fp, generic_target_write_fp): Delete
10121 declarations.
10122 * regcache.c (generic_target_write_fp): Delete function.
10123 (write_fp): Delete function.
10124 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10125 * gdbarch.h, gdbarch.c: Regenerate.
10126 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10127 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10128 (sparc64_write_fp): Delete declaration.
10129 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10130 (h8500_write_fp): Delete declaration.
10131
2757dd86
AC
101322002-04-04 Andrew Cagney <ac131313@redhat.com>
10133
10134 * sparc-tdep.c (sparc64_write_fp): Delete.
10135 (sparc_push_dummy_frame): Replace write_fp call with code to store
10136 the FP directly.
10137 (sparc_gdbarch_init): Do not initialize write_fp.
10138
c69255e1
KB
101392002-04-05 Kevin Buettner <kevinb@redhat.com>
10140
10141 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10142 clause.
10143
ae767bfb
JB
101442002-03-29 Jim Blandy <jimb@redhat.com>
10145
10146 * stack.c (get_selected_block): Add new argument `addr_in_block',
10147 used to return the exact code address we used to select the block,
10148 not just the block.
10149 * blockframe.c (get_frame_block, get_current_block): Same.
10150 * frame.h (get_frame_block, get_current_block,
10151 get_selected_block): Update declarations.
10152 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10153 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10154
84d2ac95
MS
101552002-04-05 Michael Snyder <msnyder@redhat.com>
10156
10157 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10158 warning message.
10159
596aa3bf
JB
101602002-04-05 J. Brobecker <brobecker@gnat.com>
10161
10162 * utils.c (xfullpath): New function.
10163 * defs.h (xfullpath): Add declaration.
10164 * source.c (openp): Use xfullpath in place of gdb_realpath to
10165 avoid resolving the basename part of filenames when the
10166 associated file is a symbolic link. This fixes a potential
10167 inconsistency between the filenames known to GDB and the
10168 filenames it prints in the annotations.
10169 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10170 to be able to match a filename with either the real filename, or
10171 the name of any symbolic link to this file.
10172 (lookup_partial_symtab): Ditto.
10173
c02f5703
MS
101742002-04-04 Michael Snyder <msnyder@redhat.com>
10175
10176 * breakpoint.c: Add support for hardware breakpoints in overlays.
10177 (overlay_events_enabled): New state variable.
10178 (insert_breakpoints): Use overlay_events_enabled to decide
10179 whether to attempt to set a breakpoint at the overlay load addr.
10180 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10181 (remove_breakpoint): Use overlay_events_enabled to decide
10182 whether breakpoints need to be removed from overlay load addr.
10183 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10184 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10185 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10186 disable_overlay_breakpoints): Update overlay_events_enabled.
10187
5fb290d7
DJ
101882002-04-04 Daniel Jacobowitz <drow@mvista.com>
10189
10190 * dwarf2read.c (struct function_range): New.
10191 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10192 (check_cu_functions): New.
10193 (read_file_scope): Initialize global function lists.
10194 Call dwarf_decode_line after processing children.
10195 (read_func_scope): Add to global function list.
10196 (dwarf_decode_lines): Call check_cu_functions everywhere
10197 record_line is called. Call record_line with a linenumber
10198 of 0 to mark sequence ends.
10199
7b3fabf0
ML
102002002-04-04 Michal Ludvig <mludvig@suse.cz>
10201
361d1df0 10202 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10203 change sync with glibc.
10204
bce58c09
JB
102052002-04-03 Jim Blandy <jimb@redhat.com>
10206
10207 * configure.in: Call AC_C_INLINE.
10208 * configure: Regenerated.
361d1df0 10209
2fccf04a
DJ
102102002-04-01 Daniel Jacobowitz <drow@mvista.com>
10211
10212 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10213 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10214
2d1bfe2e
MK
102152002-03-31 Mark Kettenis <kettenis@gnu.org>
10216
a5941fbf
MK
10217 * NEWS: Mention gcore support on FreeBSD/i386.
10218
a90cd31d
MK
10219 * fbsd-proc.c: New file.
10220 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10221 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10222
2d1bfe2e
MK
10223 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10224 while statement.
10225
9eb6e5a1
JB
102262002-03-29 Jim Blandy <jimb@redhat.com>
10227
10228 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10229 unescaped newlines in string literals, but newer ones don't. So
10230 escape them.
10231
f02df580
MS
102322002-03-26 Michael Snyder <msnyder@redhat.com>
10233 Andrew Cagney <cagney@redhat.com>
10234
361d1df0 10235 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10236 restore file to memory.
10237 * cli/cli-dump.h: New file.
10238 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10239 * NEWS: Mention new commands.
f02df580 10240
109f874e
MS
102412002-03-28 Michael Snyder <msnyder@redhat.com>
10242
10243 * symfile.c (symbol_file_add): Move test for null symbols to later.
10244
520f6ade
AC
102452002-03-27 Andrew Cagney <ac131313@redhat.com>
10246
10247 From veksler at il.ibm.com:
10248 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10249 the xstrduped original path.
10250 Fix PR gdb/417.
10251
d4654627
MS
102522002-03-27 Michael Snyder <msnyder@redhat.com>
10253
10254 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10255 * infcmd.c (_initialize_infcmd): Ditto.
10256 * language.c (_initialize_language): Ditto.
10257 * symfile.c (_initialize_symfile): Ditto.
10258 * top.c (_init_main): Ditto.
10259 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10260
6be8bc0c
EZ
102612002-03-27 Elena Zannoni <ezannoni@redhat.com>
10262
10263 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10264 vector registers handling.
10265 (skip_prologue): Handle new AltiVec instructions. Fill in new
10266 fields of frame data.
10267 (frame_get_saved_regs): Fill in information for AltiVec registers.
10268
12af6855
JB
102692002-03-27 Jim Blandy <jimb@redhat.com>
10270
10271 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10272 a function; leave this macro here to invoke that function.
10273 (symbol_init_mangled_name): Declaration for that function.
10274 * symtab.c (symbol_init_mangled_name): New function.
10275
dc672865
AC
102762002-03-27 Andrew Cagney <ac131313@redhat.com>
10277
10278 * valarith.c: Replace strerror with safe_strerror.
10279 * tracepoint.c: Ditto.
10280 * lin-lwp.c: Ditto.
10281 * go32-nat.c: Ditto.
10282 * inflow.c: Ditto.
10283 * gnu-nat.c: Ditto.
10284
d96429cd
AS
102852002-03-27 Andreas Schwab <schwab@suse.de>
10286
10287 * event-top.c (command_line_handler): Remove useless if.
10288
7e336ba1
AJ
102892002-03-27 Andreas Jaeger <aj@suse.de>
10290
10291 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10292 comment.
10293
de220d0f
ML
102942002-03-27 Michal Ludvig <mludvig@suse.cz>
10295
10296 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10297 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10298 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10299 (x86_64_linux_dr_get_status, supply_gregset),
10300 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10301 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10302 (x86_64_register_info_table): Add.
10303 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10304 (x86_64_register_raw_size, x86_64_register_virtual_type),
10305 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10306 general x86_64_register_info_table.
10307 (i386_gdbarch_init): gdbarch_register_bytes is now set
10308 dynamicaly during initialization.
10309 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10310 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10311
0e98d0a7
DJ
103122002-03-27 Daniel Jacobowitz <drow@mvista.com>
10313
10314 * gdbserver/server.c (main): Call target_signal_to_host_p
10315 and target_signal_to_host on signals received from the remote.
10316 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10317 target_signal_from_host on signals sent to the remote.
10318 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10319 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10320
3130066b
DJ
103212002-03-27 Daniel Jacobowitz <drow@mvista.com>
10322
10323 * signals/signals.c: Include "server.h" in gdbserver build.
10324 (target_signal_from_name): Don't use STREQ.
10325 (_initialize_signals): Likewise. Don't include function in
10326 gdbserver build.
10327
9aedf4f4
DJ
103282002-03-27 Daniel Jacobowitz <drow@mvista.com>
10329
10330 * signals.c: Moved to...
10331 * signals/signals.c: Here.
7e336ba1 10332 * Makefile (signals.o): Update.
9aedf4f4 10333
3fa41cdb
JL
103342002-03-26 Jeff Law (law@redhat.com)
10335
10336 * somread.c (som_symtab_read): Remove some commented out code and
10337 updated related comments. Do not set the minimal symbol table to
10338 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10339 in a dynamic executable.
10340 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10341 where we are unable to find the minimal symbol for the given
10342 PC value.
10343
ee677e8d
MS
103442002-03-25 Jeff Law (law@redhat.com)
10345
10346 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10347
e76e1718
ML
103482002-03-25 Michal Ludvig <mludvig@suse.cz>
10349
10350 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10351
18a642a1
AC
103522002-03-23 Andrew Cagney <ac131313@redhat.com>
10353
10354 * command.h: Update copyright.
10355 (struct cmd_list_element): Replace definition with opaque
10356 declaration.
10357 (enum cmd_types): Document that it will eventually be moved to
10358 cli/cli-decode.h
10359 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10360 (MALLOCED_REPLACEMENT): Delete macro.
10361 * Makefile.in (cli_decode_h): Add $(command_h).
10362 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10363 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10364 * completer.c: Include "cli/cli-decode.h".
10365 * maint.c: Include "cli/cli-decode.h".
10366 * cli/cli-decode.h: Include "command.h".
10367 (enum command_class): Delete.
10368 (enum cmd_types): Comment out.
10369 (enum cmd_auto_boolean): Delete.
10370 (enum var_types): Delete.
10371
b2875cc0
AC
103722002-03-23 Andrew Cagney <ac131313@redhat.com>
10373
10374 * cli/cli-decode.c: Include "gdb_assert.h".
10375 (add_set_or_show_cmd): New static function.
10376 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10377 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10378 all fields, such as func, from the set command.
10379
3b45974e
AC
103802002-03-23 Andrew Cagney <ac131313@redhat.com>
10381
10382 * MAINTAINERS (sh-elf): Change warning flag to -w.
10383
823ca731
AC
103842002-03-23 Andrew Cagney <cagney@redhat.com>
10385
10386 * defs.h (error): Add printf format attribute.
10387 * thread-db.c (thread_from_lwp): Fix error format string.
10388 * stack.c (parse_frame_specification): Ditto.
10389 * cli/cli-decode.c (undef_cmd_error): Ditto.
10390 * scm-lang.c (scm_lookup_name): Ditto.
10391 * tracepoint.c (trace_error): Ditto.
10392 * remote-utils.c (usage): Ditto.
10393 * remote.c (compare_sections_command): Ditto.
10394 Fix PR gdb/328.
10395
0e101458
AC
103962002-03-22 Andrew Cagney <ac131313@redhat.com>
10397
10398 * gdbtypes.c (append_composite_type_field): New function.
10399 (init_composite_type): New function.
10400 * gdbtypes.h (append_composite_type_field): Declare.
10401 (init_composite_type): Ditto.
10402
8e0662df
EZ
104032002-03-22 Elena Zannoni <ezannoni@redhat.com>
10404
10405 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10406 function.
8e0662df
EZ
10407 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10408 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10409 structure returning convention for SYSV ABI case, but not
10410 for GNU/Linux, FreeBSD, or NetBSD.
10411
3121eff0
DJ
104122002-03-22 Daniel Jacobowitz <drow@mvista.com>
10413
10414 * symtab.h (lookup_block_symbol): Add mangled_name argument
10415 to prototype.
10416
10417 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10418 with new mangled_name argument.
10419 * linespec.c (decode_line_1): Likewise.
10420 * valops (value_of_this): Likewise.
10421 * symtab.c (lookup_transparent_type): Likewise.
10422 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10423 (lookup_symbol): If we are given a mangled name, pass it down
10424 to lookup_symbol_aux.
10425 (lookup_block_symbol): If we are given a mangled name to check
10426 against, only return symbols which match it.
10427
349b409f
CF
104282002-03-22 Christopher Faylor <cgf@redhat.com>
10429
10430 * win32-nat.c (child_create_inferior): Check for proper shell to use
10431 here, in case the user changes it on the fly.
10432 (_initialize_inftarg): Remove shell path considerations.
10433
2a873819
EZ
104342002-03-21 Elena Zannoni <ezannoni@redhat.com>
10435
10436 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10437 for gdbarch_max_register_raw_size and max_register_virtual_size.
10438 Adjust copyright year.
10439
a1b9830c
DJ
104402002-03-21 Daniel Jacobowitz <drow@mvista.com>
10441
10442 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10443 in a function to cover the entire beginning of the function
10444 as well if it does not already.
10445
8b5790f2
TR
104462002-03-21 Tom Rix <trix@redhat.com>
10447
10448 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10449 (rs6000_ptrace64): Renamed from ptrace64.
10450
bdbe5747
MH
104512002-03-20 Martin M. Hunt <hunt@redhat.com>
10452
10453 * gdbserver/remote-utils.c (remote_open): Don't call
10454 getprotobyname, we're all using TCP here so just use
10455 IPPROTO_TCP.
7e336ba1 10456 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10457
104582002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10459
bdbe5747
MH
10460 * regcache.c (_initialize_regcache): No need to call
10461 build_regcache() at this time; it gets called whenever
10462 the gdbarch changes.
10463
7781cd62
DB
104642002-03-20 David O'Brien <obrien@FreeBSD.org>
10465
10466 * sparc-nat.c: Include sys/param.h where possible.
10467
f65ca430
DJ
104682002-03-20 Daniel Jacobowitz <drow@mvista.com>
10469
10470 Fix PR gdb/422.
10471 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10472 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10473 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10474 complex types.
10475 * stabsread.c (rs6000_builtin_type): Likewise.
10476 (read_sun_floating_type): Likewise.
10477
0c867556
PS
104782002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10479
10480 * stabsread.c (read_member_functions): Remove skip code for duplicate
10481 constructor/destructor methods. Use standard parsing for these
10482 methods and just do not chain them to the list of methods after
10483 parsing.
10484
12b9c64f
AO
104852002-03-19 Alexandre Oliva <aoliva@redhat.com>
10486
10487 * coffread.c: Remove redundant static declarations. Replace
10488 occurrences of `PTR' with `void *'.
10489 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10490 * top.h (quit_cover): Likewise.
10491 * defs.h (catch_errors): Likewise.
10492
349c5d5f
AC
104932002-03-18 Andrew Cagney <ac131313@redhat.com>
10494
10495 * defs.h (XMALLOC): Define.
10496 * gdb-events.sh (XMALLOC): Delete macro.
10497 * gdb-events.c, gdb-events.h: Regenerate.
10498 * gdbarch.sh (XMALLOC): Delete macro.
10499 * gdbarch.c: Regenerate.
10500 * serial.c (XMALLOC): Delete macro.
10501 * ui-file.c (XMALLOC): Ditto.
10502 * ser-unix.h (XMALLOC): Ditto.
10503 * sh-tdep.c (XMALLOC): Ditto.
10504 * ui-out.c (XMALLOC): Ditto.
10505 * utils.c (XMALLOC): Ditto.
10506 * i386-tdep.c (XMALLOC): Ditto.
10507 * gdb-events.c (XMALLOC): Ditto.
10508 * d10v-tdep.c (XMALLOC): Ditto.
10509 * cli-out.c (XMALLOC): Ditto.
10510
10511 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10512 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10513 * ui-file.c, ui-out.c: Ditto.
10514
7d0766f3
AC
105152002-03-18 Andrew Cagney <ac131313@redhat.com>
10516
10517 * command.h (struct cmd_list_element): Add field context.
10518 (set_cmd_context, get_cmd_context): Declare.
10519 * cli/cli-decode.h: Ditto.
10520 * cli/cli-decode.c (get_cmd_context): New function.
10521 (set_cmd_context): New function.
10522 (add_cmd): Initialize context.
10523 Part of fixing PR gdb/145 and PR gdb/146.
10524
5913bcb0
AC
105252002-03-17 Andrew Cagney <ac131313@redhat.com>
10526
1868c04e
AC
10527 * cli/cli-decode.c (cmd_type): New function.
10528 * command.h (cmd_type): Declare.
10529 * infrun.c (set_schedlock_func): Call function cmd_type.
10530 * kod.c (kod_set_os): Call cmd_type.
10531 * cris-tdep.c (cris_version_update): Use function cmd_type.
10532 (cris_mode_update, cris_abi_update): Ditto.
10533
5913bcb0
AC
10534 * command.h: (execute_cmd_post_hook): Declare.
10535 (execute_cmd_pre_hook): Declare.
10536 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10537 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10538 functions. Execute pre/post hook while ensuring that afterwords
10539 hook_in is cleared.
10540 * top.c (execute_command): Use execute_cmd_post_hook, and
10541 execute_cmd_pre_hook to execute pre/post commands.
10542 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10543 hook_stop_stub.
10544 (hook_stop_stub): Call execute_cmd_pre_hook.
10545
b51450c9
AC
105462002-03-17 Andrew Cagney <ac131313@redhat.com>
10547
10548 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10549 set'' and this leads to a core dump. Move xstrdup of
10550 operating_system to after check that it is not NULL.
10551
f66c9f11
AC
105522002-03-17 Andrew Cagney <ac131313@redhat.com>
10553
8e694ecf
AC
10554 * kod.c (kod_set_os): Remove unnecessary check that
10555 ``command->type'' is set_cmd.
10556
f66c9f11
AC
10557 * valprint.c (set_input_radix): Use input_radix.
10558 (set_output_radix): Use output_radix.
10559 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10560 isn't reverted.
10561
9d01611c
AC
105622002-03-16 Andrew Cagney <ac131313@redhat.com>
10563
10564 * value.h (struct value): Delete field ``substring_addr''. Change
10565 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10566 force_core_addr_align and force_pointer_aligh.
10567
10568 * value.h (struct value): Fix typo in above change.
9d01611c 10569
4156bb53
PS
105702002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10571
10572 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10573 to fix internal_error from ``maintenance print architecture''.
10574
0e5e3ea6
PS
105752002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10576
10577 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10578 for gcc versions after gcc-2.8.1.
10579
9b013045
PS
105802002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10581
10582 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10583 for method resolution. Restore adjustment of ``this'' pointer after
10584 calling value_struct_elt, which was accidentally removed during the
10585 HP merge.
10586
376c9600
AC
105872002-03-15 Andrew Cagney <ac131313@redhat.com>
10588
10589 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10590 value_of_register.
10591 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10592 get_saved_register.
10593 * value.h (value_of_register): Update.
10594
a4db0f07
RH
105952002-03-14 Richard Henderson <rth@redhat.com>
10596
10597 * configure.in: Detect declaration for canonicalize_file_name.
10598 * utils.c (canonicalize_file_name): Declare, if needed.
10599 (gdb_realpath): Prefer realpath if available and usable.
10600 * config.in, configure: Rebuild.
10601
96383835
RH
106022002-03-14 Richard Henderson <rth@redhat.com>
10603
10604 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10605 a constant array bound.
10606
10607 * MAINTAINERS: Add myself to write-after-approval.
10608
75245b24
MS
106092002-03-14 Michael Snyder <msnyder@redhat.com>
10610
10611 * symfile.c (syms_from_objfile): Return immediately if no syms.
10612 (symbol_file_add): Return immediately if no syms.
10613 (find_sym_fns): Return immediately if no syms.
10614
e641a1ca
ML
106152002-03-13 Michal Ludvig <mludvig@suse.cz>
10616
10617 * gdbserver/remote-util.c (remote_open): Print remote-side's
10618 IP address when remote debugging over the network.
7e336ba1 10619
df08bfec
DB
106202002-03-12 David O'Brien <obrien@FreeBSD.org>
10621
10622 * config/sparc/fbsd.mh: Fix copyright.
10623 * config/sparc/fbsd.mt: Likewise.
10624
9a57864f
RE
106252002-03-11 Richard Earnshaw <rearnsha@arm.com>
10626
10627 * MAINTAINERS: Fix typo in name of gdb warnings option.
10628 (x86-64): Fix formating so that this can be parsed by awk.
10629
dd7bf85e
DJ
106302002-03-10 Daniel Jacobowitz <drow@mvista.com>
10631
10632 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10633 * defs.h: Include "gdb/signals.h".
10634 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10635
33a0a2ac
ML
106362002-03-10 Michal Ludvig <mludvig@suse.cz>
10637
10638 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10639 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10640 from x86-64-tdep.h
10641
dd824b04
DJ
106422002-03-10 Daniel Jacobowitz <drow@mvista.com>
10643 Don Howard <dhoward@redhat.com>
10644
10645 * mips-tdep.c (ST0_FR): Define.
10646 (mips2_fp_compat): New function, temporarily disabled.
10647 (mips_read_fp_register_single): New function.
10648 (mips_read_fp_register_double): New function.
10649 (mips_print_register): Use them.
10650 (do_fp_register_row): Likewise.
10651
6a41ff59
AC
106522002-03-09 Andrew Cagney <ac131313@redhat.com>
10653
10654 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10655 approval''.
10656
4ea09c10
PS
106572002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10658
10659 * stabsread.c (read_member_functions): Fix is_stub test for
10660 static member functions, improve comment.
10661
6ccc741d
RE
106622002-03-07 Richard Earnshaw <rearnsha@arm.com>
10663
10664 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10665 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10666 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10667 commands that set boolean values.
10668 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10669 (arm_rdi_resume): Always initialize PC.
10670 (arm_rdi_open): Don't use rslt as a boolean.
10671 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10672 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10673 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10674 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10675
438013df
AO
106762002-03-06 Alexandre Oliva <aoliva@redhat.com>
10677
10678 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10679 * configure: Rebuilt.
10680
70ed8774
SC
106812002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10682
10683 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10684 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10685
5ba2abeb
AC
106862002-03-06 Andrew Cagney <ac131313@redhat.com>
10687
10688 * cli/cli-decode.c (set_cmd_completer): New function.
10689 * command.h (set_cmd_completer): Declare.
10690 * cli/cli-decode.h (set_cmd_completer): Ditto.
10691
10692 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10693 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10694 * win32-nat.c (_initialize_inftarg): Ditto.
10695 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10696 * proc-api.c (_initialize_proc_api): Ditto.
10697 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10698 * source.c (_initialize_source): Ditto.
10699 * exec.c (_initialize_exec): Ditto.
10700 * solib.c (_initialize_solib): Ditto.
10701 * top.c (init_main): Ditto.
10702 * tracepoint.c (_initialize_tracepoint): Ditto.
10703 * symfile.c (_initialize_symfile): Ditto.
10704 * printcmd.c (_initialize_printcmd): Ditto.
10705 * infcmd.c (_initialize_infcmd): Ditto.
10706 * corefile.c (_initialize_core): Ditto.
10707
f779ca99
AC
107082002-03-05 Andrew Cagney <ac131313@redhat.com>
10709
10710 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10711
01a3934b
AC
107122002-03-05 Andrew Cagney <ac131313@redhat.com>
10713
10714 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10715
37057839
AC
107162002-03-05 Andrew Cagney <ac131313@redhat.com>
10717
10718 * NEWS: Update headings, 5.2 has branched.
10719
c6ecbae5
DJ
107202002-03-04 Daniel Jacobowitz <drow@mvista.com>
10721
10722 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10723 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10724 (register_addr, REGISTER_RAW_SIZE): Likewise.
10725 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10726 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10727
e9f30c21
ML
107282002-03-03 Michal Ludvig <mludvig@suse.cz>
10729
10730 * MAINTAINERS (x86-64): Add myself.
10731 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10732 changed value_ptr -> struct value *
10733
54394ac3
DB
107342002-03-01 David O'Brien <obrien@FreeBSD.org>
10735
10736 * configure.host (sparc64-*-freebsd): Add.
10737 * configure.tgt: Likewise.
10738 * config/sparc/fbsd.mh: New file.
10739 * config/sparc/fbsd.mt: Likewise.
10740 * config/sparc/nm-fbsd.h: Likewise.
10741 * config/sparc/tm-fbsd.h: Likewise.
10742
bfe95955
DJ
107432002-03-01 Daniel Jacobowitz <drow@mvista.com>
10744
10745 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10746 regformats/reg-s390x.dat.
10747
f33c6cbf
AC
107482002-03-01 Andrew Cagney <ac131313@redhat.com>
10749
10750 * utils.c: Add FIXME explaining true/false problem.
10751
5ecaa7dd
AC
107522002-02-28 Andrew Cagney <ac131313@redhat.com>
10753
10754 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10755
2a251cc2
MC
107562002-02-28 Michael Chastain <mec@shout.net>
10757
10758 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10759
6a8031a3 107602002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10761
10762 * gdbserver/linux-s390-low.c: New file.
10763 * regformats/reg-s390.dat: New file.
10764 * regformats/reg-s390x.dat: New file.
10765 * gdbserver/configure.srv: Add S/390.
10766 * gdbserver/Makefile.in: Add S/390.
10767 * configure.tgt: Enable gdbserver for S/390.
10768
ac469903
EZ
107692002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10770
10771 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10772 first line of the doc string for "info dos", except at the end of
10773 the sentence, since the short help stops at the first period.
10774
985cb1a3
JM
107752002-02-28 Jason Merrill <jason@redhat.com>
10776
10777 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10778
c570663e
FF
107792002-02-27 Fred Fish <fnf@redhat.com>
10780
10781 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10782 comment (dumy -> dummy).
10783
43630227
PS
107842002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10785
10786 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10787
b84911e8
RB
107882002-02-27 Rodney Brown <rbrown64@csc.com.au>
10789
10790 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10791
58caa3dc
DJ
107922002-02-27 Daniel Jacobowitz <drow@mvista.com>
10793
10794 * gdbserver/acconfig.h: New file.
10795 * gdbserver/i387-fp.c: New file.
10796 * gdbserver/i387-fp.h: New file.
10797 * gdbserver/linux-x86-64.c: New file.
10798 * regformats/reg-x86-64.dat: New file.
10799 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10800 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10801 * gdbserver/configure.in: Add support for regsets.
10802 * gdbserver/config.in: Regenerate.
10803 * gdbserver/configure: Regenerate.
10804 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10805 * gdbserver/linux-low.h: New file.
10806 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10807 for regsets.
10808 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10809 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10810 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10811 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10812 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10813 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10814 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10815 "i387-fp.h". Add PTRACE_GETREGS and friends.
10816 * gdbserver/regcache.c (supply_register): New function.
10817 (supply_register_by_name): New function.
10818 (collect_register): New function.
10819 (collect_register_by_name): New function.
10820
93652174
DJ
108212002-02-27 Daniel Jacobowitz <drow@mvista.com>
10822
10823 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10824 (config.status): Add configure.srv dependency.
10825 (server_h): Add config.h dependency.
10826
a02e4a61
DJ
108272002-02-27 Daniel Jacobowitz <drow@mvista.com>
10828
10829 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10830 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10831 * gdbserver/configure.srv: Change i386-*-linux* to use
10832 reg-i386-linux.o.
10833
ce0eebec
AC
108342002-02-26 Andrew Cagney <ac131313@redhat.com>
10835
10836 * x86-64-tdep.c: Re-indent. Update copyright date.
10837
82dbc5f7
AC
108382002-02-26 Andrew Cagney <ac131313@redhat.com>
10839
10840 From Michal Ludvig <mludvig@suse.cz>:
10841 * x86-64-tdep.c (value.h): Delete.
10842 (gdb_assert.h): Include.
10843 (x86_64_register_convert_to_virtual,
10844 x86_64_register_convert_to_raw ): Add check which lets only
10845 floating-point values to be converted.
10846 (value_push): Delete.
10847 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10848 (i386_gdbarch_init): Number of register_bytes fixed.
10849
e4621584
AC
108502002-02-26 Andrew Cagney <ac131313@redhat.com>
10851
10852 * MAINTAINERS: Add x86-64 target.
10853
81a9a963
AC
108542002-02-26 Andrew Cagney <ac131313@redhat.com>
10855
10856 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10857 * osfsolib.c (solib_map_sections): Ditto.
10858 * irix5-nat.c (solib_map_sections): Ditto.
10859 * corelow.c (gdb_check_format): Ditto.
10860 * symfile.c (symfile_bfd_open): Ditto.
10861 * solib.c (solib_map_sections): Ditto.
10862 Fix PR gdb/354.
7e336ba1 10863
0f017ab9
AC
108642002-02-26 Andrew Cagney <ac131313@redhat.com>
10865
10866 * remote.c (_initialize_remote): By default, disable ``e'' and
10867 ``E'' step out-of-range packets.
10868
75738c29
AS
108692002-02-26 Andreas Schwab <schwab@suse.de>
10870
10871 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10872 m68k_linux_frame_saved_pc.
10873 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10874 in_sigtramp.
10875 (SIGCONTEXT_PC_OFFSET): Remove.
10876 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10877 m68k_linux_sigtramp_saved_pc): New functions.
10878 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10879 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10880 (UCONTEXT_PC_OFFSET): Define.
10881 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10882 non-RT and RT signal trampolines.
10883
7e8ed687
RE
108842002-02-26 Richard Earnshaw <rearnsha@arm.com>
10885
10886 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10887 (TARGET_NBPG, STACK_END_ADDR): Delete
10888 (VARIABLES_INSIDE_BLOCK): Delete.
10889
6972bc8b
AC
108902002-02-25 Andrew Cagney <ac131313@redhat.com>
10891
10892 * utils.c (perror_with_name): Make string parameter constant.
10893 (print_sys_errmsg): Ditto.
10894 (query): Ditto.
10895 * defs.h (perror_with_name): Update.
10896 (print_sys_errmsg): Update.
10897 (query): Update.
10898
aa32f823
DJ
108992002-02-25 Daniel Jacobowitz <drow@mvista.com>
10900
10901 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10902 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10903
19caaa45
PS
109042002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10905
10906 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10907 if it already matches the current architecture from the exec file.
10908 Include arch-utils.h for gdbarch_info_init prototype.
10909 * Makefile.in (rs6000-nat.o): Update dependencies.
10910
d951901f
EZ
109112002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10912
10913 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10914 list of exported variables.
10915
7ea81414
DJ
109162002-02-24 Daniel Jacobowitz <drow@mvista.com>
10917
10918 * gdbserver/configure.srv: New file.
10919 * gdbserver/configure.in: Use configure.srv instead
10920 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10921 from it.
10922 * gdbserver/configure: Regenerated.
10923 * gdbserver/terminal.h: New file.
10924 * gdbserver/Makefile.in: Update for configure changes. Remove
10925 more unneeded include paths.
10926
080fe24b
AC
109272002-02-24 Andrew Cagney <ac131313@redhat.com>
10928
10929 From wiz at danbala:
10930 * config/sparc/tm-sp64.h: Fix grammar and typos.
10931 Fix PR gdb/287.
10932
8605d56e
AC
109332002-02-24 Andrew Cagney <ac131313@redhat.com>
10934
10935 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
10936 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10937 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10938 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
10939 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10940 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10941 * s390-tdep.c: Ditto.
92362027
AC
10942 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10943 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10944 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10945 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10946 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10947 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10948 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10949 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10950 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10951 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 10952 Fix PR gdb/378.
7e336ba1 10953
8ed32cc0
AC
109542002-02-23 Andrew Cagney <ac131313@redhat.com>
10955
a3007b6f
AC
10956 * lin-thread.c: Delete file.
10957 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10958 to gdb_proc_service.h.
10959 * configure: Re-generate.
10960
50a9e2f1
AC
10961 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10962 * serial.c (serial_open): Delete check for "ocd".
10963 Fix PR gdb/349.
10964
8b6e7932
AC
10965 * Makefile.in (linux-thread.o): Delete target.
10966 * linux-thread.c: Delete file.
10967
d155c46b
AC
10968 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10969 renamed SH files to be consistent.
10970
8ed32cc0
AC
10971 * symtab.c (sort_search_symbols): Use xfree.
10972
0e18d038
RE
109732002-02-23 Richard Earnshaw <rearnsha@arm.com>
10974
10975 * arm-linux-tdep.c (arm_linux_init_abi): Register
10976 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10977 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10978 definition with undef, since we don't want the sysvr4 definition.
10979 (SKIP_TRAMPOLINE_CODE): Likewise.
10980
27aac7ff
AC
109812002-02-23 Andrew Cagney <ac131313@redhat.com>
10982
10983 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10984
10985 * configure.in: (AC_CHECK_FUNCS) Added test for
10986 canonicalize_file_name Regenerated.
10987 * config.in, configure: Regenerated.
10988 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10989 defined use canonicalize_file_name.
7e336ba1 10990
65a6e0ee
MC
109912002-02-23 Michael Chastain <mec@shout.net>
10992
10993 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10994
47b95330
AC
109952002-02-23 Andrew Cagney <ac131313@redhat.com>
10996
10997 * README: Remove references to cygnus.com.
10998 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10999 dot com'' form. Remove references to cygnus.com and sourceware.
11000
696f451b
AC
110012002-02-23 Andrew Cagney <ac131313@redhat.com>
11002
11003 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11004 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11005 1003.1-2001 no longer allows "head -1".
11006 * gdb/Makefile.in (version.c): Likewise.
11007 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11008 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11009 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11010
bbaca940
AC
110112002-02-23 Andrew Cagney <ac131313@redhat.com>
11012
11013 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11014 * command.h (cmd_cfunc_eq): Declare.
11015 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11016
11017 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11018 ``struct cmd_list_element *''.
11019 * cli/cli-cmds.c (is_complete_command): Update. Use
11020 cmd_cfunc_eq.
11021 * top.c (execute_command): Pass the command to
11022 is_complete_command.
11023 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11024
b8b8b047
AC
110252002-02-23 Andrew Cagney <ac131313@redhat.com>
11026
11027 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11028 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11029 architecture defines.
11030 * s390-tdep.c (s390_gdbarch_init): Likewise.
11031
19d3fc80
RE
110322002-02-23 Richard Earnshaw <rearnsha@arm.com>
11033
11034 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11035 (arm_linux_push_arguments): Likewise.
11036 (arm_linux_init_abi): Register them. Also register linux-specific
11037 call_dummy_words.
11038 (find_minsym_and_objfile): Use strcmp, not STREQ.
11039 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11040 (arm_linux_call_dummy_words): Delete declaration.
11041 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11042 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11043 declarations.
11044 (LOWEST_PC): Delete.
11045
3ab13650
PS
110462002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11047
11048 * maint.c (print_section_info): Do not prepend `0x' to filepos
11049 output, it will be handled by local_hex_string_custom.
11050
19d3fc80 110512002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11052
11053 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11054 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11055 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11056
d85a5daf
JB
110572002-02-22 Jim Blandy <jimb@redhat.com>
11058
11059 Indicate that the bcache functions don't change the strings
11060 they're passed.
11061 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11062 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11063
eeb25b8a
PM
110642002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11065
11066 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11067
6badb179
CF
110682002-02-21 Christopher Faylor <cgf@redhat.com>
11069
11070 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11071 find the complete path to a loaded DLL.
11072
e8717518
FF
110732002-02-21 Fred Fish <fnf@redhat.com>
11074
11075 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11076 that marks the end of the range of a function, enter a line number
11077 entry that has a line number of zero and a PC offset that matches
11078 the end of the function. This starts a range of PC's for which no
11079 line number information is known.
11080 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11081 PC's for which no line number info is found (line number is zero)
11082 then we didn't find any valid line information.
11083 * symtab.h: Document use of zero line number entry.
11084
9abe5450
EZ
110852002-02-21 Elena Zannoni <ezannoni@redhat.com>
11086
11087 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11088 (have_ptrace_getvrregs): Define for run time checks.
11089 (gdb_vrregset_t): New type for Altivec register handling.
11090 (fetch_register, store_register): Fetch/store altivec register
11091 when needed.
11092 (fetch_altivec_register, store_altivec_register): New functions.
11093 (supply_vrregset, fill_vrregset): New functions.
11094 (fetch_altivec_registers, store_altivec_registers): New functions.
11095 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11096 registers as well.
11097
aaa38bb5
AJ
110982002-02-21 Jiri Smid <smid@suse.cz>
11099
11100 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11101
b34db576
RE
111022002-02-21 Richard Earnshaw <rearnsha@arm.com>
11103
11104 * Makefile.in (armnbsd-nat.o): Update dependencies.
11105 * armnbsd-nat.c (supply_gregset): New function. Common code to
11106 supply the integer register set.
11107 (supply_fparegset): New function. Similar for FPA registers.
11108 (fetch_regs, fetch_fp_regs): Use them.
11109 (fetch_core_registers): Likewise.
11110 (fetch_elfcore_registers): New function.
11111 (arm_netbsd_elfcore_fns): New core-file type specification.
11112 (_initialize_arm_netbsd_nat): Register it.
11113
3e56fc4b
RE
111142002-02-21 Richard Earnshaw <rearnsha@arm.com>
11115
11116 * armnbsd-nat.c: Include gdbcore.h.
11117 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11118 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11119 'void' to declaration, to shut up ARI.
11120 (fetch_core_registers): Make static. Rewrite using supply_register.
11121 (arm_netbsd_core_fns): New core-file type specification.
11122 (_initialize_arm_netbsd_nat): New function.
11123
097f6b0b
CF
111242002-02-21 Christopher Faylor <cgf@redhat.com>
11125
11126 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11127 value.
11128
c914e0cc
CF
111292002-02-20 Christopher Faylor <cgf@redhat.com>
11130
11131 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11132 fails.
11133
385fa495
DJ
111342002-02-20 Daniel Jacobowitz <drow@mvista.com>
11135
11136 * jv-exp.y (parse_number): Change type of implicit longs
11137 to builtin_type_uint64.
11138
e5f1222d
DJ
111392002-02-20 Daniel Jacobowitz <drow@mvista.com>
11140
11141 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11142 to be an integer instead of a `union wait'.
11143
75c9abc6
DJ
111442002-02-20 Daniel Jacobowitz <drow@mvista.com>
11145
11146 * mips-linux-nat.c: Call the operating system GNU/Linux.
11147 * mips-linux-tdep.c: Likewise.
11148 * mips-tdep.c: Likewise.
11149
551792a5
DJ
111502002-02-20 Daniel Jacobowitz <drow@mvista.com>
11151
11152 Fix PR gdb/265.
11153 * jv-exp.y (parse_number): Handle 64-bit integers.
11154
ee6e2b82
DJ
111552002-02-20 Daniel Jacobowitz <drow@mvista.com>
11156
11157 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11158 AC_STDC_HEADERS to AC_HEADER_STDC.
11159 * gdbserver/configure: Regenerated.
11160
a48442a0
RE
111612002-02-20 Richard Earnshaw <rearnsha@arm.com>
11162
11163 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11164 is defined.
11165 * sparc-tdep.c (get_longjmp_target): Likewise.
11166
fe419ffc
RE
111672002-02-20 Richard Earnshaw <rearnsha@arm.com>
11168
11169 * News: Add news about ARM and Multi-arch. Mention the new target
11170 arm*-*-netbsd*.
11171
5832ed7e
JB
111722002-02-19 Jim Blandy <jimb@redhat.com>
11173
11174 * stabsread.c (error_type_complaint): Improve error message.
11175
84563040
DJ
111762002-02-19 Daniel Jacobowitz <drow@mvista.com>
11177
11178 * gdbserver/README: Update documentation.
11179 * gdbserver/configure.in: Update configury to match documentation.
11180 * gdbserver/Makefile.in: Likewise.
11181 * gdbserver/configure: Regenerated.
11182 * gdbserver/aclocal.m4: New file, generated by aclocal.
11183 * gdbserver/config.in: New file, generated by autoheader.
11184
375fd65b
RE
111852002-02-19 Richard Earnshaw <rearnsha@arm.com>
11186
11187 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11188 armnbsd-nat.c.
11189
08216dd7
RE
111902002-02-19 Richard Earnshaw <rearnsha@arm.com>
11191
11192 * arm-tdep.h (enum arm_float_model): New enum.
11193 (struct gdbarch_tdep): Add fp_model.
11194 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11195 up floating-point conversions until we know the floating-point model
11196 in use by the inferior. Don't complain about being unable to
11197 determine the ABI of the inferior when we don't have one.
11198 (arm_extract_return_value): Support different floating-point models.
11199 (arm_store_return_value): Likewise.
aaa38bb5 11200 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11201 ARM_FLOAT_SOFT.
11202 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11203
65d6d66a
PS
112042002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11205
11206 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11207 of ``current_gdbarch''.
11208
47221191
RE
112092002-02-19 Richard Earnshaw <rearnsha@arm.com>
11210
11211 * armnbsd-nat.c : ANSIfy all function declarations.
11212 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11213 (fetch_inferior_registers): Re-implement in terms of above.
11214 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11215 (store_inferior_registers): Re-implement in terms of above.
11216
fdf39c9a
RE
112172002-02-19 Richard Earnshaw <rearnsha@arm.com>
11218
aaa38bb5 11219 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11220 kernel.
11221 * arm-linux-tdep.c: Likewise.
11222 * config/arm/tm-linux.h: Likewise.
11223
93247f88
RE
112242002-02-19 Richard Earnshaw <rearnsha@arm.com>
11225
11226 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11227 * config/arm/nbsd.mt (TM_FILE): Delete.
11228 * config/arm/tm-nbsd.h: Delete.
11229
d7b486e7
RE
112302002-02-19 Richard Earnshaw <rearnsha@arm.com>
11231
11232 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11233 Initialize CALL_DUMMY_LENGTH.
11234
41d39a95
RE
112352002-02-19 Richard Earnshaw <rearnsha@arm.com>
11236
11237 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11238 function.
11239 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11240 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11241 defines one thing and that is incorrect for this port.
11242 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11243
e1195560
PM
112442002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11245
11246 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11247
c1748f97
PM
112482002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11249
11250 * win32-nat.c (display_selector): New function. Displays information
11251 about the information returned by GetThreadSelectorEntry API function.
11252 (display_selectors): New function. Displays the infomation of
11253 the selector given as argument, or of CS, DS ans FS selectors
11254 if no argument is given.
11255 ( _initialize_inftarg): Add "w32" as info prefix command.
11256 Add "info w32 selector" as command calling display_selectors.
11257
e41e6bbf
PM
112582002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11259
11260 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11261 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11262 if not defined.
11263
0d3a9f48
RE
112642002-02-18 Richard Earnshaw <rearnsha@arm.com>
11265
11266 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11267
3fb4b924
RE
112682002-02-18 Richard Earnshaw <rearnsha@arm.com>
11269
11270 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11271 (arm_fix_call_dummy): Call it.
11272 (arm_call_dummy_breakpoint_offset): Delete.
11273 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11274 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11275
7f55af32
AC
112762002-02-18 Andrew Cagney <ac131313@redhat.com>
11277
11278 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11279 Default to func_frame_chain_valid.
11280 * gdbarch.h, gdbarch.c: Re-generate.
11281 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11282
05f13b9c
EZ
112832002-02-18 Elena Zannoni <ezannoni@redhat.com>
11284
11285 * ppc-linux-nat.c: Update copyright.
11286 (fetch_register, store_register): Add tid parameter, don't compute
11287 tid here.
11288 (fetch_ppc_registers, store_ppc_registers): Add tid
11289 parameter. Pass it along to callees.
11290 (fetch_inferior_registers, store_inferior_registers): Compute tid
11291 here, and pass it to calleed functions.
11292 (fill_gregset, supply_fpregset): Clean up formatting.
11293
d7afb4c9
RE
112942002-02-18 Richard Earnshaw <rearnsha@arm.com>
11295
11296 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11297 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11298
9df628e0
RE
112992002-02-18 Richard Earnshaw <rearnsha@arm.com>
11300
11301 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11302 * gdbarch.c gdbarch.h: Regenerate.
11303 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11304 function.
11305 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11306 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11307 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11308
11309 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11310 * arm-tdep.c (arm_get_longjmp_target): New function.
11311 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11312 this to a positive value register arm_get_longjmp_target as the
11313 longjmp handler.
11314 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11315 (arm_linux_init_abi): Set up longjmp description in tdep.
11316 * armnbsd-nat.c (get_longjmp_target): Delete.
11317 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11318 description in tdep.
11319 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11320 (get_longjmp_target): Delete declaration.
11321 (GET_LONGJMP_TARGET): Delete.
11322 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11323 (GET_LONGJMP_TARGET): Delete.
11324
57bc8964
KB
113252002-02-17 Kevin Buettner <kevinb@redhat.com>
11326
11327 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11328 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11329 of ``current_gdbarch''.
11330
83d31a92
TT
113312002-02-17 Tom Tromey <tromey@redhat.com>
11332
11333 * cli/cli-cmds.c (compare_strings): New function.
11334 (complete_command): Only print each unique item once.
11335 * completer.h (complete_line): Declare.
11336 * completer.c (complete_line): New function.
11337 (line_completion_function): Use it.
11338
17ef5d92
AC
113392002-02-16 Andrew Cagney <ac131313@redhat.com>
11340
11341 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11342 * gdbarch.h, gdbarch.c: Re-generate.
11343
491b8946
DJ
113442002-02-16 Daniel Jacobowitz <drow@mvista.com>
11345
11346 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11347
113482002-02-16 Daniel Jacobowitz <drow@mvista.com>
11349
11350 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11351 * valops.c (value_arg_coerce): Don't take the address of a reference
11352 to convert an argument to a reference.
11353
dfe7f3ac
CF
113542002-02-15 Christopher Faylor <cgf@redhat.com>
11355
11356 * win32-nat.c (get_image_name): New function.
11357 (handle_load_dll): Use get_image_name function.
11358 (get_child_debug_event): Avoid registering debug events until possibly
11359 execed process is started.
11360 (child_create_inferior): Allow invocation via shell so that command
11361 line redirection, etc. works ok.
11362 (_initialize_inftarg): Add new command: "set shell" to control whether
11363 a shell is used to start a process.
11364
1d33e73a
DJ
113652002-02-15 Daniel Jacobowitz <drow@mvista.com>
11366
11367 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11368 instead of find_register_by_number.
11369 (cannot_store_register): Likewise.
11370
48cd0caa
PM
113712002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11372
aaa38bb5 11373 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11374 fprintf_unfiltered (gdb_stderr, ...).
11375
8656e7d8
DJ
113762002-02-15 Daniel Jacobowitz <drow@mvista.com>
11377
11378 * gdbserver/gdbserver.1: Document --attach.
11379
66e810cd
RE
113802002-02-15 Richard Earnshaw <rearnsha@arm.com>
11381
11382 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11383 descriptions.
11384 * arm-tdep.c (arm_default_arm_le_breakpoint)
11385 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11386 (arm_default_thumb_be_breakpoint): New. Initialize them from
11387 traditional breakpoint defines.
11388 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11389 (arm_gdbarch_init): Initialize new breakpoint variables.
11390 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11391 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11392 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11393 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11394 code out to ...
11395 (arm_netbsd_init_abi_common): ... here; new function.
11396 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11397 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11398 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11399 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11400
97e03143
RE
114012002-02-15 Richard Earnshaw <rearnsha@arm.com>
11402
11403 * arm-tdep.h (enum arm_abi): New enum.
11404 (struct gdbarch_tdep): New structure.
11405 (LOWEST_PC): Provide a default.
11406 (arm_gdbarch_register_os_abi): Declare new function.
11407 * arm-tdep.c (arm_abi_names): New array.
11408 (process_note_abi_tag_sections): New function.
11409 (get_elfosabi): New function.
11410 (arm_gdbarch_register_os_abi): New function.
11411 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11412 support for that ABI has been built in, then call the appropriate
11413 configuration routine. Use gdbarch_num_regs() to get the number
11414 of registers.
11415 (arm_dump_tdep): New function.
11416 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11417 place-holder functions.
11418 (_initialize_arm_tdep): Register them.
11419 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11420
11421 * armnbsd-tdep.c: New file.
11422 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11423 * config/arm/nbsd.mt (TDEPFILES): Add it.
11424 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11425
11426 * armnbsd-nat.c: Include regcache.h.
11427 * Makefile.in (armnbsd-nat.o): Update dependency list.
11428
11429 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11430
ad68be46
DJ
114312002-02-14 Daniel Jacobowitz <drow@mvista.com>
11432
11433 * gdbserver/Makefile.in: Fix typos in target rules.
11434
003d6d1d
DJ
114352002-02-14 Daniel Jacobowitz <drow@mvista.com>
11436
aaa38bb5 11437 Fix part of PR gdb/267.
003d6d1d
DJ
11438 * linespec.c (find_methods): Handle constructors specially for now.
11439
6b230f1b
CV
114402002-02-14 Corinna Vinschen <vinschen@redhat.com>
11441
11442 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11443 handling.
11444 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11445 standard_coerce_float_to_double().
11446
1ea98d12
CF
114472002-02-14 Christopher Faylor <cgf@redhat.com>
11448
11449 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11450 GDBINIT_FILENAME.
11451
dd47e6fd
EZ
114522002-02-14 Elena Zannoni <ezannoni@redhat.com>
11453
11454 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11455 find_variant_by_name, because it confuses the multiarch
11456 framework. Return NULL if there isn't an architecture with the
11457 user supplied name, instead of forcing a different one without
11458 recording the change with the multiarch machinery.
11459 (find_variant_by_name): Delete.
11460
d7e39b9e
PS
114612002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11462
11463 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11464 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11465
76e42a4f
MH
114662002-02-13 Martin M. Hunt <hunt@redhat.com>
11467
aaa38bb5 11468 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11469 print_frame_info_listing_hook, set current_source_symtab.
11470
0a30fbc4
DJ
114712002-02-14 Daniel Jacobowitz <drow@mvista.com>
11472
11473 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11474 and remove unused $(INCLUDE_DIR).
11475 Add regcache.c to OBS.
11476 Add generated register protocol files to clean target.
11477 Update dependencies for new objects, obsolete old target code.
11478
11479 * gdbserver/linux-low.c: Remove all platform-specific code to
11480 new files. Remove various dead code. Update to use regcache
11481 functionality.
11482 * gdbserver/remote-utils.c (fromhex): Add return statement
11483 to quiet warning.
11484 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11485 constant.
11486 (input_interrupt): Add integer parameter to match prototype
11487 of a signal handler.
11488 (outreg): Use register_data ().
11489 (prepare_resume_reply): Use gdbserver_expedite_regs.
11490 * gdbserver/server.c (main): Dynamically allocate own_buf because
11491 PBUFSIZ is no longer constant. Use registers_to_string () and
11492 registers_from_string ().
11493 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11494 for error (), fatal (), and warning (). Update definition of
11495 PBUFSIZ to use regcache functionality. Add include guard.
11496 * gdbserver/utils.c (fatal): Add missing ``const''.
11497 (warning): New function.
11498
11499 * regformats/regdat.sh: Include "regcache.h" in generated files.
11500 Provide init_registers () function.
11501 * regformats/regdef.h: Add prototype for set_register_cache ().
11502 Add include guard.
11503
11504 * gdbserver/linux-arm-low.c: New file.
11505 * gdbserver/linux-i386-low.c: New file.
11506 * gdbserver/linux-ia64-low.c: New file.
11507 * gdbserver/linux-m68k-low.c: New file.
11508 * gdbserver/linux-mips-low.c: New file.
11509 * gdbserver/linux-ppc-low.c: New file.
11510 * gdbserver/linux-sh-low.c: New file.
11511
11512 * gdbserver/regcache.c: New file.
11513 * gdbserver/regcache.h: New file.
11514
11515 * gdbserver/low-linux.c: Removed obsolete file.
11516
4cc841d0
DJ
115172002-02-14 Daniel Jacobowitz <drow@mvista.com>
11518
11519 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11520 * config/i386/linux.mt: Likewise.
11521 * config/ia64/linux.mt: Likewise.
11522 * config/m68k/linux.mh: Likewise.
11523 * config/powerpc/linux.mh: Likewise.
11524 * config/mips/linux.mt: Likewise.
11525
11526 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11527
11528 * config/i386/i386lynx.mh: Mark gdbserver variables
11529 as (currently) obsolete for this target.
11530 * config/i386/nbsd.mt: Likewise.
11531 * config/i386/nbsdelf.mt: Likewise.
11532 * config/m32r/m32r.mt: Likewise.
11533 * config/m68k/m68klynx.mh: Likewise.
11534 * config/m68k/nbsd.mt: Likewise.
11535 * config/m68k/sun3os4.mh: Likewise.
11536 * config/mips/vr5000.mt: Likewise.
11537 * config/ns32k/nbsd.mt: Likewise.
11538 * config/pa/hppabsd.mh: Likewise.
11539 * config/pa/hppaosf.mh: Likewise.
11540 * config/powerpc/nbsd.mt: Likewise.
11541 * config/rs6000/rs6000lynx.mh: Likewise.
11542 * config/s390/s390.mt: Likewise.
11543 * config/s390/s390x.mt: Likewise.
11544 * config/sparc/sparclynx.mh: Likewise.
11545 * config/sparc/sun4os4.mh: Likewise.
11546 * config/i386/x86-64linux.mt: Likewise.
11547 * config/sparc/linux.mh: Likewise.
11548
a85f51e7
DJ
115492002-02-14 Daniel Jacobowitz <drow@mvista.com>
11550
11551 * configure.tgt: Configure gdbserver only for known working
11552 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11553 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11554 SUBDIRS if it is configured. Update comment for ${nativefile}.
11555 * configure: Regenerated.
11556
65554fef
MS
115572002-02-13 Michael Snyder <msnyder@redhat.com>
11558
670a52db
MS
11559 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11560
6dbdc4a3
MS
11561 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11562 (default_gcore_mach): Just return 0, work around a problem in bfd.
11563 (default_gcore_target): OK to return NULL if exec_bfd is null.
11564 (make_mem_sec): Use a cast, avoid a warning.
11565
11566 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11567 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11568 sizeof (host pointer) != sizeof (target pointer)).
11569 (procfs_make_note_section): Avoid overflow in psargs string.
11570
aaa38bb5 11571 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11572 implementation return an error.
11573
115742002-02-13 Rodney Brown <rbrown64@csc.com.au>
11575
11576 * procfs.c (procfs_make_note_section): Provide a default definition
11577 (for alpha-dec-osf4.0f). Fix typos.
11578
1e4d76e7
EZ
115792002-02-13 Elena Zannoni <ezannoni@redhat.com>
11580
11581 * linux-proc.c: Add include of regcache.h.
11582 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11583
b6d1a1d5
AC
115842002-02-13 Andrew Cagney <ac131313@redhat.com>
11585
11586 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11587 * memattr.c (create_mem_region): Disallow useless empty region.
11588 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11589 non-overlapping.
b6d1a1d5 11590
6c6ea35e
MC
115912002-02-13 Michael Chastain <mec@shout.net>
11592
11593 * defs.h: Kill CONST_PTR.
11594 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11595 * c-lang.c (c_builtin_types): Likewise.
11596 * ch-lang.c (ch_builtin_types): Likewise.
11597 * f-lang.c (f_builtin_types): Likewise.
11598 * language.c (unknown_builtin_types): Likewise.
11599 * m2-lang.c (m2_builtin_types): Likewise.
11600 * p-lang.c (pascal_builtin_types): Likewise.
11601 * scm-lang.c (c_builtin_types): Likewise.
11602
3e0b0f48
KS
116032002-02-13 Keith Seitz <keiths@redhat.com>
11604
11605 * arm-tdep.h (arm_get_next_pc): Add declaration.
11606
67255d04
RE
116072002-02-13 Richard Earnshaw <rearnsha@arm.com>
11608
11609 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11610 with other related struct-returning functions.
11611 (arm_extract_struct_value_address): New function.
11612 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11613 initialize float_format, double_format and long_double_format as
11614 appropriate to the endianness of the target.
11615 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11616 (arm_use_struct_convention): Delete declaration.
11617 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11618
079777f6
KS
116192002-02-13 Keith Seitz <keiths@redhat.com>
11620
11621 * defs.h (core_addr_to_string_nz): New function.
11622
34588f23
MK
116232002-02-13 Mark Kettenis <kettenis@gnu.org>
11624
11625 Apply missing bits of 2002-01-15 patch.
11626 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11627 (fill_fpregset): Use i387_fill_fsave.
11628
49b563f9
KS
116292002-02-12 Keith Seitz <keiths@redhat.com>
11630
49b563f9
KS
11631 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11632 (core_addr_to_string_nz): New function.
11633
aeb98c60
RE
116342002-02-11 Richard Earnshaw <rearnsha@arm.com>
11635
11636 * arm-linux-nat.c: Really include arm-tdep.h.
11637 * config/arm/tm-linux.h (struct type, struct value): Declare.
11638
65554fef
MS
116392002-02-11 Michael Snyder <msnyder@redhat.com>
11640
11641 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11642 (gcore section): Ifdef for Solaris and Unixware only.
11643 (procfs_do_thread_registers): Unixware needs one lwpstatus
11644 per thread (not one prstatus or pstatus).
11645 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11646 not over all gdb threads. For unixware, call elfcore_write_pstatus
11647 once before iterating over threads.
11648
34e8f22d
RE
116492002-02-11 Richard Earnshaw <rearnsha@arm.com>
11650
11651 * arm-tdep.h: New file.
11652 * arm-tdep.c: Include arm-tdep.h.
11653 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11654 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11655 (arm_print_float_info, arm_register_type, convert_to_extended)
11656 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11657 (arm_extract_return_value, arm_register_name): Make static.
11658 (arm_software_single_step): Similarly. Fix types in declaration.
11659 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11660 (arm_store_return_value, arm_store_struct_return): New functions.
11661 (arm_gdbarch_init): Register the above functions. Also register
11662 call_dummy_start_offset, sizeof_call_dummy_words,
11663 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11664 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11665 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11666 prologue_cache.saved_regs here, rather than ...
11667 (_initialize_arm_tdep): ... here.
11668 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11669 declarations.
11670 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11671 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11672 (arm_print_float_info, arm_register_type, convert_to_extended)
11673 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11674 (arm_extract_return_value, arm_register_name): Delete declarations.
11675 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11676 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11677 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11678 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11679 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11680 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11681 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11682 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11683 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11684 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11685 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11686 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11687 interface.
11688 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11689 * remote-rdi.c remote-rdp.c: Likewise.
11690 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11691 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11692 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11693 definition.
11694
11695 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11696 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11697 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11698 from non-ARM_ prefixed definitions.
11699 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11700 all uses of above.
11701 * remote-rdi.c remote-rdp.c: Likewise.
11702 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11703
148754e5
RE
117042002-02-11 Richard Earnshaw <rearnsha@arm.com>
11705
11706 * arm-tdep.c (arm_frameless_function_invocation)
11707 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11708 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11709 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11710 (arm_pop_frame, arm_get_next_pc): Make static.
11711 (arm_gdbarch_init): Register above in gdbarch structure.
11712 (arm_read_fp): Renamed from arm_target_read_fp.
11713 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11714 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11715 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11716 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11717 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11718 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11719 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11720 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11721 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11722 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11723 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11724
434d2d4f
DJ
117252002-02-10 Daniel Jacobowitz <drow@mvista.com>
11726
11727 * symtab.c (compare_search_syms): New function.
11728 (sort_search_symbols): New function.
11729 (search_symbols): Sort symbols after searching rather than
11730 before.
11731
55241689
AC
117322002-02-10 Andrew Cagney <ac131313@redhat.com>
11733
11734 * NEWS: Linux -> GNU/Linux.
11735
028c194b
AC
117362002-02-10 Andrew Cagney <ac131313@redhat.com>
11737
11738 * gdbarch.sh: For for level one methods, disallow a definition
11739 when partially multi-arched. Add comments explaining rationale.
11740 * gdbarch.h: Re-generate.
11741
6acf50cd
AC
117422002-02-10 Andrew Cagney <ac131313@redhat.com>
11743
11744 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11745 multi-arch partial.
aaa38bb5 11746
50248794
AC
117472002-02-10 Andrew Cagney <ac131313@redhat.com>
11748
11749 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11750 field. Use diff -u.
11751 * gdbarch.c: Re-generate.
11752
c30e0066
AC
117532002-02-10 Andrew Cagney <ac131313@redhat.com>
11754
9b56c5f3 11755 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11756 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11757 partial.
11758
6e6d6484
AC
117592002-02-10 Andrew Cagney <ac131313@redhat.com>
11760
11761 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11762 multi-arch partial.
11763 (PUSH_ARGUMENTS): Switch to using predefault.
11764 * gdbarch.c: Regenerate.
11765
c203844d
AC
117662002-02-10 Andrew Cagney <ac131313@redhat.com>
11767
11768 * valops.c (PUSH_ARGUMENTS): Delete definition.
11769 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11770 partial. Default to default_push_arguments.
11771 * gdbarch.h, gdbarch.c: Regenerate.
11772
b5a2688f
AC
117732002-02-09 Andrew Cagney <ac131313@redhat.com>
11774
11775 * defs.h (throw_exception): Rename return_to_top_level. Update
11776 comments.
11777 * utils.c (error_stream, internal_verror, quit): Ditto.
11778 * top.c (throw_exception, catcher): Ditto.
11779 * sparclet-rom.c (sparclet_load): Ditto.
11780 * remote.c (interrupt_query, minitelnet): Ditto.
11781 * remote-sds.c (interrupt_query): Ditto.
11782 * remote-mips.c (mips_error, mips_kill): Ditto.
11783 * ocd.c (interrupt_query): Ditto.
11784 * monitor.c (monitor_interrupt_query): Ditto.
11785 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11786 * target.h: Update comment.
aaa38bb5 11787
b5a2688f 11788 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11789
2fa5c1e0
AC
117902002-02-09 Andrew Cagney <ac131313@redhat.com>
11791
11792 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11793 default_double_format.
11794 * gdbarch.h, gdbarch.c: Re-generate.
11795 * findvar.c (floatformat_unknown): Delete variable definition.
11796 * doublest.h (floatformat_unknown): Delete variable declaration.
11797
da966255
JB
117982002-02-09 Jim Blandy <jimb@redhat.com>
11799
11800 * stabsread.c (read_type): Add code to parse Sun's syntax for
11801 prototyped function types.
11802
123a4891
AC
118032002-02-09 Andrew Cagney <ac131313@redhat.com>
11804
11805 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11806 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11807
fb39c8f3
PS
118082002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11809
11810 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11811 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11812 now _initialize_xcoffsolib gets called again and overrides the
11813 commands from solib.c in a native configuration.
11814
0b87a11d
MK
118152002-02-09 Mark Kettenis <kettenis@gnu.org>
11816
11817 * doublest.c (store_typed_floating): Don't try to return a value.
11818 Fixes PR gdb/290.
11819
bdc2fc72
JB
118202002-02-08 Jim Blandy <jimb@redhat.com>
11821
11822 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11823 is prototyped and has no arguments, print its argument list as
11824 `(void)'.
11825
da69bbcf
CD
118262002-02-08 Chris Demetriou <cgd@broadcom.com>
11827
11828 * MAINTAINERS (write-after-approval): Add myself.
11829 (paper-trail): I've escaped!
aaa38bb5 11830
b69571f5
CF
118312002-02-08 Christopher Faylor <cgf@redhat.com>
11832
11833 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11834 changes.
11835 (_initialize_check_for_gdb_ini): Ditto.
11836
f6871398
MH
118372002-02-08 Martin M. Hunt <hunt@redhat.com>
11838
11839 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11840 xaprintf -> xasprintf.
11841
4e52d31c
PM
118422002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11843
11844 * win32-nat.c: Remove use of printf and sprintf functions.
11845
39bbf761
RE
118462002-02-08 Richard Earnshaw <rearnsha@arm.com>
11847
11848 * arm-tdep.c (arm_frame_chain_valid): Make static.
11849 (arm_push_arguments): Likewise.
11850 (arm_gdbarch_init): New function.
11851 (_initialize_arm_tdep): Call it.
11852 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11853 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11854 (FRAME_CHAIN_VALID): Delete.
11855 (arm_frame_chain_valid): Delete declaration.
11856 (PUSH_ARGUMENTS): Delete.
11857 (arm_push_arguments): Delete declaration.
11858 (CALL_DUMMY_P): Delete.
11859
9c9532c9
CV
118602002-02-08 Andrew Cagney <ac131313@redhat.com>
11861 Corinna Vinschen <vinschen@redhat.com>
11862
11863 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11864 on builtin float types.
11865
4e8f7a8b
DJ
118662002-02-08 Daniel Jacobowitz <drow@mvista.com>
11867
11868 * utils.c: Include <curses.h> before "bfd.h".
11869 * tui/tui-hooks.c: Likewise.
11870 * tui/tui.c: Likewise.
11871 * tui/tuiCommand.c: Likewise.
11872 * tui/tuiData.c: Likewise.
11873 * tui/tuiDataWin.c: Likewise.
11874 * tui/tuiDisassem.c: Likewise.
11875 * tui/tuiGeneralWin.c: Likewise.
11876 * tui/tuiIO.c: Likewise.
11877 * tui/tuiLayout.c: Likewise.
11878 * tui/tuiRegs.c: Likewise.
11879 * tui/tuiSource.c: Likewise.
11880 * tui/tuiSourceWin.c: Likewise.
11881 * tui/tuiStack.c: Likewise.
11882 * tui/tuiWin.c: Likewise.
11883
cd4bffcf
EZ
118842002-02-07 Elena Zannoni <ezannoni@redhat.com>
11885
11886 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11887 to include space for pseudoregs as well. Update loops accordingly.
11888 (sh_fp_frame_init_saved_regs): Ditto.
11889 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11890
26806ce2
AC
118912002-02-07 Andrew Cagney <ac131313@redhat.com>
11892
11893 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11894 Add Richard Earnshaw to Arm maintainers.
11895
97fdab62
AC
118962002-02-07 Andrew Cagney <ac131313@redhat.com>
11897
a6b98203
AC
11898 * defs.h (warning_begin): Delete declaration.
11899
97fdab62
AC
11900 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11901 Delete macro.
11902
78b29b40
MS
119032002-02-07 Michael Snyder <msnyder@redhat.com>
11904
aaa38bb5 11905 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
11906 Logic bug, remove misplaced else.
11907
d8849953
KD
119082002-02-07 Klee Dienes <klee@apple.com>
11909
11910 * fork-inferior.c (fork_inferior): Add '!' to the list of
11911 characters that need to be quoted when building a string for the
11912 shell. Quote '!' specifically with a backslash, since CSH chokes
11913 when trying to evaluate "str!str".
aaa38bb5 11914
095778a0
NC
119152002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11916
11917 * rdi-share/host.h: Only provide a typedef for bool if it is not
11918 defined.
11919
1900040c
MS
119202002-02-04 Michael Snyder <msnyder@redhat.com>
11921
11922 * breakpoint.h (enum bptype): Add new overlay event bp type.
11923 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 11924
1900040c
MS
11925 * breakpoint.c (create_internal_breakpoint): New function.
11926 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11927 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11928 (create_thread_event_breakpoint): Ditto.
11929 (create_solib_event_breakpoint): Ditto.
11930 (create_overlay_event_breakpoint): New function.
11931 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11932 (update_breakpoints_after_exec): Delete and re-initialize
11933 overlay event breakpoints after an exec. Add FIXME comment
11934 about longjmp breakpoint.
11935 (print_it_typical): Ignore overlay event breakpoints.
11936 (print_one_breakpoint): Ditto.
11937 (mention): Ditto.
11938 (bpstat_what): Do not stop for overlay event breakpoints.
11939 (delete_breakpoint): Don't delete overlay event breakpoints.
11940 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11941 (breakpoint_re_set): Re-create overlay event breakpoint.
11942
11943 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11944 (overlay_manual_command): Disable overlay breakpoints.
11945 (overlay_off_command): Disable overlay breakpoints.
11946
082fc60d
RE
119472002-02-06 Richard Earnshaw <rearnsha@arm.com>
11948
11949 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11950 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11951 to here from config/tm-arm.h.
11952 (coff_sym_is_thumb): Make static.
11953 (arm_elf_make_msymbol_special): New function.
11954 (arm_coff_make_msymbol_special): New function.
11955 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11956 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11957 (coff_sym_is_thumb): Delete declaration.
11958 (arm_elf_make_msymbol_special): Declare.
11959 (arm_coff_make_msymbol_special): Declare.
11960 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11961 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11962
039c5766
RE
119632002-02-06 Richard Earnshaw <rearnsha@arm.com>
11964
11965 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11966
119672002-02-06 Richard Earnshaw <rearnsha@arm.com>
11968
11969 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11970 * gdbarch.c gdbarch.h: Regenerate.
11971 * arch-utils.c (default_print_float_info): New function.
11972 * arch-utils.h (default_print_float_info): Prototype it.
11973 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11974 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11975 (PRINT_FLOAT_INFO): Document it.
11976
11977 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11978 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11979 (PRINT_FLOAT_INFO): Define.
11980
58fa08f0
PM
119812002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11982
aaa38bb5 11983 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
11984 Add typecast to sprintf argument to suppress a warning.
11985
7393af7c
PM
119862002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11987
58fa08f0 11988 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
11989 to allow easier handling of pass state.
11990 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11991 that gives exception name and address.
11992 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 11993 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 11994 exceptions added.
aaa38bb5
AJ
11995 (child_continue): Correctly report continue_status.
11996 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 11997 TARGET_SIGNAL_0 (new default value).
aaa38bb5 11998 (child_resume): consider sig argument passed to decide if
7393af7c
PM
11999 the exception should be passed to debuggee or not.
12000
6af4589c
MS
120012002-02-05 Michael Snyder <msnyder@redhat.com>
12002
12003 * regcache.c (fetch_register): Call target_fetch_register
12004 only if we don't call FETCH_PSEUDO_REGISTER.
12005 (store_register): Call target_store_register only if we
12006 don't call STORE_PSEUDO_REGISTER.
12007
a2cf933a
EZ
120082002-02-05 Elena Zannoni <ezannoni@redhat.com>
12009
12010 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12011 ELF_MAKE_MSYMBOL_SPECIAL.
12012 * gdbarch.c, gdbarch.h: Regenerate.
12013 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12014 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12015 * elfread.c (elf_symtab_read): Compile use of
12016 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12017 multiarched.
12018 * coffread.c (coff_symtab_read): Ditto, for
12019 COFF_MAKE_MSYMBOL_SPECIAL.
12020
6bb7be43
JB
120212002-02-05 Jim Blandy <jimb@redhat.com>
12022
12023 * solib-svr4.c (svr4_truncate_ptr): New function.
12024 (svr4_relocate_section_addresses): Do the address arithmetic with
12025 the appropriate truncation for target addresses, even when
12026 CORE_ADDR is larger than a target address.
12027
e18651ec
DJ
120282002-02-05 Daniel Jacobowitz <drow@mvista.com>
12029
12030 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12031 to (int *).
12032
6b2725be
DJ
120332002-02-05 Daniel Jacobowitz <drow@mvista.com>
12034
12035 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12036 code.
12037
fca9e603
DJ
120382002-02-05 Daniel Jacobowitz <drow@mvista.com>
12039
12040 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12041
6c537a52
DJ
120422002-02-05 Daniel Jacobowitz <drow@mvista.com>
12043
12044 * gdbserver/linux-low.c: Remove unused include files.
12045
d844cde6
DJ
120462002-02-05 Daniel Jacobowitz <drow@mvista.com>
12047
12048 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12049 (read_inferior_memory): Use it.
12050 (write_inferior_memory): Likewise.
12051
d07c63e7
DJ
120522002-02-05 Daniel Jacobowitz <drow@mvista.com>
12053
12054 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12055 grubbing through sys_errlist.
12056
da6d8c04
DJ
120572002-02-05 Daniel Jacobowitz <drow@mvista.com>
12058
12059 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12060
5b421780
PM
120612002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12062 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12063
9f60d481
AC
120642002-02-04 Andrew Cagney <ac131313@redhat.com>
12065
12066 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12067 (do_sfunc, set_cmd_sfunc): New functions.
12068
12069 * command.h (struct cmd_list_element): Add field func.
12070 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12071 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12072 * cli/cli-decode.h: Ditto.
12073
12074 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12075 (help_all, help_cmd_list): Ditto.
12076 (find_cmd, complete_on_cmdlist): Ditto.
12077 * top.c (execute_command): Ditto.
12078
12079 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12080 function.sfunc.
12081
12082 * infcmd.c (notice_args_read): Fix function signature.
12083
12084 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12085 * cli/cli-decode.c (add_set_cmd): Ditto.
12086 * utils.c (initialize_utils): Ditto.
12087 * maint.c (_initialize_maint_cmds): Ditto.
12088 * infrun.c (_initialize_infrun): Ditto.
12089 * demangle.c (_initialize_demangler): Ditto.
12090 * remote.c (add_packet_config_cmd): Ditto.
12091 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12092 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12093 * proc-api.c (_initialize_proc_api): Ditto.
12094 * kod.c (_initialize_kod): Ditto.
12095 * valprint.c (_initialize_valprint): Ditto.
12096 * top.c (init_main): Ditto.
12097 * infcmd.c (_initialize_infcmd): Ditto.
12098 * corefile.c (_initialize_core): Ditto.
12099 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12100 * arch-utils.c (initialize_current_architecture): Ditto.
12101 (_initialize_gdbarch_utils): Ditto.
12102 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12103
12104 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12105 * wince.c (_initialize_inftarg): Ditto.
12106 * symfile.c (_initialize_symfile): Ditto.
12107 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12108 * language.c (_initialize_language): Ditto.
12109 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12110
f9ba0717
MS
121112002-02-04 Michael Snyder <msnyder@redhat.com>
12112
12113 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12114
0c74b2a7
DJ
121152002-02-04 Daniel Jacobowitz <drow@mvista.com>
12116
12117 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12118 Add rules for building the register data files.
12119
c638789f
DJ
121202002-02-04 Daniel Jacobowitz <drow@mvista.com>
12121
12122 * regformats/regdat.sh: Add braces to the definition of
12123 expedite_regs_${arch}.
12124
db253027
DJ
121252002-02-04 Daniel Jacobowitz <drow@mvista.com>
12126
12127 * regformats/regdef.h (struct reg): Add comment describing the
12128 requirements for offset and size fields.
12129
206be19c
AS
121302002-02-04 Andreas Schwab <schwab@suse.de>
12131
12132 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12133 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12134
181c1381
RE
121352002-02-04 Richard Earnshaw <rearnsha@arm.com>
12136
12137 * gdbarch.sh (copyright): Update years in generated header.
12138 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12139 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12140 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12141 * dbxread.c: Likewise.
12142 * dwarfread.c: Likewise.
12143 * elfread.c: Likewise.
12144 * somread.c: Likewise.
12145
12146 * arm-tdep.c (arm_smash_text_address): New function.
12147 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12148
fa4ba8da
PM
121492002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12150
12151 Add support for hardware watchpoints on win32 native.
aaa38bb5 12152 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12153 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12154 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12155 of debug registers.
12156 (debug_registers_changed): New variable. Reflects when debug registers
12157 are changed and need to be written to inferior.
aaa38bb5 12158 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12159 was set, used when new threads are created.
12160 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12161 i386-nat code.
12162 (thread_rec): Set dr array if id is the thread of current_event .
12163 (child_continue, child_resume): Change the debug registers for all
12164 threads if debug_registers_changed.
12165 (child_add_thread): Change the debug registers if debug_registers_used.
12166 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12167 Link nm.h to new nm-cygwin.h file.
12168 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12169 of hardware registers.
12170
a73c86fb
AC
121712002-02-03 Andrew Cagney <ac131313@redhat.com>
12172
12173 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12174 Restore behavour broken by 2002-01-20 Andrew Cagney
12175 <ac131313@redhat.com> IEEE_FLOAT removal.
12176
acf5ed49
DJ
121772002-02-03 Daniel Jacobowitz <drow@mvista.com>
12178
12179 * c-valprint.c (c_val_print): Pass a proper valaddr to
12180 cp_print_class_method.
12181 * valops.c (search_struct_method): If there is only one method
12182 and args is NULL, return that method.
12183
493d28d5
DJ
121842002-02-03 Daniel Jacobowitz <drow@mvista.com>
12185
12186 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12187 accessing tag_name directly.
12188
7495dfdb
DJ
121892002-02-03 Daniel Jacobowitz <drow@mvista.com>
12190
12191 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12192 of accessing tag_name directly.
12193
dd6bda65
DJ
121942002-02-03 Daniel Jacobowitz <drow@mvista.com>
12195
12196 PR gdb/280
12197 * gdbtypes.c (replace_type): New function.
12198 * gdbtypes.h (replace_type): Add prototype.
12199 * stabsread.c (read_type): Use replace_type.
12200
88fe217c
RE
122012002-02-03 Richard Earnshaw <rearnsha@arm.com>
12202
12203 * Makefile.in (memattr.o): Add missing dependencies rule.
12204
e5d66720
PS
122052002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12206
12207 * breakpoint.c (break_at_finish_command): Really export.
12208 (break_at_finish_at_depth_command): Ditto.
12209 (tbreak_at_finish_command): Ditto.
12210 * hppa-tdep.c: Include completer.h.
12211 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12212 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12213
fffee0be
AC
122142002-02-01 Andrew Cagney <ac131313@redhat.com>
12215
12216 * utils.c (do_write): New function.
12217 (error_stream): Rewrite combining the code from error_begin and
12218 verror.
12219 (verror): Rewrite using error_stream.
12220 (error_begin): Delete function.
12221
255e7dbf
AC
122222002-02-01 Andrew Cagney <ac131313@redhat.com>
12223
12224 * utils.c (error_begin): Make static.
12225 * defs.h (error_begin): Delete declaration.
12226
12227 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12228 (decode_line_1): Use cplusplus_error instead of error_begin,
12229 cplusplus_hint and return_to_top_level.
12230 * coffread.c (coff_symfile_read): Use error instead of error_begin
12231 and return_to_top_level.
12232 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12233
ddfe3c15
AC
122342002-02-01 Andrew Cagney <ac131313@redhat.com>
12235
12236 * language.h (type_error, range_error): Make string parameter
12237 constant.
12238 * language.c (warning_pre_print): Delete extern declaration.
12239 * dwarfread.c (warning_pre_print): Ditto.
12240 * language.c (type_error, range_error): Rewrite to use verror and
12241 vwarning instead of warning_begin.
12242
03ac34d5
MS
122432002-02-01 Michael Snyder <msnyder@redhat.com>
12244
261c4ca2
MS
12245 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12246 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12247
e00d1dc8
AC
122482002-02-01 Andrew Cagney <ac131313@redhat.com>
12249
12250 * command.h (NO_FUNCTION): Delete macro.
12251 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12252 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12253 * tracepoint.c (_initialize_tracepoint): Ditto.
12254 * cli/cli-decode.c (add_set_cmd): Ditto.
12255 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12256
76b79d6e
DJ
122572002-02-01 Daniel Jacobowitz <drow@mvista.com>
12258
12259 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12260 Update ``this'' pointer when calling virtual functions.
12261
799f9e91
MS
122622002-02-01 Michael Snyder <msnyder@redhat.com>
12263
c7bd442c 12264 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12265 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12266
3cf384d4
DJ
122672002-02-01 Daniel Jacobowitz <drow@mvista.com>
12268
12269 * regformats/reg-arm.dat: New file.
12270 * regformats/reg-i386.dat: New file.
12271 * regformats/reg-ia64.dat: New file.
12272 * regformats/reg-m68k.dat: New file.
12273 * regformats/reg-mips.dat: New file.
12274 * regformats/reg-ppc.dat: New file.
12275 * regformats/reg-sh.dat: New file.
12276 * regformats/regdef.h: New file.
12277 * regformats/regdat.sh: New file.
12278
0defa245
RE
122792002-02-01 Richard Earnshaw <reanrsha@arm.com>
12280
12281 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12282 (arm_frame_args_address, arm_frame_locals_address): New functions.
12283 (arm_frame_num_args): New function.
12284 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12285 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12286 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12287
405f26e6
MS
122882002-01-31 Michael Snyder <msnyder@redhat.com>
12289
502fd408
MS
12290 * breakpoint.c (break_at_finish_command): Export.
12291 (break_at_finish_at_depth_command): Export.
12292 (tbreak_at_finish_command): Export.
d6020d45 12293 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12294 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12295 "txbreak" commands, which are HPPA specific.
502fd408 12296
7d35e135
MS
12297 * printcmd.c (disassemble_command): Remove an ancient
12298 artifact of an old merge.
12299
aaa38bb5 12300 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12301 Define enum constant values for overlay mode.
12302 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12303 (overlay_is_mapped, overlay_auto_command,
12304 overlay_manual_command): Ditto.
d874f1e2 12305
aaa38bb5
AJ
12306 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12307 breakpoint_here_p, breakpoint_inserted_here_p,
12308 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12309 describe_other_breakpoints, check_duplicates, clear_command):
12310 Coding standard fixes.
12311
8add0441 12312 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12313 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12314 code: check bfd SEC_READONLY flag for section.
12315
e351066e
AC
123162002-01-31 Andrew Cagney <ac131313@redhat.com>
12317
7d35e135 12318 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12319
8a48e967
DJ
123202002-01-30 Daniel Jacobowitz <drow@mvista.com>
12321
12322 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12323 data symbols, since we search based on textlow and texthigh.
12324 (find_pc_sect_symtab): Likewise.
12325
f5a96129
AC
123262002-01-30 Andrew Cagney <ac131313@redhat.com>
12327
12328 * defs.h (vwarning): Declare.
f5a96129
AC
12329 * utils.c (vwarning): New function.
12330 (warning): Call vwarning.
12331 (warning_begin): Delete function.
12332
12333 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12334 the warning message.
12335 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12336 warning_begin.
12337
cefd4ef5
MS
123382002-01-30 Michael Snyder <msnyder@redhat.com>
12339
1a703748
MS
12340 * NEWS: Mention "set trust-readonly-sections" command.
12341 Mention generate-core-file command.
cefd4ef5 12342
3a11626d
MS
123432002-01-15 Michael Snyder <msnyder@redhat.com>
12344
12345 * target.c: New command, "set trust-readonly-sections on".
12346 (do_xfer_memory): Honor the suggestion to trust readonly sections
12347 by reading them from the object file instead of from the target.
12348 (initialize_targets): Register command "set trust-readonly-sections".
12349
d1c7e53b
AC
123502002-01-29 Andrew Cagney <ac131313@redhat.com>
12351
12352 * parse.c (target_map_name_to_register): Simplify, search regs and
12353 pseudo-regs using a single loop.
12354
e2c9a72c
AC
123552002-01-30 Andrew Cagney <ac131313@redhat.com>
12356
12357 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12358
69824b4e
MK
123592002-01-15 Rodney Brown <rbrown64@csc.com.au>
12360
12361 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12362 * config/i386/i386v42mp.mh: Add i387-nat.o .
12363 * i386v4-nat.c: Include i387-nat.h.
12364 (supply_fpregset): Use i387_supply_fsave.
12365 (fill_fpregset): Use i387_fill_fsave.
12366
6eb69eab
RE
123672002-01-30 Richard Earnshaw <rearnsha@arm.com>
12368
12369 * arm-tdep.c (arm_call_dummy_words): Define.
12370 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12371 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12372 (CALL_DUMMY_WORDS): Define.
12373 (arm_call_dummy_words): Declare.
12374 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12375 (arm_linux_call_dummy_words): Declare.
12376
9852326a
AS
123772002-01-30 Andreas Schwab <schwab@suse.de>
12378
12379 * m68klinux-nat.c: Fix last change to use regcache_collect
12380 instead of referencing registers[] directly.
12381
977a3030
AC
123822002-01-29 Andrew Cagney <ac131313@redhat.com>
12383
12384 * parse.c (target_map_name_to_register): Delete code wrapped in
12385 #ifdef REGISTER_NAME_ALIAS_HOOK.
12386
2076c72b
MS
123872002-01-28 Michael Snyder <msnyder@redhat.com>
12388
12389 * regcache.c (legacy_read_register_gen): Need to be able to
12390 read pseudo-register as well as real register.
12391 (legacy_write_register_gen): Ditto.
12392
8fcc723b
AC
123932002-01-28 Andrew Cagney <ac131313@redhat.com>
12394
12395 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12396 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12397 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12398 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12399 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12400 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12401 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12402 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12403 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12404 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12405 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12406 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12407 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12408 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12409 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12410 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12411 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12412 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12413 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12414 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12415
afe64c1a
AC
124162002-01-28 Andrew Cagney <ac131313@redhat.com>
12417
12418 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12419 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12420 (initialize_current_architecture): Update target_byte_order using
12421 information from BFD.
aaa38bb5 12422 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12423 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12424
75bc7ddf
AC
124252002-01-28 Andrew Cagney <ac131313@redhat.com>
12426
12427 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12428 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12429
12430 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12431 #ifdef INVALID_FLOAT.
12432 * infcmd.c (do_registers_info): Ditto.
12433 * values.c (unpack_double): Ditto. Add comment.
12434
12435 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12436 already commented out.
12437
0280a90a
AS
124382002-01-26 Andreas Schwab <schwab@suse.de>
12439
12440 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12441 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12442 registers and add support for PTRACE_GETREGS.
12443
7072a954
AC
124442002-01-24 Andrew Cagney <ac131313@redhat.com>
12445
12446 GDB 5.1.1 released from 5.1 branch.
12447 * NEWS: Add 5.1.1 news.
12448 * README: Sync with 5.1 branch.
12449
86f902e0
FF
124502002-01-23 Fred Fish <fnf@redhat.com>
12451
12452 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12453 stabstring on initial malloc. Reallocing will copy it for us,
12454 if necessary.
12455
8af51c36
EZ
124562002-01-23 Elena Zannoni <ezannoni@redhat.com>
12457
aaa38bb5 12458 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12459 (HFILES_NO_SRCDIR): Remove hpread.h.
12460 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12461 (hpread.o): Update dependencies.
12462 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12463
12464 * hp-psymtab-read.c: Remove file.
12465 * hp-symtab-read.c: Remove file.
12466 * hpread.h: Remove file.
12467
12468 * hpread.c: Merge all contents of hp-psymtab-read.c,
12469 hp-symtab-read.c and hpread.h into this file, as it was prior to
12470 January 1999.
12471
12472 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12473 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12474 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12475 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12476
dc5cfeb6
EZ
124772002-01-23 Elena Zannoni <ezannoni@redhat.com>
12478
12479 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12480 fill_gregset): Call gdbarch_tdep() just once, assign result to
12481 variable and use that, instead of calling the function several
12482 times.
12483
ea87b71b
AO
124842002-01-24 Alexandre Oliva <aoliva@redhat.com>
12485
12486 * configure.host: Accept sparcv9 as alias for sparc64.
12487 * configure.tgt: Likewise.
12488
13fc0c2f
KB
124892002-01-22 Kevin Buettner <kevinb@redhat.com>
12490
12491 * solib-aix5.c (build_so_list_from_mapfile)
12492 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12493 arguments is not reversed.
12494 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12495 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12496
7bd872fe
EZ
124972002-01-22 Elena Zannoni <ezannoni@redhat.com>
12498
12499 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12500 modified version of obsolete sh_fetch_pseudo_register.
12501 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12502 (sh4_register_read): New function.
12503 (sh_pseudo_register_write): New function. Renamed and modified
12504 version of obsolete sh_store_pseudo_register.
12505 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12506 (sh4_register_write): New function.
12507 (sh_gdbarch_init): Remove setting of gdbarch function
12508 fetch_pseudo_register and store_pseudo_register. Remove setting of
12509 register_convert_to_raw, register_convert_to_virtual,
12510 register_convertible.
12511 (sh_sh4_register_convertible): Delete. No longer needed. All is
12512 taken care by architecture specific functions
12513 register_read/register_write.
12514 (sh_sh4_register_convert_to_virtual): Make static.
12515 (sh_sh4_register_convert_to_raw): Ditto.
12516
069e84fd
AC
125172002-01-22 Andrew Cagney <ac131313@redhat.com>
12518
12519 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12520 (floatformat_is_nan, floatformat_mantissa): Ditto.
12521
12522 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12523 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12524 builtin_type_ieee_double_little,
12525 builtin_type_ieee_double_littlebyte_bigword,
12526 builtin_type_m68881_ext, builtin_type_i960_ext,
12527 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12528 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12529 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12530 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12531
211a4f69
CV
125322002-01-22 Corinna Vinschen <vinschen@redhat.com>
12533
12534 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12535 parameter. Set frameless flag if it exists and depended of
12536 whether the scanned function is frameless or not.
12537 (xstormy16_skip_prologue): If function is frameless, return
12538 result of xstormy16_scan_prologue().
12539 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12540 call.
12541
f81353e4
EZ
125422002-01-21 Elena Zannoni <ezannoni@redhat.com>
12543
12544 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12545 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12546 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12547 sh_sh4_register_byte, sh_sh4_register_raw_size,
12548 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12549 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12550 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12551 sh_store_pseudo_register, sh_do_pseudo_register): Call
12552 gdbarch_tdep() just once, assign result to variable and use that,
12553 instead of calling the function several times.
12554
63c73a17
MK
125552002-01-20 Mark Kettenis <kettenis@gnu.org>
12556
12557 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12558 macros instead of LAST_FPU_CTRL_REGNUM.
12559 (store_register): Likewise.
12560
39ad761d
JB
125612002-01-21 Jim Blandy <jimb@redhat.com>
12562
12563 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12564 is up-to-date before running the program, not just when a program
12565 exits.
12566
3d74b771
FF
125672002-01-21 Fred Fish <fnf@redhat.com>
12568
12569 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12570 when we have found all instructions we are looking for.
12571
966fbf70
RE
125722002-01-21 Richard Earnshaw <rearnsha@arm.com>
12573
12574 * arm-tdep.c (arm_register_name): New function.
12575 (arm_registers_names): Make static.
12576 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12577 (arm_register_name): Declare.
12578 (REGISTER_NAME): Use it.
12579
c3b4394c
RE
125802002-01-21 Richard Earnshaw <rearnsha@arm.com>
12581 Kevin Buettner <kevinb@redhat.com>
12582
12583 Convert arm targets to new FRAME interface.
12584 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12585 (arm_frame_find_save_regs): Delete.
12586 (arm_frame_init_saved_regs): New.
12587 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12588 Allocate extra_info as required. Convert all uses of fsr.regs
12589 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12590 to use extra_info.
12591 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12592 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12593 (check_prologue_cache, save_prologue_cache): Likewise.
12594 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12595 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12596 (FRAME_FIND_SAVED_REGS): Delete.
12597 (arm_frame_find_saved_regs): Delete prototype.
12598 (arm_frame_init_saved_regs): New prototype.
12599 (FRAME_INIT_SAVED_REGS): Define.
12600
61d99182
AC
126012002-01-20 Andrew Cagney <ac131313@redhat.com>
12602
12603 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12604
6aaea291
AC
126052002-01-20 Andrew Cagney <ac131313@redhat.com>
12606
12607 From Jeff Law <law@redhat.com>:
12608 * infttrace.c: Include <sys/pstat.h>.
12609 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12610 exec file if the ttrace equivalent fails.
12611
15f698d2
AC
126122002-01-20 Andrew Cagney <ac131313@redhat.com>
12613
12614 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12615 (closeLogFile): Ditto.
12616
f86ddd7c
MC
126172002-01-20 Michael Chastain <mec@shout.net>
12618
12619 * top.c (print_gdb_version): Bump copyright year to 2002.
12620
904507ce
AC
126212002-01-20 Andrew Cagney <ac131313@redhat.com>
12622
12623 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12624 Zannoni and Eli Zaretskii.
12625
d7f0b9ce
DJ
126262002-01-20 Daniel Jacobowitz <drow@mvista.com>
12627
12628 * buildsym.c: Update copyright years.
12629 * c-typeprint.c: Likewise.
12630 * dwarf2read.c: Likewise.
12631 * f-typeprint.c: Likewise.
12632 * gdbtypes.c: Likewise.
12633 * gdbtypes.h: Likewise.
12634 * hp-symtab-read.c: Likewise.
12635 * hpread.c: Likewise.
12636 * mdebugread.c: Likewise.
12637 * p-typeprint.c: Likewise.
12638
3fd3d7d2
AC
126392002-01-20 Andrew Cagney <ac131313@redhat.com>
12640
12641 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12642 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12643 byte-order selectable.
12644 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12645 * arch-utils.c: Ditto.
12646 (set_endian): Ditto.
12647 (set_endian_from_file): Ditto.
12648 * gdbserver/low-sim.c (create_inferior): Ditto.
12649 * gdbarch.sh: Ditto.
12650 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12651 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12652 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12653 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12654 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12655 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12656 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12657 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12658 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12659 macro definition.
12660 * config/mips/tm-wince.h: Remove #undef of macro
12661 TARGET_BYTE_ORDER_SELECTABLE.
12662 * config/sh/tm-wince.h: Ditto.
12663
b02dede2
DJ
126642002-01-20 Daniel Jacobowitz <drow@mvista.com>
12665
12666 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12667 member function fields. Add accessor macro
12668 TYPE_FN_FIELD_ARTIFICIAL.
12669 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12670 * c-typeprint.c (c_type_print_base): Skip artificial member
12671 functions.
12672
c3643761
DJ
126732002-01-20 Daniel Jacobowitz <drow@mvista.com>
12674
12675 * f-typeprint.c: Delete unused function f_type_print_args.
12676 * p-typeprint.c: Delete unused function pascal_type_print_args.
12677
8176bb6d
DJ
126782002-01-20 Daniel Jacobowitz <drow@mvista.com>
12679
12680 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12681 comment. Add ``artificial'' to ``union field_location''.
12682
12683 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12684
12685 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12686 * mdebugread.c (parse_symbol): Likewise.
12687 * stabsread.c (define_symbol): Likewise.
12688 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12689 initializing TYPE_FIELD_BITPOS to n (obsolete).
12690 (hpread_doc_function_type): Likewise.
12691 * hpread.c (hpread_function_type): Likewise.
12692
7fd60527
AC
126932002-01-20 Andrew Cagney <ac131313@redhat.com>
12694
12695 * configure.in (host_makefile_frag): Only require a host makefile
12696 fragment when a native build.
12697 * configure: Re-generate.
12698
c2f05ac9
AC
126992002-01-20 Andrew Cagney <ac131313@redhat.com>
12700
12701 * doublest.h (floatformat_from_type): Declare.
12702 * doublest.c (floatformat_from_type): New function.
12703 (convert_typed_floating): Use.
12704
12705 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12706 call to function floatformat_from_type.
12707
12708 * gdbarch.sh (IEEE_FLOAT): Delete.
12709 * gdbarch.h, gdbarch.c: Re-generate.
12710 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12711 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12712 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12713 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12714 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12715 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12716 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12717 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12718 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12719 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12720 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12721 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12722
12723 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12724 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12725 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12726 * sh-tdep.c (sh_gdbarch_init): Ditto.
12727 * mips-tdep.c (mips_gdbarch_init): Ditto.
12728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12729 * cris-tdep.c (cris_gdbarch_init): Ditto.
12730
abf22e64
AJ
127312002-01-20 Jiri Smid <smid@suse.cz>
12732
12733 * configure.host, configure.tgt: Support x86-64.
12734 * NEWS: Note new target x86-64.
12735
b7c4cbf8
AJ
12736 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12737 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12738 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12739 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12740 x86-64-linux-nat.o): Fix dependencies.
12741
82600034
AC
127422002-01-19 Andrew Cagney <ac131313@redhat.com>
12743
12744 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12745 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12746 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12747 * config/sparc/xm-sun4os4.h: Delete file.
12748 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12749
bbe5c628
AC
127502002-01-19 Andrew Cagney <ac131313@redhat.com>
12751
12752 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12753 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12754 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12755 * config/i386/i386lynx.mh (XM_FILE): Delete.
12756 * config/rs6000/xm-rs6000ly.h: Delete file.
12757 * config/sparc/xm-sparclynx.h: Delete file.
12758 * config/m68k/xm-m68klynx.h: Delete file.
12759 * config/i386/xm-i386lynx.h: Delete file.
12760 * config/xm-lynx.h: Delete file.
12761 * config/djgpp/fnchange.lst: Update.
12762
f8453e34
JT
127632002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12764
12765 * alpha-tdep.c (alpha_register_byte): New function.
12766 (alpha_register_raw_size): Ditto.
12767 (alpha_register_virtual_size): Ditto.
12768 (alpha_skip_prologue_internal): Renamed from
12769 alpha_skip_prologue.
12770 (alpha_skip_prologue): New version that calls
12771 alpha_skip_prologue_internal.
12772 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12773 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12774 second argument from alpha_skip_prologue.
12775 (REGISTER_BYTE): Use alpha_register_byte.
12776 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12777 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12778 (FRAMELESS_FUNCTION_INVOCATION): Use
12779 generic_frameless_function_invocation_not.
12780 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12781 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12782
52d9e613
AC
127832002-01-19 Andrew Cagney <ac131313@redhat.com>
12784
12785 * config/mips/xm-news-mips.h: Delete file.
12786 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12787
12788 * config/m88k/xm-m88k.h: Delete file.
12789 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12790 * config/m88k/xm-delta88v4.h: Ditto.
12791 * config/m88k/xm-delta88.h: Ditto.
12792
12793 * config/alpha/xm-fbsd.h: Delete file.
12794 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12795
12796 * config/sparc/xm-sparc.h: Delete file.
12797 * Makefile.in (xm-sun4os4.h): Delete dependency.
12798 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12799 * config/sparc/xm-sun4os4.h: Ditto.
12800 * config/sparc/xm-linux.h: Ditto.
12801
12802 * config/i386/xm-windows.h: Delete file.
12803
2d1b2124
AC
128042002-01-19 Andrew Cagney <ac131313@redhat.com>
12805
12806 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12807 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12808
ee1f65f0
JT
128092002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12810
12811 * alpha-tdep.c (alpha_call_dummy_words): New.
12812 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12813 (CALL_DUMMY_P): Define.
12814 (CALL_DUMMY_WORDS): Define.
12815 (SIZEOF_CALL_DUMMY_WORDS): Define.
12816
98081e55
PB
128172002-01-19 Per Bothner <per@bothner.com>
12818
12819 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12820 isn't NULL, which can happen with some gcj-3.x-produced code.
12821
0d056799
JT
128222002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12823
12824 * alpha-tdep.c (alpha_register_virtual_type): New function.
12825 (alpha_init_frame_pc_first): Ditto.
12826 (alpha_fix_call_dummy): Ditto.
12827 (alpha_store_struct_return): Ditto.
12828 (alpha_extract_struct_value_address): Ditto.
12829 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12830 alpha_register_virtual_type.
12831 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12832 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12833 alpha_extract_struct_value_address.
12834 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12835 (INIT_FRAME_PC): Use init_frame_pc_noop.
12836 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12837
4604bcad
MK
128382002-01-19 Mark Kettenis <kettenis@gnu.org>
12839
12840 * i386gnu-nat.c: Include "i386-tdep.h".
12841 (fetch_fpregs): Simplify code dealing with uninitialized floating
12842 point states such that it doesn't require FP7_REGNUM.
12843
140f9984
JT
128442002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12845
abf22e64
AJ
12846 * alpha-tdep.c (frame_extra_info): New.
12847 (alpha_find_saved_regs): Make static. Use
140f9984
JT
12848 frame->extra_info.
12849 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
12850 (alpha_frame_saved_pc): Use frame->extra_info.
12851 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12852 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
12853 (init_extra_frame_info): Rename to...
12854 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 12855 (alpha_print_extra_frame_info): New function.
140f9984
JT
12856 (alpha_frame_locals_address): Ditto.
12857 (alpha_frame_args_address): Ditto.
abf22e64 12858 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
12859 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12860 alpha_frame_args_address.
abf22e64 12861 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 12862 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
12863 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12864 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
12865 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12866 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12867
d734c450
JT
128682002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12869
12870 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12871 (alpha_cannot_fetch_register): Ditto.
12872 (alpha_cannot_store_register): Ditto.
12873 (alpha_register_convertible): Ditto.
12874 (alpha_use_struct_convention): Ditto.
12875 * config/alpha/tm-alpha.h: Update copyright years.
12876 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12877 (INNER_THAN): Use core_addr_lessthan.
12878 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12879 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12880 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12881 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12882 (FRAME_CHAIN): Remove unnecessary cast.
12883
b4ceaee6
AC
128842002-01-18 Andrew Cagney <ac131313@redhat.com>
12885
12886 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12887 obsolete.
12888
0a65a603
AC
128892002-01-18 Andrew Cagney <ac131313@redhat.com>
12890
12891 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12892 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12893 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12894 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12895 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12896 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12897 * x86-64-linux-nat.c: Ditto.
12898
636a6dfc
JT
128992002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12900
abf22e64 12901 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
12902 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12903 (REGISTER_NAME): Define.
12904
acceddb6
JT
129052002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12906
12907 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12908
ec32e4be
JT
129092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12910
12911 * alpha-tdep.c: Update copyright years.
12912 (alpha_next_pc): New function.
12913 (alpha_software_single_step): Ditto.
12914 * config/alpha/tm-alpha.h: Add prototype for
12915 alpha_software_single_step.
12916
e771a871
JT
129172002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12918
12919 * alphabsd-nat.c: Update copyright years.
12920 (fill_gregset): Use regcache_collect.
12921 (fill_fpregset): Likewise.
12922 (fetch_inferior_registers): Only fetch integer registers
12923 if requested to do so.
12924 (store_inferior_registers): Only store integer registers
12925 if requested to do so.
12926
7708fa01
AC
129272002-01-17 Andrew Cagney <ac131313@redhat.com>
12928
12929 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12930 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12931 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12932 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12933 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12934 * config/arm/linux.mh (XDEPFILES): Delete.
12935 * config/arm/nbsd.mh (XDEPFILES): Delete.
12936 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12937 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12938 * config/i386/i386m3.mh (XDEPFILES): Delete.
12939 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12940 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12941 * config/i386/fbsd.mh (XDEPFILES): Delete.
12942 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12943 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12944 * config/i386/i386v4.mh (XDEPFILES): Delete.
12945 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12946 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12947 * config/i386/i386aix.mh (XDEPFILES): Delete.
12948 * config/i386/go32.mh (XDEPFILES): Delete.
12949 * config/i386/cygwin.mh (XDEPFILES): Delete.
12950 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12951 * config/i386/i386mach.mh (XDEPFILES): Delete.
12952 * config/i386/i386v32.mh (XDEPFILES): Delete.
12953 * config/i386/linux.mh (XDEPFILES): Delete.
12954 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12955 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12956 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12957 * config/i386/i386sco.mh (XDEPFILES): Delete.
12958 * config/i386/i386v.mh (XDEPFILES): Delete.
12959 * config/i386/nbsd.mh (XDEPFILES): Delete.
12960 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12961 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12962 * config/i386/symmetry.mh (XDEPFILES): Delete.
12963 * config/i386/obsd.mh (XDEPFILES): Delete.
12964 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12965 * config/ia64/linux.mh (XDEPFILES): Delete.
12966 * config/ia64/aix.mh (XDEPFILES): Delete.
12967 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12968 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12969 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12970 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12971 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12972 * config/m68k/linux.mh (XDEPFILES): Delete.
12973 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12974 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12975 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12976 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12977 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12978 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12979 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12980 * config/m88k/delta88.mh (XDEPFILES): Delete.
12981 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12982 * config/m88k/m88k.mh (XDEPFILES): Delete.
12983 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12984 * config/mips/linux.mh (XDEPFILES): Delete.
12985 * config/mips/irix6.mh (XDEPFILES): Delete.
12986 * config/mips/irix5.mh (XDEPFILES): Delete.
12987 * config/mips/irix4.mh (XDEPFILES): Delete.
12988 * config/mips/irix3.mh (XDEPFILES): Delete.
12989 * config/mips/decstation.mh (XDEPFILES): Delete.
12990 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12991 (NATDEPFILES): Move core-aout.o to here.
12992 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12993 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12994 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12995 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12996 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12997 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12998 * config/pa/hpux11.mh (XDEPFILES): Delete.
12999 * config/powerpc/aix.mh (XDEPFILES): Delete.
13000 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13001 * config/powerpc/linux.mh (XDEPFILES): Delete.
13002 * config/romp/rtbsd.mh: Rename XDEPFILES.
13003 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13004 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13005 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13006 * config/s390/s390.mh (XDEPFILES): Delete.
13007 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13008 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13009 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13010 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13011 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13012 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13013 * config/sparc/linux.mh (XDEPFILES): Delete.
13014 * config/vax/vaxult.mh (XDEPFILES): Delete.
13015 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13016 * Makefile.in (DEPFILES): Remove XDEPFILES.
13017
375fc983
AC
130182002-01-17 Andrew Cagney <ac131313@redhat.com>
13019
13020 * utils.c (internal_verror): Fix comments, default is yes not no.
13021 Update queries to match. Default to quit and dump core.
13022
8926118c
AC
130232002-01-17 Andrew Cagney <ac131313@redhat.com>
13024
13025 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13026 copyright.
13027 * defs.h, event-top.c, gdbcmd.h: Ditto.
13028 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13029 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13030 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13031 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13032 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13033 * mi/mi-main.c:Ditto.
13034
13035 * stack.c, symfile.c: Update copyright.
13036
45b7b345
DJ
130372002-01-17 Daniel Jacobowitz <drow@mvista.com>
13038
db728ff7
DJ
13039 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13040 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13041 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13042 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13043
db728ff7
DJ
130442002-01-17 Daniel Jacobowitz <drow@mvista.com>
13045
13046 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13047 * gdbserver/low-lynx.c (myattach): Likewise.
13048 * gdbserver/low-nbsd.c (myattach): Likewise.
13049 * gdbserver/low-sim.c (myattach): Likewise.
13050 * gdbserver/low-sparc.c (myattach): Likewise.
13051 * gdbserver/low-sun3.c (myattach): Likewise.
13052
13053 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13054
db728ff7 13055 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13056 (main): Handle "--attach".
13057
8de3c354
AC
130582002-01-16 Andrew Cagney <ac131313@redhat.com>
13059
13060 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13061 maintainer.
13062
b0129042
DJ
130632002-01-15 Daniel Jacobowitz <drow@mvista.com>
13064
13065 * c-typeprint.c (is_type_conversion_operator): Add additional
13066 check for non-conversion operators.
13067
ba8679fb 130682002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13069
13070 * linux-proc.c: Add "info proc" command, a la procfs.c.
13071 (read_mapping): New function, abstract and re-use code.
13072 (linux_find_memory_regions): Use new func read_mapping.
13073 (linux_info_proc_cmd): New function, implement "info proc".
13074 (_initialize_linux_proc): Add new command "info proc".
13075
e4f9b4d5
MS
130762002-01-15 Michael Snyder <msnyder@redhat.com>
13077
13078 * symfile.c (generic_load): Use bfd_map_over_sections method
13079 instead of manipulating bfd structure members directly.
13080 (add_section_size_callback): New function, bfd sections callback
13081 used by generic_load.
13082 (load_sections_callback): New function, bfd sections callback
13083 used by generic_load.
13084
08cf96df
EZ
130852002-01-15 Elena Zannoni <ezannoni@redhat.com>
13086
abf22e64 13087 [Based on work by Jim Blandy]
08cf96df
EZ
13088 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13089 (builtin_type_vec128): Export.
13090 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13091 types.
13092 (builtin_type_vec128): New builtin type for 128 bit vector
13093 registers.
13094 (build_gdbtypes): Initialize builtin_type_v16qi and
13095 builtin_type_v8hi. Create the vec128 register builtin type
13096 structure.
13097 (build_builtin_type_vec128): New function.
abf22e64 13098 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13099 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13100 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13101 AltiVec register to new builtin type.
13102
d7242108
DJ
131032001-01-15 Daniel Jacobowitz <drow@mvista.com>
13104
13105 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13106 to make_cv_type.
13107
4ee3352d
AC
131082002-01-14 Andrew Cagney <ac131313@redhat.com>
13109
13110 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13111 CLEAN_UP_REGISTER_VALUE.
13112 * regcache.c (supply_register): Update only call.
13113
f015b2e7
AC
131142002-01-14 Andrew Cagney <ac131313@redhat.com>
13115
13116 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13117 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13118 a29k-*-vxworks* targets as obsolete.
13119
356ae49d
MS
131202002-01-14 Michael Snyder <msnyder@redhat.com>
13121
13122 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13123 until we can resolve portability issues.
13124 * gregset.h: Remove references to fpxregs.
13125 * gcore.c (gcore_command): Initialize note_sec to NULL.
13126
ade8f45e
AC
131272002-01-13 Andrew Cagney <ac131313@redhat.com>
13128
13129 * signals.c (target_signal_to_name): Rewrite. Only use
13130 signals[].name when in bounds and non-NULL.
abf22e64 13131
89c49e7a
AC
131322002-01-13 Andrew Cagney <ac131313@redhat.com>
13133
13134 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13135 * signals.c (target_signal_to_name): Verify that SIG is within the
13136 bounds of the signals array.
13137
4daa9f9f
AC
131382002-01-13 Andrew Cagney <ac131313@redhat.com>
13139
13140 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13141
ba4bbdcb
KS
131422002-01-13 Keith Seitz <keiths@redhat.com>
13143
13144 * stack.c (print_frame_info_base): Print the frame's pc
13145 only if when print_frame_info_listing_hook is not defined.
13146
575bbeb6
KS
131472002-01-13 Keith Seitz <keiths@redhat.com>
13148
13149 * varobj.c (varobj_set_value): Make sure that there were no
13150 errors evaluating the object before attempting to set its
13151 value.
13152 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13153 so this offset adjustment is no longer necessary.
13154 (create_child): Don't set the error flag if the child is
13155 a CPLUS_FAKE_CHILD.
13156 (value_of_child): If value_fetch_lazy fails, return NULL
13157 so that callers will be notified that an error occurred.
13158 (c_value_of_variable): Delay check of variable's validity
13159 until later. We actually want all structs and unions to have
13160 the value "{...}".
13161 Do not return "???" for variables which could not be evaluated.
13162 This error condition must be returned to the caller so that it
13163 can get the error condition from gdb.
13164 (cplus_name_of_child): Adjust index for vptr before figuring
13165 out the name of the child.
13166 (cplus_value_of_child): If a child's (real) parent is not valid,
13167 don't even bother trying to give a value for it. Just return
13168 an error. Change all instances in this function.
13169 (cplus_type_of_child): If our parent is one of the "fake"
13170 parents, we need to get at the type of the real parent, and
13171 derive the child's true type using this information.
13172
b76898ab
AC
131732002-01-13 Andrew Cagney <ac131313@redhat.com>
13174
13175 From 2002-01-09 John Marshall <johnm@falch.net>:
13176 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13177 sources.redhat.com, and tweak some related URLs which had
13178 suffered from linkrot.
13179
b6649e88
AC
131802002-01-13 Andrew Cagney <ac131313@redhat.com>
13181
13182 From Jeff law:
13183 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13184 structures passed in registers.
13185
82cc5033
EZ
131862002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13187
13188 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13189 white space which prevented compilation. Reported by DSK
13190 <dsk@student.unsw.edu.au>.
13191
ba5f2f8a
MS
131922002-01-11 Michael Snyder <msnyder@redhat.com>
13193
fbd35540
MS
13194 * symfile.c (build_section_addr_info_from_section_tab):
13195 Use bfd access method instead of manipulating bfd directly.
13196 (syms_from_objfile): Ditto.
13197 (simple_overlay_update_1): Ditto.
13198 (simple_overlay_update): Ditto.
13199 (generic_load): Ditto.
13200 (overlay_unmapped_address): FIXME comment, bfd access methods.
13201 (sections_overlap): FIXME comment, bfd access methods.
13202 (pc_in_mapped_range): FIXME comment, bfd access methods.
13203 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13204 (section_is_mapped): FIXME comment, bfd access methods.
13205 (section_is_overlay): FIXME comment, bfd access methods.
13206
ba5f2f8a
MS
13207 * symfile.c (generic_load): Whitespace and long line cleanups.
13208 Remove duplicate variable, change several local variables to
13209 more appropriate data types.
13210 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13211
17df2af6
AC
132122002-01-12 Andrew Cagney <ac131313@redhat.com>
13213
13214 From Peter Schauer:
13215 * language.c (longest_local_hex_string_custom): Use phex_nz to
13216 convert NUM to a hex string.
13217
ec920329
EZ
132182002-01-12 Elena Zannoni <ezannoni@redhat.com>
13219
13220 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13221 the function.
538a76d6 13222 Update Copyright year.
ec920329 13223
3abd2e01
AC
132242002-01-12 Andrew Cagney <ac131313@redhat.com>
13225
13226 * language.c (longest_raw_hex_string): Delete unused function.
13227
b21b22e0
PS
132282002-01-11 Petr Sorfa <petrs@caldera.com>
13229
13230 * MAINTAINERS (write-after-approval): Add myself.
13231 * dwarf2read.c (read_tag_string_type): Handling of
13232 DW_AT_byte_size.
13233 (read_tag_string_type): FORTRAN fix to prevent propagation of
13234 first string size.
13235 (set_cu_language): Handling of DW_LANG_Fortran95
13236
747fe712
RE
132372002-01-11 Richard Earnshaw <rearnsha@arm.com>
13238
13239 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13240 GETPID(inferior_ptid).
13241 (store_inferior_registers): Likewise.
13242
f1bea926
JM
132432002-01-10 Jason Merrill <jason@redhat.com>
13244
13245 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13246 Fix DW_OP_minus.
13247
ae940673
AC
132482002-01-10 Andrew Cagney <ac131313@redhat.com>
13249
13250 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13251 and bfd/elf32-sh-nbsd.c.
13252
00546b04
MS
132532002-01-10 Michael Snyder <msnyder@redhat.com>
13254
352ed7b4
MS
13255 * NEWS: Mention --pid and corefile/proc-id behavior change.
13256
c18be923
MS
13257 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13258 * gcore.c: Include cli/cli-decode.h instead of command.h.
13259
00546b04
MS
13260 * main.c (captured_main): Add new command line option "--pid".
13261 If the second command line argument (following the symbol-file)
13262 begins with a digit, try to attach to it before trying to open
13263 it as a corefile.
13264 (print_gdb_help): Document the "--pid" argument.
13265
db60ec62
EZ
132662002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13267
13268 * completer.c (command_completer): New function.
13269
13270 * completer.h <command_completer>: Add prototype.
13271
13272 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13273 completer for the "help" command.
13274
39c22d1a
JM
132752002-01-09 Jason Merrill <jason@redhat.com>
13276
13277 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13278
c564377f
MS
132792002-01-09 Michael Snyder <msnyder@redhat.com>
13280
975aec09
MS
13281 * i386-linux-nat.c (fill_fpxregset): Make global.
13282 (store_fpxregset): Ditto.
13283
db4a10fa
MS
13284 * gregset.h (gdb_fpxregset_t): Define.
13285 (supply_fpxregset): Prototype.
13286 (fill_fpxregset): Prototype.
13287
c564377f
MS
13288 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13289
c3d45d70
RE
132902002-01-09 Richard Earnshaw <rearnsha@arm.com>
13291
13292 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13293 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13294 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13295
fcc87af1
AC
132962002-01-09 Andrew Cagney <ac131313@redhat.com>
13297
13298 * MAINTAINERS: Update target maintainer rules so that any
13299 Maintainer can approve a tested patch for a maintenance-only
13300 target.
13301
dd96c05b
RE
133022002-01-09 Richard Earnshaw <rearnsha@arm.com>
13303
d4297db9 13304 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13305
d4297db9 13306 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13307 IN_SIGTRAMP.
13308
145fdc6e
MS
133092002-01-08 Michael Snyder <msnyder@redhat.com>
13310
13311 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13312 real name of the executable, rather than the /proc name.
13313
be4d1333
MS
133142002-01-03 Michael Snyder <msnyder@redhat.com>
13315
13316 Implement a "generate-core-file" command in gdb, save target state.
13317 * gcore.c: New file. Implement new command 'generate-core-file'.
13318 Save a corefile image of the current state of the inferior.
13319 * linux-proc.c: Add linux-specific code for saving corefiles.
13320 * target.h (struct target_ops): Add new target vectors for saving
13321 corefiles; to_find_memory_regions and to_make_corefile_notes.
13322 (target_find_memory_regions): New macro.
13323 (target_make_corefile_notes): New macro.
13324 * target.c (update_current_target): Inherit new target methods.
13325 (dummy_find_memory_regions): New place-holder method.
13326 (dummy_make_corefile_notes): New place-holder method.
13327 (init_dummy_target): Initialize new dummy target vectors.
13328 * exec.c (exec_set_find_memory_regions): New function.
13329 Allow the exec_ops vector for memory regions to be taken over.
13330 (exec_make_note_section): New function, target vector method.
13331 * defs.h (exec_set_find_memory_regions): Export prototype.
13332 * procfs.c (proc_find_memory_regions): New function, corefile method.
13333 (procfs_make_note_section): New function, corefile method.
13334 (init_procfs_ops): Set new target vector pointers.
13335 (find_memory_regions_callback): New function.
13336 (procfs_do_thread_registers): New function.
13337 (procfs_corefile_thread_callback): New function.
13338 * sol-thread.c (sol_find_memory_regions): New function.
13339 (sol_make_note_section): New function.
13340 (init_sol_thread_ops): Initialize new target vectors.
13341 * inftarg.c (inftarg_set_find_memory_regions): New function.
13342 Allow to_find_memory_regions vector to be taken over.
13343 (inftarg_set_make_corefile_notes): New function.
13344 Allow to_make_corefile_notes vector to be taken over.
13345 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13346 interface layer if not target_has_execution (may be a corefile).
13347 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13348 * config/sparc/sun4sol2.mh: Ditto.
13349 * config/alpha/alpha-linux.mh: Ditto.
13350 * config/arm/linux.mh: Ditto.
13351 * config/i386/x86-64linux.mh: Ditto.
13352 * config/ia64/linux.mh: Ditto.
13353 * config/m68k/linux.mh: Ditto.
13354 * config/mips/linux.mh: Ditto.
13355 * config/powerpc/linux.mh: Ditto.
13356 * config/sparc/linux.mh: Ditto.
13357
c6b92abd
MS
133582002-01-07 Michael Snyder <msnyder@redhat.com>
13359
13360 * arm-linux-nat.c: Remove references to regcache.c internal data
13361 (registers[] and register_valid[]).
13362
4b09dc8c
MS
133632002-01-07 Michael Snyder <msnyder@redhat.com>
13364
abf22e64
AJ
13365 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13366 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13367 symbol file and shlibs.
13368 * Makefile.in: Add rule for linux-proc.o.
13369 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13370 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13371 * config/arm/linux.mh: Ditto.
13372 * config/i386/linux.mh: Ditto.
13373 * config/i386/x86-64linux.mh: Ditto.
13374 * config/ia64/linux.mh: Ditto.
13375 * config/m68k/linux.mh: Ditto.
13376 * config/mips/linux.mh: Ditto.
13377 * config/powerpc/linux.mh: Ditto.
13378 * config/sparc/linux.mh: Ditto.
13379
c25b74ac
PM
133802002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13381
13382 * win32-nat.c: Add i386-tdep.h dependency.
13383
94cd915f
MS
133842002-01-07 Michael Snyder <msnyder@redhat.com>
13385
c7cccb76
MS
13386 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13387 instead of bfd_get_arch_size. Don't bail out just because
13388 there's no exec_bfd.
abf22e64 13389
34c0bd93
MS
13390 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13391 * p-valprint.c (pascal_object_print_value): Ditto.
13392 * somread.c (som_symtab_read): Ditto.
13393 * symfile.c (simple_free_overlay_region_table): Ditto.
13394 * valops.c (value_assign): Ditto.
13395
21c1c920
MS
13396 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13397 use tilde_expand and strerror for opening save-tracepoints file.
13398
5bbd998e
MS
13399 * thread-db.c (thread_db_new_objfile): Indendation fix.
13400
94cd915f
MS
13401 * infptrace.c (GDB_MAX_ALLOCA): New define.
13402 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13403 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13404 can be overridden with whatever value is appropriate to the host).
13405 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13406 alloca to allocate potentially large buffer.
13407 * rs6000-nat.c (child_xfer_memory): Ditto.
13408 * symm-nat.c (child_xfer_memory): Ditto.
13409 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13410
494e8a93
JSC
134112002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13412
13413 From Nick Clifton <nickc@redhat.com>
13414 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13415
d0e1d48e
MS
134162002-01-07 Michael Snyder <msnyder@redhat.com>
13417
abf22e64 13418 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13419 Don't use exec_bfd if it's NULL.
13420
290b2c7a
MK
134212002-01-06 Mark Kettenis <kettenis@gnu.org>
13422
abf22e64 13423 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13424
aef21287
AC
134252002-01-06 Andrew Cagney <ac131313@redhat.com>
13426
13427 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13428 * gnu-nat.c: Ditto.
13429
30efa627
AC
134302002-01-06 Andrew Cagney <ac131313@redhat.com>
13431
13432 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13433 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13434 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13435 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13436 z8k-coff have not been multi-arched. Update z8k-coff build
13437 status.
13438
9b4ff276
AC
134392002-01-06 Andrew Cagney <ac131313@redhat.com>
13440
13441 * MAINTAINERS: Mark a29k target as obsolete.
13442 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13443 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13444 comments.
13445 * NEWS: Note that a29k targets are obsolete.
13446 * a29k-tdep.c: Mark as obsolete.
13447 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13448 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13449 a29k-*-vxworks* targets as obsolete.
13450 * remote-adapt.c: Obsolete.
13451 * remote-eb.c: Obsolete.
13452 * remote-mm.c: Obsolete.
13453 * remote-udi.c: Obsolete.
13454 * config/a29k/a29k-udi.mt: Obsolete.
13455 * config/a29k/a29k.mt: Obsolete.
13456 * config/a29k/tm-a29k.h: Obsolete.
13457 * config/a29k/tm-vx29k.h: Obsolete.
13458 * config/a29k/vx29k.mt: Obsolete.
13459
a9011d31
AC
134602002-01-05 Andrew Cagney <ac131313@redhat.com>
13461
13462 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13463 with BFD_ENDIAN_BIG.
13464
9299404e
AC
134652002-01-05 Andrew Cagney <ac131313@redhat.com>
13466
13467 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13468 * configure, config.in: Re-generate.
13469 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13470 * defs.h: Do not include <endian.h>.
13471
7e89e357
JT
134722002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13473
13474 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13475 * config.in: Regenerate.
13476 * configure.in: Update copyright years.
13477 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13478 * configure: Regenerate.
13479 * i386bsd-nat.c: Update copyright years.
13480 (fill_gregset): Use regcache_collect.
13481 (fetch_inferior_registers): Only fetch integer registers
13482 if requested to do so. Add support for XMM registers
13483 using PT_GETXMMREGS.
13484 (store_inferior_registers): Only store integer registers
13485 if requested to do so. Add support for XMM registers
13486 using PT_SETXMMREGS.
13487 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13488 (store_inferior_registers): Remove.
13489 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13490 (fetch_elfcore_registers): New function.
13491 (i386nbsd_elfcore_fns): New.
13492 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13493 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13494 i386bsd-nat.o.
13495 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13496 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13497 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13498 * config/i386/tm-nbsd.h: Update copyright years.
13499 (HAVE_SSE_REGS): Define.
13500 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13501 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13502 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13503 (SIGCONTEXT_PC_OFFSET): Remove.
13504 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13505
a752853e
AC
135062002-01-05 Andrew Cagney <ac131313@redhat.com>
13507
13508 * configure.tgt: Remove powerpc-*-macos* target.
13509 * config/m68k/xm-mpw.h: Delete file.
13510 * config/xm-mpw.h: Delete file.
13511 * ser-mac.c: Delete file.
13512 * mpw-make.sed: Delete file.
13513 * mpw-config.in: Delete file.
13514 * mac-xdep.c: Delete file.
13515 * mac-gdb.r: Delete file.
13516 * mac-defs.h: Delete file.
13517 * mac-nat.c: Delete file.
13518 * config/powerpc/macos.mh: Delete file.
13519 * config/powerpc/macos.mt: Delete file.
13520 * config/powerpc/nm-macos.h: Delete file.
13521 * config/powerpc/tm-macos.h: Delete file.
13522 * source.c (openp, open_source_file): Remove obsolete code.
13523 * top.c (gdb_readline): Ditto.
13524 * utils.c (query): Ditto.
13525 * event-top.c (display_gdb_prompt): Ditto.
13526 * Makefile.in (ser-mac.o): Delete obsolete target.
13527 * NEWS: Update.
13528
d7449b42
AC
135292002-01-04 Andrew Cagney <ac131313@redhat.com>
13530
13531 * defs.h (BIG_ENDIAN): Delete macro definition.
13532 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13533 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13534 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13535 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13536 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13537 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13538 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13539 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13540 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13541 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13542 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13543 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13544 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13545 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13546 * gdbarch.c: Re-generate.
13547
356374e8
DJ
135482002-01-04 Daniel Jacobowitz <drow@mvista.com>
13549
13550 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13551 for core files.
13552
a2b8f8f8
JT
135532002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13554
13555 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13556
12466af9
AC
135572002-01-04 Andrew Cagney <ac131313@redhat.com>
13558
13559 * value.h (value_ptr): Delete typedef.
13560
3549ab40
JT
135612002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13562
13563 * i386nbsd-nat.c: Update copyright years.
13564 Include i386-tdep.h.
13565
fedbd091
EZ
135662002-01-04 Elena Zannoni <ezannoni@redhat.com>
13567
13568 * stabsread.c: Update copyright years.
13569
13570 From Debashis Mahata <debashis.mahata@wipro.com>:
13571 (read_struct_fields): Deal with Sun C compiler erroneous stab
13572 output for structs and unions.
fec8b34f 13573 Fix PR gdb/269.
fedbd091 13574
eb43544b
DJ
135752002-01-04 Daniel Jacobowitz <drow@mvista.com>
13576
13577 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13578 prototype.
13579
1514d34e
DJ
135802002-01-04 Daniel Jacobowitz <drow@mvista.com>
13581
13582 * cp-abi.c: Fix whitespace.
13583 (baseclass_offset): New wrapper function.
13584 * cp-abi.h (baseclass_offset): Add prototype.
13585 (struct cp_abi_ops): Add baseclass_offset pointer.
13586
13587 * valops.c (vb_match): Move to...
13588 * gnu-v2-abi.c (vb_match): here.
13589 * valops.c (baseclass_offset): Move to...
13590 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13591
13592 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13593
13594 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13595 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13596 * hpacc-abi.c (init_hpacc_ops): Likewise.
13597
7f8c9282
DJ
135982002-01-04 Daniel Jacobowitz <drow@mvista.com>
13599
13600 * valops.c (find_overload_match): Accept obj as a
13601 reference parameter. Update it before returning.
13602 * value.h (find_overload_match): Update prototype.
13603 * eval.c (evaluate_subexp_standard): Pass object to
13604 find_overload_match by reference.
13605
f23631e4
AC
136062002-01-03 Andrew Cagney <ac131313@redhat.com>
13607
13608 * valarith.c: Replace value_ptr with struct value pointer. Remove
13609 register attribute from value declarations.
13610 * valops.c: Ditto.
13611 * value.h: Ditto.
13612 * scm-lang.c (scm_lookup_name): Ditto.
13613
79e10fab 136142002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13615
79e10fab
AC
13616 Abstract the functionality of iterating over mapped memory
13617 regions into a general purpose iterator function.
abf22e64 13618 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13619 iterator for memory sections.
13620 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13621 (solib_mappings_callback): New function, callback for above.
13622 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13623 (info_mappings_callback): New function, callback for above.
13624
13625 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13626
c5ad026a
MK
136272002-01-01 Mark Kettenis <kettenis@gnu.org>
13628
d2a7c97a
MK
13629 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13630 * i386-tdep.c: Include "elf-bfd.h".
13631 (process_note_abi_tag_sections): New function.
13632 (i386_gdbarch_init): Add code to recognize various OS/ABI
13633 combinations.
13634
c5ad026a
MK
13635 * maint.c (_initialize_maint_cmds): Add missing \ in
13636 string-literal.
13637
a1a5b71e 13638For older changes see ChangeLog-2001
c906108c
SS
13639\f
13640Local Variables:
13641mode: change-log
13642left-margin: 8
13643fill-column: 74
13644version-control: never
13645End:
This page took 0.948623 seconds and 4 git commands to generate.