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