2002-06-06 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2
3 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5 (d10v_integer_to_address): Rewrite.
6 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7 the d10v specific functions which take care of converting to the
8 correct space.
9
10 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
11
12 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
13 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
14
15 2002-06-02 Andrew Cagney <ac131313@redhat.com>
16
17 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
18 includes.
19 * config/tm-linux.h: Ditto.
20 * config/alpha/tm-alphalinux.h: Ditto.
21 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
22 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
23 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
24 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
25 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
26 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
27 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
28 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
29 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
30 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
31 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
32 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
33 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
34 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
35 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
36 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
37 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
38 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
39 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
40 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
41 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
42 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
43 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
44 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
45 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
46 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
47 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
48 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
49 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
50 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
51 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
52 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
53 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
54 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
55 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
56 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
57 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
58
59 2002-05-04 Aidan Skinner <aidan@velvet.net>
60
61 * ada-exp.tab.c: New file
62 * ada-exp.y: New file
63 * ada-lang.c: New file
64 * ada-lang.h: New file
65 * ada-lex.c: New file
66 * ada-lex.l: New file
67 * ada-tasks.c: New file
68 * ada-typeprint.c: New file
69 * ada-valprint.c: New file
70
71 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
72
73 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
74 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
75
76 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
77
78 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
79 insetead of ppc-linux-tdep.o.
80 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
81 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
82
83 2002-06-02 Andrew Cagney <ac131313@redhat.com>
84
85 2002-05-07 Christian Groessler <chris@groessler.org>
86 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
87 bit register contents for little endian hosts.
88
89 2002-06-01 Andrew Cagney <ac131313@redhat.com>
90
91 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
92 any maintainer.
93
94 2002-06-01 Andrew Cagney <ac131313@redhat.com>
95
96 * gdbarch.h: Regenerate.
97
98 2002-06-01 Andrew Cagney <ac131313@redhat.com>
99
100 * MAINTAINERS: Add everyone to write-after-approval list.
101
102 2002-06-01 Andrew Cagney <ac131313@redhat.com>
103
104 * stack.c (frame_info): Use frame_register_unwind instead of
105 saved_regs. Mention when the SP is on the stack or in a register.
106
107 * frame.h (frame_register_unwind_ftype): Define. Document.
108 (struct frame_info): Add field register_unwind and
109 register_unwind_cache.
110 (frame_register_unwind): Declare.
111 (generic_unwind_get_saved_register): Declare.
112
113 * frame.c (frame_register_unwind): New function.
114 (generic_unwind_get_saved_register): New function.
115
116 * blockframe.c (generic_call_dummy_register_unwind): New function.
117 (frame_saved_regs_register_unwind): New function.
118 (set_unwind_by_pc): New function.
119 (create_new_frame): New function.
120 (get_prev_frame): New function.
121
122 2002-05-30 Andrew Cagney <ac131313@redhat.com>
123
124 * a29k-share/: Delete directory.
125 * remote-vx29k.c: Delete file.
126
127 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
128
129 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
130 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
131
132 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
133
134 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
135 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
136 (sparc64nbsd-nat.o)
137 (sparcnbsd-nat.o)
138 (sparcnbsd-tdep.o): New dependency lists.
139 * NEWS: Note new UltraSPARC NetBSD native configuration.
140 * configure.host (sparc64-*-netbsd*): New host.
141 * configure.tgt (sparc-*-netbsdelf*)
142 (sparc-*-netbsd*): Set gdb_target to nbsd.
143 (sparc64-*-netbsd*): New target.
144 * sparc64nbsd-nat.c: New file.
145 * sparcnbsd-nat.c: New file.
146 * sparcnbsd-tdep.c: New file.
147 * sparcnbsd-tdep.h: New file.
148 * config/sparc/nbsd.mt: New file.
149 * config/sparc/nbsd64.mh: New file.
150 * config/sparc/nbsd64.mt: New file.
151 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
152 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
153 (HOST_IPC): Remove.
154 * config/sparc/nbsdaout.mt: Remove.
155 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
156 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
157 (HOST_IPC): Remove.
158 * config/sparc/nbsdelf.mt: Remove.
159 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
160 sparc-nat.c compatiblity defines.
161 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
162 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
163 * config/sparc/tm-nbsd64.h: New file.
164 * config/sparc/tm-nbsdaout.h: Remove.
165 * config/sparc/xm-nbsd.h: Remove.
166
167 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
168
169 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
170 * sparc-tdep.c: Include osabi.h.
171 (gdbarch_tdep): Add osabi member.
172 (_initialize_sparc_tdep): Use gdbarch_register.
173 (sparc_gdbarch_init): Use generic OS ABI framework.
174 (sparc_dump_tdep): New function.
175
176 2002-05-30 Kevin Buettner <kevinb@redhat.com>
177
178 * corefile.c (do_captured_read_memory_integer): Return non-zero
179 result.
180 (safe_read_memory_integer): Copy result of memory read when
181 status is non-zero. Also, add comments.
182
183 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
184
185 * Makefile.in (ppc_tdep_h): Define.
186 (ppc-linux-nat.o)
187 (ppc-linux-tdep.o)
188 (rs6000-tdep.o): Use $(ppc_tdep_h).
189 (ppc-sysv-tdep.o)
190 (ppcnbsd-nat.o)
191 (ppcnbsd-tdep.o): New dependency lists.
192 * ppc-tdep.h: Use generic OS ABI framework.
193 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
194 (ppc_linux_init_abi): New functions.
195 (ppc_sysv_abi_broken_use_struct_convention)
196 (ppc_sysv_abi_use_struct_convention)
197 (ppc_sysv_abi_push_arguments): Move to...
198 * ppc-sysv-tdep.c: ...here.
199 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
200 * rs6000-tdep.c (process_note_abi_tag_sections)
201 (get_elfosabi): Remove.
202 (rs6000_gdbarch_init): Use generic OS ABI framework.
203 (rs6000_dump_tdep): New function.
204 (_initialize_rs6000_tdep): Use gdbarch_register.
205 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
206 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
207 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
208 of ppc-linux-tdep.o.
209 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
210 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
211 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
212 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
213 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
214 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
215
216 2002-05-29 Jim Blandy <jimb@redhat.com>
217
218 * macroscope.c (default_macro_scope): Put `void' in empty argument
219 list.
220
221 2002-05-29 Andrew Cagney <ac131313@redhat.com>
222
223 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
224 * arch-utils.c: Include "sim-regno.h".
225 * gdbarch.sh: Don't include "sim-regno.h".
226 * gdbarch.h, gdbarch.c: Regenerate.
227 * sim-regno.h (legacy_register_sim_regno): Move declaration from
228 here.
229 * arch-utils.h (legacy_register_sim_regno): To here.
230 * remote-sim.c (legacy_register_sim_regno): Move function from
231 here.
232 * arch-utils.c (legacy_register_sim_regno): To here.
233
234 2002-05-28 Andrew Cagney <ac131313@redhat.com>
235
236 * sim-regno.h: New file.
237 * Makefile.in (sim_regno_h): Define.
238 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
239 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
240 (legacy_register_sim_regno): New function.
241 (one2one_register_sim_regno): New function.
242 (gdbsim_fetch_register): Rewrite.
243 (gdbsim_store_register): Only store a register when
244 REGISTER_SIM_REGNO is valid.
245 * d10v-tdep.c: Include "sim-regno.h".
246 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
247 (d10v_ts3_register_sim_regno): Ditto.
248 * gdbarch.sh: Include "sim-regno.h".
249 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
250 * gdbarch.h, gdbarch.c: Regenerate.
251 * arch-utils.h (default_register_sim_regno): Delete declaration.
252 * arch-utils.c (default_register_sim_regno): Delete function.
253
254 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
255
256 * ppcnbsd-nat.c: Rewrite.
257 * ppcnbsd-tdep.c: New file.
258 * ppcnbsd-tdep.h: New file.
259 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
260 solib.o, and solib-svr4.o.
261 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
262 nbsd-tdep.o, and corelow.o.
263
264 2002-05-28 Andrew Cagney <ac131313@redhat.com>
265
266 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
267 `tr' and `sed'. Mention that `broken' targets are not expected to
268 build.
269
270 2002-05-27 Michal Ludvig <mludvig@suse.cz>
271
272 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
273 Let PC point right after the prologue before looking up symbols.
274
275 2002-05-27 Martin M. Hunt <hunt@redhat.com>
276
277 * i386-tdep.c (i386_register_virtual_type): Return
278 builtin_type_vec128i for SSE registers.
279
280 * gdbtypes.h (builtin_type_vec128i): Declare.
281
282 * gdbtypes.c (build_builtin_type_vec128i): New function.
283 (builtin_type_v2_double, builtin_type_v4_int64): New types.
284 (builtin_type_vec128i): New type for SSE2 128-bit registers.
285 (build_gdbtypes): Initialize new builtin vector types.
286 (_initialize_gdbtypes): Register new vector types with gdbarch.
287
288 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
289
290 * MAINTAINERS: ns32k is not longer an obsolete candidate,
291 since it has been multi-arch'd.
292 * NEWS: Note that ns32k-*-* is now partial multi-arch.
293 Move Alpha and VAX multi-arch news entries to same section
294 as other multi-arch news.
295
296 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
297
298 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
299 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
300 static. Rename some register numbers to put them in ns32k-tdep
301 private namespace.
302 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
303 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
304 functions.
305 (_initialize_ns32k_tdep): Use gdbarch_register.
306 * ns32k-tdep.h: New file.
307 * ns32knbsd-tdep.c: New file.
308 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
309 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
310 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
311 REGISTER_BYTES, REGISTER_BYTE): Remove.
312 * config/ns32k/tm-ns32k.h: New file.
313 * config/ns32k/tm-umax.h: Remove.
314
315 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
316
317 * ns32k-tdep.c (ns32k_saved_pc_after_call,
318 ns32k_store_struct_return, ns32k_extract_return_value,
319 ns32k_store_return_value, ns32k_extract_struct_value_address): New
320 functions.
321 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
322 ns32k_saved_pc_after_call.
323 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
324 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
325 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
326 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
327 ns32k_extract_struct_value_address.
328
329 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
330
331 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
332 ns32k_fix_call_dummy): New.
333 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
334 ns32k_call_dummy_words.
335 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
336 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
337 CALL_DUMMY_NARGS): Remove.
338 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
339
340 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
341
342 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
343 ns32k_frame_saved_pc, ns32k_frame_args_address,
344 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
345 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
346 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
347 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
348 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
349 (BREAKPOINT): Remove..
350 (FRAME_CHAIN): Define as ns32k_frame_chain.
351 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
352 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
353 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
354 (FRAME_FIND_SAVED_REGS): Remove.
355 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
356 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
357 (POP_FRAME): Define as ns32k_pop_frame.
358
359 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
360
361 * ns32k-tdep.c (ns32k_register_byte_32082,
362 ns32k_register_byte_32382, ns32k_register_raw_size,
363 ns32k_register_virtual_size, ns32k_register_virtual_type): New
364 functions.
365 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
366 ns32k_register_byte_32382.
367 * config/ns32k/tm-umax.h: Update copyright years.
368 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
369 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
370 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
371 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
372 (ns32k_get_enter_addr): Fix prototype.
373
374 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
375
376 * ns32k-tdep.c: Update copyright years.
377 (ns32k_register_name_32082): New function.
378 (ns32k_register_name_32382): Ditto.
379 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
380 (REGISTER_NAME): Define as ns32k_register_name_32382.
381 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
382 (REGISTER_NAME): Define as ns32k_register_name_32082.
383
384 2002-05-24 Jim Blandy <jimb@redhat.com>
385
386 * dwarf2read.c (free_line_header): Use xfree, not free.
387
388 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
389
390 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
391 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
392
393 2002-05-23 Andrew Cagney <ac131313@redhat.com>
394
395 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
396
397 2002-05-23 Andrew Cagney <ac131313@redhat.com>
398
399 From Ross Alexander at NEC Europe:
400 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
401
402 2002-05-23 Michael Snyder <msnyder@redhat.com>
403
404 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
405 for input, rather than parse_and_eval_address.
406
407 2002-05-23 Andrew Cagney <ac131313@redhat.com>
408
409 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
410 * Makefile.in (sim_d10v_h): Update definition.
411
412 2002-05-24 Andrew Cagney <cagney@redhat.com>
413
414 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
415 change `2002-05-22 Michael Snyder' below.
416 (d10v_push_arguments): Ditto.
417 (d10v_extract_return_value): Ditto.
418
419 2002-05-23 Jim Blandy <jimb@redhat.com>
420
421 * macrotab.c (check_for_redefinition): Don't complain if the new
422 definition is the same as the previous one. Take more arguments
423 to allow the comparison.
424 (macro_define_object, macro_define_function): Pass more arguments
425 to check_for_redefinition.
426
427 2002-05-22 Michael Snyder <msnyder@redhat.com>
428
429 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
430 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
431 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
432 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
433 Don't bail if return_pc is PC_IN_CALL_DUMMY.
434 Add a temp variable to save a call (and a memory read).
435 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
436 if possible (so that PC_IN_CALL_DUMMY will work).
437
438 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
439
440 * MAINTAINERS: Remove status `OBSOLETE' from v850.
441
442 2002-05-22 Michal Ludvig <mludvig@suse.cz>
443
444 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
445 fde->cie_ptr.
446 (dwarf2_build_frame_info): Corrected handling of eh_frame.
447 (dwarf2_build_frame_info): Add offset to fde->initial_location
448 so that frames of shared libraries are mapped correctly.
449 (execute_stack_op): Change type of 'result' from ULONGEST to
450 CORE_ADDR.
451
452 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
453
454 * config/alpha/tm-nbsd.h: Include solib.h.
455
456 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
457
458 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
459 assumptions about the host's byte order.
460
461 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
462
463 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
464 to dependency list.
465 * alphanbsd-tdep.c: Include solib-svr4.h.
466 * shnbsd-tdep.c: Ditto.
467
468 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
469
470 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
471 nbsd-tdep.h to dependency list.
472 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
473 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
474 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
475 nbsdaout.mh and nbsdelf.mh consistently.
476 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
477 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
478 nbsdaout.mt and nbsdelf.mh consistently.
479 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
480 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
481 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
482 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
483 a.out shared library stuff from here...
484 * config/nm-nbsdaout.h: ...to here.
485 * config/tm-nbsd.h: Remove.
486 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
487 * config/arm/nbsd.mh: Remove.
488 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
489 nbsd-tdep.o.
490 * config/arm/nbsdaout.mh: New file.
491 * config/arm/nbsdelf.mh: New file.
492 * config/arm/nm-nbsdaout.h: New file.
493 * config/i386/nbsd.mh: Remove.
494 * config/i386/nbsd.mt: Remove.
495 * config/i386/nbsdaout.mh: New file.
496 * config/i386/nbsdaout.mt: New file.
497 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
498 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
499 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
500 i386_register_u_addr): Remove.
501 * config/i386/nm-nbsdaout.h: New file.
502 * config/i386/nm-nbsdelf.h: Remove.
503 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
504 (USE_STRUCT_CONVENTION): Remove.
505 * config/i386/tm-nbsdaout.h: New file.
506 * config/i386/tm-nbsdelf.h: Remove.
507 * config/m68k/nbsd.mh: Remove.
508 * config/m68k/nbsd.mt: Remove.
509 * config/m68k/nbsdaout.mh: New file.
510 * config/m68k/nbsdaout.mt: New file.
511 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
512 * config/m68k/nm-nbsdaout.h: New file.
513 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
514 (IN_SOLIB_CALL_TRAMPOLINE): Define.
515 * config/ns32k/nbsd.mh: Remove.
516 * config/ns32k/nbsd.mt: Remove.
517 * config/ns32k/nbsdaout.mh: New file.
518 * config/ns32k/nbsdaout.mt: New file.
519 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
520 * config/ns32k/nm-nbsdaout.h: New file.
521 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
522 (IN_SOLIB_CALL_TRAMPOLINE): Define.
523 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
524 (SVR4_SHARED_LIBS): Remove.
525 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
526 * config/sparc/nbsd.mh: Remove.
527 * config/sparc/nbsd.mt: Remove.
528 * config/sparc/nbsdaout.mh: New file.
529 * config/sparc/nbsdaout.mt: New file.
530 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
531 * config/sparc/nbsdelf.mt: New file.
532 * config/sparc/nm-nbsdaout.h: New file.
533 * config/sparc/nm-nbsdelf.h: Remove.
534 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
535 * config/sparc/tm-nbsdaout.h: New file.
536
537 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
538
539 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
540 mipsnbsd-tdep.c
541 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
542
543 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
544
545 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
546 shnbsd-nat.c.
547 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
548
549 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
550
551 * NEWS: Note new MIPS NetBSD native configuration.
552 * configure.host (mips*-*-netbsd*): New host.
553 * configure.tgt (mips*-*-netbsd*): New target.
554 * mipsnbsd-nat.c: New file.
555 * mipsnbsd-tdep.c: New file.
556 * mipsnbsd-tdep.h: New file.
557 * config/mips/nbsd.mh: New file.
558 * config/mips/nbsd.mt: New file.
559 * config/mips/nm-nbsd.h: New file.
560 * config/mips/tm-nbsd.h: New file.
561
562 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
563
564 * Makefile.in (SFILES): Add osabi.c.
565 (COMMON_OBS): Add osabi.o.
566 (osabi.o): New dependency list.
567 * osabi.c: New file.
568 * osabi.h: New file.
569 * doc/gdbint.texinfo: Document new generic OS ABI framework.
570
571 * Makefile.in (alpha_tdep_h): Define and use instead of
572 alpha-tdep.h.
573 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
574 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
575 Remove.
576 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
577 * alpha-tdep.h: Include osabi.h.
578 (alpha_abi): Remove.
579 (gdbarch_tdep): Use generic OS ABI framework.
580 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
581 gdbarch_register_osabi.
582 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
583 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
584 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
585
586 * Makefile.in (sh_tdep_h): Add osabi.h.
587 * sh-tdep.h (sh_osabi): Remove.
588 (gdbarch_tdep): Use generic OS ABI framework.
589 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
590 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
591 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
592 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
593
594 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
595 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
596 gdbarch_register_osabi.
597 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
598 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
599 (get_elfosabi): Rename to...
600 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
601 ABI framework support routines.
602 (arm_gdbarch_init): Use generic OS ABI framework.
603 (arm_dump_tdep): Likewise.
604 (_initialize_arm_tdep): Likewise.
605 * arm-tdep.h: Include osabi.h.
606 (arm_abi): Remove.
607 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
608 osabi member.
609 (arm_gdbarch_register_os_abi): Remove prototype.
610 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
611 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
612
613 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
614 * mips-tdep.c: Include osabi.h.
615 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
616 OS ABI framework.
617
618 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
619
620 * h8300-tdep.c: Fix formatting.
621
622 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
623
624 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
625 printing vector registers.
626
627 2002-05-19 Andrew Cagney <ac131313@redhat.com>
628
629 From Fernando Nasser:
630 * remote.c (remote_async_open_1): Re-throw the exception when the
631 connection fails.
632 (remote_cisco_open): Ditto.
633 (remote_open_1): Ditto.
634
635 2002-05-19 Andrew Cagney <ac131313@redhat.com>
636
637 * remote.c (remote_start_remote_dummy): Add uiout parameter.
638 (remote_start_remote): Add uiout parameter. Pass through to
639 remote_start_remote_dummy.
640 (remote_open_1): Use catch_exception instead of catch_errors.
641 (remote_async_open_1): Ditto.
642 (remote_cisco_open): Ditto.
643
644 2002-05-19 Andrew Cagney <ac131313@redhat.com>
645
646 * remote.c (remote_start_remote): Replace PTR with void pointer.
647 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
648 static.
649
650 2002-05-18 Andrew Cagney <ac131313@redhat.com>
651
652 * gdb_indent.sh: Allow the script to be run in the sim directory.
653
654 2002-05-18 Mark Kettenis <kettenis@gnu.org>
655
656 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
657 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
658
659 * corelow.c (core_open): Only call set_gdbarch_from_file if
660 exec_bfd is NULL.
661
662 2002-05-17 Andrey Volkov <avolkov@transas.com>
663
664 * h8300-tdep.c: Add support of EXR register
665 * config/h8300/tm-h8300.h: Ditto.
666
667 2002-05-17 Andrey Volkov <avolkov@transas.com>
668
669 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
670
671 2002-05-17 Andrey Volkov <avolkov@transas.com>
672
673 * h8300-tdep.c: Change literal regnums to REGNO.
674
675 2002-05-17 Jim Blandy <jimb@redhat.com>
676
677 * NEWS: Note addition of macro support.
678
679 Expand preprocessor macros in C expressions.
680 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
681 (scan_macro_expansion, scanning_macro_expansion,
682 finished_macro_expansion): New function declarations.
683 (expression_macro_lookup_func, expression_macro_lookup_baton): New
684 variable declarations.
685 * parser-defs.h (expression_context_pc): New declaration.
686 * parse.c (expression_context_pc): New variable.
687 (parse_exp_1): Set expression_context_pc, as well as
688 expression_context_block.
689 * c-exp.y (yylex): If we're not already reading the result of a
690 macro expansion, try to macro-expand the next token. When we're
691 done scanning a macro expansion, switch back to the mainline text.
692 Commas and `if's in a macro's expansion don't terminate the input.
693 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
694 (macro_original_text, macro_expanded_text,
695 expression_macro_lookup_func, expression_macro_lookup_baton): New
696 variables.
697 (scan_macro_expansion, scanning_macro_expansion,
698 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
699 c_preprocess_and_parse): New functions.
700 (c_language_defn, cplus_language_defn, asm_language_defn): Call
701 c_preprocess_and_parse, instead of c_parse.
702 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
703 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
704
705 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
706
707 * sh-tdep.c (gdb_print_insn_sh64): Delete.
708 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
709 (sh_gdbarch_init): Always use gdb_print_insn_sh.
710
711 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
712
713 * NEWS: Add section for multi-arched targets. Add v850 to that section.
714
715 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
716
717 * Makefile.in (sh_tdep_h): Define and use.
718 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
719 register enum): Move to...
720 * * sh-tdep.h: ...here.
721 * sh-tdep.c: Include sh-tdep.h.
722 * sh3-rom.c: Likewise.
723 * shnbsd-tdep.c: Likewise.
724
725 2002-05-16 Michael Snyder <msnyder@redhat.com>
726
727 * arm-tdep.c: Spelling fix in comment.
728
729 2002-05-16 Jim Blandy <jimb@redhat.com>
730
731 Add commands for manually expanding macros and showing their
732 definitions.
733 * macrocmd.c, macroscope.c, macroscope.h: New files.
734 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
735 (macroscope_h): New variable.
736 (HFILES_NO_SRCDIR): Add macroscope.h.
737 (COMMON_OBS): Add macrocmd.o, macroscope.o.
738 (macroscope.o, macrocmd.o): New rules.
739
740 Teach the Dwarf 2 reader to read macro information.
741 * dwarf2read.c: #include "macrotab.h".
742 (dwarf_macinfo_buffer): New variable.
743 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
744 dwarf_macinfo_size.
745 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
746 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
747 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
748 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
749 dwarf2_macro_spaces_in_definition): New complaints.
750 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
751 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
752 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
753 the partial symbol table.
754 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
755 from what's recorded in the partial symbol table.
756 (read_file_scope): If the compilation unit has a
757 `DW_AT_macro_info' attribute, read its macro information.
758 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
759
760 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
761
762 Fix PR gdb/546
763 * ser-tcp.c: Don't include <netinet/udp.h>.
764
765 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
766
767 * MAINTAINERS: Update my email address.
768
769 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
770
771 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
772 include file of the same name.
773
774 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
775
776 * configure.tgt: Mark v850 as multi-arched.
777 * config/v850/tm-v850.h: Remove file.
778 * config/v850/v850.mt: Eliminate TM_FILE.
779
780 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
781
782 * v850-tdep.c: Full multi-arch.
783 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
784 Define GDB_MULTI_ARCH to 2.
785
786 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
787
788 * p-exp.y (current_type): New static variable.
789 Carries the type of the expression at the position that is parsed.
790 (push_current_type, pop_current_type): Two new functions. Used
791 to store/restore current_type in expression on specific tokens.
792 (search_field): New static variable. Set to one after parsing a point
793 as at that point only a FIELDNAME token should be searched.
794 (FIELDNAME): New token. After a point only a token belonging to
795 current_type type definition is allowed.
796 (all over token rules): reset and change current_type according
797 to rules.
798 (exp '[' rule): insert implicit array index field if
799 exp is a pascal string type.
800
801 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
802
803 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
804 frame info. Use frame_info's saved_regs instead of matching member
805 in extra_frame_info throughout.
806 (v850_frame_init_saved_regs): New function.
807 (v850_init_extra_frame_info): Move most functionality into
808 v850_frame_init_saved_regs().
809 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
810 (v850_frame_find_saved_regs): Remove declaration.
811 (FRAME_FIND_SAVED_REGS): Remove definition.
812 (v850_frame_init_saved_regs): Add declaration.
813 (FRAME_INIT_SAVED_REGS): Add definition.
814
815 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
816
817 * v850-tdep.c: Begin multi-arch'ing v850.
818 (v850_target_architecture_hook): Remove function.
819 (v850_gdbarch_init): New function. Add code previously in
820 v850_target_architecture_hook().
821 (_initialize_v850_tdep): Don't set target_architecture_hook.
822 Call register_gdbarch_init() instead.
823
824 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
825
826 * gdbtypes.h (struct cplus_struct_type): Remove args field.
827 * hpread.c (hpread_read_struct_type): Remove assignments to args.
828 (fixup_class_method_type): Likewise.
829
830 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
831
832 From Martin Pool <mbp@samba.org>:
833 * gdbserver/server.c (gdbserver_usage): New function.
834 (main): Call it.
835
836 2002-05-15 Jim Blandy <jimb@redhat.com>
837
838 Add macro structures to GDB's symbol tables. Nobody puts anything
839 in them yet.
840 * symtab.h (struct symtab): New member: `macro_table'.
841 * buildsym.h (pending_macros): New global variable.
842 * buildsym.c: #include "macrotab.h".
843 (buildsym_init): Initialize `pending_macros'.
844 (end_symtab): If we found macro information while reading a CU's
845 debugging info, do build a symtab structure for it. Make the
846 symtab point to the macro information, and clear the
847 `pending_macros' pointer which held it while we were reading the
848 debug info.
849 (really_free_pendings): Free any pending macro table.
850 * objfiles.h (struct objfile): New member: `macro_cache'.
851 * objfiles.c (allocate_objfile): Set allocate and free functions
852 for the macro cache's objstack.
853 (free_objfile): Empty the macro cache's obstack.
854 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
855 set new allocate and free functions for it.
856 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
857 free functions for the macro cache's objstack. (Why is this
858 function building its own objfile?)
859 * symmisc.c (print_objfile_statistics): Print statistics on the
860 macro bcache.
861 * Makefile.in: Note that buildsym.o depends on macrotab.h.
862
863 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
864
865 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
866 (REGISTER_U_ADDR): Delete definition.
867 (arm_register_u_addr): Delete declaration.
868
869 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
870
871 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
872 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
873
874 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
875
876 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
877 stop_at -> stop_pc.
878
879 2002-05-14 Andrew Cagney <ac131313@redhat.com>
880
881 * regcache.c (register_valid): Revise comments refering to "Not
882 available" and "unavailable".
883 * frame.c (frame_register_read): Ditto.
884 * findvar.c (value_of_register): Ditto.
885
886 2002-05-15 Andrew Cagney <cagney@redhat.com>
887
888 * Makefile.in (remote_sim_h): Replace remote-sim_h.
889 (remote-sim.o): Update dependencies.
890 (d10v-tdep.o): Specify dependencies.
891 (sim_d10v_h): Define.
892
893 2002-05-14 Jim Blandy <jimb@redhat.com>
894
895 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
896 * macrotab.c (macro_lookup_inclusion, find_definition,
897 new_macro_table): Same.
898
899 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
900 not `! strcmp ()'. This is a dubious improvement.
901 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
902
903 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
904 although it's not necessary, to avoid a warning.
905
906 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
907
908 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
909 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
910 TYPE_INSTANCE_FLAGS.
911 (struct main_type): New.
912 (struct type): Move most members to struct main_type. Change
913 cv_type and as_type to new type_chain member. Add instance_flags.
914 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
915 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
916 (finish_cv_type): Remove prototype.
917 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
918 Set TYPE_CHAIN.
919 (alloc_type_instance): New function.
920 (smash_type): New function.
921 (make_pointer_type, make_reference_type, make_function_type)
922 (smash_to_member_type, smash_to_method_type): Call smash_type.
923 (make_qualified_type): New function.
924 (make_type_with_address_space): Call make_qualified_type.
925 (make_cv_type): Likewise.
926 (finish_cv_type): Remove unnecessary function.
927 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
928 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
929 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
930 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
931 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
932 * hpread.c (hpread_read_struct_type): Likewise.
933 * stabsread.c (read_struct_type): Likewise.
934
935 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
936
937 * configure.tgt: Add a catch all sh* target, for cases like
938 sh[2,3,4]-elf and sh-hms.
939
940 2002-05-14 Keith Seitz <keiths@redhat.com>
941
942 * event-loop.c (create_file_handler): Don't do anything but
943 update data when we are given a fd which we are already
944 monitoring.
945
946 2002-05-14 Michal Ludvig <mludvig@suse.cz>
947
948 * dwarf2cfi.c (context_cpy): Copy registers correctly.
949 (update_context): Use __func__ in warnings.
950
951 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
952
953 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
954 and tcp_close to net_open and net_close.
955 (net_open): Accept "udp:" and "tcp:" specifications. Connect
956 using UDP if requested. Don't try to disable Nagle on UDP
957 sockets.
958 * remote.c (remote_serial_open): New function. Warn about UDP.
959 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
960
961 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
962
963 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
964
965 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
966
967 * configure.tgt: Remove sh-hms target.
968 * MAINTAINERS: Don't list sh-hms as a separate target.
969
970 2002-05-13 Jim Blandy <jimb@redhat.com>
971
972 Add first preprocessor macro-expansion files.
973 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
974 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
975 (splay_tree_h, macroexp_h, macrotab_h): New variable.
976 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
977 (COMMON_OBS): Add macrotab.o, macroexp.o.
978 (macroexp.o, macrotab.o): New rules.
979
980 2002-05-13 Andrew Cagney <ac131313@redhat.com>
981
982 * config/m88k/tm-m88k.h: Update copyright.
983 (m88k_target_write_pc): Declare
984 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
985 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
986 (SHIFT_INST_REGS): Update definition.
987 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
988 using old definition of TARGET_WRITE_PC.
989 * regcache.c (generic_target_write_pc): Delete code handling
990 NNPC_REGNUM.
991 * gdbarch.sh (NNPC_REGNUM): Delete.
992 * gdbarch.h, gdbarch.c: Regenerate.
993
994 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
995
996 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
997 builtin reg number.
998
999 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
1000
1001 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
1002 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
1003 (gen_address_of, gen_struct_ref, gen_repeat): Use type
1004 access macros.
1005 * c-typeprint.c (cp_type_print_method_args): Likewise.
1006 (c_type_print_args): Likewise.
1007 * d10v-tdep.c (d10v_push_arguments): Likewise.
1008 (d10v_extract_return_value): Likewise.
1009 * expprint.c (print_subexp): Likewise.
1010 * gdbtypes.c (lookup_primitive_typename): Likewise.
1011 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
1012 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
1013 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
1014 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
1015 (TYPE_VECTOR): Likewise.
1016 * hpread.c (hpread_read_struct_type)
1017 (fix_static_member_physnames, fixup_class_method_type)
1018 (hpread_type_lookup): Likewise.
1019 * mdebugread.c (parse_symbol, parse_type): Likewise.
1020 * p-lang.c (is_pascal_string_type): Likewise.
1021 * valops.c (hand_function_call): Likewise.
1022 * x86-64-tdep.c (classify_argument): Likewise.
1023
1024 * hpread.c (hpread_read_function_type)
1025 (hpread_read_doc_function_type): Call replace_type.
1026 * dstread.c (create_new_type): Delete.
1027 (decode_dst_structure, process_dst_function): Call alloc_type.
1028 Use type access macros.
1029
1030 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1031
1032 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
1033 the're not supported by the current architecture.
1034 (i387_fill_fxsave): Likewise.
1035
1036 2002-05-12 Fred Fish <fnf@redhat.com>
1037
1038 * symfile.c (default_symfile_offsets): Arrange for uninitialized
1039 sect_index_xxx members to index the first slot in section_offsets
1040 if all of the section_offsets are zero.
1041
1042 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1043
1044 * configure.tgt (sparc-*openbsd): Remove entry accidentially
1045 checked in with last change.
1046
1047 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1048
1049 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
1050 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
1051 config.sub.
1052
1053 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
1054
1055 * Makefile.in: Update dependencies.
1056
1057 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1058
1059 * language.c (local_hex_string_custom): Simplify. Do not depend
1060 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
1061
1062 * memattr.c (mem_info_command): Replace calls to
1063 longest_local_hex_string and longest_local_hex_string_custom.
1064 * buildsym.c (make_blockvector): Ditto.
1065 * solib.c (info_sharedlibrary_command): Ditto.
1066 * tracepoint.c (tracepoints_info): Ditto.
1067 * symtab.c (print_msymbol_info): Ditto.
1068
1069 * language.c (local_hex_string): Delete.
1070 (local_hex_string_custom): Delete.
1071 (longest_local_hex_string): Rename to local_hex_string.
1072 (longest_local_hex_string_custom): Rename to
1073 local_hex_string_custom.
1074 * language.h (local_hex_string): Change parameter type to LONGEST.
1075 (local_hex_string_custom): Ditto.
1076 (longest_local_hex_string): Delete declaration.
1077 (longest_local_hex_string_custom): Ditto.
1078
1079 * solib.c: Update copyright.
1080 * memattr.c: Update copyright.
1081
1082 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1083
1084 * arch-utils.h (legacy_register_to_value): Declare.
1085 (legacy_value_to_register): Declare.
1086 (legacy_convert_register_p): Declare.
1087 * arch-utils.c (legacy_register_to_value): New function.
1088 (legacy_value_to_register): New function.
1089 (legacy_convert_register_p): New function.
1090
1091 * gdbarch.sh (REGISTER_TO_VALUE): Define.
1092 (VALUE_TO_REGISTER): Define.
1093 (CONVERT_REGISTER_P): Define.
1094 * gdbarch.h, gdbarch.c: Regenerate.
1095
1096 * valops.c (value_assign): Use CONVERT_REGISTER_P and
1097 VALUE_TO_REGISTER.
1098 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
1099 CONVERT_REGISTER_P.
1100
1101 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
1102 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1103
1104 * Makefile.in: Update dependencies for valops.c.
1105 * valops.c: Include "gdb_assert.h".
1106 (typecmp): Skip THIS parameter to methods.
1107 (find_method_list): Remove static_memfuncp argument,
1108 update callers. Check for stub methods.
1109 (find_value_oload_method_list): Don't set *static_memfuncp.
1110 (find_overload_match): Don't check for stub methods. Assert
1111 that methods are not stubbed. Handle static methods.
1112 (value_find_oload_method_list): Remove static_memfuncp argument.
1113 * gdbtypes.c (check_stub_method): Do not add THIS pointer
1114 to the argument list for static stub methods.
1115 * value.h (value_find_oload_method_list): Update prototype.
1116
1117 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1118
1119 * arch-utils.h (generic_register_size): Declare.
1120 (generic_register_raw_size, generic_register_virtual_size): Delete
1121 declarations.
1122 * arch-utils.c (generic_register_raw_size): Delete.
1123 (generic_register_size): New function.
1124 (generic_register_virtual_size): Delete.
1125
1126 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
1127 default generic_register_size.
1128 * gdbarch.h, gdbarch.c: Re-generate.
1129
1130 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
1131 register_virtual_size.
1132 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1133 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1134
1135 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1136
1137 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
1138 * gdbarch.h, gdbarch.c: Regenerate.
1139 * gnu-v3-abi.c: Update copyright.
1140 (vtable_address_point_offset): Update.
1141 (gnuv3_rtti_type): Update.
1142 (gnuv3_baseclass_offset): Update.
1143 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
1144 (init_fetch_link_map_offsets): Update.
1145 * remote.c (get_remote_state): Update.
1146
1147 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
1148
1149 * TODO: Remove value_headof/value_from_vtable_info comment.
1150 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
1151 * values.c (value_headof, value_from_vtable_info): Delete.
1152 * value.h (value_from_vtable_info): Delete prototype.
1153
1154 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1155
1156 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
1157 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
1158 $(gdb_regex_h).
1159 (gdb_assert_h): Define.
1160 (gdb_wait_h): Define.
1161 (gdb_regex_h): Define.
1162
1163 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
1164
1165 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1166 * linespec.c (find_methods): Handle GCC 3.x template constructors.
1167
1168 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1169
1170 * nbsd-tdep.c: Fix comment.
1171
1172 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1173
1174 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
1175 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
1176 (nbsd-tdep.o): New dependency list.
1177 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
1178 nbsd-tdep.h.
1179 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
1180 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
1181 * nbsd-tdep.c: New file.
1182 * nbsd-tdep.h: New file.
1183 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
1184 nbsd-tdep.h.
1185 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
1186 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1187 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1188 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1189
1190 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1191
1192 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
1193 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
1194 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
1195 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
1196 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
1197 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
1198
1199 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1200
1201 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
1202 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1203 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
1204 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
1205 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
1206 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
1207 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
1208
1209 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1210
1211 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
1212 fetch_elfcore_registers to...
1213 * i386nbsd-tdep.c: ...here.
1214 (i386nbsd_use_struct_convention): Rename to...
1215 (i386nbsd_aout_use_struct_convention): ...this.
1216 (i386nbsd_supply_reg): New function.
1217 (i386nbsd_fill_reg): New function.
1218 (fetch_core_registers): Use i386nbsd_supply_reg.
1219 (fetch_elfcore_registers): Likewise.
1220 (_initialize_i386nbsd_tdep): New function.
1221 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
1222 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1223 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
1224 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
1225 (i386nbsd_aout_use_struct_convention): ...this.
1226
1227 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1228
1229 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
1230 (store_inferior_registers): Use shnbsd_fill_reg.
1231 * shnbsd-tdep.c (sh_nbsd_supply_registers,
1232 sh_nbsd_supply_register): Collapse into...
1233 (shnbsd_supply_reg): ...this.
1234 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
1235 (shnbsd_fill_reg): ...this.
1236 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
1237 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
1238 (fetch_core_registers): Use shnbsd_supply_reg.
1239 (fetch_elfcore_registers): Use shnbsd_supply_reg.
1240 (sh_nbsd_core_fns): Rename to...
1241 (shnbsd_core_fns): ...this.
1242 (sh_nbsd_elfcore_fns): Rename to...
1243 (shnbsd_elfcore_fns): ...this.
1244 (sh_nbsd_init_abi): Rename to...
1245 (shnbsd_init_abi): ...this.
1246 (_initialize_sh_nbsd_tdep): Rename to...
1247 (_initialize_shnbsd_tdep): ...this.
1248 * shnbsd-tdep.h (sh_nbsd_supply_registers,
1249 sh_nbsd_supply_register, sh_nbsd_fill_registers,
1250 sh_nbsd_fill_register): Remove prototypes.
1251 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
1252
1253 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1254
1255 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
1256 (i387-nat.o): Delete dependency list.
1257 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
1258 (x86-64-linux-nat.o): Likewise.
1259 * i387-nat.c: Delete file, moving contents to...
1260 * i387-tdep.c: ...here.
1261 * i387-nat.h: Rename...
1262 * i387-tdep.h: ...to this.
1263 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
1264 * i386-linux-nat.c: Likewise.
1265 * i386bsd-nat.c: Likewise.
1266 * i386gnu-nat.c: Likewise.
1267 * i386nbsd-nat.c: Likewise.
1268 * i386v4-nat.c: Likewise.
1269 * x86-64-linux-nat.c: Likewise.
1270 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
1271 * config/i386/go32.mh (NATDEPFILES): Likewise.
1272 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1273 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
1274 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
1275 * config/i386/linux.mh (NATDEPFILES): Likewise.
1276 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
1277 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1278 * config/i386/obsd.mh (NATDEPFILES): Likewise.
1279 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1280
1281 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1282
1283 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
1284 (alphanbsd-nat.o): Remove dependency list.
1285 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
1286 * alphanbsd-nat.c: Delete. Contents moved to...
1287 * alphanbsd-tdep.c: ...here.
1288 (_initialize_alphanbsd_tdep): Register core functions.
1289 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
1290
1291 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1292
1293 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
1294 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
1295 (alphanbsd-nat.o): Likewise.
1296 (alphabsd-tdep.o): New dependency list.
1297 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
1298 (fill_gregset): Use alphabsd_fill_reg.
1299 (supply_fpregset): Use alphabsd_supply_fpreg.
1300 (fill_fpregset): Use alphabsd_fill_fpreg.
1301 (fetch_inferior_registers): Use struct reg and struct fpreg
1302 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
1303 and alphabsd_supply_fpreg.
1304 (store_inferior_registers): Use struct reg and struct fpreg
1305 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
1306 and alphabsd_fill_fpreg.
1307 * alphabsd-tdep.c: New file.
1308 * alphabsd-tdep.h: New file.
1309 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
1310 (fetch_elfcore_registers): Use alphabsd_supply_reg and
1311 alphabsd_supply_fpreg.
1312 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
1313 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
1314
1315 2002-05-11 Eric Christopher <echristo@redhat.com>
1316
1317 * mips-tdep.c (mips_double_register_type): Fix thinko.
1318 (mips_single_register_type): Ditto.
1319 * MAINTAINERS: Add self.
1320
1321 2002-05-11 Mark Kettenis <kettenis@gnu.org>
1322
1323 * i387-nat.c (i387_supply_register, i387_fill_fsave,
1324 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
1325 right thing on architectures with different endianness and/or
1326 integer sizes.
1327
1328 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
1329
1330 From Christian Limpach <chris@Pin.LU>
1331 * configure.in: Change sed expression which comments out
1332 NATDEPFILES to also comment out continuation lines.
1333 * configure: Regenerate.
1334
1335 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1336
1337 * sh-tdep.c: Clean up code erroneously reintroduced by previous
1338 big patch.
1339
1340 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1341
1342 * sh-tdep.c: Include correct file.
1343
1344 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1345
1346 New support for sh64-elf (sh5) target.
1347
1348 * configure.tgt: For sh64-elf target, default to sh-elf.
1349
1350 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
1351 (struct gdbarch_tdep): Add new fields for new registers and ABI
1352 info.
1353
1354 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
1355 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
1356 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
1357 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
1358 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
1359 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
1360 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
1361 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
1362 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
1363 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
1364 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
1365 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
1366 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
1367 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
1368 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
1369 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
1370 sh64_get_gdb_regnum, sh64_media_reg_base_num,
1371 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
1372 sign_extend, sh64_nofp_frame_init_saved_regs,
1373 sh64_init_extra_frame_info, sh64_get_saved_register,
1374 sh64_extract_struct_value_address, sh64_pop_frame,
1375 sh64_push_arguments, sh64_extract_return_value,
1376 sh64_store_return_value, sh64_show_media_regs,
1377 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
1378 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
1379 sh_sh64_register_virtual_type,
1380 sh_sh64_register_convert_to_virtual,
1381 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
1382 sh64_register_read, sh64_pseudo_register_write,
1383 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
1384 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
1385 sh64_do_pseudo_register, sh_compact_do_registers_info,
1386 sh64_do_registers_info, sh_gdbarch_init): New functions.
1387
1388 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1389
1390 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
1391
1392 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
1393
1394 * linespec.c (decode_line_1): Check for a double quote after
1395 a filename correctly.
1396
1397 2002-05-10 Jim Blandy <jimb@redhat.com>
1398
1399 Properly track the size of the current objfile's .debug_line section.
1400 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
1401 (DWARF_LINE_SIZE): New macro.
1402 (dwarf2_build_psymtabs_hard): Record the line section's size in
1403 the partial symbol table.
1404 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
1405 symbol table.
1406
1407 2002-05-10 Petr Sorfa <petrs@caldera.com>
1408
1409 * ia64-tdep.c: Handle breakpoints on L instruction type
1410 in MLX instruction bundle by moving the breakpoint to
1411 the third slot (X instruction type) as L holds only data.
1412
1413 2002-05-10 Kevin Buettner <kevinb@redhat.com>
1414
1415 * dbxread.c (discarding_local_symbols_complaint): New complaint.
1416 (process_one_symbol): Complain about discarding local symbols
1417 due to a misplaced N_LBRAC entry.
1418
1419 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
1420
1421 From Daniel Berlin <dan@cgsoftware.com>
1422 * linespec.c (find_toplevel_char): '<' and '>' also increase and
1423 decrease the depth we are at, in the case of templates.
1424
1425 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
1426
1427 * mips-tdep.c (mips_float_register_type): New function.
1428 (mips_double_register_type): New function.
1429 (mips_print_register): Use them.
1430 (do_fp_register_row): Likewise.
1431
1432 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
1433
1434 * signals/signals.c (signals): Remove conditional compilation around
1435 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
1436 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
1437
1438 2002-05-09 Michael Snyder <msnyder@redhat.com>
1439
1440 * remote-rdp.c (remote_rdp_can_run): Remove.
1441
1442 2002-05-09 Tom Tromey <tromey@redhat.com>
1443
1444 * jv-valprint.c (java_val_print): Handle `char' as a special case
1445 of TYPE_CODE_INT.
1446
1447 2002-05-09 Michael Snyder <msnyder@redhat.com>
1448
1449 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
1450 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
1451 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
1452 str r(0123),[sp,#nn].
1453 (arm_skip_prologue): Ditto. Also make disassembly
1454 order-independent by placing it in a loop.
1455
1456 2002-05-06 Michael Snyder <msnyder@redhat.com>
1457
1458 * stabsread.c (read_type): Add recognition for new attribute:
1459 "@V;" means that an array type is actually a vector.
1460 This is analogous to the vector flag that's been added to dwarf2.
1461
1462 2002-05-09 Mark Kettenis <kettenis@gnu.org>
1463
1464 * i386-tdep.h (i386_abi): New enum.
1465 (struct gdbarch_tdep): Replace os_ident member with abi.
1466 (i386_gdbarch_register_os_abi): New prototype.
1467 * i386-tdep.c (i386_abi_names): New array.
1468 (process_note_abi_tag_sections): Removed.
1469 (process_note_sections): New function.
1470 (i386_elf_abi_from_note, i386_elf_abi): New functions.
1471 (struct i386_abi_handler): New struct.
1472 (i386_abi_handler_list): New variable.
1473 (i386_gdbarch_register_os_abi): New function.
1474 (i386_gdbarch_init): Adapt for the changes given above.
1475
1476 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
1477
1478 * gregset.h: Say "GNU/Linux".
1479
1480 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
1481
1482 * gdbtypes.c : Add new builtin type for 64 bit vectors.
1483 (build_gdbtypes): Build builtin_type_v2_float.
1484 (_initialize_gdbtypes): Register new builtin type.
1485
1486 2002-05-08 Andrew Cagney <ac131313@redhat.com>
1487
1488 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
1489 (clear_gdbarch_swap): New function.
1490 (initialize_non_multiarch): Call.
1491 (gdbarch_update_p): Before calling init(), swap out and clear the
1492 existing architecture.
1493 * gdbarch.c: Regenerate.
1494
1495 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1496
1497 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
1498 alphanbsd-tdep.c.
1499
1500 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1501
1502 * sh-nbsd-nat.c: Rename to...
1503 * shnbsd-nat.c: ...this.
1504 * sh-nbsd-tdep.c: Rename to...
1505 * shnbsd-tdep.c: ...this.
1506 * sh-nbsd-tdep.h: Rename to...
1507 * shnbsd-tdep.h: ...this.
1508 * config/sh/nbsd.mh: Use shnbsd-nat.o.
1509 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
1510
1511 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
1512
1513 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
1514 concatenation for command help messages.
1515
1516 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1517
1518 * NEWS: Note new sh*-*-netbsdelf* configuration.
1519 * configure.host: Set gdb_host_cpu to sh for all sh*.
1520 (sh*-*-netbsdelf*): New host.
1521 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
1522 (sh*-*-netbsdelf*): New target.
1523 * sh-nbsd-nat.c: New file.
1524 * sh-nbsd-tdep.c: New file.
1525 * sh-nbsd-tdep.h: New file.
1526 * config/sh/nbsd.mh: New file.
1527 * config/sh/nbsd.mt: New file.
1528 * config/sh/nm-nbsd.h: New file.
1529 * config/sh/tm-nbsd.h: New file.
1530
1531 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1532
1533 * sh-tdep.c (sh_osabi_names): Declare.
1534 (process_note_abi_tag_sections): New function.
1535 (get_elfosabi): Ditto.
1536 (sh_gdbarch_register_os_abi): Ditto.
1537 (sh_dump_tdep): Ditto.
1538 _initialize_sh_tdep): Use gdbarch_register to register
1539 sh_gdbarch_init and sh_dump_tdep.
1540 * config/sh/tm-sh.h (sh_osabi): Declare.
1541 (gdbarch_tdep): Add sh_osabi and osabi_name members.
1542
1543 2002-05-07 Andrew Cagney <ac131313@redhat.com>
1544
1545 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
1546 (thumb_scan_prologue): Ditto.
1547 (arm_find_callers_reg): Ditto.
1548 (arm_frame_chain): Ditto.
1549 (arm_init_extra_frame_info): Ditto.
1550 (arm_frame_saved_pc): Ditto.
1551 (arm_pop_frame): Ditto.
1552 (arm_push_return_address): New function.
1553 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
1554 call_dummy_location, call_dummy_breakpoint_offset_p,
1555 call_dummy_breakpoint_offset, call_dummy_p,
1556 call_dummy_stack_adjust_p, call_dummy_words,
1557 sizeof_call_dummy_words, call_dummy_start_offset,
1558 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
1559 call_dummy_address, push_return_address and push_dummy_frame for
1560 generic dummy frames.
1561
1562 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1563
1564 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
1565 size computation for alloca.
1566 (sh_fp_frame_init_saved_regs): Likewise.
1567
1568 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
1569
1570 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
1571 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
1572 * arm-tdep.c (arm_store_return_value): Use them.
1573 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
1574 * remote-rdp.c (remote_rdp_fetch_register): Use
1575 ARM_MAX_REGISTER_RAW_SIZE.
1576 (remote_rdp_store_register): Likewise.
1577
1578 2002-05-07 Michal Ludvig <mludvig@suse.cz>
1579
1580 * dwarf2cfi.c: Code cleanup, removed unused variables,
1581 added default labels to switch {} statements.
1582 * x86-64-tdep.c: Ditto.
1583 * x86-64-linux-nat.c: Ditto.
1584
1585 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1586
1587 * solib.h: Protect against multiple inclusion.
1588
1589 2002-05-06 Jim Blandy <jimb@redhat.com>
1590
1591 Add first preprocessor macro-expansion files.
1592 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1593 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1594 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1595 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1596 (COMMON_OBS): Add macrotab.o, macroexp.o.
1597 (macroexp.o, macrotab.o): New rules.
1598
1599 Separate the job of reading the line number info statement program
1600 header (...expialidocious) out into its own function.
1601 * dwarf2read.c (struct line_head, struct filenames, struct
1602 directories): Replace with...
1603 (struct line_header): New structure, containing the full
1604 contents of the statement program header, including the
1605 include directory and file name tables.
1606 (read_file_scope): If we have line number info, instead of just
1607 calling dwarf_decode_lines to do all the work, call
1608 dwarf_decode_line_header first to get a `struct line_header'
1609 containing the data in the statement program header, and then
1610 pass that to dwarf_decode_lines, which will pick up where that
1611 left off. Be sure to clean up the `struct line_header' object.
1612 (dwarf_decode_line_header, free_line_header, add_include_dir,
1613 add_file_name): New functions.
1614 (dwarf_decode_lines): Move all the code to read the statement
1615 program header into dwarf_decode_line_header. Take the line
1616 header it built as the first argument, instead of the offset to
1617 the compilation unit's line number info. Use the new `struct
1618 line_header' type instead of the old structures. No need to do
1619 cleanups here now, since we don't allocate anything.
1620 (dwarf2_statement_list_fits_in_line_number_section,
1621 dwarf2_line_header_too_long): New complaints.
1622
1623 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
1624
1625 * gdbtypes.c (init_vector_type): New function.
1626 (build_builtin_type_vec128): Simplify the representation of SIMD
1627 registers.
1628 (build_gdbtypes): Initialize new builtin vector types.
1629 (_initialize_gdbtypes): Register new vector types with gdbarch.
1630 (builtin_type_v4_float, builtin_type_v4_int32,
1631 builtin_type_v8_int16, builtin_type_v16_int8,
1632 builtin_type_v2_int32, builtin_type_v4_int16,
1633 builtin_type_v8_int8): New (renamed) SIMD types.
1634
1635 2002-05-06 Mark Kettenis <kettenis@gnu.org>
1636
1637 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
1638 (i387_fill_fxsave): Likewise.
1639
1640 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
1641
1642 * alpha-tdep.c (alpha_extract_return_value): Don't use
1643 non-constant array size in prototype.
1644
1645 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1646
1647 From Brian Taylor <briant at model dot com>:
1648 * ui-out.c (ui_out_field_core_addr): Use the function
1649 longest_local_hex_string_custom'to format addresses > 32 bits
1650 wide.
1651
1652 * ui-out.c (ui_out_field_core_addr): Update comment.
1653
1654 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1655
1656 * stack.c (select_and_print_frame): Make static. Delete the
1657 parameter `level'.
1658 (func_command): Update call.
1659 (select_frame_command): Delete code computing the frame level.
1660 * frame.h (select_and_print_frame): Delete declaration.
1661
1662 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1663
1664 * sparc-tdep.c (sparc_get_saved_register): Comment why
1665 get_prev_frame call is safe.
1666
1667 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1668
1669 * frame.h (select_frame): Delete level parameter.
1670 * stack.c (select_frame): Update. Use frame_relative_level to
1671 obtain the frame's level.
1672 (select_and_print_frame): Update call.
1673 (select_frame_command): Ditto.
1674 (up_silently_base): Ditto.
1675 (down_silently_base): Ditto.
1676 * ocd.c (ocd_start_remote): Ditto.
1677 * remote-rdp.c (remote_rdp_open): Ditto.
1678 * remote-mips.c (mips_initialize): Ditto.
1679 (common_open): Ditto.
1680 * remote-e7000.c (e7000_start_remote): Ditto.
1681 * m3-nat.c (select_thread): Ditto.
1682 * hppa-tdep.c (child_get_current_exception_event): Ditto.
1683 (child_get_current_exception_event): Ditto.
1684 * varobj.c (varobj_create): Ditto.
1685 (varobj_update): Ditto.
1686 (c_value_of_root): Ditto.
1687 * tracepoint.c (finish_tfind_command): Ditto.
1688 * corelow.c (core_open): Ditto.
1689 * arch-utils.c (generic_prepare_to_proceed): Ditto.
1690 * thread.c (info_threads_command): Ditto.
1691 (switch_to_thread): Ditto.
1692 * infrun.c (normal_stop): Ditto.
1693 (restore_selected_frame): Ditto.
1694 (restore_inferior_status): Ditto.
1695 * breakpoint.c (insert_breakpoints): Ditto.
1696 (watchpoint_check): Ditto.
1697 (bpstat_stop_status): Ditto.
1698 (do_enable_breakpoint): Ditto.
1699 * blockframe.c (flush_cached_frames): Ditto.
1700 (reinit_frame_cache): Ditto.
1701
1702 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1703
1704 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
1705 maintainer.
1706
1707 2002-05-04 Jim Blandy <jimb@redhat.com>
1708
1709 * gdbtypes.c (replace_type): Doc fix.
1710
1711 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1712
1713 * valprint.c (strcat_longest): Delete commented out function.
1714 Update copyright.
1715
1716 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1717
1718 * MAINTAINERS: Mark a29k as deleted.
1719 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
1720 Move new configurations to the top.
1721 * configure.tgt: Remove a29k.
1722 * config/a29k/tm-vx29k.h: Delete.
1723 * config/a29k/vx29k.mt: Delete.
1724 * config/a29k/tm-a29k.h: Delete.
1725 * config/a29k/a29k-udi.mt: Delete.
1726 * config/a29k/a29k.mt: Delete.
1727 * a29k-tdep.c: Delete.
1728 * remote-udi.c: Delete.
1729 * remote-mm.c: Delete.
1730 * remote-eb.c: Delete.
1731 * remote-adapt.c: Delete.
1732 * Makefile.in: Remove obsolete code.
1733 * gdbserver/Makefile.in: Ditto.
1734 * config/s390/s390x.mt: Ditto.
1735 * config/s390/s390.mt: Ditto.
1736 * config/sparc/sparclynx.mh: Ditto.
1737 * config/sparc/linux.mh: Ditto.
1738 * config/pa/hppaosf.mh: Ditto.
1739 * config/pa/hppabsd.mh: Ditto.
1740 * config/ns32k/nbsd.mt: Ditto.
1741 * config/mips/vr5000.mt: Ditto.
1742 * config/m68k/sun3os4.mh: Ditto.
1743 * config/m68k/nbsd.mt: Ditto.
1744 * config/m68k/m68klynx.mh: Ditto.
1745 * config/m32r/m32r.mt: Ditto.
1746 * config/i386/x86-64linux.mt: Ditto.
1747 * config/i386/nbsdelf.mt: Ditto.
1748 * config/i386/nbsd.mt: Ditto.
1749 * config/i386/i386lynx.mh: Ditto.
1750
1751 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1752
1753 * target.c (debug_print_register): New function. Handle oversize
1754 registers.
1755 (debug_to_fetch_registers): Call.
1756 (debug_to_store_registers): Call.
1757
1758 2002-05-03 Jim Blandy <jimb@redhat.com>
1759
1760 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
1761 (read_type): Doc fix.
1762 * gdbtypes.c (replace_type): Doc fix.
1763
1764 * stabsread.c (multiply_defined_struct): New complaint.
1765 (read_struct_type): If the type we were passed isn't empty, or
1766 incomplete, don't read the new struct type into it; complain,
1767 and return the original type unchanged. Take a new `type_code'
1768 argument, which is the type code for the new type.
1769 (read_type): Rather than storing the type's type code here, pass
1770 it as an argument to read_struct_type, and let that take care of
1771 storing it. That way, we don't overwrite the original type code,
1772 so read_struct_type can use it to decide whether we're overwriting
1773 something we shouldn't.
1774 (complain_about_struct_wipeout): New function.
1775
1776 2002-05-03 Andrew Cagney <ac131313@redhat.com>
1777
1778 * gdbarch.sh: Assert that gdbarch is non-NULL.
1779 * gdbarch.c: Regenerate.
1780
1781 2002-05-03 Jason Merrill <jason@redhat.com>
1782
1783 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
1784 and return NULL.
1785
1786 2002-05-03 Michal Ludvig <mludvig@suse.cz>
1787
1788 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
1789 (x86_64_dwarf2gdb_regno_map_length),
1790 (x86_64_dwarf2_reg_to_regnum): Added.
1791 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
1792 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
1793 (_initialize_x86_64_tdep): Synced with the change above.
1794 (x86_64_skip_prologue): Reformulated message.
1795
1796 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1797
1798 * f-exp.y: Also use new prev_lexptr variable
1799 to improve error reporting. Based on Michael Snyder
1800 2002-04-24 dated patch to c-exp.y.
1801 * jv-exp.y: Likewise.
1802 * m2-exp.y: Likewise.
1803
1804 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
1805
1806 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
1807 we are dealing with vectors.
1808
1809 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1810
1811 * config/m68k/tm-nbsd.h: Obvious fix,
1812 correct machine name.
1813
1814 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1815
1816 * p-typeprint.c (pascal_type_print_base): Add support
1817 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
1818
1819 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1820
1821 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
1822 for fondamental pascal 'char' type.
1823
1824 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1825
1826 * p-lang.h (is_pascal_string_type): Declaration changed,
1827 new sixth argument of type char ** added.
1828 * p-lang.c (is_pascal_string_type): Implementation
1829 changed. Args length_pos, length_size, string_pos, char_size
1830 can now be NULL. New argument arrayname set to the field
1831 name of the char array. Return value set to char array
1832 field index plus one.
1833 * p-valprint.c (pascal_val_print): Adapt to new declaration of
1834 is_pascal_string_type function.
1835
1836 2002-05-02 Andrew Cagney <cagney@redhat.com>
1837
1838 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
1839 <cagney@redhat.com> change.
1840 * gdbarch.c: Regenerate.
1841
1842 2002-05-02 Andrew Cagney <cagney@redhat.com>
1843
1844 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
1845 before probing for a new one. Detect errorenous gdbarch_init
1846 functions.
1847 * gdbarch.c: Regenerate.
1848
1849 2002-05-01 Andrew Cagney <cagney@redhat.com>
1850
1851 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
1852 * config/mcore/tm-mcore.h: Ditto. Update copyright.
1853 * config/v850/tm-v850.h: Ditto. Update copyright.
1854
1855 2002-04-30 Andrew Cagney <ac131313@redhat.com>
1856
1857 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
1858 current_gdbarch.
1859
1860 2002-04-30 Michael Snyder <msnyder@redhat.com>
1861
1862 * arm-tdep.c: Whitespace clean-ups.
1863 (arm_skip_prologue): Fix thinko; two lines
1864 should have been removed as part of 4/24 change.
1865
1866 2002-04-30 Kevin Buettner <kevinb@redhat.com>
1867
1868 * rs6000-tdep.c: Added comment describing how fpscr register
1869 numbers were chosen.
1870
1871 2002-04-30 Michael Snyder <msnyder@redhat.com>
1872
1873 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
1874
1875 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
1876
1877 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
1878 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
1879 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
1880
1881 2002-04-29 Kevin Buettner <kevinb@redhat.com>
1882
1883 From Louis Hamilton <hamilton@redhat.com>:
1884 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
1885 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
1886 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
1887 not bfd-private xcoff data, to determine wordsize.
1888 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
1889
1890 2002-04-29 Andrew Cagney <ac131313@redhat.com>
1891
1892 GDB 5.2 released from 5.2 branch.
1893
1894 2002-04-29 Michal Ludvig <mludvig@suse.cz>
1895
1896 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
1897 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
1898 (x86_64_register_info_table): Added comments with register numbers.
1899
1900 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
1901
1902 * rs6000-tdep.c (rs6000_extract_return_value,
1903 rs6000_store_return_value): Handle returning vectors.
1904 (rs6000_gdbarch_init): Use
1905 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
1906 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1907 New function.
1908 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
1909 vectors.
1910 (ppc_sysv_abi_push_arguments): Handle vector parameters.
1911 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
1912
1913 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1914
1915 * hpread.c (hpread_psymtab_to_symtab_1,
1916 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
1917 with fprintf_unfiltered (gdb_stderr,...).
1918
1919 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1920
1921 * remote-array.c (printf_monitor, write_monitor,
1922 array_insert_breakpoint, array_remove_breakpoint ):
1923 Replace fprintf (stderr,...
1924 with fprintf_unfiltered (gdb_stderr,....
1925 * remote-es.c: Likewise.
1926 * remote-os9k.c: Likewise.
1927 * remote-st.c: Likewise.
1928
1929 2002-04-28 Andreas Schwab <schwab@suse.de>
1930
1931 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
1932 linux-proc.o and gcore.o.
1933
1934 2002-04-26 Michal Ludvig <mludvig@suse.cz>
1935
1936 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
1937 code without frame pointers.
1938
1939 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1940
1941 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
1942 ON_STACK is needed.
1943
1944 2002-04-26 Ben Elliston <bje@redhat.com>
1945
1946 * target.c (do_xfer_memory): Correct reference to the new option
1947 "trust-readonly-sections".
1948
1949 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
1950
1951 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
1952 * gdbtypes.c (recursive_dump_type): Output the vector flag.
1953 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
1954 vectors.
1955 (read_array_type): Record the fact that this array type is really a
1956 vector (i.e. are passed in by value).
1957
1958 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
1959
1960 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
1961 * alpha-tdep.c (alpha_sigcontext_addr): New function.
1962 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
1963 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
1964 * alpha-linux-tdep.c: Include frame.h.
1965 (alpha_linux_sigcontext_addr): New function.
1966 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
1967 alpha_linux_sigcontext_addr.
1968 * alpha-osf1-tdep.c: Include gdbcore.h.
1969 (alpha_osf1_sigcontext_addr): New function.
1970 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
1971 alpha_osf1_sigcontext_addr.
1972 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
1973 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
1974
1975 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1976
1977 * stack.c (selected_frame_level):
1978 (select_frame): Do not set selected_frame_level.
1979 * frame.h (selected_frame_level): Delete declaration.
1980
1981 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1982
1983 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
1984 convert_from_func_ptr-addr when AIX / PowerOpen.
1985
1986 2002-04-25 Andrew Cagney <ac131313@redhat.com>
1987
1988 * valops.c (hand_function_call): Call
1989 generic_save_call_dummy_addr.
1990 * frame.h (generic_save_call_dummy_addr): Declare.
1991 * blockframe.c (struct dummy_frame): Add fields call_lo and
1992 call_hi.
1993 (generic_find_dummy_frame): Check for PC in range call_lo to
1994 call_hi instead of entry_point_address.
1995 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
1996 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
1997 (generic_save_call_dummy_addr): New function.
1998
1999 2002-04-24 David S. Miller <davem@redhat.com>
2000
2001 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
2002 sparc_skip_prologue.
2003 (sparc_skip_prologue): Kill frameless_p arg, and use line number
2004 information to find prologue when possible.
2005 (sparc_prologue_frameless_p): Call examine_prologue directly.
2006 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
2007 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
2008 second argument.
2009 (SKIP_PROLOGUE): Likewise.
2010
2011 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2012
2013 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
2014 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
2015 indicate that the condition it was testing is always true.
2016 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
2017 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2018 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2019
2020 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2021
2022 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
2023 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
2024 tdep->jb_pc and tdep->jb_elt_size.
2025 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
2026 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
2027 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2028 * alpha-nat.c (get_longjmp_target): Remove.
2029 (JB_ELEMENT_SIZE): Ditto.
2030 (JB_PC): Ditto.
2031 * alpha-tdep.c (alpha_get_longjmp_target): New function.
2032 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
2033 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
2034 to alpha_get_longjmp_target.
2035 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
2036 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
2037 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
2038
2039 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2040
2041 * README: Update to GDB 5.2.
2042
2043 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2044
2045 * gdbarch.sh (LC_ALL): Set to `c'.
2046
2047 2002-04-25 Theodore A. Roth <troth@verinet.com>
2048
2049 * avr-tdep.c: Ran through gdb_indent.sh.
2050
2051 2002-04-25 Theodore A. Roth <troth@verinet.com>
2052
2053 * MAINTAINERS: Add myself as AVR maintainer.
2054 * NEWS: Note new target avr.
2055
2056 2002-04-25 Theodore A. Roth <troth@verinet.com>
2057
2058 * Makefile.in: Add support for AVR target.
2059 * configure.tgt: Add support for AVR target.
2060 * avr-tdep.c: New file
2061 * config/avr/avr.mt: New file.
2062
2063 2002-04-25 Theodore A. Roth <troth@verinet.com>
2064
2065 * MAINTAINERS: Add myself to write-after-approval.
2066
2067 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2068
2069 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
2070 with fprintf_unfiltered (gdb_stderr,....
2071
2072 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2073
2074 Fix PR gdb/508.
2075 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
2076
2077 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2078
2079 * p-exp.y: Also use new prev_lexptr variable
2080 to improve error reporting. Based on Michael Snyder
2081 2002-04-24 dated patch to c-exp.y.
2082
2083 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2084
2085 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
2086 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
2087 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
2088 to 0.
2089 * config/alpha/tm-alpha.h: Remove forward decls of struct type
2090 and struct value.
2091 (FUNCTION_START_OFFSET): Remove.
2092 (BREAKPOINT): Ditto.
2093
2094 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2095
2096 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
2097 * NEWS: Ditto.
2098
2099 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2100
2101 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
2102 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
2103 alpha_linux_pc_in_sigtramp.
2104 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
2105 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
2106 alpha_osf1_pc_in_sigtramp.
2107 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
2108 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
2109 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2110 alphafbsd_pc_in_sigtramp.
2111 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
2112 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2113 alphanbsd_pc_in_sigtramp.
2114 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
2115 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
2116
2117 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2118
2119 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2120
2121 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2122
2123 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
2124 alphanbsd-tdep.c.
2125 (alphanbsd-nat.o): New dependency list.
2126 (alphanbsd-tdep.o): Ditto.
2127 * NEWS: Note new native NetBSD/alpha configuration.
2128 * alphanbsd-nat.c: New file.
2129 * alphanbsd-tdep.c: Ditto.
2130 * configure.host (alpha*-*-netbsd*): New host.
2131 * configure.tgt (alpha*-*-netbsd*): New target.
2132 * config/alpha/nbsd.mh: New file.
2133 * config/alpha/nbsd.mt: Ditto.
2134 * config/alpha/nm-nbsd.h: Ditto.
2135 * config/alpha/tm-nbsd.h: Ditto.
2136
2137 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2138
2139 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
2140 (alpha-osf1-tdep.o): New dependency list.
2141 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
2142 and skip_sigtramp_frame members.
2143 * alpha-linux-tdep.c: Include gdbcore.h.
2144 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
2145 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
2146 * alpha-osf1-tdep.c: New file.
2147 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
2148 alpha-osf1-dep.c.
2149 (alpha_frame_past_sigtramp_frame): New function.
2150 (alpha_dynamic_sigtramp_offset): Ditto.
2151 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
2152 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
2153 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
2154 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
2155 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
2156 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
2157 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
2158 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
2159 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
2160 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
2161 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
2162 to find_solib_trampoline_target.
2163 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
2164 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
2165 (SKIP_TRAMPOLINE_CODE): Remove.
2166 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2167 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2168 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2169 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2170 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
2171 (PROC_SIGTRAMP_MAGIC): Ditto.
2172 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2173 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2174 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2175 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2176 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2177
2178 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2179
2180 * NEWS: Note that Alpha targets are now multi-arch.
2181
2182 2002-04-24 Michael Snyder <msnyder@redhat.com>
2183
2184 * parser-defs.h (prev_lexptr): New external variable.
2185 * parse.c (parse_exp_1): Set prev_lexptr to null before
2186 calling the language-specific parser.
2187 * c-exp.y (yylex): Set prev_lexptr to start of current token.
2188 (yyerror): Use prev_lexptr in error reporting.
2189
2190 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
2191
2192 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
2193 * gregset.h: If FILL_FPXREGSET is defined, provide
2194 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
2195 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
2196 is defined, call fill_fpxregset.
2197
2198 2002-04-24 Roland McGrath <roland@frob.com>
2199
2200 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
2201 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
2202 (supply_gregset, supply_fpregset): New functions.
2203
2204 * gnu-nat.c (gnu_find_memory_regions): New function.
2205 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
2206 (gnu_xfer_memory): Add a cast.
2207
2208 2002-04-24 Michael Snyder <msnyder@redhat.com>
2209
2210 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
2211 loop. Add handling for "str lr, [sp, #-4]!" and for saves
2212 of argument regs ("str r(0123), [r11, #-nn"]).
2213 (arm_skip_prologue): Better handling for frameless functions.
2214 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
2215 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
2216
2217 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
2218
2219 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
2220 NUM_PSEUDO_REGS can be used.
2221
2222 2002-04-24 Andrew Cagney <ac131313@redhat.com>
2223
2224 * arch-utils.h: Update copyright.
2225
2226 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
2227 * gdbarch.h, gdbarch.c: Re-generate.
2228
2229 * inferior.h (IN_SIGTRAMP): Delete definition.
2230 * arch-utils.c (legacy_pc_in_sigtramp): New function.
2231 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
2232
2233 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
2234 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
2235 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
2236 (find_proc_framesize): Ditto.
2237 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
2238 (alpha_init_extra_frame_info): Ditto.
2239 * infrun.c (handle_inferior_event): Ditto.
2240 (handle_inferior_event): Ditto.
2241 (check_sigtramp2): Ditto.
2242 * blockframe.c (create_new_frame): Ditto.
2243 (get_prev_frame): Ditto.
2244 * ppc-linux-tdep.c: Update comments.
2245 * i386-linux-tdep.c: Update comments.
2246 * breakpoint.c (bpstat_what): Update comment.
2247
2248 2002-04-24 Michal Ludvig <mludvig@suse.cz>
2249
2250 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
2251 (regsets_store_inferior_registers): Removed cast to int from
2252 ptrace() calls.
2253 * gdbserver/regcache.h: Added declaration of struct inferior_info.
2254
2255 2002-04-24 David S. Miller <davem@redhat.com>
2256
2257 * i960-tdep.c (register_in_window_p): New function.
2258 (i960_find_saved_register): Use it instead of
2259 REGISTER_IN_WINDOW_P.
2260 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
2261
2262 * symtab.h (find_stab_function_addr): Kill extern.
2263 * minsyms.c (find_stab_function_addr): Remove from here...
2264 * dbxread.c: ... to here, and mark it static.
2265
2266 2002-04-20 David S. Miller <davem@redhat.com>
2267
2268 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
2269 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
2270
2271 2002-04-21 David S. Miller <davem@redhat.com>
2272
2273 * remote-vxsparc.c (vx_read_register): Fix typo, we want
2274 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
2275 (vx_write_register): Likewise.
2276
2277 2002-04-23 J. Brobecker <brobecker@gnat.com>
2278
2279 * source.c (is_regular_file): New function.
2280 (openp): Check wether file to open is a regular file
2281 to avoid opening directories.
2282
2283 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2284
2285 * findvar.c (extract_signed_integer): Cast printf argument
2286 to suppress format warning.
2287 (extract_unsigned_integer): Likewise.
2288 * infcmd.c (registers_info): Likewise.
2289 * top.c (get_prompt_1): Likewise.
2290 * valops.c (value_assign): Likewise.
2291 * valprint.c (print_decimal): Likewise.
2292
2293 2002-04-22 H.J. Lu (hjl@gnu.org)
2294
2295 * c-exp.y (typebase): Support
2296
2297 [long|long long|short] [signed|unsigned] [int|]
2298
2299 and
2300
2301 signed [long|long long|short] int
2302
2303 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2304
2305 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
2306 and vax-tdep.h.
2307 * vax-tdep.h: New file.
2308 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
2309 Make several routines static.
2310 (vax_get_saved_register): New function.
2311 (vax_gdbarch_init): New function.
2312 (_initialize_vax_tdep): Register vax_gdbarch_init.
2313 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
2314 Remove macros now under the control of gdbarch.
2315
2316 2002-04-22 Michael Snyder <msnyder@redhat.com>
2317
2318 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
2319 Some whitespace and coding standards tweaks.
2320
2321 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2322
2323 * vax-tdep.c: Include regcache.h.
2324 (vax_call_dummy_words): New.
2325 (sizeof_vax_call_dummy_words): New.
2326 (vax_fix_call_dummy): New function.
2327 (vax_saved_pc_after_call): Ditto.
2328 * config/vax/tm-vax.h: Don't include regcache.h.
2329 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
2330 (CALL_DUMMY): Remove.
2331 (CALL_DUMMY_WORDS): Define.
2332 (SIZEOF_CALL_DUMMY_WORDS): Define.
2333 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
2334
2335 2002-04-18 Michael Snyder <msnyder@redhat.com>
2336
2337 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
2338
2339 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2340
2341 * vax-tdep.c (vax_frame_chain): New function.
2342 (vax_push_dummy_frame): Ditto.
2343 (vax_pop_frame): Ditto.
2344 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
2345 (FRAMELESS_FUNCTION_INVOCATION): Use
2346 generic_frameless_function_invocation_not.
2347 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
2348 (POP_FRAME): Use vax_pop_frame.
2349
2350 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2351
2352 * vax-tdep.c (vax_store_struct_return): New function.
2353 (vax_extract_return_value): Ditto.
2354 (vax_store_return_value): Ditto.
2355 (vax_extract_struct_value_address): Ditto.
2356 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
2357 vax_store_struct_return.
2358 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
2359 (STORE_RETURN_VALUE): Use vax_store_return_value.
2360 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
2361
2362 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2363
2364 * vax-tdep.c (vax_frame_saved_pc): New function.
2365 (vax_frame_args_address_correct): Ditto.
2366 (vax_frame_args_address): Ditto.
2367 (vax_frame_locals_address): Ditto.
2368 (vax_frame_num_args): Move code to be in proximity to
2369 other frame-related functions.
2370 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
2371 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
2372 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
2373 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
2374 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
2375
2376 2002-04-22 H.J. Lu (hjl@gnu.org)
2377
2378 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
2379 includedir.
2380
2381 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2382
2383 * vax-tdep.c (vax_frame_init_saved_regs): New function.
2384 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
2385 (FRAME_INIT_SAVED_REGS): New macro.
2386
2387 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2388
2389 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
2390
2391 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2392
2393 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
2394 where needed.
2395 (fetch_osf_core_registers): Likewise.
2396 (supply_gregset): Likewise.
2397
2398 2002-04-22 J. Brobecker <brobecker@gnat.com>
2399
2400 * symfile.h (get_section_index): Define.
2401 * symfile.c (get_section_index): New function.
2402 * mdebugread.c (SC_IS_SBSS): New macro.
2403 (SC_IS_BSS): Return true for the scBss storage class only, as
2404 the scSBss storage class refers to the .sbss section.
2405 (parse_partial_symbols): Discard the symbols which associated
2406 section does not exist.
2407 Make sure to use the .sbss section index for symbols which
2408 storage class is scBss, rather than using the .bss section index.
2409
2410 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2411
2412 * vax-tdep.c: Update copyright years.
2413 (vax_register_name): New function.
2414 (vax_register_byte): Ditto.
2415 (vax_register_raw_size): Ditto.
2416 (vax_register_virtual_size): Ditto.
2417 (vax_register_virtual_type): Ditto.
2418 * config/vax/tm-vax.h: Update copyright years.
2419 (REGISTER_NAMES): Remove.
2420 (REGISTER_NAME): Define.
2421 (REGISTER_BYTE): Use vax_register_byte.
2422 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
2423 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
2424 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
2425
2426 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2427
2428 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
2429 declaration
2430 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
2431
2432 2002-04-21 David S. Miller <davem@redhat.com>
2433
2434 * arch-utils.c (generic_prologue_frameless_p): Kill
2435 SKIP_PROLOGUE_FRAMELESS_P code.
2436 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
2437 references.
2438 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
2439 * arc-tdep.c (arc_prologue_frameless_p): Implement.
2440 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
2441 references.
2442 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
2443 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
2444 (sparc_gdbarch_init): Pass it to
2445 set_gdbarch_prologue_frameless_p.
2446
2447 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2448
2449 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
2450 (alphabsd-nat.o): New dependency list.
2451
2452 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2453
2454 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
2455 alphafbsd-tdep.c.
2456 (alpha-linux-tdep.o): New dependency list.
2457 (alphafbsd-tdep.o): Likewise.
2458
2459 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2460
2461 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
2462 to here...
2463 * alpha-tdep.c: ...from here.
2464 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
2465
2466 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2467
2468 * config/alpha/tm-alpha.h: Move alpha_software_single_step
2469 prototype from here...
2470 * alpha-tdep.h: ...to here.
2471
2472 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2473
2474 * frame.h (selected_frame_level): Document as deprecated.
2475 (frame_relative_level): Declare.
2476 * stack.c (frame_relative_level): New function.
2477 (selected_frame_level): Document as deprecated.
2478 (select_frame): Do not set the selected_frame_level.
2479
2480 * stack.c (frame_info, record_selected_frame): Update.
2481 (frame_command, current_frame_command): Update.
2482 (up_silently_base, up_command, down_silently_base): Update.
2483 (down_command): Update.
2484 * inflow.c (kill_command): Update.
2485 * tracepoint.c (finish_tfind_command): Update.
2486 * corelow.c (core_open): Update.
2487 * thread.c (info_threads_command): Update.
2488 (do_captured_thread_select): Update.
2489 * infcmd.c (finish_command): Update.
2490 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
2491
2492 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2493
2494 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
2495
2496 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2497
2498 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
2499 type const.
2500
2501 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2502
2503 * alphafbsd-tdep.c: Update copyright years. Include
2504 alpha-tdep.h.
2505 (alphafbsd_use_struct_convention): Make static.
2506 (alphafbsd_init_abi): New function.
2507 (_initialize_alphafbsd_tdep): New function.
2508 * config/alpha/tm-fbsd.h: Update copyright years.
2509 (USE_STRUCT_CONVENTION): Remove.
2510
2511 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2512
2513 * alpha-tdep.c (alpha_abi_handler): New structure to describe
2514 an Alpha ABI variant.
2515 (alpha_abi_handler_list): Declare.
2516 (alpha_gdbarch_register_os_abi): New function.
2517 (alpha_gdbarch_init): Give registered ABI variant handlers a
2518 chance to tweak the gdbarch once we have set up defaults.
2519 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
2520
2521 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2522
2523 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
2524 to standard_coerce_float_to_double.
2525 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2526
2527 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2528
2529 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
2530 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
2531 from gdbarch_tdep rather than a constant.
2532 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
2533 the default text address for all Alpha Unix ABIs.
2534 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
2535 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
2536
2537 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2538
2539 * alpha-tdep.h: New file. Includes several Alpha target constants
2540 taken from...
2541 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
2542 let gdbarch deal with.
2543 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
2544 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
2545 to dependency list.
2546 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
2547 Alpha target register names.
2548 * alphabsd-nat.c: Likewise.
2549 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
2550 Alpha target register names. Make serveral routines static.
2551 (alpha_get_saved_register): New function.
2552 (alpha_abi_names): New.
2553 (process_note_abi_tag_sections): New function.
2554 (get_elfosabi): New function.
2555 (alpha_gdbarch_init): New function.
2556 (alpha_dump_tdep): New function.
2557 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
2558
2559 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2560
2561 * frame.c (find_saved_register): Delete #ifdef
2562 HAVE_REGISTER_WINDOWS code.
2563 * config/sparc/tm-sparc.h: Update comments.
2564 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
2565
2566 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2567
2568 * i960-tdep.c (i960_find_saved_register): New function.
2569 (i960_get_saved_register): New function.
2570 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
2571 (i960_get_saved_register): Declare.
2572 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
2573
2574 2002-04-20 David S. Miller <davem@redhat.com>
2575
2576 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
2577
2578 2002-04-20 Andrew Cagney <ac131313@redhat.com>
2579
2580 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
2581 instead of NUM_PSEUDO_REGS.
2582
2583 2002-04-20 David S. Miller <davem@redhat.com>
2584
2585 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
2586 GDB_MULTI_ARCH_PARTIAL
2587 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
2588 define, let tm-sp64.h do it.
2589
2590 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
2591
2592 * frame.c (find_saved_register): Avoid a NULL pointer
2593 dereference and actually walk the frame list.
2594
2595 2002-04-20 Andrew Cagney <ac131313@redhat.com>
2596
2597 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
2598 sorted in most most-recent-used order. Document.
2599 * gdbarch.h, gdbarch.c: Regenerate.
2600
2601 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2602
2603 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
2604 (add_inferior): Call create_register_cache.
2605 (clear_inferiors): Call free_register_cache.
2606 (inferior_regcache_data, set_inferior_regcache_data): New functions.
2607 * gdbserver/regcache.c (struct inferior_regcache_data): New.
2608 (registers): Remove.
2609 (get_regcache): New function.
2610 (create_register_cache, free_register_cache): New functions.
2611 (set_register_cache): Don't initialize the register cache here.
2612 (registers_to_string, registers_from_string, register_data): Call
2613 get_regcache.
2614 * gdbserver/regcache.h: Add prototypes.
2615 * gdbserver/server.h: Likewise.
2616
2617 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2618
2619 * gdbserver/mem-break.c: New file.
2620 * gdbserver/mem-break.h: New file.
2621 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
2622 dependencies.
2623 * gdbserver/inferiors.c (struct inferior_info): Add target_data
2624 member.
2625 (clear_inferiors): Free target_data member if set.
2626 (inferior_target_data, set_inferior_target_data): New functions.
2627 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
2628 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
2629 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
2630 (struct inferior_linux_data): New.
2631 (linux_create_inferior): Use set_inferior_target_data.
2632 (linux_attach): Likewise. Call add_inferior.
2633 (linux_wait_for_one_inferior): New function.
2634 (linux_wait): Call it.
2635 (linux_write_memory): Add const.
2636 (initialize_low): Call set_breakpoint_data.
2637 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
2638 handling members.
2639 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
2640 call.
2641 * gdbserver/server.h: Include mem-break.h. Update inferior.c
2642 prototypes.
2643 * gdbserver/target.c (read_inferior_memory)
2644 (write_inferior_memory): New functions.
2645 * gdbserver/target.h (read_inferior_memory)
2646 (write_inferior_memory): Change macros to prototypes.
2647 (struct target_ops): Update comments. Add const to write_memory
2648 definition.
2649
2650 2002-04-19 Andrew Cagney <ac131313@redhat.com>
2651
2652 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
2653 instead of ->prev.
2654 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
2655 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
2656 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
2657 instead of ->prev.
2658
2659 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
2660
2661 Fix PR gdb/471.
2662 * gdbtypes.c (init_simd_type): Rewrite using new functions.
2663 (build_builtin_type_vec128): Ditto.
2664 (append_composite_type_field): Fix calculation of type length in
2665 union case.
2666
2667 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
2668
2669 * config/djgpp/README: Update.
2670
2671 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
2672 compiler warnings.
2673
2674 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
2675
2676 * alpha-tdep.c (setup_arbitrary_frame): Rename...
2677 (alpha_setup_arbitrary_frame): ...to this.
2678 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
2679 for alpha_setup_arbitrary_frame.
2680
2681 2002-04-18 Andrew Cagney <cagney@redhat.com>
2682
2683 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
2684 * gdbarch.h, gdbarch.c: Regenerate.
2685
2686 * defs.h (breakpoint_from_pc_fn): Delete type definition.
2687 * target.h (memory_breakpoint_from_pc): Update declaration.
2688 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
2689
2690 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
2691 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
2692 * mem-break.c (memory_breakpoint_from_pc): Ditto.
2693 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
2694 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
2695 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
2696 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
2697 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
2698 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
2699 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
2700 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
2701 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
2702
2703 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
2704 const pointer.
2705 * monitor.c (monitor_insert_breakpoint): Ditto.
2706 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
2707
2708 * config/mcore/tm-mcore.h: Update copyright.
2709 * mem-break.c: Ditto.
2710 * xstormy16-tdep.c: Ditto.
2711
2712 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
2713
2714 * p-exp.y: Add precedence rule for '^' token.
2715 This removes the shift/reduce conflicts.
2716 Remove the comment concerning these shift/reduce conflicts.
2717
2718 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
2719
2720 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
2721 (registers_powerpc_nofp): New register set for processors
2722 without floating point unit.
2723
2724 2002-04-18 David S. Miller <davem@redhat.com>
2725
2726 * MAINTAINERS: Add myself to write-after-approval.
2727
2728 2002-04-17 Michael Snyder <msnyder@redhat.com>
2729
2730 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
2731
2732 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2733
2734 * rs6000-tdep.c (frame_initial_stack_address): Use
2735 frame_register_read to read the alloca_reg.
2736
2737 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2738
2739 * frame.c (find_saved_register): Find saved registers in the next
2740 not prev frame.
2741 Fix PR gdb/365.
2742
2743 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2744
2745 * gdbarch.sh (LANG): Set to ``c''.
2746
2747 2002-04-15 Andrew Cagney <ac131313@redhat.com>
2748
2749 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
2750
2751 2002-04-15 Andrew Cagney <ac131313@redhat.com>
2752
2753 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
2754 Update copyright.
2755
2756 * hpread.c (hpread_get_lntt): Add declaration.
2757 Also fix PR gdb/391.
2758
2759 2002-04-14 Andrew Cagney <ac131313@redhat.com>
2760
2761 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
2762 * aclocal.m4, configure: Re-generate.
2763 Fix PR gdb/391.
2764
2765 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
2766
2767 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
2768 instead of tm_print_insn.
2769
2770 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
2771
2772 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
2773
2774 2002-04-14 Andrew Cagney <ac131313@redhat.com>
2775
2776 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
2777 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
2778 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
2779
2780 2002-04-12 Don Howard <dhoward@redhat.com>
2781
2782 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
2783 max_user_call_depth.
2784 (init_cmd_lists): Initialize the new value;
2785 * cli/cli-script.c (execute_user_command): Limit the call depth of
2786 user defined commands. This avoids a core-dump when user commands
2787 are infinitly recursive.
2788
2789 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2790
2791 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
2792 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
2793 from tdep struct instead of DEFAULT_LR_SAVE.
2794 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
2795 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
2796 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
2797
2798 2002-04-12 Michael Snyder <msnyder@redhat.com>
2799
2800 * Remote.c: Spelling fix.
2801 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
2802 If no symbol found for "sbrk", try "_sbrk".
2803 (make_output_phdrs): Use bfd_section_name.
2804 (gcore_copy_callback): Use bfd_section_name.
2805 * eval.c: Indentation fix-ups.
2806 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
2807 in case it gets applied to an address that is already
2808 in the instruction space.
2809 * cli/cli-decode.c (help_list): Allow long lines to wrap.
2810 * symfile.c: Fix indentation, long lines.
2811 * source.c: White space fix-up.
2812
2813 2002-04-12 Andrew Cagney <cagney@redhat.com>
2814
2815 * defs.h (read_relative_register_raw_bytes): Delete declaration.
2816 * frame.c (frame_register_read): New function. Return non-zero on
2817 success.
2818 (read_relative_register_raw_bytes_for_frame): Delete.
2819 (read_relative_register_raw_bytes): Delete.
2820 * frame.h (frame_register_read): Declare.
2821 * d30v-tdep.c: Update Copyright. Use frame_register_read.
2822 * sh-tdep.c: Ditto.
2823 * infcmd.c (do_registers_info): Ditto.
2824 * hppa-tdep.c: Ditto.
2825 * rs6000-tdep.c: Ditto.
2826 * h8500-tdep.c: Ditto.
2827 * mips-tdep.c: Ditto.
2828 * h8300-tdep.c: Ditto.
2829 * z8k-tdep.c: Ditto.
2830
2831 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2832
2833 From Jimi X <jimix@watson.ibm.com>:
2834 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
2835 64-bit SysV ABI.
2836
2837 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2838
2839 From Jimi X <jimix@watson.ibm.com>:
2840 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
2841 bfd info.
2842
2843 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2844
2845 From Jimi X <jimix@watson.ibm.com>:
2846 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
2847 register sets for these processor variants.
2848
2849 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
2850
2851 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
2852 registers which are allowed to fail to store.
2853 * gdbserver/linux-low.h (linux_target_ops): Likewise.
2854 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
2855 (ppc_cannot_store_register): FPSCR may not be storable.
2856 * regformats/reg-ppc.dat: Support FPSCR.
2857
2858 2002-04-11 Kevin Buettner <kevinb@redhat.com>
2859
2860 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
2861 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
2862 Add fpscr as an invalid/unfetchable register.
2863 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
2864 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
2865 (fill_fpregset): Add support for register fpscr.
2866 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
2867 (fill_gregset): Account for the fact that register ``mq'' might
2868 not exist.
2869 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
2870 (registers_power): Add fpscr to register set at slot 71.
2871 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
2872 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
2873
2874 2002-04-11 Michael Snyder <msnyder@redhat.com>
2875
2876 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
2877 * configure: Regenerate.
2878 * config.in: Regenerate.
2879 * acconfig.h: Add define for _SYSCALL32.
2880 * core-sol2.c: Remove #define _SYSCALL32.
2881 * solib-legacy.c: Remove #define _SYSCALL32.
2882
2883 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2884
2885 * stack.c (select_frame): Cleanup internal error message, do not
2886 use %p.
2887
2888 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2889
2890 * stack.c (select_frame): Check that selected_frame and the
2891 specified level are as expected.
2892 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
2893 Update copyright.
2894 * frame.h (struct frame_info): Add field `level'. Update
2895 copyright.
2896 Work-in-progress PR gdb/464.
2897
2898 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2899
2900 * maint.c (maint_print_section_info): Rename print_section_info.
2901 (print_bfd_section_info, print_objfile_section_info): Update.
2902 * inferior.h (struct gdbarch): Add opaque declaration.
2903 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
2904 * gdbarch.h: Regenerate.
2905
2906 2002-04-10 Michal Ludvig <mludvig@suse.cz>
2907
2908 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
2909 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
2910 (kernel_u_size): Added.
2911 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
2912 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
2913
2914 2002-04-04 Jim Ingham <jingham@apple.com>
2915
2916 * valarith.c (find_size_for_pointer_math): New function, either returns
2917 the size for a pointer's target, returns 1 for void *, or errors for
2918 incomplete types.
2919 (value_add, value_sub): use find_size_for_pointer_math.
2920
2921 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2922
2923 * linux-low.c (linux_look_up_symbols): New hook.
2924 (linux_target_ops): Add linux_look_up_symbols.
2925 * remote-utils.c (decode_address): New function.
2926 (look_up_one_symbol): New function.
2927 * server.c (handle_query): Call target look_up_symbols hook.
2928 * server.h (look_up_one_symbol): Add prototype.
2929 * target.h (struct target_ops): Add look_up_symbols hook.
2930
2931 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2932
2933 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
2934 * ChangeLog: Correct paths in last ChangeLog entry.
2935
2936 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2937
2938 * gdbserver/linux-low.h: Remove obsolete prototypes.
2939 (struct linux_target_ops): New.
2940 (extern the_low_target): New.
2941 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2942 (register_addr): Use the_low_target explicitly.
2943 (fetch_register): Likewise.
2944 (usr_fetch_inferior_registers): Likewise.
2945 (usr_store_inferior_registers): Likewise.
2946 * gdbserver/linux-arm-low.c (num_regs): Remove.
2947 (arm_num_regs): Define.
2948 (arm_regmap): Renamed from regmap, made static.
2949 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
2950 made static.
2951 (arm_cannot_store_register): Renamed from cannot_store_register,
2952 made static.
2953 (the_low_target): New.
2954 * gdbserver/linux-i386-low.c (num_regs): Remove.
2955 (i386_num_regs): Define.
2956 (i386_regmap): Renamed from regmap, made static.
2957 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
2958 made static.
2959 (i386_cannot_store_register): Renamed from cannot_store_register,
2960 made static.
2961 (the_low_target): New.
2962 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2963 (ia64_num_regs): Define.
2964 (ia64_regmap): Renamed from regmap, made static.
2965 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
2966 made static.
2967 (ia64_cannot_store_register): Renamed from cannot_store_register,
2968 made static.
2969 (the_low_target): New.
2970 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2971 (m68k_num_regs): Define.
2972 (m68k_regmap): Renamed from regmap, made static.
2973 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
2974 made static.
2975 (m68k_cannot_store_register): Renamed from cannot_store_register,
2976 made static.
2977 (the_low_target): New.
2978 * gdbserver/linux-mips-low.c (num_regs): Remove.
2979 (mips_num_regs): Define.
2980 (mips_regmap): Renamed from regmap, made static.
2981 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
2982 made static.
2983 (mips_cannot_store_register): Renamed from cannot_store_register,
2984 made static.
2985 (the_low_target): New.
2986 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2987 (ppc_num_regs): Define.
2988 (ppc_regmap): Renamed from regmap, made static.
2989 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
2990 made static.
2991 (ppc_cannot_store_register): Renamed from cannot_store_register,
2992 made static.
2993 (the_low_target): New.
2994 * gdbserver/linux-s390-low.c (num_regs): Remove.
2995 (s390_num_regs): Define.
2996 (s390_regmap): Renamed from regmap, made static.
2997 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
2998 made static.
2999 (s390_cannot_store_register): Renamed from cannot_store_register,
3000 made static.
3001 (the_low_target): New.
3002 * gdbserver/linux-sh-low.c (num_regs): Remove.
3003 (sh_num_regs): Define.
3004 (sh_regmap): Renamed from regmap, made static.
3005 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
3006 made static.
3007 (sh_cannot_store_register): Renamed from cannot_store_register,
3008 made static.
3009 (the_low_target): New.
3010 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
3011 (the_low_target): New.
3012
3013 2002-04-09 Andrew Cagney <ac131313@redhat.com>
3014
3015 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
3016 override FP_REGNUM with frame->fp. Update copyright.
3017 * parse.c (num_std_regs, std_regs): Delete.
3018 (target_map_name_to_register): Do not search std_regs. Update
3019 function description.
3020 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
3021 declarations. Update copyright.
3022 Fix PR gdb/251.
3023
3024 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3025
3026 * gdbserver/Makefile.in: Add stamp-h target.
3027 * gdbserver/configure.in: Create stamp-h.
3028 * gdbserver/configure: Regenerated.
3029
3030 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3031
3032 * gdbserver/inferiors.c: New file.
3033 * gdbserver/target.c: New file.
3034 * gdbserver/target.h: New file.
3035 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
3036 dependencies.
3037 * gdbserver/linux-low.c (inferior_pid): New static variable,
3038 moved from server.c.
3039 (linux_create_inferior): Renamed from create_inferior.
3040 Call add_inferior. Return 0 on success instead of a PID.
3041 (linux_attach): Renamed from myattach.
3042 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
3043 (linux_thread_alive): Renamed from mythread_alive.
3044 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
3045 child dies.
3046 (linux_resume): Renamed from myresume. Add missing ``return 0''.
3047 (regsets_store_inferior_registers): Correct error message.
3048 Add missing ``return 0''.
3049 (linux_fetch_registers): Renamed from fetch_inferior_registers.
3050 (linux_store_registers): Renamed from store_inferior_registers.
3051 (linux_read_memory): Renamed from read_inferior_memory.
3052 (linux_write_memory): Renamed from write_inferior_memory.
3053 (linux_target_ops): New structure.
3054 (initialize_low): Call set_target_ops ().
3055 * gdbserver/remote-utils.c (unhexify): New function.
3056 (hexify): New function.
3057 (input_interrupt): Send signals to ``signal_pid''.
3058 * gdbserver/server.c (inferior_pid): Remove.
3059 (start_inferior): Update create_inferior call.
3060 (attach_inferior): Call add_inferior.
3061 (handle_query): New function.
3062 (main): Call handle_query for `q' packets.
3063 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
3064 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
3065
3066 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3067
3068 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
3069 dependencies.
3070 * gdbserver/configure.in: Check for <string.h>
3071 * gdbserver/configure: Regenerate.
3072 * gdbserver/config.in: Regenerate.
3073 * gdbserver/gdbreplay.c: Include needed system headers.
3074 (remote_open): Remove strchr prototype.
3075 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
3076 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
3077 (supply_register_by_name): Likewise.
3078 (collect_register): Change buf argument to void *.
3079 (collect_register_by_name): Likewise.
3080 * gdbserver/regcache.h: Add missing prototypes.
3081 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
3082 * gdbserver/server.c (handle_query): New function.
3083 (attached): New static variable, moved out of main.
3084 (main): Quiet longjmp clobber warnings.
3085 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
3086 * gdbserver/utils.c (error): Remove NORETURN.
3087 (fatal): Likewise.
3088
3089 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3090
3091 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
3092 after the last symbol in a block.
3093
3094 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
3095
3096 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
3097 is non zero as a found symbol.
3098
3099 2002-04-08 Andrew Cagney <ac131313@redhat.com>
3100
3101 * findvar.c: Include "builtin-regs.h".
3102 (value_of_register): Call value_of_builtin_reg when applicable.
3103 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
3104 (target_map_name_to_register): Call
3105 builtin_reg_map_name_to_regnum.
3106 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
3107 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
3108 (builtin_regs_h): Define.
3109 (builtin-regs.o): New target.
3110 (findvar.o): Add $(builtin_regs_h).
3111 * builtin-regs.c, builtin-regs.h: New files.
3112 * std-regs.c: New file.
3113 Partial fix for PR gdb/251.
3114
3115 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3116
3117 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
3118 it's no longer required.
3119
3120 2002-04-08 Andrew Cagney <ac131313@redhat.com>
3121
3122 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
3123
3124 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3125
3126 From Jimi X <jimix@watson.ibm.com>:
3127 * rs6000-tdep.c (rs6000_software_single_step): Use
3128 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
3129 and size. Use target_insert_breakpoint() and
3130 target_remove_breakpoint() to insert and remove breakpoints
3131 instead of explicit memory reads and writes.
3132
3133 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3134
3135 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
3136 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
3137 ELF_OBJECT_FORMAT ifdef.
3138
3139 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3140
3141 From Jimi X <jimix@watson.ibm.com>:
3142 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
3143
3144 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3145
3146 From Jimi X <jimix@watson.ibm.com>:
3147 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
3148 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
3149
3150 2002-04-07 Mark Kettenis <kettenis@gnu.org>
3151
3152 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
3153 s/asprintf/xasprintf/.
3154 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
3155
3156 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3157
3158 I believe Jeff Law denies responsability for this one:
3159 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
3160 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
3161 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
3162 Work-around for PR gdb/366.
3163
3164 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
3165
3166 * remote-e7000.c (write_small, e7000_read_inferior_memory,
3167 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
3168 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
3169
3170 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
3171
3172 * sh-tdep.c (sh_fp_frame_init_saved_regs,
3173 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
3174 information.
3175
3176 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3177
3178 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
3179 maintainer.
3180
3181 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3182
3183 * README (Reporting Bugs in GDB): Document the bug web page as the
3184 prefered way of submitting bugs.
3185 Fix PR gdb/402.
3186
3187 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3188
3189 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
3190 -1. Update comment.
3191 * gdbarch.h, gdbarch.c: Re-generate.
3192
3193 2002-04-07 Andreas Schwab <schwab@suse.de>
3194
3195 * m68klinux-nat.c (fill_fpregset): Properly pass address of
3196 buffer to regcache_collect.
3197
3198 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3199
3200 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
3201 * gdbarch.c, gdbarch.h: Re-generate.
3202
3203 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3204
3205 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
3206 declaration. Fix -Werror.
3207
3208 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
3209
3210 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
3211 * gdbarch.c: Regenerate.
3212
3213 2002-04-05 Michael Snyder <msnyder@redhat.com>
3214
3215 * breakpoint.c (clear_command): Rewrite middle section to
3216 combine two loops with identical control conditions.
3217 Add a cleanup to eliminate a memory leak.
3218 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
3219
3220 2002-04-05 H.J. Lu (hjl@gnu.org)
3221
3222 * solib-svr4.c (bkpt_names): Add "__start".
3223
3224 2002-04-04 Andrew Cagney <ac131313@redhat.com>
3225
3226 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
3227 as test for 64 bit target.
3228
3229 2002-04-05 Andrew Cagney <ac131313@redhat.com>
3230
3231 * h8500-tdep.c (h8500_write_fp): Delete function.
3232 * dwarf2cfi.c (cfi_write_fp): Document as not used.
3233 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
3234 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
3235 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
3236 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
3237 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
3238 (s390_write_fp):
3239 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
3240 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
3241 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
3242 (d10v_write_fp): Delete function.
3243 * inferior.h (write_fp, generic_target_write_fp): Delete
3244 declarations.
3245 * regcache.c (generic_target_write_fp): Delete function.
3246 (write_fp): Delete function.
3247 * gdbarch.sh (TARGET_WRITE_FP): Delete.
3248 * gdbarch.h, gdbarch.c: Regenerate.
3249 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
3250 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
3251 (sparc64_write_fp): Delete declaration.
3252 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
3253 (h8500_write_fp): Delete declaration.
3254
3255 2002-04-04 Andrew Cagney <ac131313@redhat.com>
3256
3257 * sparc-tdep.c (sparc64_write_fp): Delete.
3258 (sparc_push_dummy_frame): Replace write_fp call with code to store
3259 the FP directly.
3260 (sparc_gdbarch_init): Do not initialize write_fp.
3261
3262 2002-04-05 Kevin Buettner <kevinb@redhat.com>
3263
3264 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
3265 clause.
3266
3267 2002-03-29 Jim Blandy <jimb@redhat.com>
3268
3269 * stack.c (get_selected_block): Add new argument `addr_in_block',
3270 used to return the exact code address we used to select the block,
3271 not just the block.
3272 * blockframe.c (get_frame_block, get_current_block): Same.
3273 * frame.h (get_frame_block, get_current_block,
3274 get_selected_block): Update declarations.
3275 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
3276 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
3277
3278 2002-04-05 Michael Snyder <msnyder@redhat.com>
3279
3280 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
3281 warning message.
3282
3283 2002-04-05 J. Brobecker <brobecker@gnat.com>
3284
3285 * utils.c (xfullpath): New function.
3286 * defs.h (xfullpath): Add declaration.
3287 * source.c (openp): Use xfullpath in place of gdb_realpath to
3288 avoid resolving the basename part of filenames when the
3289 associated file is a symbolic link. This fixes a potential
3290 inconsistency between the filenames known to GDB and the
3291 filenames it prints in the annotations.
3292 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
3293 to be able to match a filename with either the real filename, or
3294 the name of any symbolic link to this file.
3295 (lookup_partial_symtab): Ditto.
3296
3297 2002-04-04 Michael Snyder <msnyder@redhat.com>
3298
3299 * breakpoint.c: Add support for hardware breakpoints in overlays.
3300 (overlay_events_enabled): New state variable.
3301 (insert_breakpoints): Use overlay_events_enabled to decide
3302 whether to attempt to set a breakpoint at the overlay load addr.
3303 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3304 (remove_breakpoint): Use overlay_events_enabled to decide
3305 whether breakpoints need to be removed from overlay load addr.
3306 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3307 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
3308 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
3309 disable_overlay_breakpoints): Update overlay_events_enabled.
3310
3311 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
3312
3313 * dwarf2read.c (struct function_range): New.
3314 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
3315 (check_cu_functions): New.
3316 (read_file_scope): Initialize global function lists.
3317 Call dwarf_decode_line after processing children.
3318 (read_func_scope): Add to global function list.
3319 (dwarf_decode_lines): Call check_cu_functions everywhere
3320 record_line is called. Call record_line with a linenumber
3321 of 0 to mark sequence ends.
3322
3323 2002-04-04 Michal Ludvig <mludvig@suse.cz>
3324
3325 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
3326 change sync with glibc.
3327
3328 2002-04-03 Jim Blandy <jimb@redhat.com>
3329
3330 * configure.in: Call AC_C_INLINE.
3331 * configure: Regenerated.
3332
3333 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
3334
3335 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
3336 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
3337
3338 2002-03-31 Mark Kettenis <kettenis@gnu.org>
3339
3340 * NEWS: Mention gcore support on FreeBSD/i386.
3341
3342 * fbsd-proc.c: New file.
3343 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
3344 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
3345
3346 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
3347 while statement.
3348
3349 2002-03-29 Jim Blandy <jimb@redhat.com>
3350
3351 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
3352 unescaped newlines in string literals, but newer ones don't. So
3353 escape them.
3354
3355 2002-03-26 Michael Snyder <msnyder@redhat.com>
3356 Andrew Cagney <cagney@redhat.com>
3357
3358 * cli/cli-dump.c: New file. Dump memory to file,
3359 restore file to memory.
3360 * cli/cli-dump.h: New file.
3361 * Makefile.in: Add rules, dependencies for cli-dump.o.
3362 * NEWS: Mention new commands.
3363
3364 2002-03-28 Michael Snyder <msnyder@redhat.com>
3365
3366 * symfile.c (symbol_file_add): Move test for null symbols to later.
3367
3368 2002-03-27 Andrew Cagney <ac131313@redhat.com>
3369
3370 From veksler at il.ibm.com:
3371 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
3372 the xstrduped original path.
3373 Fix PR gdb/417.
3374
3375 2002-03-27 Michael Snyder <msnyder@redhat.com>
3376
3377 * breakpoint.c (_initialize_breakpoint): Clean up help string.
3378 * infcmd.c (_initialize_infcmd): Ditto.
3379 * language.c (_initialize_language): Ditto.
3380 * symfile.c (_initialize_symfile): Ditto.
3381 * top.c (_init_main): Ditto.
3382 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3383
3384 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
3385
3386 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
3387 vector registers handling.
3388 (skip_prologue): Handle new AltiVec instructions. Fill in new
3389 fields of frame data.
3390 (frame_get_saved_regs): Fill in information for AltiVec registers.
3391
3392 2002-03-27 Jim Blandy <jimb@redhat.com>
3393
3394 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
3395 a function; leave this macro here to invoke that function.
3396 (symbol_init_mangled_name): Declaration for that function.
3397 * symtab.c (symbol_init_mangled_name): New function.
3398
3399 2002-03-27 Andrew Cagney <ac131313@redhat.com>
3400
3401 * valarith.c: Replace strerror with safe_strerror.
3402 * tracepoint.c: Ditto.
3403 * lin-lwp.c: Ditto.
3404 * go32-nat.c: Ditto.
3405 * inflow.c: Ditto.
3406 * gnu-nat.c: Ditto.
3407
3408 2002-03-27 Andreas Schwab <schwab@suse.de>
3409
3410 * event-top.c (command_line_handler): Remove useless if.
3411
3412 2002-03-27 Andreas Jaeger <aj@suse.de>
3413
3414 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
3415 comment.
3416
3417 2002-03-27 Michal Ludvig <mludvig@suse.cz>
3418
3419 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
3420 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
3421 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
3422 (x86_64_linux_dr_get_status, supply_gregset),
3423 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
3424 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
3425 (x86_64_register_info_table): Add.
3426 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
3427 (x86_64_register_raw_size, x86_64_register_virtual_type),
3428 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
3429 general x86_64_register_info_table.
3430 (i386_gdbarch_init): gdbarch_register_bytes is now set
3431 dynamicaly during initialization.
3432 * regformats/reg-x86-64.dat: Synced with changes to registers above.
3433 * gdbserver/linux-x86-64-low.c: Ditto.
3434
3435 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3436
3437 * gdbserver/server.c (main): Call target_signal_to_host_p
3438 and target_signal_to_host on signals received from the remote.
3439 * gdbserver/remote-utils.c (prepare_resume_reply): Call
3440 target_signal_from_host on signals sent to the remote.
3441 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
3442 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
3443
3444 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3445
3446 * signals/signals.c: Include "server.h" in gdbserver build.
3447 (target_signal_from_name): Don't use STREQ.
3448 (_initialize_signals): Likewise. Don't include function in
3449 gdbserver build.
3450
3451 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3452
3453 * signals.c: Moved to...
3454 * signals/signals.c: Here.
3455 * Makefile (signals.o): Update.
3456
3457 2002-03-26 Jeff Law (law@redhat.com)
3458
3459 * somread.c (som_symtab_read): Remove some commented out code and
3460 updated related comments. Do not set the minimal symbol table to
3461 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
3462 in a dynamic executable.
3463 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
3464 where we are unable to find the minimal symbol for the given
3465 PC value.
3466
3467 2002-03-25 Jeff Law (law@redhat.com)
3468
3469 * linux-proc.c (read_mapping): Scan up to end of line for filename.
3470
3471 2002-03-25 Michal Ludvig <mludvig@suse.cz>
3472
3473 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
3474
3475 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3476
3477 * command.h: Update copyright.
3478 (struct cmd_list_element): Replace definition with opaque
3479 declaration.
3480 (enum cmd_types): Document that it will eventually be moved to
3481 cli/cli-decode.h
3482 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
3483 (MALLOCED_REPLACEMENT): Delete macro.
3484 * Makefile.in (cli_decode_h): Add $(command_h).
3485 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
3486 * top.c: Include "cli/cli-decode.h".
3487 * completer.c: Include "cli/cli-decode.h".
3488 * maint.c: Include "cli/cli-decode.h".
3489 * cli/cli-decode.h: Include "command.h".
3490 (enum command_class): Delete.
3491 (enum cmd_types): Comment out.
3492 (enum cmd_auto_boolean): Delete.
3493 (enum var_types): Delete.
3494
3495 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3496
3497 * cli/cli-decode.c: Include "gdb_assert.h".
3498 (add_set_or_show_cmd): New static function.
3499 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
3500 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
3501 all fields, such as func, from the set command.
3502
3503 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3504
3505 * MAINTAINERS (sh-elf): Change warning flag to -w.
3506
3507 2002-03-23 Andrew Cagney <cagney@redhat.com>
3508
3509 * defs.h (error): Add printf format attribute.
3510 * thread-db.c (thread_from_lwp): Fix error format string.
3511 * stack.c (parse_frame_specification): Ditto.
3512 * cli/cli-decode.c (undef_cmd_error): Ditto.
3513 * scm-lang.c (scm_lookup_name): Ditto.
3514 * tracepoint.c (trace_error): Ditto.
3515 * remote-utils.c (usage): Ditto.
3516 * remote.c (compare_sections_command): Ditto.
3517 Fix PR gdb/328.
3518
3519 2002-03-22 Andrew Cagney <ac131313@redhat.com>
3520
3521 * gdbtypes.c (append_composite_type_field): New function.
3522 (init_composite_type): New function.
3523 * gdbtypes.h (append_composite_type_field): Declare.
3524 (init_composite_type): Ditto.
3525
3526 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
3527
3528 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
3529 function.
3530 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
3531 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
3532 structure returning convention for SYSV ABI case, but not
3533 for GNU/Linux, FreeBSD, or NetBSD.
3534
3535 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
3536
3537 * symtab.h (lookup_block_symbol): Add mangled_name argument
3538 to prototype.
3539
3540 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
3541 with new mangled_name argument.
3542 * linespec.c (decode_line_1): Likewise.
3543 * valops (value_of_this): Likewise.
3544 * symtab.c (lookup_transparent_type): Likewise.
3545 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
3546 (lookup_symbol): If we are given a mangled name, pass it down
3547 to lookup_symbol_aux.
3548 (lookup_block_symbol): If we are given a mangled name to check
3549 against, only return symbols which match it.
3550
3551 2002-03-22 Christopher Faylor <cgf@redhat.com>
3552
3553 * win32-nat.c (child_create_inferior): Check for proper shell to use
3554 here, in case the user changes it on the fly.
3555 (_initialize_inftarg): Remove shell path considerations.
3556
3557 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
3558
3559 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
3560 for gdbarch_max_register_raw_size and max_register_virtual_size.
3561 Adjust copyright year.
3562
3563 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
3564
3565 * dbxread.c (process_one_symbol): Extend the first N_SLINE
3566 in a function to cover the entire beginning of the function
3567 as well if it does not already.
3568
3569 2002-03-21 Tom Rix <trix@redhat.com>
3570
3571 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
3572 (rs6000_ptrace64): Renamed from ptrace64.
3573
3574 2002-03-20 Martin M. Hunt <hunt@redhat.com>
3575
3576 * gdbserver/remote-utils.c (remote_open): Don't call
3577 getprotobyname, we're all using TCP here so just use
3578 IPPROTO_TCP.
3579 * gdbserver/gdbreplay.c (remote_open): Ditto.
3580
3581 2002-03-20 Martin M. Hunt <hunt@redhat.com>
3582
3583 * regcache.c (_initialize_regcache): No need to call
3584 build_regcache() at this time; it gets called whenever
3585 the gdbarch changes.
3586
3587 2002-03-20 David O'Brien <obrien@FreeBSD.org>
3588
3589 * sparc-nat.c: Include sys/param.h where possible.
3590
3591 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
3592
3593 Fix PR gdb/422.
3594 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
3595 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
3596 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
3597 complex types.
3598 * stabsread.c (rs6000_builtin_type): Likewise.
3599 (read_sun_floating_type): Likewise.
3600
3601 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3602
3603 * stabsread.c (read_member_functions): Remove skip code for duplicate
3604 constructor/destructor methods. Use standard parsing for these
3605 methods and just do not chain them to the list of methods after
3606 parsing.
3607
3608 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
3609
3610 * coffread.c: Remove redundant static declarations. Replace
3611 occurrences of `PTR' with `void *'.
3612 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
3613 * top.h (quit_cover): Likewise.
3614 * defs.h (catch_errors): Likewise.
3615
3616 2002-03-18 Andrew Cagney <ac131313@redhat.com>
3617
3618 * defs.h (XMALLOC): Define.
3619 * gdb-events.sh (XMALLOC): Delete macro.
3620 * gdb-events.c, gdb-events.h: Regenerate.
3621 * gdbarch.sh (XMALLOC): Delete macro.
3622 * gdbarch.c: Regenerate.
3623 * serial.c (XMALLOC): Delete macro.
3624 * ui-file.c (XMALLOC): Ditto.
3625 * ser-unix.h (XMALLOC): Ditto.
3626 * sh-tdep.c (XMALLOC): Ditto.
3627 * ui-out.c (XMALLOC): Ditto.
3628 * utils.c (XMALLOC): Ditto.
3629 * i386-tdep.c (XMALLOC): Ditto.
3630 * gdb-events.c (XMALLOC): Ditto.
3631 * d10v-tdep.c (XMALLOC): Ditto.
3632 * cli-out.c (XMALLOC): Ditto.
3633
3634 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
3635 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
3636 * ui-file.c, ui-out.c: Ditto.
3637
3638 2002-03-18 Andrew Cagney <ac131313@redhat.com>
3639
3640 * command.h (struct cmd_list_element): Add field context.
3641 (set_cmd_context, get_cmd_context): Declare.
3642 * cli/cli-decode.h: Ditto.
3643 * cli/cli-decode.c (get_cmd_context): New function.
3644 (set_cmd_context): New function.
3645 (add_cmd): Initialize context.
3646 Part of fixing PR gdb/145 and PR gdb/146.
3647
3648 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3649
3650 * cli/cli-decode.c (cmd_type): New function.
3651 * command.h (cmd_type): Declare.
3652 * infrun.c (set_schedlock_func): Call function cmd_type.
3653 * kod.c (kod_set_os): Call cmd_type.
3654 * cris-tdep.c (cris_version_update): Use function cmd_type.
3655 (cris_mode_update, cris_abi_update): Ditto.
3656
3657 * command.h: (execute_cmd_post_hook): Declare.
3658 (execute_cmd_pre_hook): Declare.
3659 * cli/cli-script.c (clear_hook_in_cleanup): New function.
3660 (execute_cmd_post_hook, execute_cmd_pre_hook): New
3661 functions. Execute pre/post hook while ensuring that afterwords
3662 hook_in is cleared.
3663 * top.c (execute_command): Use execute_cmd_post_hook, and
3664 execute_cmd_pre_hook to execute pre/post commands.
3665 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
3666 hook_stop_stub.
3667 (hook_stop_stub): Call execute_cmd_pre_hook.
3668
3669 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3670
3671 * kod.c (kod_set_os): Revert previous change. Is called by ``info
3672 set'' and this leads to a core dump. Move xstrdup of
3673 operating_system to after check that it is not NULL.
3674
3675 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3676
3677 * kod.c (kod_set_os): Remove unnecessary check that
3678 ``command->type'' is set_cmd.
3679
3680 * valprint.c (set_input_radix): Use input_radix.
3681 (set_output_radix): Use output_radix.
3682 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
3683 isn't reverted.
3684
3685 2002-03-16 Andrew Cagney <ac131313@redhat.com>
3686
3687 * value.h (struct value): Delete field ``substring_addr''. Change
3688 aligner fields to force_doublest_align, force_longest_align,
3689 force_core_addr_align and force_pointer_aligh.
3690
3691 * value.h (struct value): Fix typo in above change.
3692
3693 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3694
3695 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
3696 to fix internal_error from ``maintenance print architecture''.
3697
3698 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3699
3700 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
3701 for gcc versions after gcc-2.8.1.
3702
3703 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3704
3705 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
3706 for method resolution. Restore adjustment of ``this'' pointer after
3707 calling value_struct_elt, which was accidentally removed during the
3708 HP merge.
3709
3710 2002-03-15 Andrew Cagney <ac131313@redhat.com>
3711
3712 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
3713 value_of_register.
3714 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
3715 get_saved_register.
3716 * value.h (value_of_register): Update.
3717
3718 2002-03-14 Richard Henderson <rth@redhat.com>
3719
3720 * configure.in: Detect declaration for canonicalize_file_name.
3721 * utils.c (canonicalize_file_name): Declare, if needed.
3722 (gdb_realpath): Prefer realpath if available and usable.
3723 * config.in, configure: Rebuild.
3724
3725 2002-03-14 Richard Henderson <rth@redhat.com>
3726
3727 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
3728 a constant array bound.
3729
3730 * MAINTAINERS: Add myself to write-after-approval.
3731
3732 2002-03-14 Michael Snyder <msnyder@redhat.com>
3733
3734 * symfile.c (syms_from_objfile): Return immediately if no syms.
3735 (symbol_file_add): Return immediately if no syms.
3736 (find_sym_fns): Return immediately if no syms.
3737
3738 2002-03-13 Michal Ludvig <mludvig@suse.cz>
3739
3740 * gdbserver/remote-util.c (remote_open): Print remote-side's
3741 IP address when remote debugging over the network.
3742
3743 2002-03-12 David O'Brien <obrien@FreeBSD.org>
3744
3745 * config/sparc/fbsd.mh: Fix copyright.
3746 * config/sparc/fbsd.mt: Likewise.
3747
3748 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
3749
3750 * MAINTAINERS: Fix typo in name of gdb warnings option.
3751 (x86-64): Fix formating so that this can be parsed by awk.
3752
3753 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
3754
3755 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
3756 * defs.h: Include "gdb/signals.h".
3757 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
3758
3759 2002-03-10 Michal Ludvig <mludvig@suse.cz>
3760
3761 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
3762 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
3763 from x86-64-tdep.h
3764
3765 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
3766 Don Howard <dhoward@redhat.com>
3767
3768 * mips-tdep.c (ST0_FR): Define.
3769 (mips2_fp_compat): New function, temporarily disabled.
3770 (mips_read_fp_register_single): New function.
3771 (mips_read_fp_register_double): New function.
3772 (mips_print_register): Use them.
3773 (do_fp_register_row): Likewise.
3774
3775 2002-03-09 Andrew Cagney <ac131313@redhat.com>
3776
3777 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
3778 approval''.
3779
3780 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3781
3782 * stabsread.c (read_member_functions): Fix is_stub test for
3783 static member functions, improve comment.
3784
3785 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
3786
3787 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
3788 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
3789 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
3790 commands that set boolean values.
3791 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
3792 (arm_rdi_resume): Always initialize PC.
3793 (arm_rdi_open): Don't use rslt as a boolean.
3794 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
3795 (arm_rdi_fetch_registers, arm_rdi_store_registers)
3796 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
3797 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
3798
3799 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
3800
3801 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
3802 * configure: Rebuilt.
3803
3804 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3805
3806 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
3807 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
3808
3809 2002-03-06 Andrew Cagney <ac131313@redhat.com>
3810
3811 * cli/cli-decode.c (set_cmd_completer): New function.
3812 * command.h (set_cmd_completer): Declare.
3813 * cli/cli-decode.h (set_cmd_completer): Ditto.
3814
3815 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
3816 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3817 * win32-nat.c (_initialize_inftarg): Ditto.
3818 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3819 * proc-api.c (_initialize_proc_api): Ditto.
3820 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
3821 * source.c (_initialize_source): Ditto.
3822 * exec.c (_initialize_exec): Ditto.
3823 * solib.c (_initialize_solib): Ditto.
3824 * top.c (init_main): Ditto.
3825 * tracepoint.c (_initialize_tracepoint): Ditto.
3826 * symfile.c (_initialize_symfile): Ditto.
3827 * printcmd.c (_initialize_printcmd): Ditto.
3828 * infcmd.c (_initialize_infcmd): Ditto.
3829 * corefile.c (_initialize_core): Ditto.
3830
3831 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3832
3833 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
3834
3835 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3836
3837 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
3838
3839 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3840
3841 * NEWS: Update headings, 5.2 has branched.
3842
3843 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
3844
3845 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
3846 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
3847 (register_addr, REGISTER_RAW_SIZE): Likewise.
3848 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
3849 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
3850
3851 2002-03-03 Michal Ludvig <mludvig@suse.cz>
3852
3853 * MAINTAINERS (x86-64): Add myself.
3854 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
3855 changed value_ptr -> struct value *
3856
3857 2002-03-01 David O'Brien <obrien@FreeBSD.org>
3858
3859 * configure.host (sparc64-*-freebsd): Add.
3860 * configure.tgt: Likewise.
3861 * config/sparc/fbsd.mh: New file.
3862 * config/sparc/fbsd.mt: Likewise.
3863 * config/sparc/nm-fbsd.h: Likewise.
3864 * config/sparc/tm-fbsd.h: Likewise.
3865
3866 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
3867
3868 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
3869 regformats/reg-s390x.dat.
3870
3871 2002-03-01 Andrew Cagney <ac131313@redhat.com>
3872
3873 * utils.c: Add FIXME explaining true/false problem.
3874
3875 2002-02-28 Andrew Cagney <ac131313@redhat.com>
3876
3877 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
3878
3879 2002-02-28 Michael Chastain <mec@shout.net>
3880
3881 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
3882
3883 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
3884
3885 * gdbserver/linux-s390-low.c: New file.
3886 * regformats/reg-s390.dat: New file.
3887 * regformats/reg-s390x.dat: New file.
3888 * gdbserver/configure.srv: Add S/390.
3889 * gdbserver/Makefile.in: Add S/390.
3890 * configure.tgt: Enable gdbserver for S/390.
3891
3892 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
3893
3894 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
3895 first line of the doc string for "info dos", except at the end of
3896 the sentence, since the short help stops at the first period.
3897
3898 2002-02-28 Jason Merrill <jason@redhat.com>
3899
3900 * dwarf2read.c (dwarf_cfi_name): Add new codes.
3901
3902 2002-02-27 Fred Fish <fnf@redhat.com>
3903
3904 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
3905 comment (dumy -> dummy).
3906
3907 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3908
3909 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
3910
3911 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
3912
3913 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
3914
3915 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3916
3917 * gdbserver/acconfig.h: New file.
3918 * gdbserver/i387-fp.c: New file.
3919 * gdbserver/i387-fp.h: New file.
3920 * gdbserver/linux-x86-64.c: New file.
3921 * regformats/reg-x86-64.dat: New file.
3922 * configure.tgt: Add x86_64-*-linux* gdbserver support.
3923 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
3924 * gdbserver/configure.in: Add support for regsets.
3925 * gdbserver/config.in: Regenerate.
3926 * gdbserver/configure: Regenerate.
3927 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
3928 * gdbserver/linux-low.h: New file.
3929 * gdbserver/linux-low.c: Include "linux-low.h". Add support
3930 for regsets.
3931 * gdbserver/linux-arm-low.c: Include "linux-low.h".
3932 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
3933 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
3934 * gdbserver/linux-mips-low.c: Include "linux-low.h".
3935 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
3936 * gdbserver/linux-sh-low.c: Include "linux-low.h".
3937 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
3938 "i387-fp.h". Add PTRACE_GETREGS and friends.
3939 * gdbserver/regcache.c (supply_register): New function.
3940 (supply_register_by_name): New function.
3941 (collect_register): New function.
3942 (collect_register_by_name): New function.
3943
3944 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3945
3946 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
3947 (config.status): Add configure.srv dependency.
3948 (server_h): Add config.h dependency.
3949
3950 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3951
3952 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
3953 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
3954 * gdbserver/configure.srv: Change i386-*-linux* to use
3955 reg-i386-linux.o.
3956
3957 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3958
3959 * x86-64-tdep.c: Re-indent. Update copyright date.
3960
3961 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3962
3963 From Michal Ludvig <mludvig@suse.cz>:
3964 * x86-64-tdep.c (value.h): Delete.
3965 (gdb_assert.h): Include.
3966 (x86_64_register_convert_to_virtual,
3967 x86_64_register_convert_to_raw ): Add check which lets only
3968 floating-point values to be converted.
3969 (value_push): Delete.
3970 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
3971 (i386_gdbarch_init): Number of register_bytes fixed.
3972
3973 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3974
3975 * MAINTAINERS: Add x86-64 target.
3976
3977 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3978
3979 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
3980 * osfsolib.c (solib_map_sections): Ditto.
3981 * irix5-nat.c (solib_map_sections): Ditto.
3982 * corelow.c (gdb_check_format): Ditto.
3983 * symfile.c (symfile_bfd_open): Ditto.
3984 * solib.c (solib_map_sections): Ditto.
3985 Fix PR gdb/354.
3986
3987 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3988
3989 * remote.c (_initialize_remote): By default, disable ``e'' and
3990 ``E'' step out-of-range packets.
3991
3992 2002-02-26 Andreas Schwab <schwab@suse.de>
3993
3994 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
3995 m68k_linux_frame_saved_pc.
3996 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
3997 in_sigtramp.
3998 (SIGCONTEXT_PC_OFFSET): Remove.
3999 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
4000 m68k_linux_sigtramp_saved_pc): New functions.
4001 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
4002 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
4003 (UCONTEXT_PC_OFFSET): Define.
4004 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
4005 non-RT and RT signal trampolines.
4006
4007 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
4008
4009 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
4010 (TARGET_NBPG, STACK_END_ADDR): Delete
4011 (VARIABLES_INSIDE_BLOCK): Delete.
4012
4013 2002-02-25 Andrew Cagney <ac131313@redhat.com>
4014
4015 * utils.c (perror_with_name): Make string parameter constant.
4016 (print_sys_errmsg): Ditto.
4017 (query): Ditto.
4018 * defs.h (perror_with_name): Update.
4019 (print_sys_errmsg): Update.
4020 (query): Update.
4021
4022 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
4023
4024 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
4025 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
4026
4027 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4028
4029 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
4030 if it already matches the current architecture from the exec file.
4031 Include arch-utils.h for gdbarch_info_init prototype.
4032 * Makefile.in (rs6000-nat.o): Update dependencies.
4033
4034 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
4035
4036 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
4037 list of exported variables.
4038
4039 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
4040
4041 * gdbserver/configure.srv: New file.
4042 * gdbserver/configure.in: Use configure.srv instead
4043 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
4044 from it.
4045 * gdbserver/configure: Regenerated.
4046 * gdbserver/terminal.h: New file.
4047 * gdbserver/Makefile.in: Update for configure changes. Remove
4048 more unneeded include paths.
4049
4050 2002-02-24 Andrew Cagney <ac131313@redhat.com>
4051
4052 From wiz at danbala:
4053 * config/sparc/tm-sp64.h: Fix grammar and typos.
4054 Fix PR gdb/287.
4055
4056 2002-02-24 Andrew Cagney <ac131313@redhat.com>
4057
4058 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
4059 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
4060 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
4061 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
4062 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
4063 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
4064 * s390-tdep.c: Ditto.
4065 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
4066 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
4067 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
4068 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
4069 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
4070 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
4071 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
4072 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
4073 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
4074 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
4075 Fix PR gdb/378.
4076
4077 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4078
4079 * lin-thread.c: Delete file.
4080 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
4081 to gdb_proc_service.h.
4082 * configure: Re-generate.
4083
4084 * ocd.c (ocd_open): Do not try to open the "ocd" device.
4085 * serial.c (serial_open): Delete check for "ocd".
4086 Fix PR gdb/349.
4087
4088 * Makefile.in (linux-thread.o): Delete target.
4089 * linux-thread.c: Delete file.
4090
4091 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
4092 renamed SH files to be consistent.
4093
4094 * symtab.c (sort_search_symbols): Use xfree.
4095
4096 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4097
4098 * arm-linux-tdep.c (arm_linux_init_abi): Register
4099 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
4100 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
4101 definition with undef, since we don't want the sysvr4 definition.
4102 (SKIP_TRAMPOLINE_CODE): Likewise.
4103
4104 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4105
4106 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
4107
4108 * configure.in: (AC_CHECK_FUNCS) Added test for
4109 canonicalize_file_name Regenerated.
4110 * config.in, configure: Regenerated.
4111 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
4112 defined use canonicalize_file_name.
4113
4114 2002-02-23 Michael Chastain <mec@shout.net>
4115
4116 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
4117
4118 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4119
4120 * README: Remove references to cygnus.com.
4121 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
4122 dot com'' form. Remove references to cygnus.com and sourceware.
4123
4124 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4125
4126 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
4127 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
4128 1003.1-2001 no longer allows "head -1".
4129 * gdb/Makefile.in (version.c): Likewise.
4130 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
4131 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
4132 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
4133
4134 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4135
4136 * cli/cli-decode.c (cmd_cfunc_eq): New function.
4137 * command.h (cmd_cfunc_eq): Declare.
4138 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
4139
4140 * cli/cli-cmds.h (is_complete_command): Change parameter to a
4141 ``struct cmd_list_element *''.
4142 * cli/cli-cmds.c (is_complete_command): Update. Use
4143 cmd_cfunc_eq.
4144 * top.c (execute_command): Pass the command to
4145 is_complete_command.
4146 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
4147
4148 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4149
4150 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
4151 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
4152 architecture defines.
4153 * s390-tdep.c (s390_gdbarch_init): Likewise.
4154
4155 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4156
4157 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
4158 (arm_linux_push_arguments): Likewise.
4159 (arm_linux_init_abi): Register them. Also register linux-specific
4160 call_dummy_words.
4161 (find_minsym_and_objfile): Use strcmp, not STREQ.
4162 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
4163 (arm_linux_call_dummy_words): Delete declaration.
4164 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
4165 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
4166 declarations.
4167 (LOWEST_PC): Delete.
4168
4169 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4170
4171 * maint.c (print_section_info): Do not prepend `0x' to filepos
4172 output, it will be handled by local_hex_string_custom.
4173
4174 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4175
4176 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
4177 (store_newfpe_double, store_newfpe_extended, store_fpregister)
4178 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
4179
4180 2002-02-22 Jim Blandy <jimb@redhat.com>
4181
4182 Indicate that the bcache functions don't change the strings
4183 they're passed.
4184 * bcache.h (bcache, hash): Add `const' keywords to declarations.
4185 * bcache.c (bcache, hash): Add `const' keywords to definitions.
4186
4187 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
4188
4189 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
4190
4191 2002-02-21 Christopher Faylor <cgf@redhat.com>
4192
4193 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
4194 find the complete path to a loaded DLL.
4195
4196 2002-02-21 Fred Fish <fnf@redhat.com>
4197
4198 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
4199 that marks the end of the range of a function, enter a line number
4200 entry that has a line number of zero and a PC offset that matches
4201 the end of the function. This starts a range of PC's for which no
4202 line number information is known.
4203 * symtab.c (find_pc_sect_line): If our best fit is in a range of
4204 PC's for which no line number info is found (line number is zero)
4205 then we didn't find any valid line information.
4206 * symtab.h: Document use of zero line number entry.
4207
4208 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
4209
4210 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
4211 (have_ptrace_getvrregs): Define for run time checks.
4212 (gdb_vrregset_t): New type for Altivec register handling.
4213 (fetch_register, store_register): Fetch/store altivec register
4214 when needed.
4215 (fetch_altivec_register, store_altivec_register): New functions.
4216 (supply_vrregset, fill_vrregset): New functions.
4217 (fetch_altivec_registers, store_altivec_registers): New functions.
4218 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
4219 registers as well.
4220
4221 2002-02-21 Jiri Smid <smid@suse.cz>
4222
4223 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
4224
4225 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
4226
4227 * Makefile.in (armnbsd-nat.o): Update dependencies.
4228 * armnbsd-nat.c (supply_gregset): New function. Common code to
4229 supply the integer register set.
4230 (supply_fparegset): New function. Similar for FPA registers.
4231 (fetch_regs, fetch_fp_regs): Use them.
4232 (fetch_core_registers): Likewise.
4233 (fetch_elfcore_registers): New function.
4234 (arm_netbsd_elfcore_fns): New core-file type specification.
4235 (_initialize_arm_netbsd_nat): Register it.
4236
4237 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
4238
4239 * armnbsd-nat.c: Include gdbcore.h.
4240 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
4241 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
4242 'void' to declaration, to shut up ARI.
4243 (fetch_core_registers): Make static. Rewrite using supply_register.
4244 (arm_netbsd_core_fns): New core-file type specification.
4245 (_initialize_arm_netbsd_nat): New function.
4246
4247 2002-02-21 Christopher Faylor <cgf@redhat.com>
4248
4249 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
4250 value.
4251
4252 2002-02-20 Christopher Faylor <cgf@redhat.com>
4253
4254 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
4255 fails.
4256
4257 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4258
4259 * jv-exp.y (parse_number): Change type of implicit longs
4260 to builtin_type_uint64.
4261
4262 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4263
4264 * gdbserver/linux-low.c (mywait): Change argument to waitpid
4265 to be an integer instead of a `union wait'.
4266
4267 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4268
4269 * mips-linux-nat.c: Call the operating system GNU/Linux.
4270 * mips-linux-tdep.c: Likewise.
4271 * mips-tdep.c: Likewise.
4272
4273 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4274
4275 Fix PR gdb/265.
4276 * jv-exp.y (parse_number): Handle 64-bit integers.
4277
4278 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4279
4280 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
4281 AC_STDC_HEADERS to AC_HEADER_STDC.
4282 * gdbserver/configure: Regenerated.
4283
4284 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
4285
4286 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
4287 is defined.
4288 * sparc-tdep.c (get_longjmp_target): Likewise.
4289
4290 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
4291
4292 * News: Add news about ARM and Multi-arch. Mention the new target
4293 arm*-*-netbsd*.
4294
4295 2002-02-19 Jim Blandy <jimb@redhat.com>
4296
4297 * stabsread.c (error_type_complaint): Improve error message.
4298
4299 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
4300
4301 * gdbserver/README: Update documentation.
4302 * gdbserver/configure.in: Update configury to match documentation.
4303 * gdbserver/Makefile.in: Likewise.
4304 * gdbserver/configure: Regenerated.
4305 * gdbserver/aclocal.m4: New file, generated by aclocal.
4306 * gdbserver/config.in: New file, generated by autoheader.
4307
4308 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4309
4310 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
4311 armnbsd-nat.c.
4312
4313 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4314
4315 * arm-tdep.h (enum arm_float_model): New enum.
4316 (struct gdbarch_tdep): Add fp_model.
4317 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
4318 up floating-point conversions until we know the floating-point model
4319 in use by the inferior. Don't complain about being unable to
4320 determine the ABI of the inferior when we don't have one.
4321 (arm_extract_return_value): Support different floating-point models.
4322 (arm_store_return_value): Likewise.
4323 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
4324 ARM_FLOAT_SOFT.
4325 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
4326
4327 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4328
4329 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
4330 of ``current_gdbarch''.
4331
4332 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4333
4334 * armnbsd-nat.c : ANSIfy all function declarations.
4335 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
4336 (fetch_inferior_registers): Re-implement in terms of above.
4337 (store_register, store_regs, store_fp_register, store_fp_regs): New.
4338 (store_inferior_registers): Re-implement in terms of above.
4339
4340 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4341
4342 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
4343 kernel.
4344 * arm-linux-tdep.c: Likewise.
4345 * config/arm/tm-linux.h: Likewise.
4346
4347 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4348
4349 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
4350 * config/arm/nbsd.mt (TM_FILE): Delete.
4351 * config/arm/tm-nbsd.h: Delete.
4352
4353 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4354
4355 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
4356 Initialize CALL_DUMMY_LENGTH.
4357
4358 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4359
4360 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
4361 function.
4362 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
4363 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
4364 defines one thing and that is incorrect for this port.
4365 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
4366
4367 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4368
4369 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
4370
4371 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4372
4373 * win32-nat.c (display_selector): New function. Displays information
4374 about the information returned by GetThreadSelectorEntry API function.
4375 (display_selectors): New function. Displays the infomation of
4376 the selector given as argument, or of CS, DS ans FS selectors
4377 if no argument is given.
4378 ( _initialize_inftarg): Add "w32" as info prefix command.
4379 Add "info w32 selector" as command calling display_selectors.
4380
4381 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
4382
4383 * i386-tdep.c (get_longjmp_target): Fix compilation failure
4384 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
4385 if not defined.
4386
4387 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4388
4389 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
4390
4391 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4392
4393 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
4394 (arm_fix_call_dummy): Call it.
4395 (arm_call_dummy_breakpoint_offset): Delete.
4396 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
4397 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
4398
4399 2002-02-18 Andrew Cagney <ac131313@redhat.com>
4400
4401 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
4402 Default to func_frame_chain_valid.
4403 * gdbarch.h, gdbarch.c: Re-generate.
4404 * frame.h (FRAME_CHAIN_VALID): Delete definition.
4405
4406 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
4407
4408 * ppc-linux-nat.c: Update copyright.
4409 (fetch_register, store_register): Add tid parameter, don't compute
4410 tid here.
4411 (fetch_ppc_registers, store_ppc_registers): Add tid
4412 parameter. Pass it along to callees.
4413 (fetch_inferior_registers, store_inferior_registers): Compute tid
4414 here, and pass it to calleed functions.
4415 (fill_gregset, supply_fpregset): Clean up formatting.
4416
4417 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4418
4419 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
4420 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
4421
4422 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4423
4424 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
4425 * gdbarch.c gdbarch.h: Regenerate.
4426 * breakpoint.c (create_longjmp_breakpoint): Always compile this
4427 function.
4428 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
4429 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
4430 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
4431
4432 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
4433 * arm-tdep.c (arm_get_longjmp_target): New function.
4434 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
4435 this to a positive value register arm_get_longjmp_target as the
4436 longjmp handler.
4437 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
4438 (arm_linux_init_abi): Set up longjmp description in tdep.
4439 * armnbsd-nat.c (get_longjmp_target): Delete.
4440 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
4441 description in tdep.
4442 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
4443 (get_longjmp_target): Delete declaration.
4444 (GET_LONGJMP_TARGET): Delete.
4445 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
4446 (GET_LONGJMP_TARGET): Delete.
4447
4448 2002-02-17 Kevin Buettner <kevinb@redhat.com>
4449
4450 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
4451 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
4452 of ``current_gdbarch''.
4453
4454 2002-02-17 Tom Tromey <tromey@redhat.com>
4455
4456 * cli/cli-cmds.c (compare_strings): New function.
4457 (complete_command): Only print each unique item once.
4458 * completer.h (complete_line): Declare.
4459 * completer.c (complete_line): New function.
4460 (line_completion_function): Use it.
4461
4462 2002-02-16 Andrew Cagney <ac131313@redhat.com>
4463
4464 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
4465 * gdbarch.h, gdbarch.c: Re-generate.
4466
4467 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
4468
4469 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
4470
4471 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
4472
4473 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4474 * valops.c (value_arg_coerce): Don't take the address of a reference
4475 to convert an argument to a reference.
4476
4477 2002-02-15 Christopher Faylor <cgf@redhat.com>
4478
4479 * win32-nat.c (get_image_name): New function.
4480 (handle_load_dll): Use get_image_name function.
4481 (get_child_debug_event): Avoid registering debug events until possibly
4482 execed process is started.
4483 (child_create_inferior): Allow invocation via shell so that command
4484 line redirection, etc. works ok.
4485 (_initialize_inftarg): Add new command: "set shell" to control whether
4486 a shell is used to start a process.
4487
4488 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
4489
4490 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
4491 instead of find_register_by_number.
4492 (cannot_store_register): Likewise.
4493
4494 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
4495
4496 * dwarf2read.c: Replace fprintf (stderr, ...) by
4497 fprintf_unfiltered (gdb_stderr, ...).
4498
4499 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
4500
4501 * gdbserver/gdbserver.1: Document --attach.
4502
4503 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
4504
4505 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
4506 descriptions.
4507 * arm-tdep.c (arm_default_arm_le_breakpoint)
4508 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
4509 (arm_default_thumb_be_breakpoint): New. Initialize them from
4510 traditional breakpoint defines.
4511 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
4512 (arm_gdbarch_init): Initialize new breakpoint variables.
4513 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
4514 (arm_linux_init_abi): Initialize linux-specific breakpoint.
4515 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
4516 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
4517 code out to ...
4518 (arm_netbsd_init_abi_common): ... here; new function.
4519 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
4520 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
4521 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
4522 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
4523
4524 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
4525
4526 * arm-tdep.h (enum arm_abi): New enum.
4527 (struct gdbarch_tdep): New structure.
4528 (LOWEST_PC): Provide a default.
4529 (arm_gdbarch_register_os_abi): Declare new function.
4530 * arm-tdep.c (arm_abi_names): New array.
4531 (process_note_abi_tag_sections): New function.
4532 (get_elfosabi): New function.
4533 (arm_gdbarch_register_os_abi): New function.
4534 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
4535 support for that ABI has been built in, then call the appropriate
4536 configuration routine. Use gdbarch_num_regs() to get the number
4537 of registers.
4538 (arm_dump_tdep): New function.
4539 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
4540 place-holder functions.
4541 (_initialize_arm_tdep): Register them.
4542 * config/arm/tm-arm.h (LOWEST_PC): Delete.
4543
4544 * armnbsd-tdep.c: New file.
4545 * Makefile.in (armnbsd-tdep.o): Add dependencies.
4546 * config/arm/nbsd.mt (TDEPFILES): Add it.
4547 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
4548
4549 * armnbsd-nat.c: Include regcache.h.
4550 * Makefile.in (armnbsd-nat.o): Update dependency list.
4551
4552 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
4553
4554 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4555
4556 * gdbserver/Makefile.in: Fix typos in target rules.
4557
4558 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4559
4560 Fix part of PR gdb/267.
4561 * linespec.c (find_methods): Handle constructors specially for now.
4562
4563 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
4564
4565 * arm-tdep.c (arm_push_arguments): Eliminate special float type
4566 handling.
4567 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
4568 standard_coerce_float_to_double().
4569
4570 2002-02-14 Christopher Faylor <cgf@redhat.com>
4571
4572 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
4573 GDBINIT_FILENAME.
4574
4575 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
4576
4577 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
4578 find_variant_by_name, because it confuses the multiarch
4579 framework. Return NULL if there isn't an architecture with the
4580 user supplied name, instead of forcing a different one without
4581 recording the change with the multiarch machinery.
4582 (find_variant_by_name): Delete.
4583
4584 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4585
4586 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
4587 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
4588
4589 2002-02-13 Martin M. Hunt <hunt@redhat.com>
4590
4591 * stack.c (print_frame_info_base): When calling
4592 print_frame_info_listing_hook, set current_source_symtab.
4593
4594 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4595
4596 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
4597 and remove unused $(INCLUDE_DIR).
4598 Add regcache.c to OBS.
4599 Add generated register protocol files to clean target.
4600 Update dependencies for new objects, obsolete old target code.
4601
4602 * gdbserver/linux-low.c: Remove all platform-specific code to
4603 new files. Remove various dead code. Update to use regcache
4604 functionality.
4605 * gdbserver/remote-utils.c (fromhex): Add return statement
4606 to quiet warning.
4607 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
4608 constant.
4609 (input_interrupt): Add integer parameter to match prototype
4610 of a signal handler.
4611 (outreg): Use register_data ().
4612 (prepare_resume_reply): Use gdbserver_expedite_regs.
4613 * gdbserver/server.c (main): Dynamically allocate own_buf because
4614 PBUFSIZ is no longer constant. Use registers_to_string () and
4615 registers_from_string ().
4616 * gdbserver/server.h: No longer include "defs.h". Add prototypes
4617 for error (), fatal (), and warning (). Update definition of
4618 PBUFSIZ to use regcache functionality. Add include guard.
4619 * gdbserver/utils.c (fatal): Add missing ``const''.
4620 (warning): New function.
4621
4622 * regformats/regdat.sh: Include "regcache.h" in generated files.
4623 Provide init_registers () function.
4624 * regformats/regdef.h: Add prototype for set_register_cache ().
4625 Add include guard.
4626
4627 * gdbserver/linux-arm-low.c: New file.
4628 * gdbserver/linux-i386-low.c: New file.
4629 * gdbserver/linux-ia64-low.c: New file.
4630 * gdbserver/linux-m68k-low.c: New file.
4631 * gdbserver/linux-mips-low.c: New file.
4632 * gdbserver/linux-ppc-low.c: New file.
4633 * gdbserver/linux-sh-low.c: New file.
4634
4635 * gdbserver/regcache.c: New file.
4636 * gdbserver/regcache.h: New file.
4637
4638 * gdbserver/low-linux.c: Removed obsolete file.
4639
4640 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4641
4642 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
4643 * config/i386/linux.mt: Likewise.
4644 * config/ia64/linux.mt: Likewise.
4645 * config/m68k/linux.mh: Likewise.
4646 * config/powerpc/linux.mh: Likewise.
4647 * config/mips/linux.mt: Likewise.
4648
4649 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
4650
4651 * config/i386/i386lynx.mh: Mark gdbserver variables
4652 as (currently) obsolete for this target.
4653 * config/i386/nbsd.mt: Likewise.
4654 * config/i386/nbsdelf.mt: Likewise.
4655 * config/m32r/m32r.mt: Likewise.
4656 * config/m68k/m68klynx.mh: Likewise.
4657 * config/m68k/nbsd.mt: Likewise.
4658 * config/m68k/sun3os4.mh: Likewise.
4659 * config/mips/vr5000.mt: Likewise.
4660 * config/ns32k/nbsd.mt: Likewise.
4661 * config/pa/hppabsd.mh: Likewise.
4662 * config/pa/hppaosf.mh: Likewise.
4663 * config/powerpc/nbsd.mt: Likewise.
4664 * config/rs6000/rs6000lynx.mh: Likewise.
4665 * config/s390/s390.mt: Likewise.
4666 * config/s390/s390x.mt: Likewise.
4667 * config/sparc/sparclynx.mh: Likewise.
4668 * config/sparc/sun4os4.mh: Likewise.
4669 * config/i386/x86-64linux.mt: Likewise.
4670 * config/sparc/linux.mh: Likewise.
4671
4672 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4673
4674 * configure.tgt: Configure gdbserver only for known working
4675 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
4676 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
4677 SUBDIRS if it is configured. Update comment for ${nativefile}.
4678 * configure: Regenerated.
4679
4680 2002-02-13 Michael Snyder <msnyder@redhat.com>
4681
4682 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
4683
4684 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
4685 (default_gcore_mach): Just return 0, work around a problem in bfd.
4686 (default_gcore_target): OK to return NULL if exec_bfd is null.
4687 (make_mem_sec): Use a cast, avoid a warning.
4688
4689 * procfs.c (find_memory_regions_callback): Use a cast instead of
4690 calling host_pointer_to_address (which complains if
4691 sizeof (host pointer) != sizeof (target pointer)).
4692 (procfs_make_note_section): Avoid overflow in psargs string.
4693
4694 * procfs.c (procfs_make_note_section): Make the default
4695 implementation return an error.
4696
4697 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
4698
4699 * procfs.c (procfs_make_note_section): Provide a default definition
4700 (for alpha-dec-osf4.0f). Fix typos.
4701
4702 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
4703
4704 * linux-proc.c: Add include of regcache.h.
4705 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
4706
4707 2002-02-13 Andrew Cagney <ac131313@redhat.com>
4708
4709 From 2002-01-18 Greg McGary <greg@mcgary.org>:
4710 * memattr.c (create_mem_region): Disallow useless empty region.
4711 Regions are half-open intervals, so allow [A..B) [B..C) as
4712 non-overlapping.
4713
4714 2002-02-13 Michael Chastain <mec@shout.net>
4715
4716 * defs.h: Kill CONST_PTR.
4717 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
4718 * c-lang.c (c_builtin_types): Likewise.
4719 * ch-lang.c (ch_builtin_types): Likewise.
4720 * f-lang.c (f_builtin_types): Likewise.
4721 * language.c (unknown_builtin_types): Likewise.
4722 * m2-lang.c (m2_builtin_types): Likewise.
4723 * p-lang.c (pascal_builtin_types): Likewise.
4724 * scm-lang.c (c_builtin_types): Likewise.
4725
4726 2002-02-13 Keith Seitz <keiths@redhat.com>
4727
4728 * arm-tdep.h (arm_get_next_pc): Add declaration.
4729
4730 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
4731
4732 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
4733 with other related struct-returning functions.
4734 (arm_extract_struct_value_address): New function.
4735 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
4736 initialize float_format, double_format and long_double_format as
4737 appropriate to the endianness of the target.
4738 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
4739 (arm_use_struct_convention): Delete declaration.
4740 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4741
4742 2002-02-13 Keith Seitz <keiths@redhat.com>
4743
4744 * defs.h (core_addr_to_string_nz): New function.
4745
4746 2002-02-13 Mark Kettenis <kettenis@gnu.org>
4747
4748 Apply missing bits of 2002-01-15 patch.
4749 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
4750 (fill_fpregset): Use i387_fill_fsave.
4751
4752 2002-02-12 Keith Seitz <keiths@redhat.com>
4753
4754 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
4755 (core_addr_to_string_nz): New function.
4756
4757 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4758
4759 * arm-linux-nat.c: Really include arm-tdep.h.
4760 * config/arm/tm-linux.h (struct type, struct value): Declare.
4761
4762 2002-02-11 Michael Snyder <msnyder@redhat.com>
4763
4764 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
4765 (gcore section): Ifdef for Solaris and Unixware only.
4766 (procfs_do_thread_registers): Unixware needs one lwpstatus
4767 per thread (not one prstatus or pstatus).
4768 (procfs_make_note_section): Iterate only over kernel threads (lwps),
4769 not over all gdb threads. For unixware, call elfcore_write_pstatus
4770 once before iterating over threads.
4771
4772 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4773
4774 * arm-tdep.h: New file.
4775 * arm-tdep.c: Include arm-tdep.h.
4776 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4777 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4778 (arm_print_float_info, arm_register_type, convert_to_extended)
4779 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4780 (arm_extract_return_value, arm_register_name): Make static.
4781 (arm_software_single_step): Similarly. Fix types in declaration.
4782 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
4783 (arm_store_return_value, arm_store_struct_return): New functions.
4784 (arm_gdbarch_init): Register the above functions. Also register
4785 call_dummy_start_offset, sizeof_call_dummy_words,
4786 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
4787 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
4788 max_register_virtual_size, register_size. Set up
4789 prologue_cache.saved_regs here, rather than ...
4790 (_initialize_arm_tdep): ... here.
4791 * config/arm/tm-arm.h (struct type, struct value): Delete forward
4792 declarations.
4793 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4794 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4795 (arm_print_float_info, arm_register_type, convert_to_extended)
4796 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4797 (arm_extract_return_value, arm_register_name): Delete declarations.
4798 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
4799 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
4800 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
4801 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
4802 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4803 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
4804 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
4805 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
4806 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
4807 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
4808 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
4809 (arm_get_next_pc): No-longer static -- these are needed by the RDI
4810 interface.
4811 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
4812 * remote-rdi.c remote-rdp.c: Likewise.
4813 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
4814 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
4815 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
4816 definition.
4817
4818 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
4819 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
4820 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
4821 from non-ARM_ prefixed definitions.
4822 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
4823 all uses of above.
4824 * remote-rdi.c remote-rdp.c: Likewise.
4825 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
4826
4827 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4828
4829 * arm-tdep.c (arm_frameless_function_invocation)
4830 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4831 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4832 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4833 (arm_pop_frame, arm_get_next_pc): Make static.
4834 (arm_gdbarch_init): Register above in gdbarch structure.
4835 (arm_read_fp): Renamed from arm_target_read_fp.
4836 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
4837 * config/arm/tm-arm.h (arm_frameless_function_invocation)
4838 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4839 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4840 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4841 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
4842 (arm_pc_is_thumb_dummy): Delete declarations.
4843 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
4844 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
4845 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
4846 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
4847
4848 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
4849
4850 * symtab.c (compare_search_syms): New function.
4851 (sort_search_symbols): New function.
4852 (search_symbols): Sort symbols after searching rather than
4853 before.
4854
4855 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4856
4857 * NEWS: Linux -> GNU/Linux.
4858
4859 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4860
4861 * gdbarch.sh: For for level one methods, disallow a definition
4862 when partially multi-arched. Add comments explaining rationale.
4863 * gdbarch.h: Re-generate.
4864
4865 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4866
4867 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
4868 multi-arch partial.
4869
4870 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4871
4872 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
4873 field. Use diff -u.
4874 * gdbarch.c: Re-generate.
4875
4876 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4877
4878 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
4879 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
4880 partial.
4881
4882 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4883
4884 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
4885 multi-arch partial.
4886 (PUSH_ARGUMENTS): Switch to using predefault.
4887 * gdbarch.c: Regenerate.
4888
4889 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4890
4891 * valops.c (PUSH_ARGUMENTS): Delete definition.
4892 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
4893 partial. Default to default_push_arguments.
4894 * gdbarch.h, gdbarch.c: Regenerate.
4895
4896 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4897
4898 * defs.h (throw_exception): Rename return_to_top_level. Update
4899 comments.
4900 * utils.c (error_stream, internal_verror, quit): Ditto.
4901 * top.c (throw_exception, catcher): Ditto.
4902 * sparclet-rom.c (sparclet_load): Ditto.
4903 * remote.c (interrupt_query, minitelnet): Ditto.
4904 * remote-sds.c (interrupt_query): Ditto.
4905 * remote-mips.c (mips_error, mips_kill): Ditto.
4906 * ocd.c (interrupt_query): Ditto.
4907 * monitor.c (monitor_interrupt_query): Ditto.
4908 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
4909 * target.h: Update comment.
4910
4911 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
4912
4913 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4914
4915 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
4916 default_double_format.
4917 * gdbarch.h, gdbarch.c: Re-generate.
4918 * findvar.c (floatformat_unknown): Delete variable definition.
4919 * doublest.h (floatformat_unknown): Delete variable declaration.
4920
4921 2002-02-09 Jim Blandy <jimb@redhat.com>
4922
4923 * stabsread.c (read_type): Add code to parse Sun's syntax for
4924 prototyped function types.
4925
4926 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4927
4928 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
4929 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
4930
4931 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4932
4933 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
4934 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
4935 now _initialize_xcoffsolib gets called again and overrides the
4936 commands from solib.c in a native configuration.
4937
4938 2002-02-09 Mark Kettenis <kettenis@gnu.org>
4939
4940 * doublest.c (store_typed_floating): Don't try to return a value.
4941 Fixes PR gdb/290.
4942
4943 2002-02-08 Jim Blandy <jimb@redhat.com>
4944
4945 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
4946 is prototyped and has no arguments, print its argument list as
4947 `(void)'.
4948
4949 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4950
4951 * MAINTAINERS (write-after-approval): Add myself.
4952 (paper-trail): I've escaped!
4953
4954 2002-02-08 Christopher Faylor <cgf@redhat.com>
4955
4956 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
4957 changes.
4958 (_initialize_check_for_gdb_ini): Ditto.
4959
4960 2002-02-08 Martin M. Hunt <hunt@redhat.com>
4961
4962 * win32-nat.c (cygwin_pid_to_str): Fix typo.
4963 xaprintf -> xasprintf.
4964
4965 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
4966
4967 * win32-nat.c: Remove use of printf and sprintf functions.
4968
4969 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
4970
4971 * arm-tdep.c (arm_frame_chain_valid): Make static.
4972 (arm_push_arguments): Likewise.
4973 (arm_gdbarch_init): New function.
4974 (_initialize_arm_tdep): Call it.
4975 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
4976 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
4977 (FRAME_CHAIN_VALID): Delete.
4978 (arm_frame_chain_valid): Delete declaration.
4979 (PUSH_ARGUMENTS): Delete.
4980 (arm_push_arguments): Delete declaration.
4981 (CALL_DUMMY_P): Delete.
4982
4983 2002-02-08 Andrew Cagney <ac131313@redhat.com>
4984 Corinna Vinschen <vinschen@redhat.com>
4985
4986 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
4987 on builtin float types.
4988
4989 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
4990
4991 * utils.c: Include <curses.h> before "bfd.h".
4992 * tui/tui-hooks.c: Likewise.
4993 * tui/tui.c: Likewise.
4994 * tui/tuiCommand.c: Likewise.
4995 * tui/tuiData.c: Likewise.
4996 * tui/tuiDataWin.c: Likewise.
4997 * tui/tuiDisassem.c: Likewise.
4998 * tui/tuiGeneralWin.c: Likewise.
4999 * tui/tuiIO.c: Likewise.
5000 * tui/tuiLayout.c: Likewise.
5001 * tui/tuiRegs.c: Likewise.
5002 * tui/tuiSource.c: Likewise.
5003 * tui/tuiSourceWin.c: Likewise.
5004 * tui/tuiStack.c: Likewise.
5005 * tui/tuiWin.c: Likewise.
5006
5007 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
5008
5009 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
5010 to include space for pseudoregs as well. Update loops accordingly.
5011 (sh_fp_frame_init_saved_regs): Ditto.
5012 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
5013
5014 2002-02-07 Andrew Cagney <ac131313@redhat.com>
5015
5016 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
5017 Add Richard Earnshaw to Arm maintainers.
5018
5019 2002-02-07 Andrew Cagney <ac131313@redhat.com>
5020
5021 * defs.h (warning_begin): Delete declaration.
5022
5023 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
5024 Delete macro.
5025
5026 2002-02-07 Michael Snyder <msnyder@redhat.com>
5027
5028 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5029 Logic bug, remove misplaced else.
5030
5031 2002-02-07 Klee Dienes <klee@apple.com>
5032
5033 * fork-inferior.c (fork_inferior): Add '!' to the list of
5034 characters that need to be quoted when building a string for the
5035 shell. Quote '!' specifically with a backslash, since CSH chokes
5036 when trying to evaluate "str!str".
5037
5038 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
5039
5040 * rdi-share/host.h: Only provide a typedef for bool if it is not
5041 defined.
5042
5043 2002-02-04 Michael Snyder <msnyder@redhat.com>
5044
5045 * breakpoint.h (enum bptype): Add new overlay event bp type.
5046 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
5047
5048 * breakpoint.c (create_internal_breakpoint): New function.
5049 (internal_breakpoint_number): Moved into create_internal_breakpoint.
5050 (create_longjmp_breakpoint): Use create_internal_breakpoint.
5051 (create_thread_event_breakpoint): Ditto.
5052 (create_solib_event_breakpoint): Ditto.
5053 (create_overlay_event_breakpoint): New function.
5054 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
5055 (update_breakpoints_after_exec): Delete and re-initialize
5056 overlay event breakpoints after an exec. Add FIXME comment
5057 about longjmp breakpoint.
5058 (print_it_typical): Ignore overlay event breakpoints.
5059 (print_one_breakpoint): Ditto.
5060 (mention): Ditto.
5061 (bpstat_what): Do not stop for overlay event breakpoints.
5062 (delete_breakpoint): Don't delete overlay event breakpoints.
5063 (breakpoint_re_set_one): Delete the overlay event breakpoint.
5064 (breakpoint_re_set): Re-create overlay event breakpoint.
5065
5066 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
5067 (overlay_manual_command): Disable overlay breakpoints.
5068 (overlay_off_command): Disable overlay breakpoints.
5069
5070 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5071
5072 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
5073 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
5074 to here from config/tm-arm.h.
5075 (coff_sym_is_thumb): Make static.
5076 (arm_elf_make_msymbol_special): New function.
5077 (arm_coff_make_msymbol_special): New function.
5078 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
5079 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
5080 (coff_sym_is_thumb): Delete declaration.
5081 (arm_elf_make_msymbol_special): Declare.
5082 (arm_coff_make_msymbol_special): Declare.
5083 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
5084 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
5085
5086 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5087
5088 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
5089
5090 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5091
5092 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
5093 * gdbarch.c gdbarch.h: Regenerate.
5094 * arch-utils.c (default_print_float_info): New function.
5095 * arch-utils.h (default_print_float_info): Prototype it.
5096 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
5097 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
5098 (PRINT_FLOAT_INFO): Document it.
5099
5100 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
5101 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
5102 (PRINT_FLOAT_INFO): Define.
5103
5104 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5105
5106 * win32-nat.c (_initialize_check_for_gdb_ini):
5107 Add typecast to sprintf argument to suppress a warning.
5108
5109 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
5110
5111 * win32-nat.c (last_sig): Changed type of variable to target_signal,
5112 to allow easier handling of pass state.
5113 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
5114 that gives exception name and address.
5115 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
5116 and set last_sig value to ourstatus->value.sig. Some missing
5117 exceptions added.
5118 (child_continue): Correctly report continue_status.
5119 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
5120 TARGET_SIGNAL_0 (new default value).
5121 (child_resume): consider sig argument passed to decide if
5122 the exception should be passed to debuggee or not.
5123
5124 2002-02-05 Michael Snyder <msnyder@redhat.com>
5125
5126 * regcache.c (fetch_register): Call target_fetch_register
5127 only if we don't call FETCH_PSEUDO_REGISTER.
5128 (store_register): Call target_store_register only if we
5129 don't call STORE_PSEUDO_REGISTER.
5130
5131 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
5132
5133 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
5134 ELF_MAKE_MSYMBOL_SPECIAL.
5135 * gdbarch.c, gdbarch.h: Regenerate.
5136 * arch-utils.c (default_make_msymbol_special): New function.
5137 * arch-utils.h (default_make_msymbol_special): Export.
5138 * elfread.c (elf_symtab_read): Compile use of
5139 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
5140 multiarched.
5141 * coffread.c (coff_symtab_read): Ditto, for
5142 COFF_MAKE_MSYMBOL_SPECIAL.
5143
5144 2002-02-05 Jim Blandy <jimb@redhat.com>
5145
5146 * solib-svr4.c (svr4_truncate_ptr): New function.
5147 (svr4_relocate_section_addresses): Do the address arithmetic with
5148 the appropriate truncation for target addresses, even when
5149 CORE_ADDR is larger than a target address.
5150
5151 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5152
5153 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
5154 to (int *).
5155
5156 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5157
5158 * gdbserver/linux-low.c (kill_inferior): Remove commented out
5159 code.
5160
5161 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5162
5163 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
5164
5165 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5166
5167 * gdbserver/linux-low.c: Remove unused include files.
5168
5169 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5170
5171 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
5172 (read_inferior_memory): Use it.
5173 (write_inferior_memory): Likewise.
5174
5175 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5176
5177 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
5178 grubbing through sys_errlist.
5179
5180 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5181
5182 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
5183
5184 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5185 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
5186
5187 2002-02-04 Andrew Cagney <ac131313@redhat.com>
5188
5189 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
5190 (do_sfunc, set_cmd_sfunc): New functions.
5191
5192 * command.h (struct cmd_list_element): Add field func.
5193 * cli/cli-decode.h (struct cmd_list_element): Ditto.
5194 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
5195 * cli/cli-decode.h: Ditto.
5196
5197 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
5198 (help_all, help_cmd_list): Ditto.
5199 (find_cmd, complete_on_cmdlist): Ditto.
5200 * top.c (execute_command): Ditto.
5201
5202 * cli/cli-setshow.c (do_setshow_command): Call func instead of
5203 function.sfunc.
5204
5205 * infcmd.c (notice_args_read): Fix function signature.
5206
5207 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
5208 * cli/cli-decode.c (add_set_cmd): Ditto.
5209 * utils.c (initialize_utils): Ditto.
5210 * maint.c (_initialize_maint_cmds): Ditto.
5211 * infrun.c (_initialize_infrun): Ditto.
5212 * demangle.c (_initialize_demangler): Ditto.
5213 * remote.c (add_packet_config_cmd): Ditto.
5214 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5215 * cris-tdep.c (_initialize_cris_tdep): Ditto.
5216 * proc-api.c (_initialize_proc_api): Ditto.
5217 * kod.c (_initialize_kod): Ditto.
5218 * valprint.c (_initialize_valprint): Ditto.
5219 * top.c (init_main): Ditto.
5220 * infcmd.c (_initialize_infcmd): Ditto.
5221 * corefile.c (_initialize_core): Ditto.
5222 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5223 * arch-utils.c (initialize_current_architecture): Ditto.
5224 (_initialize_gdbarch_utils): Ditto.
5225 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
5226
5227 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
5228 * wince.c (_initialize_inftarg): Ditto.
5229 * symfile.c (_initialize_symfile): Ditto.
5230 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5231 * language.c (_initialize_language): Ditto.
5232 * arc-tdep.c (_initialize_arc_tdep): Ditto.
5233
5234 2002-02-04 Michael Snyder <msnyder@redhat.com>
5235
5236 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
5237
5238 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5239
5240 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
5241 Add rules for building the register data files.
5242
5243 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5244
5245 * regformats/regdat.sh: Add braces to the definition of
5246 expedite_regs_${arch}.
5247
5248 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5249
5250 * regformats/regdef.h (struct reg): Add comment describing the
5251 requirements for offset and size fields.
5252
5253 2002-02-04 Andreas Schwab <schwab@suse.de>
5254
5255 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
5256 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
5257
5258 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
5259
5260 * gdbarch.sh (copyright): Update years in generated header.
5261 (SMASH_TEXT_ADDRESS): Add rule.
5262 * gdbarch.h, gdbarch.c: Re-generate.
5263 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
5264 * dbxread.c: Likewise.
5265 * dwarfread.c: Likewise.
5266 * elfread.c: Likewise.
5267 * somread.c: Likewise.
5268
5269 * arm-tdep.c (arm_smash_text_address): New function.
5270 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
5271
5272 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5273
5274 Add support for hardware watchpoints on win32 native.
5275 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
5276 CONTEXT_DEBUG_REGISTERS.
5277 (dr variable): New variable. Static array containing a local copy
5278 of debug registers.
5279 (debug_registers_changed): New variable. Reflects when debug registers
5280 are changed and need to be written to inferior.
5281 (debug_registers_used): New variable. Reflects when any debug register
5282 was set, used when new threads are created.
5283 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
5284 i386-nat code.
5285 (thread_rec): Set dr array if id is the thread of current_event .
5286 (child_continue, child_resume): Change the debug registers for all
5287 threads if debug_registers_changed.
5288 (child_add_thread): Change the debug registers if debug_registers_used.
5289 * config/i386/cygwin.mh: Add use of i386-nat.o file.
5290 Link nm.h to new nm-cygwin.h file.
5291 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
5292 of hardware registers.
5293
5294 2002-02-03 Andrew Cagney <ac131313@redhat.com>
5295
5296 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
5297 Restore behavour broken by 2002-01-20 Andrew Cagney
5298 <ac131313@redhat.com> IEEE_FLOAT removal.
5299
5300 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5301
5302 * c-valprint.c (c_val_print): Pass a proper valaddr to
5303 cp_print_class_method.
5304 * valops.c (search_struct_method): If there is only one method
5305 and args is NULL, return that method.
5306
5307 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5308
5309 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
5310 accessing tag_name directly.
5311
5312 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5313
5314 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
5315 of accessing tag_name directly.
5316
5317 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5318
5319 PR gdb/280
5320 * gdbtypes.c (replace_type): New function.
5321 * gdbtypes.h (replace_type): Add prototype.
5322 * stabsread.c (read_type): Use replace_type.
5323
5324 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
5325
5326 * Makefile.in (memattr.o): Add missing dependencies rule.
5327
5328 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5329
5330 * breakpoint.c (break_at_finish_command): Really export.
5331 (break_at_finish_at_depth_command): Ditto.
5332 (tbreak_at_finish_command): Ditto.
5333 * hppa-tdep.c: Include completer.h.
5334 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
5335 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
5336
5337 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5338
5339 * utils.c (do_write): New function.
5340 (error_stream): Rewrite combining the code from error_begin and
5341 verror.
5342 (verror): Rewrite using error_stream.
5343 (error_begin): Delete function.
5344
5345 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5346
5347 * utils.c (error_begin): Make static.
5348 * defs.h (error_begin): Delete declaration.
5349
5350 * linespec.c (cplusplus_error): Replace cplusplus_hint.
5351 (decode_line_1): Use cplusplus_error instead of error_begin,
5352 cplusplus_hint and return_to_top_level.
5353 * coffread.c (coff_symfile_read): Use error instead of error_begin
5354 and return_to_top_level.
5355 * infrun.c (default_skip_permanent_breakpoint): Ditto.
5356
5357 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5358
5359 * language.h (type_error, range_error): Make string parameter
5360 constant.
5361 * language.c (warning_pre_print): Delete extern declaration.
5362 * dwarfread.c (warning_pre_print): Ditto.
5363 * language.c (type_error, range_error): Rewrite to use verror and
5364 vwarning instead of warning_begin.
5365
5366 2002-02-01 Michael Snyder <msnyder@redhat.com>
5367
5368 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
5369 (set_ignore_count): Move misplaced comment back where it belongs.
5370
5371 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5372
5373 * command.h (NO_FUNCTION): Delete macro.
5374 * cli/cli-decode.h (NO_FUNCTION): Ditto.
5375 * top.c (execute_command): Replace NO_FUNCTION with NULL.
5376 * tracepoint.c (_initialize_tracepoint): Ditto.
5377 * cli/cli-decode.c (add_set_cmd): Ditto.
5378 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5379
5380 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
5381
5382 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
5383 Update ``this'' pointer when calling virtual functions.
5384
5385 2002-02-01 Michael Snyder <msnyder@redhat.com>
5386
5387 * breakpoint.c (create_temp_exception_breakpoint): Delete.
5388 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
5389
5390 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
5391
5392 * regformats/reg-arm.dat: New file.
5393 * regformats/reg-i386.dat: New file.
5394 * regformats/reg-ia64.dat: New file.
5395 * regformats/reg-m68k.dat: New file.
5396 * regformats/reg-mips.dat: New file.
5397 * regformats/reg-ppc.dat: New file.
5398 * regformats/reg-sh.dat: New file.
5399 * regformats/regdef.h: New file.
5400 * regformats/regdat.sh: New file.
5401
5402 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
5403
5404 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
5405 (arm_frame_args_address, arm_frame_locals_address): New functions.
5406 (arm_frame_num_args): New function.
5407 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
5408 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
5409 (FRMA_NUM_ARGS): Call arm_frame_num_args.
5410
5411 2002-01-31 Michael Snyder <msnyder@redhat.com>
5412
5413 * breakpoint.c (break_at_finish_command): Export.
5414 (break_at_finish_at_depth_command): Export.
5415 (tbreak_at_finish_command): Export.
5416 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
5417 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
5418 "tbreak" commands, which are HPPA specific.
5419
5420 * printcmd.c (disassemble_command): Remove an ancient
5421 artifact of an old merge.
5422
5423 * symfile.h (enum overlay_debugging_state):
5424 Define enum constant values for overlay mode.
5425 * symfile.c (overlay_debugging): Use enums instead of literals.
5426 (overlay_is_mapped, overlay_auto_command,
5427 overlay_manual_command): Ditto.
5428
5429 * breakpoint.c (insert_breakpoints, remove_breakpoint,
5430 breakpoint_here_p, breakpoint_inserted_here_p,
5431 breakpoint_thread_match, bpstat_stop_status,
5432 describe_other_breakpoints, check_duplicates, clear_command):
5433 Coding standard fixes.
5434
5435 * target.c (target_xfer_memory): Add spaces, coding standard.
5436 (do_xfer_memory): Add missing line to trust-readonly
5437 code: check bfd SEC_READONLY flag for section.
5438
5439 2002-01-31 Andrew Cagney <ac131313@redhat.com>
5440
5441 * PROBLEMS: Fix typo, 5.1->5.1.1.
5442
5443 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
5444
5445 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
5446 data symbols, since we search based on textlow and texthigh.
5447 (find_pc_sect_symtab): Likewise.
5448
5449 2002-01-30 Andrew Cagney <ac131313@redhat.com>
5450
5451 * defs.h (vwarning): Declare.
5452 * utils.c (vwarning): New function.
5453 (warning): Call vwarning.
5454 (warning_begin): Delete function.
5455
5456 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
5457 the warning message.
5458 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
5459 warning_begin.
5460
5461 2002-01-30 Michael Snyder <msnyder@redhat.com>
5462
5463 * NEWS: Mention "set trust-readonly-sections" command.
5464 Mention generate-core-file command.
5465
5466 2002-01-15 Michael Snyder <msnyder@redhat.com>
5467
5468 * target.c: New command, "set trust-readonly-sections on".
5469 (do_xfer_memory): Honor the suggestion to trust readonly sections
5470 by reading them from the object file instead of from the target.
5471 (initialize_targets): Register command "set trust-readonly-sections".
5472
5473 2002-01-29 Andrew Cagney <ac131313@redhat.com>
5474
5475 * parse.c (target_map_name_to_register): Simplify, search regs and
5476 pseudo-regs using a single loop.
5477
5478 2002-01-30 Andrew Cagney <ac131313@redhat.com>
5479
5480 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
5481
5482 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
5483
5484 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
5485 * config/i386/i386v42mp.mh: Add i387-nat.o .
5486 * i386v4-nat.c: Include i387-nat.h.
5487 (supply_fpregset): Use i387_supply_fsave.
5488 (fill_fpregset): Use i387_fill_fsave.
5489
5490 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
5491
5492 * arm-tdep.c (arm_call_dummy_words): Define.
5493 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
5494 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
5495 (CALL_DUMMY_WORDS): Define.
5496 (arm_call_dummy_words): Declare.
5497 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
5498 (arm_linux_call_dummy_words): Declare.
5499
5500 2002-01-30 Andreas Schwab <schwab@suse.de>
5501
5502 * m68klinux-nat.c: Fix last change to use regcache_collect
5503 instead of referencing registers[] directly.
5504
5505 2002-01-29 Andrew Cagney <ac131313@redhat.com>
5506
5507 * parse.c (target_map_name_to_register): Delete code wrapped in
5508 #ifdef REGISTER_NAME_ALIAS_HOOK.
5509
5510 2002-01-28 Michael Snyder <msnyder@redhat.com>
5511
5512 * regcache.c (legacy_read_register_gen): Need to be able to
5513 read pseudo-register as well as real register.
5514 (legacy_write_register_gen): Ditto.
5515
5516 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5517
5518 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5519 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
5520 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
5521 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
5522 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
5523 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
5524 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
5525 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
5526 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
5527 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5528 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
5529 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
5530 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
5531 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
5532 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
5533 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
5534 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
5535 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
5536 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
5537 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
5538
5539 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5540
5541 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
5542 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
5543 (initialize_current_architecture): Update target_byte_order using
5544 information from BFD.
5545 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
5546 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
5547
5548 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5549
5550 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
5551 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
5552
5553 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
5554 #ifdef INVALID_FLOAT.
5555 * infcmd.c (do_registers_info): Ditto.
5556 * values.c (unpack_double): Ditto. Add comment.
5557
5558 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
5559 already commented out.
5560
5561 2002-01-26 Andreas Schwab <schwab@suse.de>
5562
5563 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5564 * m68klinux-nat.c: Update ptrace interface for fetching/storing
5565 registers and add support for PTRACE_GETREGS.
5566
5567 2002-01-24 Andrew Cagney <ac131313@redhat.com>
5568
5569 GDB 5.1.1 released from 5.1 branch.
5570 * NEWS: Add 5.1.1 news.
5571 * README: Sync with 5.1 branch.
5572
5573 2002-01-23 Fred Fish <fnf@redhat.com>
5574
5575 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
5576 stabstring on initial malloc. Reallocing will copy it for us,
5577 if necessary.
5578
5579 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
5580
5581 * Makefile.in (hpread_h): Delete.
5582 (HFILES_NO_SRCDIR): Remove hpread.h.
5583 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
5584 (hpread.o): Update dependencies.
5585 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
5586
5587 * hp-psymtab-read.c: Remove file.
5588 * hp-symtab-read.c: Remove file.
5589 * hpread.h: Remove file.
5590
5591 * hpread.c: Merge all contents of hp-psymtab-read.c,
5592 hp-symtab-read.c and hpread.h into this file, as it was prior to
5593 January 1999.
5594
5595 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
5596 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
5597 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
5598 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
5599
5600 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
5601
5602 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
5603 fill_gregset): Call gdbarch_tdep() just once, assign result to
5604 variable and use that, instead of calling the function several
5605 times.
5606
5607 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5608
5609 * configure.host: Accept sparcv9 as alias for sparc64.
5610 * configure.tgt: Likewise.
5611
5612 2002-01-22 Kevin Buettner <kevinb@redhat.com>
5613
5614 * solib-aix5.c (build_so_list_from_mapfile)
5615 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
5616 arguments is not reversed.
5617 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
5618 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
5619
5620 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
5621
5622 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
5623 modified version of obsolete sh_fetch_pseudo_register.
5624 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
5625 (sh4_register_read): New function.
5626 (sh_pseudo_register_write): New function. Renamed and modified
5627 version of obsolete sh_store_pseudo_register.
5628 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
5629 (sh4_register_write): New function.
5630 (sh_gdbarch_init): Remove setting of gdbarch function
5631 fetch_pseudo_register and store_pseudo_register. Remove setting of
5632 register_convert_to_raw, register_convert_to_virtual,
5633 register_convertible.
5634 (sh_sh4_register_convertible): Delete. No longer needed. All is
5635 taken care by architecture specific functions
5636 register_read/register_write.
5637 (sh_sh4_register_convert_to_virtual): Make static.
5638 (sh_sh4_register_convert_to_raw): Ditto.
5639
5640 2002-01-22 Andrew Cagney <ac131313@redhat.com>
5641
5642 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
5643 (floatformat_is_nan, floatformat_mantissa): Ditto.
5644
5645 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
5646 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
5647 builtin_type_ieee_double_little,
5648 builtin_type_ieee_double_littlebyte_bigword,
5649 builtin_type_m68881_ext, builtin_type_i960_ext,
5650 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
5651 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
5652 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
5653 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
5654
5655 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
5656
5657 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
5658 parameter. Set frameless flag if it exists and depended of
5659 whether the scanned function is frameless or not.
5660 (xstormy16_skip_prologue): If function is frameless, return
5661 result of xstormy16_scan_prologue().
5662 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
5663 call.
5664
5665 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
5666
5667 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
5668 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
5669 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
5670 sh_sh4_register_byte, sh_sh4_register_raw_size,
5671 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
5672 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
5673 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
5674 sh_store_pseudo_register, sh_do_pseudo_register): Call
5675 gdbarch_tdep() just once, assign result to variable and use that,
5676 instead of calling the function several times.
5677
5678 2002-01-20 Mark Kettenis <kettenis@gnu.org>
5679
5680 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
5681 macros instead of LAST_FPU_CTRL_REGNUM.
5682 (store_register): Likewise.
5683
5684 2002-01-21 Jim Blandy <jimb@redhat.com>
5685
5686 * infcmd.c (run_command): Check that the `exec' target layer's BFD
5687 is up-to-date before running the program, not just when a program
5688 exits.
5689
5690 2002-01-21 Fred Fish <fnf@redhat.com>
5691
5692 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
5693 when we have found all instructions we are looking for.
5694
5695 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
5696
5697 * arm-tdep.c (arm_register_name): New function.
5698 (arm_registers_names): Make static.
5699 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
5700 (arm_register_name): Declare.
5701 (REGISTER_NAME): Use it.
5702
5703 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
5704 Kevin Buettner <kevinb@redhat.com>
5705
5706 Convert arm targets to new FRAME interface.
5707 * arm-tdep.c (struct frame_extra_info): Remove fsr.
5708 (arm_frame_find_save_regs): Delete.
5709 (arm_frame_init_saved_regs): New.
5710 (arm_init_extra_frame_info): Alloacte saved_regs as required.
5711 Allocate extra_info as required. Convert all uses of fsr.regs
5712 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
5713 to use extra_info.
5714 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
5715 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
5716 (check_prologue_cache, save_prologue_cache): Likewise.
5717 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
5718 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
5719 (FRAME_FIND_SAVED_REGS): Delete.
5720 (arm_frame_find_saved_regs): Delete prototype.
5721 (arm_frame_init_saved_regs): New prototype.
5722 (FRAME_INIT_SAVED_REGS): Define.
5723
5724 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5725
5726 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
5727
5728 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5729
5730 From Jeff Law <law@redhat.com>:
5731 * infttrace.c: Include <sys/pstat.h>.
5732 (child_pid_to_exec_file): Revamp. Use pstat call to get the
5733 exec file if the ttrace equivalent fails.
5734
5735 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5736
5737 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
5738 (closeLogFile): Ditto.
5739
5740 2002-01-20 Michael Chastain <mec@shout.net>
5741
5742 * top.c (print_gdb_version): Bump copyright year to 2002.
5743
5744 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5745
5746 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
5747 Zannoni and Eli Zaretskii.
5748
5749 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5750
5751 * buildsym.c: Update copyright years.
5752 * c-typeprint.c: Likewise.
5753 * dwarf2read.c: Likewise.
5754 * f-typeprint.c: Likewise.
5755 * gdbtypes.c: Likewise.
5756 * gdbtypes.h: Likewise.
5757 * hp-symtab-read.c: Likewise.
5758 * hpread.c: Likewise.
5759 * mdebugread.c: Likewise.
5760 * p-typeprint.c: Likewise.
5761
5762 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5763
5764 * remote-sim.c (gdbsim_open): Simplify code testing the macro
5765 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
5766 byte-order selectable.
5767 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
5768 * arch-utils.c: Ditto.
5769 (set_endian): Ditto.
5770 (set_endian_from_file): Ditto.
5771 * gdbserver/low-sim.c (create_inferior): Ditto.
5772 * gdbarch.sh: Ditto.
5773 * gdbarch.h: Re-generate.
5774 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5775 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
5776 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
5777 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5778 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5779 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5780 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
5781 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
5782 macro definition.
5783 * config/mips/tm-wince.h: Remove #undef of macro
5784 TARGET_BYTE_ORDER_SELECTABLE.
5785 * config/sh/tm-wince.h: Ditto.
5786
5787 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5788
5789 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
5790 member function fields. Add accessor macro
5791 TYPE_FN_FIELD_ARTIFICIAL.
5792 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
5793 * c-typeprint.c (c_type_print_base): Skip artificial member
5794 functions.
5795
5796 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5797
5798 * f-typeprint.c: Delete unused function f_type_print_args.
5799 * p-typeprint.c: Delete unused function pascal_type_print_args.
5800
5801 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5802
5803 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
5804 comment. Add ``artificial'' to ``union field_location''.
5805
5806 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
5807
5808 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
5809 * mdebugread.c (parse_symbol): Likewise.
5810 * stabsread.c (define_symbol): Likewise.
5811 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
5812 initializing TYPE_FIELD_BITPOS to n (obsolete).
5813 (hpread_doc_function_type): Likewise.
5814 * hpread.c (hpread_function_type): Likewise.
5815
5816 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5817
5818 * configure.in (host_makefile_frag): Only require a host makefile
5819 fragment when a native build.
5820 * configure: Re-generate.
5821
5822 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5823
5824 * doublest.h (floatformat_from_type): Declare.
5825 * doublest.c (floatformat_from_type): New function.
5826 (convert_typed_floating): Use.
5827
5828 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
5829 call to function floatformat_from_type.
5830
5831 * gdbarch.sh (IEEE_FLOAT): Delete.
5832 * gdbarch.h, gdbarch.c: Re-generate.
5833 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
5834 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
5835 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
5836 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
5837 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
5838 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
5839 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
5840 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
5841 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
5842 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
5843 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
5844 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
5845
5846 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
5847 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5848 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5849 * sh-tdep.c (sh_gdbarch_init): Ditto.
5850 * mips-tdep.c (mips_gdbarch_init): Ditto.
5851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5852 * cris-tdep.c (cris_gdbarch_init): Ditto.
5853
5854 2002-01-20 Jiri Smid <smid@suse.cz>
5855
5856 * configure.host, configure.tgt: Support x86-64.
5857 * NEWS: Note new target x86-64.
5858
5859 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
5860 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
5861 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
5862 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
5863 x86-64-linux-nat.o): Fix dependencies.
5864
5865 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5866
5867 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
5868 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
5869 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
5870 * config/sparc/xm-sun4os4.h: Delete file.
5871 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
5872
5873 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5874
5875 * config/sparc/sparclynx.mh (XM_FILE): Delete.
5876 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
5877 * config/m68k/m68klynx.mh (XM_FILE): Delete.
5878 * config/i386/i386lynx.mh (XM_FILE): Delete.
5879 * config/rs6000/xm-rs6000ly.h: Delete file.
5880 * config/sparc/xm-sparclynx.h: Delete file.
5881 * config/m68k/xm-m68klynx.h: Delete file.
5882 * config/i386/xm-i386lynx.h: Delete file.
5883 * config/xm-lynx.h: Delete file.
5884 * config/djgpp/fnchange.lst: Update.
5885
5886 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5887
5888 * alpha-tdep.c (alpha_register_byte): New function.
5889 (alpha_register_raw_size): Ditto.
5890 (alpha_register_virtual_size): Ditto.
5891 (alpha_skip_prologue_internal): Renamed from
5892 alpha_skip_prologue.
5893 (alpha_skip_prologue): New version that calls
5894 alpha_skip_prologue_internal.
5895 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
5896 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
5897 second argument from alpha_skip_prologue.
5898 (REGISTER_BYTE): Use alpha_register_byte.
5899 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
5900 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
5901 (FRAMELESS_FUNCTION_INVOCATION): Use
5902 generic_frameless_function_invocation_not.
5903 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
5904 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
5905
5906 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5907
5908 * config/mips/xm-news-mips.h: Delete file.
5909 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
5910
5911 * config/m88k/xm-m88k.h: Delete file.
5912 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
5913 * config/m88k/xm-delta88v4.h: Ditto.
5914 * config/m88k/xm-delta88.h: Ditto.
5915
5916 * config/alpha/xm-fbsd.h: Delete file.
5917 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
5918
5919 * config/sparc/xm-sparc.h: Delete file.
5920 * Makefile.in (xm-sun4os4.h): Delete dependency.
5921 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
5922 * config/sparc/xm-sun4os4.h: Ditto.
5923 * config/sparc/xm-linux.h: Ditto.
5924
5925 * config/i386/xm-windows.h: Delete file.
5926
5927 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5928
5929 * utils.c: Include <sys/param.h> for MAXPATHLEN.
5930 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
5931
5932 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5933
5934 * alpha-tdep.c (alpha_call_dummy_words): New.
5935 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
5936 (CALL_DUMMY_P): Define.
5937 (CALL_DUMMY_WORDS): Define.
5938 (SIZEOF_CALL_DUMMY_WORDS): Define.
5939
5940 2002-01-19 Per Bothner <per@bothner.com>
5941
5942 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
5943 isn't NULL, which can happen with some gcj-3.x-produced code.
5944
5945 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5946
5947 * alpha-tdep.c (alpha_register_virtual_type): New function.
5948 (alpha_init_frame_pc_first): Ditto.
5949 (alpha_fix_call_dummy): Ditto.
5950 (alpha_store_struct_return): Ditto.
5951 (alpha_extract_struct_value_address): Ditto.
5952 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
5953 alpha_register_virtual_type.
5954 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
5955 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
5956 alpha_extract_struct_value_address.
5957 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
5958 (INIT_FRAME_PC): Use init_frame_pc_noop.
5959 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
5960
5961 2002-01-19 Mark Kettenis <kettenis@gnu.org>
5962
5963 * i386gnu-nat.c: Include "i386-tdep.h".
5964 (fetch_fpregs): Simplify code dealing with uninitialized floating
5965 point states such that it doesn't require FP7_REGNUM.
5966
5967 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5968
5969 * alpha-tdep.c (frame_extra_info): New.
5970 (alpha_find_saved_regs): Make static. Use
5971 frame->extra_info.
5972 (alpha_frame_init_saved_regs): New function.
5973 (alpha_frame_saved_pc): Use frame->extra_info.
5974 (temp_saved_regs): Don't declare as struct frame_saved_regs.
5975 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
5976 (init_extra_frame_info): Rename to...
5977 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
5978 (alpha_print_extra_frame_info): New function.
5979 (alpha_frame_locals_address): Ditto.
5980 (alpha_frame_args_address): Ditto.
5981 (alpha_pop_frame): Use frame->extra_info.
5982 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
5983 alpha_frame_args_address.
5984 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
5985 (alpha_find_saved_regs): Remove prototype.
5986 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
5987 (EXTRA_FRAME_INFO): Remove.
5988 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
5989 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
5990
5991 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5992
5993 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
5994 (alpha_cannot_fetch_register): Ditto.
5995 (alpha_cannot_store_register): Ditto.
5996 (alpha_register_convertible): Ditto.
5997 (alpha_use_struct_convention): Ditto.
5998 * config/alpha/tm-alpha.h: Update copyright years.
5999 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
6000 (INNER_THAN): Use core_addr_lessthan.
6001 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
6002 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
6003 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
6004 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
6005 (FRAME_CHAIN): Remove unnecessary cast.
6006
6007 2002-01-18 Andrew Cagney <ac131313@redhat.com>
6008
6009 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
6010 obsolete.
6011
6012 2002-01-18 Andrew Cagney <ac131313@redhat.com>
6013
6014 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
6015 * monitor.c, remote-array.c, remote-bug.c: Ditto.
6016 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
6017 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
6018 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
6019 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
6020 * x86-64-linux-nat.c: Ditto.
6021
6022 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6023
6024 * alpha-tdep.c (alpha_register_name): New function.
6025 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
6026 (REGISTER_NAME): Define.
6027
6028 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6029
6030 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
6031
6032 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6033
6034 * alpha-tdep.c: Update copyright years.
6035 (alpha_next_pc): New function.
6036 (alpha_software_single_step): Ditto.
6037 * config/alpha/tm-alpha.h: Add prototype for
6038 alpha_software_single_step.
6039
6040 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6041
6042 * alphabsd-nat.c: Update copyright years.
6043 (fill_gregset): Use regcache_collect.
6044 (fill_fpregset): Likewise.
6045 (fetch_inferior_registers): Only fetch integer registers
6046 if requested to do so.
6047 (store_inferior_registers): Only store integer registers
6048 if requested to do so.
6049
6050 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6051
6052 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
6053 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
6054 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
6055 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
6056 * config/alpha/fbsd.mh (XDEPFILES): Delete.
6057 * config/arm/linux.mh (XDEPFILES): Delete.
6058 * config/arm/nbsd.mh (XDEPFILES): Delete.
6059 * config/i386/i386dgux.mh (XDEPFILES): Delete.
6060 * config/i386/i386sol2.mh (XDEPFILES): Delete.
6061 * config/i386/i386m3.mh (XDEPFILES): Delete.
6062 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
6063 * config/i386/i386gnu.mh (XDEPFILES): Delete.
6064 * config/i386/fbsd.mh (XDEPFILES): Delete.
6065 * config/i386/i386bsd.mh (XDEPFILES): Delete.
6066 * config/i386/i386sco5.mh (XDEPFILES): Delete.
6067 * config/i386/i386v4.mh (XDEPFILES): Delete.
6068 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
6069 * config/i386/i386sco4.mh (XDEPFILES): Delete.
6070 * config/i386/i386aix.mh (XDEPFILES): Delete.
6071 * config/i386/go32.mh (XDEPFILES): Delete.
6072 * config/i386/cygwin.mh (XDEPFILES): Delete.
6073 * config/i386/i386lynx.mh (XDEPFILES): Delete.
6074 * config/i386/i386mach.mh (XDEPFILES): Delete.
6075 * config/i386/i386v32.mh (XDEPFILES): Delete.
6076 * config/i386/linux.mh (XDEPFILES): Delete.
6077 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
6078 * config/i386/ncr3000.mh (XDEPFILES): Delete.
6079 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
6080 * config/i386/i386sco.mh (XDEPFILES): Delete.
6081 * config/i386/i386v.mh (XDEPFILES): Delete.
6082 * config/i386/nbsd.mh (XDEPFILES): Delete.
6083 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
6084 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
6085 * config/i386/symmetry.mh (XDEPFILES): Delete.
6086 * config/i386/obsd.mh (XDEPFILES): Delete.
6087 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
6088 * config/ia64/linux.mh (XDEPFILES): Delete.
6089 * config/ia64/aix.mh (XDEPFILES): Delete.
6090 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
6091 * config/m68k/dpx2.mh (XDEPFILES): Delete.
6092 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
6093 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
6094 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
6095 * config/m68k/linux.mh (XDEPFILES): Delete.
6096 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
6097 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
6098 * config/m68k/nbsd.mh (XDEPFILES): Delete.
6099 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
6100 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
6101 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
6102 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
6103 * config/m88k/delta88.mh (XDEPFILES): Delete.
6104 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
6105 * config/m88k/m88k.mh (XDEPFILES): Delete.
6106 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
6107 * config/mips/linux.mh (XDEPFILES): Delete.
6108 * config/mips/irix6.mh (XDEPFILES): Delete.
6109 * config/mips/irix5.mh (XDEPFILES): Delete.
6110 * config/mips/irix4.mh (XDEPFILES): Delete.
6111 * config/mips/irix3.mh (XDEPFILES): Delete.
6112 * config/mips/decstation.mh (XDEPFILES): Delete.
6113 * config/mips/mipsm3.mh (XDEPFILES): Delete.
6114 (NATDEPFILES): Move core-aout.o to here.
6115 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
6116 * config/pa/hpux1020.mh (XDEPFILES): Delete.
6117 * config/pa/hppabsd.mh (XDEPFILES): Delete.
6118 * config/pa/hppahpux.mh (XDEPFILES): Delete.
6119 * config/pa/hpux11w.mh (XDEPFILES): Delete.
6120 * config/pa/hppaosf.mh (XDEPFILES): Delete.
6121 * config/pa/hpux11.mh (XDEPFILES): Delete.
6122 * config/powerpc/aix.mh (XDEPFILES): Delete.
6123 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
6124 * config/powerpc/linux.mh (XDEPFILES): Delete.
6125 * config/romp/rtbsd.mh: Rename XDEPFILES.
6126 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
6127 * config/rs6000/aix4.mh (XDEPFILES): Delete.
6128 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
6129 * config/s390/s390.mh (XDEPFILES): Delete.
6130 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
6131 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
6132 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
6133 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
6134 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
6135 * config/sparc/nbsd.mh (XDEPFILES): Delete.
6136 * config/sparc/linux.mh (XDEPFILES): Delete.
6137 * config/vax/vaxult.mh (XDEPFILES): Delete.
6138 * config/vax/vaxult2.mh (XDEPFILES): Delete.
6139 * Makefile.in (DEPFILES): Remove XDEPFILES.
6140
6141 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6142
6143 * utils.c (internal_verror): Fix comments, default is yes not no.
6144 Update queries to match. Default to quit and dump core.
6145
6146 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6147
6148 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
6149 copyright.
6150 * defs.h, event-top.c, gdbcmd.h: Ditto.
6151 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
6152 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
6153 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
6154 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
6155 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
6156 * mi/mi-main.c:Ditto.
6157
6158 * stack.c, symfile.c: Update copyright.
6159
6160 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
6161
6162 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
6163 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
6164 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
6165 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
6166
6167 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
6168
6169 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
6170 * gdbserver/low-lynx.c (myattach): Likewise.
6171 * gdbserver/low-nbsd.c (myattach): Likewise.
6172 * gdbserver/low-sim.c (myattach): Likewise.
6173 * gdbserver/low-sparc.c (myattach): Likewise.
6174 * gdbserver/low-sun3.c (myattach): Likewise.
6175
6176 * gdbserver/low-linux.c (myattach): New function.
6177
6178 * gdbserver/server.c (attach_inferior): New function.
6179 (main): Handle "--attach".
6180
6181 2002-01-16 Andrew Cagney <ac131313@redhat.com>
6182
6183 * MAINTAINERS (language support): Daniel Jacobwitz is C++
6184 maintainer.
6185
6186 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
6187
6188 * c-typeprint.c (is_type_conversion_operator): Add additional
6189 check for non-conversion operators.
6190
6191 2002-01-15 Michael Snyder <msnyder@redhat.com>
6192
6193 * linux-proc.c: Add "info proc" command, a la procfs.c.
6194 (read_mapping): New function, abstract and re-use code.
6195 (linux_find_memory_regions): Use new func read_mapping.
6196 (linux_info_proc_cmd): New function, implement "info proc".
6197 (_initialize_linux_proc): Add new command "info proc".
6198
6199 2002-01-15 Michael Snyder <msnyder@redhat.com>
6200
6201 * symfile.c (generic_load): Use bfd_map_over_sections method
6202 instead of manipulating bfd structure members directly.
6203 (add_section_size_callback): New function, bfd sections callback
6204 used by generic_load.
6205 (load_sections_callback): New function, bfd sections callback
6206 used by generic_load.
6207
6208 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
6209
6210 [Based on work by Jim Blandy]
6211 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
6212 (builtin_type_vec128): Export.
6213 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
6214 types.
6215 (builtin_type_vec128): New builtin type for 128 bit vector
6216 registers.
6217 (build_gdbtypes): Initialize builtin_type_v16qi and
6218 builtin_type_v8hi. Create the vec128 register builtin type
6219 structure.
6220 (build_builtin_type_vec128): New function.
6221 (_initialize_gdbtypes): Register builtin_type_v16qi and
6222 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
6223 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
6224 AltiVec register to new builtin type.
6225
6226 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
6227
6228 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
6229 to make_cv_type.
6230
6231 2002-01-14 Andrew Cagney <ac131313@redhat.com>
6232
6233 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
6234 CLEAN_UP_REGISTER_VALUE.
6235 * regcache.c (supply_register): Update only call.
6236
6237 2002-01-14 Andrew Cagney <ac131313@redhat.com>
6238
6239 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6240 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6241 a29k-*-vxworks* targets as obsolete.
6242
6243 2002-01-14 Michael Snyder <msnyder@redhat.com>
6244
6245 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
6246 until we can resolve portability issues.
6247 * gregset.h: Remove references to fpxregs.
6248 * gcore.c (gcore_command): Initialize note_sec to NULL.
6249
6250 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6251
6252 * signals.c (target_signal_to_name): Rewrite. Only use
6253 signals[].name when in bounds and non-NULL.
6254
6255 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6256
6257 From Petr Ledvina <ledvinap@kae.zcu.cz>:
6258 * signals.c (target_signal_to_name): Verify that SIG is within the
6259 bounds of the signals array.
6260
6261 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6262
6263 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
6264
6265 2002-01-13 Keith Seitz <keiths@redhat.com>
6266
6267 * stack.c (print_frame_info_base): Print the frame's pc
6268 only if when print_frame_info_listing_hook is not defined.
6269
6270 2002-01-13 Keith Seitz <keiths@redhat.com>
6271
6272 * varobj.c (varobj_set_value): Make sure that there were no
6273 errors evaluating the object before attempting to set its
6274 value.
6275 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
6276 so this offset adjustment is no longer necessary.
6277 (create_child): Don't set the error flag if the child is
6278 a CPLUS_FAKE_CHILD.
6279 (value_of_child): If value_fetch_lazy fails, return NULL
6280 so that callers will be notified that an error occurred.
6281 (c_value_of_variable): Delay check of variable's validity
6282 until later. We actually want all structs and unions to have
6283 the value "{...}".
6284 Do not return "???" for variables which could not be evaluated.
6285 This error condition must be returned to the caller so that it
6286 can get the error condition from gdb.
6287 (cplus_name_of_child): Adjust index for vptr before figuring
6288 out the name of the child.
6289 (cplus_value_of_child): If a child's (real) parent is not valid,
6290 don't even bother trying to give a value for it. Just return
6291 an error. Change all instances in this function.
6292 (cplus_type_of_child): If our parent is one of the "fake"
6293 parents, we need to get at the type of the real parent, and
6294 derive the child's true type using this information.
6295
6296 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6297
6298 From 2002-01-09 John Marshall <johnm@falch.net>:
6299 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
6300 sources.redhat.com, and tweak some related URLs which had
6301 suffered from linkrot.
6302
6303 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6304
6305 From Jeff law:
6306 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
6307 structures passed in registers.
6308
6309 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
6310
6311 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
6312 white space which prevented compilation. Reported by DSK
6313 <dsk@student.unsw.edu.au>.
6314
6315 2002-01-11 Michael Snyder <msnyder@redhat.com>
6316
6317 * symfile.c (build_section_addr_info_from_section_tab):
6318 Use bfd access method instead of manipulating bfd directly.
6319 (syms_from_objfile): Ditto.
6320 (simple_overlay_update_1): Ditto.
6321 (simple_overlay_update): Ditto.
6322 (generic_load): Ditto.
6323 (overlay_unmapped_address): FIXME comment, bfd access methods.
6324 (sections_overlap): FIXME comment, bfd access methods.
6325 (pc_in_mapped_range): FIXME comment, bfd access methods.
6326 (pc_in_unmapped_range): FIXME comment, bfd access methods.
6327 (section_is_mapped): FIXME comment, bfd access methods.
6328 (section_is_overlay): FIXME comment, bfd access methods.
6329
6330 * symfile.c (generic_load): Whitespace and long line cleanups.
6331 Remove duplicate variable, change several local variables to
6332 more appropriate data types.
6333 (print_transfer_performance): Use %lu instead of %ld for ulongs.
6334
6335 2002-01-12 Andrew Cagney <ac131313@redhat.com>
6336
6337 From Peter Schauer:
6338 * language.c (longest_local_hex_string_custom): Use phex_nz to
6339 convert NUM to a hex string.
6340
6341 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
6342
6343 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
6344 the function.
6345 Update Copyright year.
6346
6347 2002-01-12 Andrew Cagney <ac131313@redhat.com>
6348
6349 * language.c (longest_raw_hex_string): Delete unused function.
6350
6351 2002-01-11 Petr Sorfa <petrs@caldera.com>
6352
6353 * MAINTAINERS (write-after-approval): Add myself.
6354 * dwarf2read.c (read_tag_string_type): Handling of
6355 DW_AT_byte_size.
6356 (read_tag_string_type): FORTRAN fix to prevent propagation of
6357 first string size.
6358 (set_cu_language): Handling of DW_LANG_Fortran95
6359
6360 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6361
6362 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
6363 GETPID(inferior_ptid).
6364 (store_inferior_registers): Likewise.
6365
6366 2002-01-10 Jason Merrill <jason@redhat.com>
6367
6368 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
6369 Fix DW_OP_minus.
6370
6371 2002-01-10 Andrew Cagney <ac131313@redhat.com>
6372
6373 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
6374 and bfd/elf32-sh-nbsd.c.
6375
6376 2002-01-10 Michael Snyder <msnyder@redhat.com>
6377
6378 * NEWS: Mention --pid and corefile/proc-id behavior change.
6379
6380 * Makefile.in: Add rules for gcore.o and linux-proc.o.
6381 * gcore.c: Include cli/cli-decode.h instead of command.h.
6382
6383 * main.c (captured_main): Add new command line option "--pid".
6384 If the second command line argument (following the symbol-file)
6385 begins with a digit, try to attach to it before trying to open
6386 it as a corefile.
6387 (print_gdb_help): Document the "--pid" argument.
6388
6389 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
6390
6391 * completer.c (command_completer): New function.
6392
6393 * completer.h <command_completer>: Add prototype.
6394
6395 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
6396 completer for the "help" command.
6397
6398 2002-01-09 Jason Merrill <jason@redhat.com>
6399
6400 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
6401
6402 2002-01-09 Michael Snyder <msnyder@redhat.com>
6403
6404 * i386-linux-nat.c (fill_fpxregset): Make global.
6405 (store_fpxregset): Ditto.
6406
6407 * gregset.h (gdb_fpxregset_t): Define.
6408 (supply_fpxregset): Prototype.
6409 (fill_fpxregset): Prototype.
6410
6411 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
6412
6413 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
6414
6415 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
6416 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
6417 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
6418
6419 2002-01-09 Andrew Cagney <ac131313@redhat.com>
6420
6421 * MAINTAINERS: Update target maintainer rules so that any
6422 Maintainer can approve a tested patch for a maintenance-only
6423 target.
6424
6425 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
6426
6427 * MAINTAINERS (write-after-approval): Add myself.
6428
6429 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
6430 IN_SIGTRAMP.
6431
6432 2002-01-08 Michael Snyder <msnyder@redhat.com>
6433
6434 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
6435 real name of the executable, rather than the /proc name.
6436
6437 2002-01-03 Michael Snyder <msnyder@redhat.com>
6438
6439 Implement a "generate-core-file" command in gdb, save target state.
6440 * gcore.c: New file. Implement new command 'generate-core-file'.
6441 Save a corefile image of the current state of the inferior.
6442 * linux-proc.c: Add linux-specific code for saving corefiles.
6443 * target.h (struct target_ops): Add new target vectors for saving
6444 corefiles; to_find_memory_regions and to_make_corefile_notes.
6445 (target_find_memory_regions): New macro.
6446 (target_make_corefile_notes): New macro.
6447 * target.c (update_current_target): Inherit new target methods.
6448 (dummy_find_memory_regions): New place-holder method.
6449 (dummy_make_corefile_notes): New place-holder method.
6450 (init_dummy_target): Initialize new dummy target vectors.
6451 * exec.c (exec_set_find_memory_regions): New function.
6452 Allow the exec_ops vector for memory regions to be taken over.
6453 (exec_make_note_section): New function, target vector method.
6454 * defs.h (exec_set_find_memory_regions): Export prototype.
6455 * procfs.c (proc_find_memory_regions): New function, corefile method.
6456 (procfs_make_note_section): New function, corefile method.
6457 (init_procfs_ops): Set new target vector pointers.
6458 (find_memory_regions_callback): New function.
6459 (procfs_do_thread_registers): New function.
6460 (procfs_corefile_thread_callback): New function.
6461 * sol-thread.c (sol_find_memory_regions): New function.
6462 (sol_make_note_section): New function.
6463 (init_sol_thread_ops): Initialize new target vectors.
6464 * inftarg.c (inftarg_set_find_memory_regions): New function.
6465 Allow to_find_memory_regions vector to be taken over.
6466 (inftarg_set_make_corefile_notes): New function.
6467 Allow to_make_corefile_notes vector to be taken over.
6468 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
6469 interface layer if not target_has_execution (may be a corefile).
6470 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
6471 * config/sparc/sun4sol2.mh: Ditto.
6472 * config/alpha/alpha-linux.mh: Ditto.
6473 * config/arm/linux.mh: Ditto.
6474 * config/i386/x86-64linux.mh: Ditto.
6475 * config/ia64/linux.mh: Ditto.
6476 * config/m68k/linux.mh: Ditto.
6477 * config/mips/linux.mh: Ditto.
6478 * config/powerpc/linux.mh: Ditto.
6479 * config/sparc/linux.mh: Ditto.
6480
6481 2002-01-07 Michael Snyder <msnyder@redhat.com>
6482
6483 * arm-linux-nat.c: Remove references to regcache.c internal data
6484 (registers[] and register_valid[]).
6485
6486 2002-01-07 Michael Snyder <msnyder@redhat.com>
6487
6488 * linux-proc.c: New file. Implement child_pid_to_exec_file,
6489 so that attaching to a pid will automatically read the process's
6490 symbol file and shlibs.
6491 * Makefile.in: Add rule for linux-proc.o.
6492 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
6493 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
6494 * config/arm/linux.mh: Ditto.
6495 * config/i386/linux.mh: Ditto.
6496 * config/i386/x86-64linux.mh: Ditto.
6497 * config/ia64/linux.mh: Ditto.
6498 * config/m68k/linux.mh: Ditto.
6499 * config/mips/linux.mh: Ditto.
6500 * config/powerpc/linux.mh: Ditto.
6501 * config/sparc/linux.mh: Ditto.
6502
6503 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
6504
6505 * win32-nat.c: Add i386-tdep.h dependency.
6506
6507 2002-01-07 Michael Snyder <msnyder@redhat.com>
6508
6509 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
6510 instead of bfd_get_arch_size. Don't bail out just because
6511 there's no exec_bfd.
6512
6513 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
6514 * p-valprint.c (pascal_object_print_value): Ditto.
6515 * somread.c (som_symtab_read): Ditto.
6516 * symfile.c (simple_free_overlay_region_table): Ditto.
6517 * valops.c (value_assign): Ditto.
6518
6519 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
6520 use tilde_expand and strerror for opening save-tracepoints file.
6521
6522 * thread-db.c (thread_db_new_objfile): Indendation fix.
6523
6524 * infptrace.c (GDB_MAX_ALLOCA): New define.
6525 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
6526 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
6527 can be overridden with whatever value is appropriate to the host).
6528 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
6529 alloca to allocate potentially large buffer.
6530 * rs6000-nat.c (child_xfer_memory): Ditto.
6531 * symm-nat.c (child_xfer_memory): Ditto.
6532 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
6533
6534 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
6535
6536 From Nick Clifton <nickc@redhat.com>
6537 * d10v-tdep.c: Set STACK_START to 0x200bffe.
6538
6539 2002-01-07 Michael Snyder <msnyder@redhat.com>
6540
6541 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
6542 Don't use exec_bfd if it's NULL.
6543
6544 2002-01-06 Mark Kettenis <kettenis@gnu.org>
6545
6546 * valops.c (value_arg_coerce): Fix formatting.
6547
6548 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6549
6550 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
6551 * gnu-nat.c: Ditto.
6552
6553 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6554
6555 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
6556 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
6557 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
6558 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
6559 z8k-coff have not been multi-arched. Update z8k-coff build
6560 status.
6561
6562 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6563
6564 * MAINTAINERS: Mark a29k target as obsolete.
6565 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
6566 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
6567 comments.
6568 * NEWS: Note that a29k targets are obsolete.
6569 * a29k-tdep.c: Mark as obsolete.
6570 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6571 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6572 a29k-*-vxworks* targets as obsolete.
6573 * remote-adapt.c: Obsolete.
6574 * remote-eb.c: Obsolete.
6575 * remote-mm.c: Obsolete.
6576 * remote-udi.c: Obsolete.
6577 * config/a29k/a29k-udi.mt: Obsolete.
6578 * config/a29k/a29k.mt: Obsolete.
6579 * config/a29k/tm-a29k.h: Obsolete.
6580 * config/a29k/tm-vx29k.h: Obsolete.
6581 * config/a29k/vx29k.mt: Obsolete.
6582
6583 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6584
6585 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
6586 with BFD_ENDIAN_BIG.
6587
6588 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6589
6590 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
6591 * configure, config.in: Re-generate.
6592 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
6593 * defs.h: Do not include <endian.h>.
6594
6595 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
6596
6597 * acconfig.h (HAVE_PT_GETXMMREGS): New.
6598 * config.in: Regenerate.
6599 * configure.in: Update copyright years.
6600 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
6601 * configure: Regenerate.
6602 * i386bsd-nat.c: Update copyright years.
6603 (fill_gregset): Use regcache_collect.
6604 (fetch_inferior_registers): Only fetch integer registers
6605 if requested to do so. Add support for XMM registers
6606 using PT_GETXMMREGS.
6607 (store_inferior_registers): Only store integer registers
6608 if requested to do so. Add support for XMM registers
6609 using PT_SETXMMREGS.
6610 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
6611 (store_inferior_registers): Remove.
6612 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
6613 (fetch_elfcore_registers): New function.
6614 (i386nbsd_elfcore_fns): New.
6615 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
6616 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
6617 i386bsd-nat.o.
6618 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6619 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
6620 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
6621 * config/i386/tm-nbsd.h: Update copyright years.
6622 (HAVE_SSE_REGS): Define.
6623 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
6624 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
6625 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
6626 (SIGCONTEXT_PC_OFFSET): Remove.
6627 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
6628
6629 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6630
6631 * configure.tgt: Remove powerpc-*-macos* target.
6632 * config/m68k/xm-mpw.h: Delete file.
6633 * config/xm-mpw.h: Delete file.
6634 * ser-mac.c: Delete file.
6635 * mpw-make.sed: Delete file.
6636 * mpw-config.in: Delete file.
6637 * mac-xdep.c: Delete file.
6638 * mac-gdb.r: Delete file.
6639 * mac-defs.h: Delete file.
6640 * mac-nat.c: Delete file.
6641 * config/powerpc/macos.mh: Delete file.
6642 * config/powerpc/macos.mt: Delete file.
6643 * config/powerpc/nm-macos.h: Delete file.
6644 * config/powerpc/tm-macos.h: Delete file.
6645 * source.c (openp, open_source_file): Remove obsolete code.
6646 * top.c (gdb_readline): Ditto.
6647 * utils.c (query): Ditto.
6648 * event-top.c (display_gdb_prompt): Ditto.
6649 * Makefile.in (ser-mac.o): Delete obsolete target.
6650 * NEWS: Update.
6651
6652 2002-01-04 Andrew Cagney <ac131313@redhat.com>
6653
6654 * defs.h (BIG_ENDIAN): Delete macro definition.
6655 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
6656 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
6657 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
6658 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
6659 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
6660 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
6661 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
6662 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
6663 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
6664 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
6665 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
6666 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
6667 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
6668 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
6669 * gdbarch.c: Re-generate.
6670
6671 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6672
6673 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
6674 for core files.
6675
6676 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6677
6678 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
6679
6680 2002-01-04 Andrew Cagney <ac131313@redhat.com>
6681
6682 * value.h (value_ptr): Delete typedef.
6683
6684 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6685
6686 * i386nbsd-nat.c: Update copyright years.
6687 Include i386-tdep.h.
6688
6689 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
6690
6691 * stabsread.c: Update copyright years.
6692
6693 From Debashis Mahata <debashis.mahata@wipro.com>:
6694 (read_struct_fields): Deal with Sun C compiler erroneous stab
6695 output for structs and unions.
6696 Fix PR gdb/269.
6697
6698 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6699
6700 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
6701 prototype.
6702
6703 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6704
6705 * cp-abi.c: Fix whitespace.
6706 (baseclass_offset): New wrapper function.
6707 * cp-abi.h (baseclass_offset): Add prototype.
6708 (struct cp_abi_ops): Add baseclass_offset pointer.
6709
6710 * valops.c (vb_match): Move to...
6711 * gnu-v2-abi.c (vb_match): here.
6712 * valops.c (baseclass_offset): Move to...
6713 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
6714
6715 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
6716
6717 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
6718 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
6719 * hpacc-abi.c (init_hpacc_ops): Likewise.
6720
6721 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6722
6723 * valops.c (find_overload_match): Accept obj as a
6724 reference parameter. Update it before returning.
6725 * value.h (find_overload_match): Update prototype.
6726 * eval.c (evaluate_subexp_standard): Pass object to
6727 find_overload_match by reference.
6728
6729 2002-01-03 Andrew Cagney <ac131313@redhat.com>
6730
6731 * valarith.c: Replace value_ptr with struct value pointer. Remove
6732 register attribute from value declarations.
6733 * valops.c: Ditto.
6734 * value.h: Ditto.
6735 * scm-lang.c (scm_lookup_name): Ditto.
6736
6737 2002-01-03 Michael Snyder <msnyder@redhat.com>
6738
6739 Abstract the functionality of iterating over mapped memory
6740 regions into a general purpose iterator function.
6741 * procfs.c (iterate_over_mappings): New function, general purpose
6742 iterator for memory sections.
6743 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
6744 (solib_mappings_callback): New function, callback for above.
6745 (info_proc_mappings): Reimpliment using iterate_over_mappings.
6746 (info_mappings_callback): New function, callback for above.
6747
6748 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
6749
6750 2002-01-01 Mark Kettenis <kettenis@gnu.org>
6751
6752 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
6753 * i386-tdep.c: Include "elf-bfd.h".
6754 (process_note_abi_tag_sections): New function.
6755 (i386_gdbarch_init): Add code to recognize various OS/ABI
6756 combinations.
6757
6758 * maint.c (_initialize_maint_cmds): Add missing \ in
6759 string-literal.
6760
6761 For older changes see ChangeLog-2001
6762 \f
6763 Local Variables:
6764 mode: change-log
6765 left-margin: 8
6766 fill-column: 74
6767 version-control: never
6768 End:
This page took 0.168103 seconds and 4 git commands to generate.