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