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