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