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