1 2002-05-29 Andrew Cagney <ac131313@redhat.com>
3 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4 * arch-utils.c: Include "sim-regno.h".
5 * gdbarch.sh: Don't include "sim-regno.h".
6 * gdbarch.h, gdbarch.c: Regenerate.
7 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9 * arch-utils.h (legacy_register_sim_regno): To here.
10 * remote-sim.c (legacy_register_sim_regno): Move function from
12 * arch-utils.c (legacy_register_sim_regno): To here.
14 2002-05-28 Andrew Cagney <ac131313@redhat.com>
16 * sim-regno.h: New file.
17 * Makefile.in (sim_regno_h): Define.
18 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
19 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
20 (legacy_register_sim_regno): New function.
21 (one2one_register_sim_regno): New function.
22 (gdbsim_fetch_register): Rewrite.
23 (gdbsim_store_register): Only store a register when
24 REGISTER_SIM_REGNO is valid.
25 * d10v-tdep.c: Include "sim-regno.h".
26 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
27 (d10v_ts3_register_sim_regno): Ditto.
28 * gdbarch.sh: Include "sim-regno.h".
29 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
30 * gdbarch.h, gdbarch.c: Regenerate.
31 * arch-utils.h (default_register_sim_regno): Delete declaration.
32 * arch-utils.c (default_register_sim_regno): Delete function.
34 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
36 * ppcnbsd-nat.c: Rewrite.
37 * ppcnbsd-tdep.c: New file.
38 * ppcnbsd-tdep.h: New file.
39 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
40 solib.o, and solib-svr4.o.
41 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
42 nbsd-tdep.o, and corelow.o.
44 2002-05-28 Andrew Cagney <ac131313@redhat.com>
46 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
47 `tr' and `sed'. Mention that `broken' targets are not expected to
50 2002-05-27 Michal Ludvig <mludvig@suse.cz>
52 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
53 Let PC point right after the prologue before looking up symbols.
55 2002-05-27 Martin M. Hunt <hunt@redhat.com>
57 * i386-tdep.c (i386_register_virtual_type): Return
58 builtin_type_vec128i for SSE registers.
60 * gdbtypes.h (builtin_type_vec128i): Declare.
62 * gdbtypes.c (build_builtin_type_vec128i): New function.
63 (builtin_type_v2_double, builtin_type_v4_int64): New types.
64 (builtin_type_vec128i): New type for SSE2 128-bit registers.
65 (build_gdbtypes): Initialize new builtin vector types.
66 (_initialize_gdbtypes): Register new vector types with gdbarch.
68 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
70 * MAINTAINERS: ns32k is not longer an obsolete candidate,
71 since it has been multi-arch'd.
72 * NEWS: Note that ns32k-*-* is now partial multi-arch.
73 Move Alpha and VAX multi-arch news entries to same section
74 as other multi-arch news.
76 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
78 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
79 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
80 static. Rename some register numbers to put them in ns32k-tdep
82 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
83 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
85 (_initialize_ns32k_tdep): Use gdbarch_register.
86 * ns32k-tdep.h: New file.
87 * ns32knbsd-tdep.c: New file.
88 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
89 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
90 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
91 REGISTER_BYTES, REGISTER_BYTE): Remove.
92 * config/ns32k/tm-ns32k.h: New file.
93 * config/ns32k/tm-umax.h: Remove.
95 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
97 * ns32k-tdep.c (ns32k_saved_pc_after_call,
98 ns32k_store_struct_return, ns32k_extract_return_value,
99 ns32k_store_return_value, ns32k_extract_struct_value_address): New
101 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
102 ns32k_saved_pc_after_call.
103 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
104 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
105 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
106 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
107 ns32k_extract_struct_value_address.
109 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
111 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
112 ns32k_fix_call_dummy): New.
113 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
114 ns32k_call_dummy_words.
115 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
116 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
117 CALL_DUMMY_NARGS): Remove.
118 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
120 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
122 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
123 ns32k_frame_saved_pc, ns32k_frame_args_address,
124 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
125 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
126 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
127 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
128 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
129 (BREAKPOINT): Remove..
130 (FRAME_CHAIN): Define as ns32k_frame_chain.
131 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
132 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
133 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
134 (FRAME_FIND_SAVED_REGS): Remove.
135 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
136 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
137 (POP_FRAME): Define as ns32k_pop_frame.
139 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
141 * ns32k-tdep.c (ns32k_register_byte_32082,
142 ns32k_register_byte_32382, ns32k_register_raw_size,
143 ns32k_register_virtual_size, ns32k_register_virtual_type): New
145 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
146 ns32k_register_byte_32382.
147 * config/ns32k/tm-umax.h: Update copyright years.
148 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
149 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
150 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
151 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
152 (ns32k_get_enter_addr): Fix prototype.
154 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
156 * ns32k-tdep.c: Update copyright years.
157 (ns32k_register_name_32082): New function.
158 (ns32k_register_name_32382): Ditto.
159 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
160 (REGISTER_NAME): Define as ns32k_register_name_32382.
161 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
162 (REGISTER_NAME): Define as ns32k_register_name_32082.
164 2002-05-24 Jim Blandy <jimb@redhat.com>
166 * dwarf2read.c (free_line_header): Use xfree, not free.
168 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
170 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
171 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
173 2002-05-23 Andrew Cagney <ac131313@redhat.com>
175 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
177 2002-05-23 Andrew Cagney <ac131313@redhat.com>
179 From Ross Alexander at NEC Europe:
180 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
182 2002-05-23 Michael Snyder <msnyder@redhat.com>
184 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
185 for input, rather than parse_and_eval_address.
187 2002-05-23 Andrew Cagney <ac131313@redhat.com>
189 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
190 * Makefile.in (sim_d10v_h): Update definition.
192 2002-05-24 Andrew Cagney <cagney@redhat.com>
194 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
195 change `2002-05-22 Michael Snyder' below.
196 (d10v_push_arguments): Ditto.
197 (d10v_extract_return_value): Ditto.
199 2002-05-23 Jim Blandy <jimb@redhat.com>
201 * macrotab.c (check_for_redefinition): Don't complain if the new
202 definition is the same as the previous one. Take more arguments
203 to allow the comparison.
204 (macro_define_object, macro_define_function): Pass more arguments
205 to check_for_redefinition.
207 2002-05-22 Michael Snyder <msnyder@redhat.com>
209 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
210 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
211 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
212 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
213 Don't bail if return_pc is PC_IN_CALL_DUMMY.
214 Add a temp variable to save a call (and a memory read).
215 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
216 if possible (so that PC_IN_CALL_DUMMY will work).
218 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
220 * MAINTAINERS: Remove status `OBSOLETE' from v850.
222 2002-05-22 Michal Ludvig <mludvig@suse.cz>
224 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
226 (dwarf2_build_frame_info): Corrected handling of eh_frame.
227 (dwarf2_build_frame_info): Add offset to fde->initial_location
228 so that frames of shared libraries are mapped correctly.
229 (execute_stack_op): Change type of 'result' from ULONGEST to
232 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
234 * config/alpha/tm-nbsd.h: Include solib.h.
236 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
238 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
239 assumptions about the host's byte order.
241 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
243 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
245 * alphanbsd-tdep.c: Include solib-svr4.h.
246 * shnbsd-tdep.c: Ditto.
248 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
250 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
251 nbsd-tdep.h to dependency list.
252 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
253 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
254 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
255 nbsdaout.mh and nbsdelf.mh consistently.
256 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
257 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
258 nbsdaout.mt and nbsdelf.mh consistently.
259 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
260 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
261 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
262 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
263 a.out shared library stuff from here...
264 * config/nm-nbsdaout.h: ...to here.
265 * config/tm-nbsd.h: Remove.
266 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
267 * config/arm/nbsd.mh: Remove.
268 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
270 * config/arm/nbsdaout.mh: New file.
271 * config/arm/nbsdelf.mh: New file.
272 * config/arm/nm-nbsdaout.h: New file.
273 * config/i386/nbsd.mh: Remove.
274 * config/i386/nbsd.mt: Remove.
275 * config/i386/nbsdaout.mh: New file.
276 * config/i386/nbsdaout.mt: New file.
277 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
278 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
279 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
280 i386_register_u_addr): Remove.
281 * config/i386/nm-nbsdaout.h: New file.
282 * config/i386/nm-nbsdelf.h: Remove.
283 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
284 (USE_STRUCT_CONVENTION): Remove.
285 * config/i386/tm-nbsdaout.h: New file.
286 * config/i386/tm-nbsdelf.h: Remove.
287 * config/m68k/nbsd.mh: Remove.
288 * config/m68k/nbsd.mt: Remove.
289 * config/m68k/nbsdaout.mh: New file.
290 * config/m68k/nbsdaout.mt: New file.
291 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
292 * config/m68k/nm-nbsdaout.h: New file.
293 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
294 (IN_SOLIB_CALL_TRAMPOLINE): Define.
295 * config/ns32k/nbsd.mh: Remove.
296 * config/ns32k/nbsd.mt: Remove.
297 * config/ns32k/nbsdaout.mh: New file.
298 * config/ns32k/nbsdaout.mt: New file.
299 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
300 * config/ns32k/nm-nbsdaout.h: New file.
301 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
302 (IN_SOLIB_CALL_TRAMPOLINE): Define.
303 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
304 (SVR4_SHARED_LIBS): Remove.
305 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
306 * config/sparc/nbsd.mh: Remove.
307 * config/sparc/nbsd.mt: Remove.
308 * config/sparc/nbsdaout.mh: New file.
309 * config/sparc/nbsdaout.mt: New file.
310 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
311 * config/sparc/nbsdelf.mt: New file.
312 * config/sparc/nm-nbsdaout.h: New file.
313 * config/sparc/nm-nbsdelf.h: Remove.
314 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
315 * config/sparc/tm-nbsdaout.h: New file.
317 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
319 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
321 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
323 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
325 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
327 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
329 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
331 * NEWS: Note new MIPS NetBSD native configuration.
332 * configure.host (mips*-*-netbsd*): New host.
333 * configure.tgt (mips*-*-netbsd*): New target.
334 * mipsnbsd-nat.c: New file.
335 * mipsnbsd-tdep.c: New file.
336 * mipsnbsd-tdep.h: New file.
337 * config/mips/nbsd.mh: New file.
338 * config/mips/nbsd.mt: New file.
339 * config/mips/nm-nbsd.h: New file.
340 * config/mips/tm-nbsd.h: New file.
342 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
344 * Makefile.in (SFILES): Add osabi.c.
345 (COMMON_OBS): Add osabi.o.
346 (osabi.o): New dependency list.
349 * doc/gdbint.texinfo: Document new generic OS ABI framework.
351 * Makefile.in (alpha_tdep_h): Define and use instead of
353 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
354 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
356 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
357 * alpha-tdep.h: Include osabi.h.
359 (gdbarch_tdep): Use generic OS ABI framework.
360 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
361 gdbarch_register_osabi.
362 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
363 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
364 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
366 * Makefile.in (sh_tdep_h): Add osabi.h.
367 * sh-tdep.h (sh_osabi): Remove.
368 (gdbarch_tdep): Use generic OS ABI framework.
369 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
370 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
371 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
372 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
374 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
375 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
376 gdbarch_register_osabi.
377 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
378 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
379 (get_elfosabi): Rename to...
380 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
381 ABI framework support routines.
382 (arm_gdbarch_init): Use generic OS ABI framework.
383 (arm_dump_tdep): Likewise.
384 (_initialize_arm_tdep): Likewise.
385 * arm-tdep.h: Include osabi.h.
387 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
389 (arm_gdbarch_register_os_abi): Remove prototype.
390 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
391 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
393 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
394 * mips-tdep.c: Include osabi.h.
395 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
398 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
400 * h8300-tdep.c: Fix formatting.
402 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
404 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
405 printing vector registers.
407 2002-05-19 Andrew Cagney <ac131313@redhat.com>
409 From Fernando Nasser:
410 * remote.c (remote_async_open_1): Re-throw the exception when the
412 (remote_cisco_open): Ditto.
413 (remote_open_1): Ditto.
415 2002-05-19 Andrew Cagney <ac131313@redhat.com>
417 * remote.c (remote_start_remote_dummy): Add uiout parameter.
418 (remote_start_remote): Add uiout parameter. Pass through to
419 remote_start_remote_dummy.
420 (remote_open_1): Use catch_exception instead of catch_errors.
421 (remote_async_open_1): Ditto.
422 (remote_cisco_open): Ditto.
424 2002-05-19 Andrew Cagney <ac131313@redhat.com>
426 * remote.c (remote_start_remote): Replace PTR with void pointer.
427 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
430 2002-05-18 Andrew Cagney <ac131313@redhat.com>
432 * gdb_indent.sh: Allow the script to be run in the sim directory.
434 2002-05-18 Mark Kettenis <kettenis@gnu.org>
436 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
437 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
439 * corelow.c (core_open): Only call set_gdbarch_from_file if
442 2002-05-17 Andrey Volkov <avolkov@transas.com>
444 * h8300-tdep.c: Add support of EXR register
445 * config/h8300/tm-h8300.h: Ditto.
447 2002-05-17 Andrey Volkov <avolkov@transas.com>
449 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
451 2002-05-17 Andrey Volkov <avolkov@transas.com>
453 * h8300-tdep.c: Change literal regnums to REGNO.
455 2002-05-17 Jim Blandy <jimb@redhat.com>
457 * NEWS: Note addition of macro support.
459 Expand preprocessor macros in C expressions.
460 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
461 (scan_macro_expansion, scanning_macro_expansion,
462 finished_macro_expansion): New function declarations.
463 (expression_macro_lookup_func, expression_macro_lookup_baton): New
464 variable declarations.
465 * parser-defs.h (expression_context_pc): New declaration.
466 * parse.c (expression_context_pc): New variable.
467 (parse_exp_1): Set expression_context_pc, as well as
468 expression_context_block.
469 * c-exp.y (yylex): If we're not already reading the result of a
470 macro expansion, try to macro-expand the next token. When we're
471 done scanning a macro expansion, switch back to the mainline text.
472 Commas and `if's in a macro's expansion don't terminate the input.
473 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
474 (macro_original_text, macro_expanded_text,
475 expression_macro_lookup_func, expression_macro_lookup_baton): New
477 (scan_macro_expansion, scanning_macro_expansion,
478 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
479 c_preprocess_and_parse): New functions.
480 (c_language_defn, cplus_language_defn, asm_language_defn): Call
481 c_preprocess_and_parse, instead of c_parse.
482 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
483 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
485 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
487 * sh-tdep.c (gdb_print_insn_sh64): Delete.
488 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
489 (sh_gdbarch_init): Always use gdb_print_insn_sh.
491 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
493 * NEWS: Add section for multi-arched targets. Add v850 to that section.
495 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
497 * Makefile.in (sh_tdep_h): Define and use.
498 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
499 register enum): Move to...
500 * * sh-tdep.h: ...here.
501 * sh-tdep.c: Include sh-tdep.h.
502 * sh3-rom.c: Likewise.
503 * shnbsd-tdep.c: Likewise.
505 2002-05-16 Michael Snyder <msnyder@redhat.com>
507 * arm-tdep.c: Spelling fix in comment.
509 2002-05-16 Jim Blandy <jimb@redhat.com>
511 Add commands for manually expanding macros and showing their
513 * macrocmd.c, macroscope.c, macroscope.h: New files.
514 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
515 (macroscope_h): New variable.
516 (HFILES_NO_SRCDIR): Add macroscope.h.
517 (COMMON_OBS): Add macrocmd.o, macroscope.o.
518 (macroscope.o, macrocmd.o): New rules.
520 Teach the Dwarf 2 reader to read macro information.
521 * dwarf2read.c: #include "macrotab.h".
522 (dwarf_macinfo_buffer): New variable.
523 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
525 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
526 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
527 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
528 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
529 dwarf2_macro_spaces_in_definition): New complaints.
530 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
531 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
532 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
533 the partial symbol table.
534 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
535 from what's recorded in the partial symbol table.
536 (read_file_scope): If the compilation unit has a
537 `DW_AT_macro_info' attribute, read its macro information.
538 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
540 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
543 * ser-tcp.c: Don't include <netinet/udp.h>.
545 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
547 * MAINTAINERS: Update my email address.
549 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
551 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
552 include file of the same name.
554 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
556 * configure.tgt: Mark v850 as multi-arched.
557 * config/v850/tm-v850.h: Remove file.
558 * config/v850/v850.mt: Eliminate TM_FILE.
560 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
562 * v850-tdep.c: Full multi-arch.
563 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
564 Define GDB_MULTI_ARCH to 2.
566 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
568 * p-exp.y (current_type): New static variable.
569 Carries the type of the expression at the position that is parsed.
570 (push_current_type, pop_current_type): Two new functions. Used
571 to store/restore current_type in expression on specific tokens.
572 (search_field): New static variable. Set to one after parsing a point
573 as at that point only a FIELDNAME token should be searched.
574 (FIELDNAME): New token. After a point only a token belonging to
575 current_type type definition is allowed.
576 (all over token rules): reset and change current_type according
578 (exp '[' rule): insert implicit array index field if
579 exp is a pascal string type.
581 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
583 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
584 frame info. Use frame_info's saved_regs instead of matching member
585 in extra_frame_info throughout.
586 (v850_frame_init_saved_regs): New function.
587 (v850_init_extra_frame_info): Move most functionality into
588 v850_frame_init_saved_regs().
589 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
590 (v850_frame_find_saved_regs): Remove declaration.
591 (FRAME_FIND_SAVED_REGS): Remove definition.
592 (v850_frame_init_saved_regs): Add declaration.
593 (FRAME_INIT_SAVED_REGS): Add definition.
595 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
597 * v850-tdep.c: Begin multi-arch'ing v850.
598 (v850_target_architecture_hook): Remove function.
599 (v850_gdbarch_init): New function. Add code previously in
600 v850_target_architecture_hook().
601 (_initialize_v850_tdep): Don't set target_architecture_hook.
602 Call register_gdbarch_init() instead.
604 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
606 * gdbtypes.h (struct cplus_struct_type): Remove args field.
607 * hpread.c (hpread_read_struct_type): Remove assignments to args.
608 (fixup_class_method_type): Likewise.
610 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
612 From Martin Pool <mbp@samba.org>:
613 * gdbserver/server.c (gdbserver_usage): New function.
616 2002-05-15 Jim Blandy <jimb@redhat.com>
618 Add macro structures to GDB's symbol tables. Nobody puts anything
620 * symtab.h (struct symtab): New member: `macro_table'.
621 * buildsym.h (pending_macros): New global variable.
622 * buildsym.c: #include "macrotab.h".
623 (buildsym_init): Initialize `pending_macros'.
624 (end_symtab): If we found macro information while reading a CU's
625 debugging info, do build a symtab structure for it. Make the
626 symtab point to the macro information, and clear the
627 `pending_macros' pointer which held it while we were reading the
629 (really_free_pendings): Free any pending macro table.
630 * objfiles.h (struct objfile): New member: `macro_cache'.
631 * objfiles.c (allocate_objfile): Set allocate and free functions
632 for the macro cache's objstack.
633 (free_objfile): Empty the macro cache's obstack.
634 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
635 set new allocate and free functions for it.
636 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
637 free functions for the macro cache's objstack. (Why is this
638 function building its own objfile?)
639 * symmisc.c (print_objfile_statistics): Print statistics on the
641 * Makefile.in: Note that buildsym.o depends on macrotab.h.
643 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
645 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
646 (REGISTER_U_ADDR): Delete definition.
647 (arm_register_u_addr): Delete declaration.
649 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
651 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
652 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
654 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
656 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
659 2002-05-14 Andrew Cagney <ac131313@redhat.com>
661 * regcache.c (register_valid): Revise comments refering to "Not
662 available" and "unavailable".
663 * frame.c (frame_register_read): Ditto.
664 * findvar.c (value_of_register): Ditto.
666 2002-05-15 Andrew Cagney <cagney@redhat.com>
668 * Makefile.in (remote_sim_h): Replace remote-sim_h.
669 (remote-sim.o): Update dependencies.
670 (d10v-tdep.o): Specify dependencies.
671 (sim_d10v_h): Define.
673 2002-05-14 Jim Blandy <jimb@redhat.com>
675 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
676 * macrotab.c (macro_lookup_inclusion, find_definition,
677 new_macro_table): Same.
679 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
680 not `! strcmp ()'. This is a dubious improvement.
681 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
683 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
684 although it's not necessary, to avoid a warning.
686 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
688 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
689 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
691 (struct main_type): New.
692 (struct type): Move most members to struct main_type. Change
693 cv_type and as_type to new type_chain member. Add instance_flags.
694 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
695 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
696 (finish_cv_type): Remove prototype.
697 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
699 (alloc_type_instance): New function.
700 (smash_type): New function.
701 (make_pointer_type, make_reference_type, make_function_type)
702 (smash_to_member_type, smash_to_method_type): Call smash_type.
703 (make_qualified_type): New function.
704 (make_type_with_address_space): Call make_qualified_type.
705 (make_cv_type): Likewise.
706 (finish_cv_type): Remove unnecessary function.
707 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
708 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
709 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
710 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
711 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
712 * hpread.c (hpread_read_struct_type): Likewise.
713 * stabsread.c (read_struct_type): Likewise.
715 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
717 * configure.tgt: Add a catch all sh* target, for cases like
718 sh[2,3,4]-elf and sh-hms.
720 2002-05-14 Keith Seitz <keiths@redhat.com>
722 * event-loop.c (create_file_handler): Don't do anything but
723 update data when we are given a fd which we are already
726 2002-05-14 Michal Ludvig <mludvig@suse.cz>
728 * dwarf2cfi.c (context_cpy): Copy registers correctly.
729 (update_context): Use __func__ in warnings.
731 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
733 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
734 and tcp_close to net_open and net_close.
735 (net_open): Accept "udp:" and "tcp:" specifications. Connect
736 using UDP if requested. Don't try to disable Nagle on UDP
738 * remote.c (remote_serial_open): New function. Warn about UDP.
739 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
741 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
743 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
745 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
747 * configure.tgt: Remove sh-hms target.
748 * MAINTAINERS: Don't list sh-hms as a separate target.
750 2002-05-13 Jim Blandy <jimb@redhat.com>
752 Add first preprocessor macro-expansion files.
753 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
754 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
755 (splay_tree_h, macroexp_h, macrotab_h): New variable.
756 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
757 (COMMON_OBS): Add macrotab.o, macroexp.o.
758 (macroexp.o, macrotab.o): New rules.
760 2002-05-13 Andrew Cagney <ac131313@redhat.com>
762 * config/m88k/tm-m88k.h: Update copyright.
763 (m88k_target_write_pc): Declare
764 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
765 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
766 (SHIFT_INST_REGS): Update definition.
767 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
768 using old definition of TARGET_WRITE_PC.
769 * regcache.c (generic_target_write_pc): Delete code handling
771 * gdbarch.sh (NNPC_REGNUM): Delete.
772 * gdbarch.h, gdbarch.c: Regenerate.
774 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
776 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
779 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
781 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
782 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
783 (gen_address_of, gen_struct_ref, gen_repeat): Use type
785 * c-typeprint.c (cp_type_print_method_args): Likewise.
786 (c_type_print_args): Likewise.
787 * d10v-tdep.c (d10v_push_arguments): Likewise.
788 (d10v_extract_return_value): Likewise.
789 * expprint.c (print_subexp): Likewise.
790 * gdbtypes.c (lookup_primitive_typename): Likewise.
791 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
792 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
793 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
794 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
795 (TYPE_VECTOR): Likewise.
796 * hpread.c (hpread_read_struct_type)
797 (fix_static_member_physnames, fixup_class_method_type)
798 (hpread_type_lookup): Likewise.
799 * mdebugread.c (parse_symbol, parse_type): Likewise.
800 * p-lang.c (is_pascal_string_type): Likewise.
801 * valops.c (hand_function_call): Likewise.
802 * x86-64-tdep.c (classify_argument): Likewise.
804 * hpread.c (hpread_read_function_type)
805 (hpread_read_doc_function_type): Call replace_type.
806 * dstread.c (create_new_type): Delete.
807 (decode_dst_structure, process_dst_function): Call alloc_type.
808 Use type access macros.
810 2002-05-12 Mark Kettenis <kettenis@gnu.org>
812 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
813 the're not supported by the current architecture.
814 (i387_fill_fxsave): Likewise.
816 2002-05-12 Fred Fish <fnf@redhat.com>
818 * symfile.c (default_symfile_offsets): Arrange for uninitialized
819 sect_index_xxx members to index the first slot in section_offsets
820 if all of the section_offsets are zero.
822 2002-05-12 Mark Kettenis <kettenis@gnu.org>
824 * configure.tgt (sparc-*openbsd): Remove entry accidentially
825 checked in with last change.
827 2002-05-12 Mark Kettenis <kettenis@gnu.org>
829 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
830 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
833 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
835 * Makefile.in: Update dependencies.
837 2002-05-11 Andrew Cagney <ac131313@redhat.com>
839 * language.c (local_hex_string_custom): Simplify. Do not depend
840 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
842 * memattr.c (mem_info_command): Replace calls to
843 longest_local_hex_string and longest_local_hex_string_custom.
844 * buildsym.c (make_blockvector): Ditto.
845 * solib.c (info_sharedlibrary_command): Ditto.
846 * tracepoint.c (tracepoints_info): Ditto.
847 * symtab.c (print_msymbol_info): Ditto.
849 * language.c (local_hex_string): Delete.
850 (local_hex_string_custom): Delete.
851 (longest_local_hex_string): Rename to local_hex_string.
852 (longest_local_hex_string_custom): Rename to
853 local_hex_string_custom.
854 * language.h (local_hex_string): Change parameter type to LONGEST.
855 (local_hex_string_custom): Ditto.
856 (longest_local_hex_string): Delete declaration.
857 (longest_local_hex_string_custom): Ditto.
859 * solib.c: Update copyright.
860 * memattr.c: Update copyright.
862 2002-05-11 Andrew Cagney <ac131313@redhat.com>
864 * arch-utils.h (legacy_register_to_value): Declare.
865 (legacy_value_to_register): Declare.
866 (legacy_convert_register_p): Declare.
867 * arch-utils.c (legacy_register_to_value): New function.
868 (legacy_value_to_register): New function.
869 (legacy_convert_register_p): New function.
871 * gdbarch.sh (REGISTER_TO_VALUE): Define.
872 (VALUE_TO_REGISTER): Define.
873 (CONVERT_REGISTER_P): Define.
874 * gdbarch.h, gdbarch.c: Regenerate.
876 * valops.c (value_assign): Use CONVERT_REGISTER_P and
878 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
881 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
882 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
884 * Makefile.in: Update dependencies for valops.c.
885 * valops.c: Include "gdb_assert.h".
886 (typecmp): Skip THIS parameter to methods.
887 (find_method_list): Remove static_memfuncp argument,
888 update callers. Check for stub methods.
889 (find_value_oload_method_list): Don't set *static_memfuncp.
890 (find_overload_match): Don't check for stub methods. Assert
891 that methods are not stubbed. Handle static methods.
892 (value_find_oload_method_list): Remove static_memfuncp argument.
893 * gdbtypes.c (check_stub_method): Do not add THIS pointer
894 to the argument list for static stub methods.
895 * value.h (value_find_oload_method_list): Update prototype.
897 2002-05-11 Andrew Cagney <ac131313@redhat.com>
899 * arch-utils.h (generic_register_size): Declare.
900 (generic_register_raw_size, generic_register_virtual_size): Delete
902 * arch-utils.c (generic_register_raw_size): Delete.
903 (generic_register_size): New function.
904 (generic_register_virtual_size): Delete.
906 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
907 default generic_register_size.
908 * gdbarch.h, gdbarch.c: Re-generate.
910 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
911 register_virtual_size.
912 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
913 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
915 2002-05-11 Andrew Cagney <ac131313@redhat.com>
917 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
918 * gdbarch.h, gdbarch.c: Regenerate.
919 * gnu-v3-abi.c: Update copyright.
920 (vtable_address_point_offset): Update.
921 (gnuv3_rtti_type): Update.
922 (gnuv3_baseclass_offset): Update.
923 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
924 (init_fetch_link_map_offsets): Update.
925 * remote.c (get_remote_state): Update.
927 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
929 * TODO: Remove value_headof/value_from_vtable_info comment.
930 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
931 * values.c (value_headof, value_from_vtable_info): Delete.
932 * value.h (value_from_vtable_info): Delete prototype.
934 2002-05-11 Andrew Cagney <ac131313@redhat.com>
936 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
937 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
939 (gdb_assert_h): Define.
940 (gdb_wait_h): Define.
941 (gdb_regex_h): Define.
943 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
945 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
946 * linespec.c (find_methods): Handle GCC 3.x template constructors.
948 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
950 * nbsd-tdep.c: Fix comment.
952 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
954 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
955 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
956 (nbsd-tdep.o): New dependency list.
957 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
959 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
960 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
961 * nbsd-tdep.c: New file.
962 * nbsd-tdep.h: New file.
963 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
965 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
966 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
967 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
968 * config/sh/nbsd.mt (TDEPFILES): Ditto.
970 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
972 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
973 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
974 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
975 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
976 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
977 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
979 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
981 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
982 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
983 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
984 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
985 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
986 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
987 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
989 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
991 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
992 fetch_elfcore_registers to...
993 * i386nbsd-tdep.c: ...here.
994 (i386nbsd_use_struct_convention): Rename to...
995 (i386nbsd_aout_use_struct_convention): ...this.
996 (i386nbsd_supply_reg): New function.
997 (i386nbsd_fill_reg): New function.
998 (fetch_core_registers): Use i386nbsd_supply_reg.
999 (fetch_elfcore_registers): Likewise.
1000 (_initialize_i386nbsd_tdep): New function.
1001 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
1002 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1003 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
1004 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
1005 (i386nbsd_aout_use_struct_convention): ...this.
1007 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1009 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
1010 (store_inferior_registers): Use shnbsd_fill_reg.
1011 * shnbsd-tdep.c (sh_nbsd_supply_registers,
1012 sh_nbsd_supply_register): Collapse into...
1013 (shnbsd_supply_reg): ...this.
1014 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
1015 (shnbsd_fill_reg): ...this.
1016 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
1017 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
1018 (fetch_core_registers): Use shnbsd_supply_reg.
1019 (fetch_elfcore_registers): Use shnbsd_supply_reg.
1020 (sh_nbsd_core_fns): Rename to...
1021 (shnbsd_core_fns): ...this.
1022 (sh_nbsd_elfcore_fns): Rename to...
1023 (shnbsd_elfcore_fns): ...this.
1024 (sh_nbsd_init_abi): Rename to...
1025 (shnbsd_init_abi): ...this.
1026 (_initialize_sh_nbsd_tdep): Rename to...
1027 (_initialize_shnbsd_tdep): ...this.
1028 * shnbsd-tdep.h (sh_nbsd_supply_registers,
1029 sh_nbsd_supply_register, sh_nbsd_fill_registers,
1030 sh_nbsd_fill_register): Remove prototypes.
1031 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
1033 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1035 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
1036 (i387-nat.o): Delete dependency list.
1037 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
1038 (x86-64-linux-nat.o): Likewise.
1039 * i387-nat.c: Delete file, moving contents to...
1040 * i387-tdep.c: ...here.
1041 * i387-nat.h: Rename...
1042 * i387-tdep.h: ...to this.
1043 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
1044 * i386-linux-nat.c: Likewise.
1045 * i386bsd-nat.c: Likewise.
1046 * i386gnu-nat.c: Likewise.
1047 * i386nbsd-nat.c: Likewise.
1048 * i386v4-nat.c: Likewise.
1049 * x86-64-linux-nat.c: Likewise.
1050 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
1051 * config/i386/go32.mh (NATDEPFILES): Likewise.
1052 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1053 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
1054 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
1055 * config/i386/linux.mh (NATDEPFILES): Likewise.
1056 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
1057 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1058 * config/i386/obsd.mh (NATDEPFILES): Likewise.
1059 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1061 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1063 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
1064 (alphanbsd-nat.o): Remove dependency list.
1065 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
1066 * alphanbsd-nat.c: Delete. Contents moved to...
1067 * alphanbsd-tdep.c: ...here.
1068 (_initialize_alphanbsd_tdep): Register core functions.
1069 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
1071 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1073 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
1074 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
1075 (alphanbsd-nat.o): Likewise.
1076 (alphabsd-tdep.o): New dependency list.
1077 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
1078 (fill_gregset): Use alphabsd_fill_reg.
1079 (supply_fpregset): Use alphabsd_supply_fpreg.
1080 (fill_fpregset): Use alphabsd_fill_fpreg.
1081 (fetch_inferior_registers): Use struct reg and struct fpreg
1082 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
1083 and alphabsd_supply_fpreg.
1084 (store_inferior_registers): Use struct reg and struct fpreg
1085 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
1086 and alphabsd_fill_fpreg.
1087 * alphabsd-tdep.c: New file.
1088 * alphabsd-tdep.h: New file.
1089 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
1090 (fetch_elfcore_registers): Use alphabsd_supply_reg and
1091 alphabsd_supply_fpreg.
1092 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
1093 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
1095 2002-05-11 Eric Christopher <echristo@redhat.com>
1097 * mips-tdep.c (mips_double_register_type): Fix thinko.
1098 (mips_single_register_type): Ditto.
1099 * MAINTAINERS: Add self.
1101 2002-05-11 Mark Kettenis <kettenis@gnu.org>
1103 * i387-nat.c (i387_supply_register, i387_fill_fsave,
1104 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
1105 right thing on architectures with different endianness and/or
1108 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
1110 From Christian Limpach <chris@Pin.LU>
1111 * configure.in: Change sed expression which comments out
1112 NATDEPFILES to also comment out continuation lines.
1113 * configure: Regenerate.
1115 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1117 * sh-tdep.c: Clean up code erroneously reintroduced by previous
1120 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1122 * sh-tdep.c: Include correct file.
1124 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1126 New support for sh64-elf (sh5) target.
1128 * configure.tgt: For sh64-elf target, default to sh-elf.
1130 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
1131 (struct gdbarch_tdep): Add new fields for new registers and ABI
1134 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
1135 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
1136 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
1137 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
1138 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
1139 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
1140 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
1141 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
1142 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
1143 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
1144 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
1145 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
1146 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
1147 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
1148 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
1149 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
1150 sh64_get_gdb_regnum, sh64_media_reg_base_num,
1151 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
1152 sign_extend, sh64_nofp_frame_init_saved_regs,
1153 sh64_init_extra_frame_info, sh64_get_saved_register,
1154 sh64_extract_struct_value_address, sh64_pop_frame,
1155 sh64_push_arguments, sh64_extract_return_value,
1156 sh64_store_return_value, sh64_show_media_regs,
1157 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
1158 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
1159 sh_sh64_register_virtual_type,
1160 sh_sh64_register_convert_to_virtual,
1161 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
1162 sh64_register_read, sh64_pseudo_register_write,
1163 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
1164 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
1165 sh64_do_pseudo_register, sh_compact_do_registers_info,
1166 sh64_do_registers_info, sh_gdbarch_init): New functions.
1168 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1170 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
1172 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
1174 * linespec.c (decode_line_1): Check for a double quote after
1175 a filename correctly.
1177 2002-05-10 Jim Blandy <jimb@redhat.com>
1179 Properly track the size of the current objfile's .debug_line section.
1180 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
1181 (DWARF_LINE_SIZE): New macro.
1182 (dwarf2_build_psymtabs_hard): Record the line section's size in
1183 the partial symbol table.
1184 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
1187 2002-05-10 Petr Sorfa <petrs@caldera.com>
1189 * ia64-tdep.c: Handle breakpoints on L instruction type
1190 in MLX instruction bundle by moving the breakpoint to
1191 the third slot (X instruction type) as L holds only data.
1193 2002-05-10 Kevin Buettner <kevinb@redhat.com>
1195 * dbxread.c (discarding_local_symbols_complaint): New complaint.
1196 (process_one_symbol): Complain about discarding local symbols
1197 due to a misplaced N_LBRAC entry.
1199 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
1201 From Daniel Berlin <dan@cgsoftware.com>
1202 * linespec.c (find_toplevel_char): '<' and '>' also increase and
1203 decrease the depth we are at, in the case of templates.
1205 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
1207 * mips-tdep.c (mips_float_register_type): New function.
1208 (mips_double_register_type): New function.
1209 (mips_print_register): Use them.
1210 (do_fp_register_row): Likewise.
1212 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
1214 * signals/signals.c (signals): Remove conditional compilation around
1215 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
1216 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
1218 2002-05-09 Michael Snyder <msnyder@redhat.com>
1220 * remote-rdp.c (remote_rdp_can_run): Remove.
1222 2002-05-09 Tom Tromey <tromey@redhat.com>
1224 * jv-valprint.c (java_val_print): Handle `char' as a special case
1227 2002-05-09 Michael Snyder <msnyder@redhat.com>
1229 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
1230 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
1231 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
1232 str r(0123),[sp,#nn].
1233 (arm_skip_prologue): Ditto. Also make disassembly
1234 order-independent by placing it in a loop.
1236 2002-05-06 Michael Snyder <msnyder@redhat.com>
1238 * stabsread.c (read_type): Add recognition for new attribute:
1239 "@V;" means that an array type is actually a vector.
1240 This is analogous to the vector flag that's been added to dwarf2.
1242 2002-05-09 Mark Kettenis <kettenis@gnu.org>
1244 * i386-tdep.h (i386_abi): New enum.
1245 (struct gdbarch_tdep): Replace os_ident member with abi.
1246 (i386_gdbarch_register_os_abi): New prototype.
1247 * i386-tdep.c (i386_abi_names): New array.
1248 (process_note_abi_tag_sections): Removed.
1249 (process_note_sections): New function.
1250 (i386_elf_abi_from_note, i386_elf_abi): New functions.
1251 (struct i386_abi_handler): New struct.
1252 (i386_abi_handler_list): New variable.
1253 (i386_gdbarch_register_os_abi): New function.
1254 (i386_gdbarch_init): Adapt for the changes given above.
1256 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
1258 * gregset.h: Say "GNU/Linux".
1260 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
1262 * gdbtypes.c : Add new builtin type for 64 bit vectors.
1263 (build_gdbtypes): Build builtin_type_v2_float.
1264 (_initialize_gdbtypes): Register new builtin type.
1266 2002-05-08 Andrew Cagney <ac131313@redhat.com>
1268 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
1269 (clear_gdbarch_swap): New function.
1270 (initialize_non_multiarch): Call.
1271 (gdbarch_update_p): Before calling init(), swap out and clear the
1272 existing architecture.
1273 * gdbarch.c: Regenerate.
1275 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1277 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
1280 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1282 * sh-nbsd-nat.c: Rename to...
1283 * shnbsd-nat.c: ...this.
1284 * sh-nbsd-tdep.c: Rename to...
1285 * shnbsd-tdep.c: ...this.
1286 * sh-nbsd-tdep.h: Rename to...
1287 * shnbsd-tdep.h: ...this.
1288 * config/sh/nbsd.mh: Use shnbsd-nat.o.
1289 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
1291 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
1293 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
1294 concatenation for command help messages.
1296 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1298 * NEWS: Note new sh*-*-netbsdelf* configuration.
1299 * configure.host: Set gdb_host_cpu to sh for all sh*.
1300 (sh*-*-netbsdelf*): New host.
1301 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
1302 (sh*-*-netbsdelf*): New target.
1303 * sh-nbsd-nat.c: New file.
1304 * sh-nbsd-tdep.c: New file.
1305 * sh-nbsd-tdep.h: New file.
1306 * config/sh/nbsd.mh: New file.
1307 * config/sh/nbsd.mt: New file.
1308 * config/sh/nm-nbsd.h: New file.
1309 * config/sh/tm-nbsd.h: New file.
1311 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1313 * sh-tdep.c (sh_osabi_names): Declare.
1314 (process_note_abi_tag_sections): New function.
1315 (get_elfosabi): Ditto.
1316 (sh_gdbarch_register_os_abi): Ditto.
1317 (sh_dump_tdep): Ditto.
1318 _initialize_sh_tdep): Use gdbarch_register to register
1319 sh_gdbarch_init and sh_dump_tdep.
1320 * config/sh/tm-sh.h (sh_osabi): Declare.
1321 (gdbarch_tdep): Add sh_osabi and osabi_name members.
1323 2002-05-07 Andrew Cagney <ac131313@redhat.com>
1325 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
1326 (thumb_scan_prologue): Ditto.
1327 (arm_find_callers_reg): Ditto.
1328 (arm_frame_chain): Ditto.
1329 (arm_init_extra_frame_info): Ditto.
1330 (arm_frame_saved_pc): Ditto.
1331 (arm_pop_frame): Ditto.
1332 (arm_push_return_address): New function.
1333 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
1334 call_dummy_location, call_dummy_breakpoint_offset_p,
1335 call_dummy_breakpoint_offset, call_dummy_p,
1336 call_dummy_stack_adjust_p, call_dummy_words,
1337 sizeof_call_dummy_words, call_dummy_start_offset,
1338 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
1339 call_dummy_address, push_return_address and push_dummy_frame for
1340 generic dummy frames.
1342 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1344 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
1345 size computation for alloca.
1346 (sh_fp_frame_init_saved_regs): Likewise.
1348 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
1350 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
1351 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
1352 * arm-tdep.c (arm_store_return_value): Use them.
1353 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
1354 * remote-rdp.c (remote_rdp_fetch_register): Use
1355 ARM_MAX_REGISTER_RAW_SIZE.
1356 (remote_rdp_store_register): Likewise.
1358 2002-05-07 Michal Ludvig <mludvig@suse.cz>
1360 * dwarf2cfi.c: Code cleanup, removed unused variables,
1361 added default labels to switch {} statements.
1362 * x86-64-tdep.c: Ditto.
1363 * x86-64-linux-nat.c: Ditto.
1365 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1367 * solib.h: Protect against multiple inclusion.
1369 2002-05-06 Jim Blandy <jimb@redhat.com>
1371 Add first preprocessor macro-expansion files.
1372 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1373 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1374 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1375 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1376 (COMMON_OBS): Add macrotab.o, macroexp.o.
1377 (macroexp.o, macrotab.o): New rules.
1379 Separate the job of reading the line number info statement program
1380 header (...expialidocious) out into its own function.
1381 * dwarf2read.c (struct line_head, struct filenames, struct
1382 directories): Replace with...
1383 (struct line_header): New structure, containing the full
1384 contents of the statement program header, including the
1385 include directory and file name tables.
1386 (read_file_scope): If we have line number info, instead of just
1387 calling dwarf_decode_lines to do all the work, call
1388 dwarf_decode_line_header first to get a `struct line_header'
1389 containing the data in the statement program header, and then
1390 pass that to dwarf_decode_lines, which will pick up where that
1391 left off. Be sure to clean up the `struct line_header' object.
1392 (dwarf_decode_line_header, free_line_header, add_include_dir,
1393 add_file_name): New functions.
1394 (dwarf_decode_lines): Move all the code to read the statement
1395 program header into dwarf_decode_line_header. Take the line
1396 header it built as the first argument, instead of the offset to
1397 the compilation unit's line number info. Use the new `struct
1398 line_header' type instead of the old structures. No need to do
1399 cleanups here now, since we don't allocate anything.
1400 (dwarf2_statement_list_fits_in_line_number_section,
1401 dwarf2_line_header_too_long): New complaints.
1403 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
1405 * gdbtypes.c (init_vector_type): New function.
1406 (build_builtin_type_vec128): Simplify the representation of SIMD
1408 (build_gdbtypes): Initialize new builtin vector types.
1409 (_initialize_gdbtypes): Register new vector types with gdbarch.
1410 (builtin_type_v4_float, builtin_type_v4_int32,
1411 builtin_type_v8_int16, builtin_type_v16_int8,
1412 builtin_type_v2_int32, builtin_type_v4_int16,
1413 builtin_type_v8_int8): New (renamed) SIMD types.
1415 2002-05-06 Mark Kettenis <kettenis@gnu.org>
1417 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
1418 (i387_fill_fxsave): Likewise.
1420 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
1422 * alpha-tdep.c (alpha_extract_return_value): Don't use
1423 non-constant array size in prototype.
1425 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1427 From Brian Taylor <briant at model dot com>:
1428 * ui-out.c (ui_out_field_core_addr): Use the function
1429 longest_local_hex_string_custom'to format addresses > 32 bits
1432 * ui-out.c (ui_out_field_core_addr): Update comment.
1434 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1436 * stack.c (select_and_print_frame): Make static. Delete the
1438 (func_command): Update call.
1439 (select_frame_command): Delete code computing the frame level.
1440 * frame.h (select_and_print_frame): Delete declaration.
1442 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1444 * sparc-tdep.c (sparc_get_saved_register): Comment why
1445 get_prev_frame call is safe.
1447 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1449 * frame.h (select_frame): Delete level parameter.
1450 * stack.c (select_frame): Update. Use frame_relative_level to
1451 obtain the frame's level.
1452 (select_and_print_frame): Update call.
1453 (select_frame_command): Ditto.
1454 (up_silently_base): Ditto.
1455 (down_silently_base): Ditto.
1456 * ocd.c (ocd_start_remote): Ditto.
1457 * remote-rdp.c (remote_rdp_open): Ditto.
1458 * remote-mips.c (mips_initialize): Ditto.
1459 (common_open): Ditto.
1460 * remote-e7000.c (e7000_start_remote): Ditto.
1461 * m3-nat.c (select_thread): Ditto.
1462 * hppa-tdep.c (child_get_current_exception_event): Ditto.
1463 (child_get_current_exception_event): Ditto.
1464 * varobj.c (varobj_create): Ditto.
1465 (varobj_update): Ditto.
1466 (c_value_of_root): Ditto.
1467 * tracepoint.c (finish_tfind_command): Ditto.
1468 * corelow.c (core_open): Ditto.
1469 * arch-utils.c (generic_prepare_to_proceed): Ditto.
1470 * thread.c (info_threads_command): Ditto.
1471 (switch_to_thread): Ditto.
1472 * infrun.c (normal_stop): Ditto.
1473 (restore_selected_frame): Ditto.
1474 (restore_inferior_status): Ditto.
1475 * breakpoint.c (insert_breakpoints): Ditto.
1476 (watchpoint_check): Ditto.
1477 (bpstat_stop_status): Ditto.
1478 (do_enable_breakpoint): Ditto.
1479 * blockframe.c (flush_cached_frames): Ditto.
1480 (reinit_frame_cache): Ditto.
1482 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1484 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
1487 2002-05-04 Jim Blandy <jimb@redhat.com>
1489 * gdbtypes.c (replace_type): Doc fix.
1491 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1493 * valprint.c (strcat_longest): Delete commented out function.
1496 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1498 * MAINTAINERS: Mark a29k as deleted.
1499 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
1500 Move new configurations to the top.
1501 * configure.tgt: Remove a29k.
1502 * config/a29k/tm-vx29k.h: Delete.
1503 * config/a29k/vx29k.mt: Delete.
1504 * config/a29k/tm-a29k.h: Delete.
1505 * config/a29k/a29k-udi.mt: Delete.
1506 * config/a29k/a29k.mt: Delete.
1507 * a29k-tdep.c: Delete.
1508 * remote-udi.c: Delete.
1509 * remote-mm.c: Delete.
1510 * remote-eb.c: Delete.
1511 * remote-adapt.c: Delete.
1512 * Makefile.in: Remove obsolete code.
1513 * gdbserver/Makefile.in: Ditto.
1514 * config/s390/s390x.mt: Ditto.
1515 * config/s390/s390.mt: Ditto.
1516 * config/sparc/sparclynx.mh: Ditto.
1517 * config/sparc/linux.mh: Ditto.
1518 * config/pa/hppaosf.mh: Ditto.
1519 * config/pa/hppabsd.mh: Ditto.
1520 * config/ns32k/nbsd.mt: Ditto.
1521 * config/mips/vr5000.mt: Ditto.
1522 * config/m68k/sun3os4.mh: Ditto.
1523 * config/m68k/nbsd.mt: Ditto.
1524 * config/m68k/m68klynx.mh: Ditto.
1525 * config/m32r/m32r.mt: Ditto.
1526 * config/i386/x86-64linux.mt: Ditto.
1527 * config/i386/nbsdelf.mt: Ditto.
1528 * config/i386/nbsd.mt: Ditto.
1529 * config/i386/i386lynx.mh: Ditto.
1531 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1533 * target.c (debug_print_register): New function. Handle oversize
1535 (debug_to_fetch_registers): Call.
1536 (debug_to_store_registers): Call.
1538 2002-05-03 Jim Blandy <jimb@redhat.com>
1540 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
1541 (read_type): Doc fix.
1542 * gdbtypes.c (replace_type): Doc fix.
1544 * stabsread.c (multiply_defined_struct): New complaint.
1545 (read_struct_type): If the type we were passed isn't empty, or
1546 incomplete, don't read the new struct type into it; complain,
1547 and return the original type unchanged. Take a new `type_code'
1548 argument, which is the type code for the new type.
1549 (read_type): Rather than storing the type's type code here, pass
1550 it as an argument to read_struct_type, and let that take care of
1551 storing it. That way, we don't overwrite the original type code,
1552 so read_struct_type can use it to decide whether we're overwriting
1553 something we shouldn't.
1554 (complain_about_struct_wipeout): New function.
1556 2002-05-03 Andrew Cagney <ac131313@redhat.com>
1558 * gdbarch.sh: Assert that gdbarch is non-NULL.
1559 * gdbarch.c: Regenerate.
1561 2002-05-03 Jason Merrill <jason@redhat.com>
1563 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
1566 2002-05-03 Michal Ludvig <mludvig@suse.cz>
1568 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
1569 (x86_64_dwarf2gdb_regno_map_length),
1570 (x86_64_dwarf2_reg_to_regnum): Added.
1571 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
1572 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
1573 (_initialize_x86_64_tdep): Synced with the change above.
1574 (x86_64_skip_prologue): Reformulated message.
1576 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1578 * f-exp.y: Also use new prev_lexptr variable
1579 to improve error reporting. Based on Michael Snyder
1580 2002-04-24 dated patch to c-exp.y.
1581 * jv-exp.y: Likewise.
1582 * m2-exp.y: Likewise.
1584 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
1586 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
1587 we are dealing with vectors.
1589 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1591 * config/m68k/tm-nbsd.h: Obvious fix,
1592 correct machine name.
1594 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1596 * p-typeprint.c (pascal_type_print_base): Add support
1597 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
1599 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1601 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
1602 for fondamental pascal 'char' type.
1604 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1606 * p-lang.h (is_pascal_string_type): Declaration changed,
1607 new sixth argument of type char ** added.
1608 * p-lang.c (is_pascal_string_type): Implementation
1609 changed. Args length_pos, length_size, string_pos, char_size
1610 can now be NULL. New argument arrayname set to the field
1611 name of the char array. Return value set to char array
1612 field index plus one.
1613 * p-valprint.c (pascal_val_print): Adapt to new declaration of
1614 is_pascal_string_type function.
1616 2002-05-02 Andrew Cagney <cagney@redhat.com>
1618 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
1619 <cagney@redhat.com> change.
1620 * gdbarch.c: Regenerate.
1622 2002-05-02 Andrew Cagney <cagney@redhat.com>
1624 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
1625 before probing for a new one. Detect errorenous gdbarch_init
1627 * gdbarch.c: Regenerate.
1629 2002-05-01 Andrew Cagney <cagney@redhat.com>
1631 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
1632 * config/mcore/tm-mcore.h: Ditto. Update copyright.
1633 * config/v850/tm-v850.h: Ditto. Update copyright.
1635 2002-04-30 Andrew Cagney <ac131313@redhat.com>
1637 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
1640 2002-04-30 Michael Snyder <msnyder@redhat.com>
1642 * arm-tdep.c: Whitespace clean-ups.
1643 (arm_skip_prologue): Fix thinko; two lines
1644 should have been removed as part of 4/24 change.
1646 2002-04-30 Kevin Buettner <kevinb@redhat.com>
1648 * rs6000-tdep.c: Added comment describing how fpscr register
1649 numbers were chosen.
1651 2002-04-30 Michael Snyder <msnyder@redhat.com>
1653 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
1655 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
1657 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
1658 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
1659 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
1661 2002-04-29 Kevin Buettner <kevinb@redhat.com>
1663 From Louis Hamilton <hamilton@redhat.com>:
1664 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
1665 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
1666 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
1667 not bfd-private xcoff data, to determine wordsize.
1668 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
1670 2002-04-29 Andrew Cagney <ac131313@redhat.com>
1672 GDB 5.2 released from 5.2 branch.
1674 2002-04-29 Michal Ludvig <mludvig@suse.cz>
1676 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
1677 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
1678 (x86_64_register_info_table): Added comments with register numbers.
1680 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
1682 * rs6000-tdep.c (rs6000_extract_return_value,
1683 rs6000_store_return_value): Handle returning vectors.
1684 (rs6000_gdbarch_init): Use
1685 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
1686 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1688 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
1690 (ppc_sysv_abi_push_arguments): Handle vector parameters.
1691 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
1693 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1695 * hpread.c (hpread_psymtab_to_symtab_1,
1696 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
1697 with fprintf_unfiltered (gdb_stderr,...).
1699 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1701 * remote-array.c (printf_monitor, write_monitor,
1702 array_insert_breakpoint, array_remove_breakpoint ):
1703 Replace fprintf (stderr,...
1704 with fprintf_unfiltered (gdb_stderr,....
1705 * remote-es.c: Likewise.
1706 * remote-os9k.c: Likewise.
1707 * remote-st.c: Likewise.
1709 2002-04-28 Andreas Schwab <schwab@suse.de>
1711 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
1712 linux-proc.o and gcore.o.
1714 2002-04-26 Michal Ludvig <mludvig@suse.cz>
1716 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
1717 code without frame pointers.
1719 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1721 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
1724 2002-04-26 Ben Elliston <bje@redhat.com>
1726 * target.c (do_xfer_memory): Correct reference to the new option
1727 "trust-readonly-sections".
1729 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
1731 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
1732 * gdbtypes.c (recursive_dump_type): Output the vector flag.
1733 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
1735 (read_array_type): Record the fact that this array type is really a
1736 vector (i.e. are passed in by value).
1738 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
1740 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
1741 * alpha-tdep.c (alpha_sigcontext_addr): New function.
1742 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
1743 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
1744 * alpha-linux-tdep.c: Include frame.h.
1745 (alpha_linux_sigcontext_addr): New function.
1746 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
1747 alpha_linux_sigcontext_addr.
1748 * alpha-osf1-tdep.c: Include gdbcore.h.
1749 (alpha_osf1_sigcontext_addr): New function.
1750 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
1751 alpha_osf1_sigcontext_addr.
1752 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
1753 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
1755 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1757 * stack.c (selected_frame_level):
1758 (select_frame): Do not set selected_frame_level.
1759 * frame.h (selected_frame_level): Delete declaration.
1761 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1763 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
1764 convert_from_func_ptr-addr when AIX / PowerOpen.
1766 2002-04-25 Andrew Cagney <ac131313@redhat.com>
1768 * valops.c (hand_function_call): Call
1769 generic_save_call_dummy_addr.
1770 * frame.h (generic_save_call_dummy_addr): Declare.
1771 * blockframe.c (struct dummy_frame): Add fields call_lo and
1773 (generic_find_dummy_frame): Check for PC in range call_lo to
1774 call_hi instead of entry_point_address.
1775 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
1776 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
1777 (generic_save_call_dummy_addr): New function.
1779 2002-04-24 David S. Miller <davem@redhat.com>
1781 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
1782 sparc_skip_prologue.
1783 (sparc_skip_prologue): Kill frameless_p arg, and use line number
1784 information to find prologue when possible.
1785 (sparc_prologue_frameless_p): Call examine_prologue directly.
1786 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
1787 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
1789 (SKIP_PROLOGUE): Likewise.
1791 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1793 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
1794 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
1795 indicate that the condition it was testing is always true.
1796 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
1797 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1798 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1800 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1802 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
1803 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
1804 tdep->jb_pc and tdep->jb_elt_size.
1805 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
1806 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
1807 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
1808 * alpha-nat.c (get_longjmp_target): Remove.
1809 (JB_ELEMENT_SIZE): Ditto.
1811 * alpha-tdep.c (alpha_get_longjmp_target): New function.
1812 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
1813 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
1814 to alpha_get_longjmp_target.
1815 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
1816 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
1817 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
1819 2002-04-25 Andrew Cagney <ac131313@redhat.com>
1821 * README: Update to GDB 5.2.
1823 2002-04-25 Andrew Cagney <ac131313@redhat.com>
1825 * gdbarch.sh (LC_ALL): Set to `c'.
1827 2002-04-25 Theodore A. Roth <troth@verinet.com>
1829 * avr-tdep.c: Ran through gdb_indent.sh.
1831 2002-04-25 Theodore A. Roth <troth@verinet.com>
1833 * MAINTAINERS: Add myself as AVR maintainer.
1834 * NEWS: Note new target avr.
1836 2002-04-25 Theodore A. Roth <troth@verinet.com>
1838 * Makefile.in: Add support for AVR target.
1839 * configure.tgt: Add support for AVR target.
1840 * avr-tdep.c: New file
1841 * config/avr/avr.mt: New file.
1843 2002-04-25 Theodore A. Roth <troth@verinet.com>
1845 * MAINTAINERS: Add myself to write-after-approval.
1847 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1849 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
1850 with fprintf_unfiltered (gdb_stderr,....
1852 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1855 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
1857 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1859 * p-exp.y: Also use new prev_lexptr variable
1860 to improve error reporting. Based on Michael Snyder
1861 2002-04-24 dated patch to c-exp.y.
1863 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1865 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
1866 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
1867 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
1869 * config/alpha/tm-alpha.h: Remove forward decls of struct type
1871 (FUNCTION_START_OFFSET): Remove.
1872 (BREAKPOINT): Ditto.
1874 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1876 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
1879 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1881 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
1882 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
1883 alpha_linux_pc_in_sigtramp.
1884 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
1885 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
1886 alpha_osf1_pc_in_sigtramp.
1887 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
1888 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
1889 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1890 alphafbsd_pc_in_sigtramp.
1891 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
1892 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1893 alphanbsd_pc_in_sigtramp.
1894 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
1895 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
1897 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1899 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1901 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1903 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
1905 (alphanbsd-nat.o): New dependency list.
1906 (alphanbsd-tdep.o): Ditto.
1907 * NEWS: Note new native NetBSD/alpha configuration.
1908 * alphanbsd-nat.c: New file.
1909 * alphanbsd-tdep.c: Ditto.
1910 * configure.host (alpha*-*-netbsd*): New host.
1911 * configure.tgt (alpha*-*-netbsd*): New target.
1912 * config/alpha/nbsd.mh: New file.
1913 * config/alpha/nbsd.mt: Ditto.
1914 * config/alpha/nm-nbsd.h: Ditto.
1915 * config/alpha/tm-nbsd.h: Ditto.
1917 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1919 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
1920 (alpha-osf1-tdep.o): New dependency list.
1921 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
1922 and skip_sigtramp_frame members.
1923 * alpha-linux-tdep.c: Include gdbcore.h.
1924 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
1925 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
1926 * alpha-osf1-tdep.c: New file.
1927 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
1929 (alpha_frame_past_sigtramp_frame): New function.
1930 (alpha_dynamic_sigtramp_offset): Ditto.
1931 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
1932 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
1933 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
1934 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
1935 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
1936 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
1937 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
1938 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
1939 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
1940 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
1941 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
1942 to find_solib_trampoline_target.
1943 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
1944 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
1945 (SKIP_TRAMPOLINE_CODE): Remove.
1946 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1947 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1948 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1949 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1950 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
1951 (PROC_SIGTRAMP_MAGIC): Ditto.
1952 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1953 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1954 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1955 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1956 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1958 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1960 * NEWS: Note that Alpha targets are now multi-arch.
1962 2002-04-24 Michael Snyder <msnyder@redhat.com>
1964 * parser-defs.h (prev_lexptr): New external variable.
1965 * parse.c (parse_exp_1): Set prev_lexptr to null before
1966 calling the language-specific parser.
1967 * c-exp.y (yylex): Set prev_lexptr to start of current token.
1968 (yyerror): Use prev_lexptr in error reporting.
1970 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
1972 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
1973 * gregset.h: If FILL_FPXREGSET is defined, provide
1974 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
1975 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
1976 is defined, call fill_fpxregset.
1978 2002-04-24 Roland McGrath <roland@frob.com>
1980 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
1981 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
1982 (supply_gregset, supply_fpregset): New functions.
1984 * gnu-nat.c (gnu_find_memory_regions): New function.
1985 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
1986 (gnu_xfer_memory): Add a cast.
1988 2002-04-24 Michael Snyder <msnyder@redhat.com>
1990 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
1991 loop. Add handling for "str lr, [sp, #-4]!" and for saves
1992 of argument regs ("str r(0123), [r11, #-nn"]).
1993 (arm_skip_prologue): Better handling for frameless functions.
1994 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
1995 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
1997 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
1999 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
2000 NUM_PSEUDO_REGS can be used.
2002 2002-04-24 Andrew Cagney <ac131313@redhat.com>
2004 * arch-utils.h: Update copyright.
2006 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
2007 * gdbarch.h, gdbarch.c: Re-generate.
2009 * inferior.h (IN_SIGTRAMP): Delete definition.
2010 * arch-utils.c (legacy_pc_in_sigtramp): New function.
2011 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
2013 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
2014 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
2015 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
2016 (find_proc_framesize): Ditto.
2017 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
2018 (alpha_init_extra_frame_info): Ditto.
2019 * infrun.c (handle_inferior_event): Ditto.
2020 (handle_inferior_event): Ditto.
2021 (check_sigtramp2): Ditto.
2022 * blockframe.c (create_new_frame): Ditto.
2023 (get_prev_frame): Ditto.
2024 * ppc-linux-tdep.c: Update comments.
2025 * i386-linux-tdep.c: Update comments.
2026 * breakpoint.c (bpstat_what): Update comment.
2028 2002-04-24 Michal Ludvig <mludvig@suse.cz>
2030 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
2031 (regsets_store_inferior_registers): Removed cast to int from
2033 * gdbserver/regcache.h: Added declaration of struct inferior_info.
2035 2002-04-24 David S. Miller <davem@redhat.com>
2037 * i960-tdep.c (register_in_window_p): New function.
2038 (i960_find_saved_register): Use it instead of
2039 REGISTER_IN_WINDOW_P.
2040 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
2042 * symtab.h (find_stab_function_addr): Kill extern.
2043 * minsyms.c (find_stab_function_addr): Remove from here...
2044 * dbxread.c: ... to here, and mark it static.
2046 2002-04-20 David S. Miller <davem@redhat.com>
2048 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
2049 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
2051 2002-04-21 David S. Miller <davem@redhat.com>
2053 * remote-vxsparc.c (vx_read_register): Fix typo, we want
2054 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
2055 (vx_write_register): Likewise.
2057 2002-04-23 J. Brobecker <brobecker@gnat.com>
2059 * source.c (is_regular_file): New function.
2060 (openp): Check wether file to open is a regular file
2061 to avoid opening directories.
2063 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2065 * findvar.c (extract_signed_integer): Cast printf argument
2066 to suppress format warning.
2067 (extract_unsigned_integer): Likewise.
2068 * infcmd.c (registers_info): Likewise.
2069 * top.c (get_prompt_1): Likewise.
2070 * valops.c (value_assign): Likewise.
2071 * valprint.c (print_decimal): Likewise.
2073 2002-04-22 H.J. Lu (hjl@gnu.org)
2075 * c-exp.y (typebase): Support
2077 [long|long long|short] [signed|unsigned] [int|]
2081 signed [long|long long|short] int
2083 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2085 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
2087 * vax-tdep.h: New file.
2088 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
2089 Make several routines static.
2090 (vax_get_saved_register): New function.
2091 (vax_gdbarch_init): New function.
2092 (_initialize_vax_tdep): Register vax_gdbarch_init.
2093 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
2094 Remove macros now under the control of gdbarch.
2096 2002-04-22 Michael Snyder <msnyder@redhat.com>
2098 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
2099 Some whitespace and coding standards tweaks.
2101 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2103 * vax-tdep.c: Include regcache.h.
2104 (vax_call_dummy_words): New.
2105 (sizeof_vax_call_dummy_words): New.
2106 (vax_fix_call_dummy): New function.
2107 (vax_saved_pc_after_call): Ditto.
2108 * config/vax/tm-vax.h: Don't include regcache.h.
2109 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
2110 (CALL_DUMMY): Remove.
2111 (CALL_DUMMY_WORDS): Define.
2112 (SIZEOF_CALL_DUMMY_WORDS): Define.
2113 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
2115 2002-04-18 Michael Snyder <msnyder@redhat.com>
2117 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
2119 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2121 * vax-tdep.c (vax_frame_chain): New function.
2122 (vax_push_dummy_frame): Ditto.
2123 (vax_pop_frame): Ditto.
2124 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
2125 (FRAMELESS_FUNCTION_INVOCATION): Use
2126 generic_frameless_function_invocation_not.
2127 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
2128 (POP_FRAME): Use vax_pop_frame.
2130 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2132 * vax-tdep.c (vax_store_struct_return): New function.
2133 (vax_extract_return_value): Ditto.
2134 (vax_store_return_value): Ditto.
2135 (vax_extract_struct_value_address): Ditto.
2136 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
2137 vax_store_struct_return.
2138 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
2139 (STORE_RETURN_VALUE): Use vax_store_return_value.
2140 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
2142 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2144 * vax-tdep.c (vax_frame_saved_pc): New function.
2145 (vax_frame_args_address_correct): Ditto.
2146 (vax_frame_args_address): Ditto.
2147 (vax_frame_locals_address): Ditto.
2148 (vax_frame_num_args): Move code to be in proximity to
2149 other frame-related functions.
2150 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
2151 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
2152 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
2153 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
2154 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
2156 2002-04-22 H.J. Lu (hjl@gnu.org)
2158 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
2161 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2163 * vax-tdep.c (vax_frame_init_saved_regs): New function.
2164 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
2165 (FRAME_INIT_SAVED_REGS): New macro.
2167 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2169 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
2171 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2173 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
2175 (fetch_osf_core_registers): Likewise.
2176 (supply_gregset): Likewise.
2178 2002-04-22 J. Brobecker <brobecker@gnat.com>
2180 * symfile.h (get_section_index): Define.
2181 * symfile.c (get_section_index): New function.
2182 * mdebugread.c (SC_IS_SBSS): New macro.
2183 (SC_IS_BSS): Return true for the scBss storage class only, as
2184 the scSBss storage class refers to the .sbss section.
2185 (parse_partial_symbols): Discard the symbols which associated
2186 section does not exist.
2187 Make sure to use the .sbss section index for symbols which
2188 storage class is scBss, rather than using the .bss section index.
2190 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2192 * vax-tdep.c: Update copyright years.
2193 (vax_register_name): New function.
2194 (vax_register_byte): Ditto.
2195 (vax_register_raw_size): Ditto.
2196 (vax_register_virtual_size): Ditto.
2197 (vax_register_virtual_type): Ditto.
2198 * config/vax/tm-vax.h: Update copyright years.
2199 (REGISTER_NAMES): Remove.
2200 (REGISTER_NAME): Define.
2201 (REGISTER_BYTE): Use vax_register_byte.
2202 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
2203 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
2204 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
2206 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2208 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
2210 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
2212 2002-04-21 David S. Miller <davem@redhat.com>
2214 * arch-utils.c (generic_prologue_frameless_p): Kill
2215 SKIP_PROLOGUE_FRAMELESS_P code.
2216 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
2218 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
2219 * arc-tdep.c (arc_prologue_frameless_p): Implement.
2220 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
2222 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
2223 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
2224 (sparc_gdbarch_init): Pass it to
2225 set_gdbarch_prologue_frameless_p.
2227 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2229 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
2230 (alphabsd-nat.o): New dependency list.
2232 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2234 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
2236 (alpha-linux-tdep.o): New dependency list.
2237 (alphafbsd-tdep.o): Likewise.
2239 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2241 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
2243 * alpha-tdep.c: ...from here.
2244 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
2246 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2248 * config/alpha/tm-alpha.h: Move alpha_software_single_step
2249 prototype from here...
2250 * alpha-tdep.h: ...to here.
2252 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2254 * frame.h (selected_frame_level): Document as deprecated.
2255 (frame_relative_level): Declare.
2256 * stack.c (frame_relative_level): New function.
2257 (selected_frame_level): Document as deprecated.
2258 (select_frame): Do not set the selected_frame_level.
2260 * stack.c (frame_info, record_selected_frame): Update.
2261 (frame_command, current_frame_command): Update.
2262 (up_silently_base, up_command, down_silently_base): Update.
2263 (down_command): Update.
2264 * inflow.c (kill_command): Update.
2265 * tracepoint.c (finish_tfind_command): Update.
2266 * corelow.c (core_open): Update.
2267 * thread.c (info_threads_command): Update.
2268 (do_captured_thread_select): Update.
2269 * infcmd.c (finish_command): Update.
2270 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
2272 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2274 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
2276 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2278 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
2281 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2283 * alphafbsd-tdep.c: Update copyright years. Include
2285 (alphafbsd_use_struct_convention): Make static.
2286 (alphafbsd_init_abi): New function.
2287 (_initialize_alphafbsd_tdep): New function.
2288 * config/alpha/tm-fbsd.h: Update copyright years.
2289 (USE_STRUCT_CONVENTION): Remove.
2291 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2293 * alpha-tdep.c (alpha_abi_handler): New structure to describe
2294 an Alpha ABI variant.
2295 (alpha_abi_handler_list): Declare.
2296 (alpha_gdbarch_register_os_abi): New function.
2297 (alpha_gdbarch_init): Give registered ABI variant handlers a
2298 chance to tweak the gdbarch once we have set up defaults.
2299 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
2301 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2303 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
2304 to standard_coerce_float_to_double.
2305 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2307 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2309 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
2310 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
2311 from gdbarch_tdep rather than a constant.
2312 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
2313 the default text address for all Alpha Unix ABIs.
2314 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
2315 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
2317 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2319 * alpha-tdep.h: New file. Includes several Alpha target constants
2321 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
2322 let gdbarch deal with.
2323 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
2324 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
2326 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
2327 Alpha target register names.
2328 * alphabsd-nat.c: Likewise.
2329 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
2330 Alpha target register names. Make serveral routines static.
2331 (alpha_get_saved_register): New function.
2332 (alpha_abi_names): New.
2333 (process_note_abi_tag_sections): New function.
2334 (get_elfosabi): New function.
2335 (alpha_gdbarch_init): New function.
2336 (alpha_dump_tdep): New function.
2337 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
2339 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2341 * frame.c (find_saved_register): Delete #ifdef
2342 HAVE_REGISTER_WINDOWS code.
2343 * config/sparc/tm-sparc.h: Update comments.
2344 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
2346 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2348 * i960-tdep.c (i960_find_saved_register): New function.
2349 (i960_get_saved_register): New function.
2350 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
2351 (i960_get_saved_register): Declare.
2352 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
2354 2002-04-20 David S. Miller <davem@redhat.com>
2356 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
2358 2002-04-20 Andrew Cagney <ac131313@redhat.com>
2360 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
2361 instead of NUM_PSEUDO_REGS.
2363 2002-04-20 David S. Miller <davem@redhat.com>
2365 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
2366 GDB_MULTI_ARCH_PARTIAL
2367 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
2368 define, let tm-sp64.h do it.
2370 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
2372 * frame.c (find_saved_register): Avoid a NULL pointer
2373 dereference and actually walk the frame list.
2375 2002-04-20 Andrew Cagney <ac131313@redhat.com>
2377 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
2378 sorted in most most-recent-used order. Document.
2379 * gdbarch.h, gdbarch.c: Regenerate.
2381 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2383 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
2384 (add_inferior): Call create_register_cache.
2385 (clear_inferiors): Call free_register_cache.
2386 (inferior_regcache_data, set_inferior_regcache_data): New functions.
2387 * gdbserver/regcache.c (struct inferior_regcache_data): New.
2388 (registers): Remove.
2389 (get_regcache): New function.
2390 (create_register_cache, free_register_cache): New functions.
2391 (set_register_cache): Don't initialize the register cache here.
2392 (registers_to_string, registers_from_string, register_data): Call
2394 * gdbserver/regcache.h: Add prototypes.
2395 * gdbserver/server.h: Likewise.
2397 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2399 * gdbserver/mem-break.c: New file.
2400 * gdbserver/mem-break.h: New file.
2401 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
2403 * gdbserver/inferiors.c (struct inferior_info): Add target_data
2405 (clear_inferiors): Free target_data member if set.
2406 (inferior_target_data, set_inferior_target_data): New functions.
2407 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
2408 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
2409 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
2410 (struct inferior_linux_data): New.
2411 (linux_create_inferior): Use set_inferior_target_data.
2412 (linux_attach): Likewise. Call add_inferior.
2413 (linux_wait_for_one_inferior): New function.
2414 (linux_wait): Call it.
2415 (linux_write_memory): Add const.
2416 (initialize_low): Call set_breakpoint_data.
2417 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
2419 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
2421 * gdbserver/server.h: Include mem-break.h. Update inferior.c
2423 * gdbserver/target.c (read_inferior_memory)
2424 (write_inferior_memory): New functions.
2425 * gdbserver/target.h (read_inferior_memory)
2426 (write_inferior_memory): Change macros to prototypes.
2427 (struct target_ops): Update comments. Add const to write_memory
2430 2002-04-19 Andrew Cagney <ac131313@redhat.com>
2432 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
2434 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
2435 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
2436 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
2439 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
2442 * gdbtypes.c (init_simd_type): Rewrite using new functions.
2443 (build_builtin_type_vec128): Ditto.
2444 (append_composite_type_field): Fix calculation of type length in
2447 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
2449 * config/djgpp/README: Update.
2451 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
2454 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
2456 * alpha-tdep.c (setup_arbitrary_frame): Rename...
2457 (alpha_setup_arbitrary_frame): ...to this.
2458 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
2459 for alpha_setup_arbitrary_frame.
2461 2002-04-18 Andrew Cagney <cagney@redhat.com>
2463 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
2464 * gdbarch.h, gdbarch.c: Regenerate.
2466 * defs.h (breakpoint_from_pc_fn): Delete type definition.
2467 * target.h (memory_breakpoint_from_pc): Update declaration.
2468 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
2470 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
2471 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
2472 * mem-break.c (memory_breakpoint_from_pc): Ditto.
2473 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
2474 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
2475 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
2476 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
2477 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
2478 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
2479 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
2480 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
2481 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
2483 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
2485 * monitor.c (monitor_insert_breakpoint): Ditto.
2486 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
2488 * config/mcore/tm-mcore.h: Update copyright.
2489 * mem-break.c: Ditto.
2490 * xstormy16-tdep.c: Ditto.
2492 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
2494 * p-exp.y: Add precedence rule for '^' token.
2495 This removes the shift/reduce conflicts.
2496 Remove the comment concerning these shift/reduce conflicts.
2498 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
2500 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
2501 (registers_powerpc_nofp): New register set for processors
2502 without floating point unit.
2504 2002-04-18 David S. Miller <davem@redhat.com>
2506 * MAINTAINERS: Add myself to write-after-approval.
2508 2002-04-17 Michael Snyder <msnyder@redhat.com>
2510 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
2512 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2514 * rs6000-tdep.c (frame_initial_stack_address): Use
2515 frame_register_read to read the alloca_reg.
2517 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2519 * frame.c (find_saved_register): Find saved registers in the next
2523 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2525 * gdbarch.sh (LANG): Set to ``c''.
2527 2002-04-15 Andrew Cagney <ac131313@redhat.com>
2529 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
2531 2002-04-15 Andrew Cagney <ac131313@redhat.com>
2533 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
2536 * hpread.c (hpread_get_lntt): Add declaration.
2537 Also fix PR gdb/391.
2539 2002-04-14 Andrew Cagney <ac131313@redhat.com>
2541 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
2542 * aclocal.m4, configure: Re-generate.
2545 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
2547 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
2548 instead of tm_print_insn.
2550 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
2552 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
2554 2002-04-14 Andrew Cagney <ac131313@redhat.com>
2556 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
2557 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
2558 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
2560 2002-04-12 Don Howard <dhoward@redhat.com>
2562 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
2563 max_user_call_depth.
2564 (init_cmd_lists): Initialize the new value;
2565 * cli/cli-script.c (execute_user_command): Limit the call depth of
2566 user defined commands. This avoids a core-dump when user commands
2567 are infinitly recursive.
2569 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2571 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
2572 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
2573 from tdep struct instead of DEFAULT_LR_SAVE.
2574 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
2575 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
2576 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
2578 2002-04-12 Michael Snyder <msnyder@redhat.com>
2580 * Remote.c: Spelling fix.
2581 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
2582 If no symbol found for "sbrk", try "_sbrk".
2583 (make_output_phdrs): Use bfd_section_name.
2584 (gcore_copy_callback): Use bfd_section_name.
2585 * eval.c: Indentation fix-ups.
2586 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
2587 in case it gets applied to an address that is already
2588 in the instruction space.
2589 * cli/cli-decode.c (help_list): Allow long lines to wrap.
2590 * symfile.c: Fix indentation, long lines.
2591 * source.c: White space fix-up.
2593 2002-04-12 Andrew Cagney <cagney@redhat.com>
2595 * defs.h (read_relative_register_raw_bytes): Delete declaration.
2596 * frame.c (frame_register_read): New function. Return non-zero on
2598 (read_relative_register_raw_bytes_for_frame): Delete.
2599 (read_relative_register_raw_bytes): Delete.
2600 * frame.h (frame_register_read): Declare.
2601 * d30v-tdep.c: Update Copyright. Use frame_register_read.
2603 * infcmd.c (do_registers_info): Ditto.
2604 * hppa-tdep.c: Ditto.
2605 * rs6000-tdep.c: Ditto.
2606 * h8500-tdep.c: Ditto.
2607 * mips-tdep.c: Ditto.
2608 * h8300-tdep.c: Ditto.
2609 * z8k-tdep.c: Ditto.
2611 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2613 From Jimi X <jimix@watson.ibm.com>:
2614 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
2617 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2619 From Jimi X <jimix@watson.ibm.com>:
2620 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
2623 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2625 From Jimi X <jimix@watson.ibm.com>:
2626 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
2627 register sets for these processor variants.
2629 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
2631 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
2632 registers which are allowed to fail to store.
2633 * gdbserver/linux-low.h (linux_target_ops): Likewise.
2634 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
2635 (ppc_cannot_store_register): FPSCR may not be storable.
2636 * regformats/reg-ppc.dat: Support FPSCR.
2638 2002-04-11 Kevin Buettner <kevinb@redhat.com>
2640 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
2641 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
2642 Add fpscr as an invalid/unfetchable register.
2643 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
2644 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
2645 (fill_fpregset): Add support for register fpscr.
2646 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
2647 (fill_gregset): Account for the fact that register ``mq'' might
2649 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
2650 (registers_power): Add fpscr to register set at slot 71.
2651 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
2652 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
2654 2002-04-11 Michael Snyder <msnyder@redhat.com>
2656 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
2657 * configure: Regenerate.
2658 * config.in: Regenerate.
2659 * acconfig.h: Add define for _SYSCALL32.
2660 * core-sol2.c: Remove #define _SYSCALL32.
2661 * solib-legacy.c: Remove #define _SYSCALL32.
2663 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2665 * stack.c (select_frame): Cleanup internal error message, do not
2668 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2670 * stack.c (select_frame): Check that selected_frame and the
2671 specified level are as expected.
2672 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
2674 * frame.h (struct frame_info): Add field `level'. Update
2676 Work-in-progress PR gdb/464.
2678 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2680 * maint.c (maint_print_section_info): Rename print_section_info.
2681 (print_bfd_section_info, print_objfile_section_info): Update.
2682 * inferior.h (struct gdbarch): Add opaque declaration.
2683 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
2684 * gdbarch.h: Regenerate.
2686 2002-04-10 Michal Ludvig <mludvig@suse.cz>
2688 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
2689 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
2690 (kernel_u_size): Added.
2691 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
2692 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
2694 2002-04-04 Jim Ingham <jingham@apple.com>
2696 * valarith.c (find_size_for_pointer_math): New function, either returns
2697 the size for a pointer's target, returns 1 for void *, or errors for
2699 (value_add, value_sub): use find_size_for_pointer_math.
2701 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2703 * linux-low.c (linux_look_up_symbols): New hook.
2704 (linux_target_ops): Add linux_look_up_symbols.
2705 * remote-utils.c (decode_address): New function.
2706 (look_up_one_symbol): New function.
2707 * server.c (handle_query): Call target look_up_symbols hook.
2708 * server.h (look_up_one_symbol): Add prototype.
2709 * target.h (struct target_ops): Add look_up_symbols hook.
2711 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2713 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
2714 * ChangeLog: Correct paths in last ChangeLog entry.
2716 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2718 * gdbserver/linux-low.h: Remove obsolete prototypes.
2719 (struct linux_target_ops): New.
2720 (extern the_low_target): New.
2721 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2722 (register_addr): Use the_low_target explicitly.
2723 (fetch_register): Likewise.
2724 (usr_fetch_inferior_registers): Likewise.
2725 (usr_store_inferior_registers): Likewise.
2726 * gdbserver/linux-arm-low.c (num_regs): Remove.
2727 (arm_num_regs): Define.
2728 (arm_regmap): Renamed from regmap, made static.
2729 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
2731 (arm_cannot_store_register): Renamed from cannot_store_register,
2733 (the_low_target): New.
2734 * gdbserver/linux-i386-low.c (num_regs): Remove.
2735 (i386_num_regs): Define.
2736 (i386_regmap): Renamed from regmap, made static.
2737 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
2739 (i386_cannot_store_register): Renamed from cannot_store_register,
2741 (the_low_target): New.
2742 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2743 (ia64_num_regs): Define.
2744 (ia64_regmap): Renamed from regmap, made static.
2745 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
2747 (ia64_cannot_store_register): Renamed from cannot_store_register,
2749 (the_low_target): New.
2750 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2751 (m68k_num_regs): Define.
2752 (m68k_regmap): Renamed from regmap, made static.
2753 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
2755 (m68k_cannot_store_register): Renamed from cannot_store_register,
2757 (the_low_target): New.
2758 * gdbserver/linux-mips-low.c (num_regs): Remove.
2759 (mips_num_regs): Define.
2760 (mips_regmap): Renamed from regmap, made static.
2761 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
2763 (mips_cannot_store_register): Renamed from cannot_store_register,
2765 (the_low_target): New.
2766 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2767 (ppc_num_regs): Define.
2768 (ppc_regmap): Renamed from regmap, made static.
2769 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
2771 (ppc_cannot_store_register): Renamed from cannot_store_register,
2773 (the_low_target): New.
2774 * gdbserver/linux-s390-low.c (num_regs): Remove.
2775 (s390_num_regs): Define.
2776 (s390_regmap): Renamed from regmap, made static.
2777 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
2779 (s390_cannot_store_register): Renamed from cannot_store_register,
2781 (the_low_target): New.
2782 * gdbserver/linux-sh-low.c (num_regs): Remove.
2783 (sh_num_regs): Define.
2784 (sh_regmap): Renamed from regmap, made static.
2785 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
2787 (sh_cannot_store_register): Renamed from cannot_store_register,
2789 (the_low_target): New.
2790 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2791 (the_low_target): New.
2793 2002-04-09 Andrew Cagney <ac131313@redhat.com>
2795 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
2796 override FP_REGNUM with frame->fp. Update copyright.
2797 * parse.c (num_std_regs, std_regs): Delete.
2798 (target_map_name_to_register): Do not search std_regs. Update
2799 function description.
2800 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
2801 declarations. Update copyright.
2804 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2806 * gdbserver/Makefile.in: Add stamp-h target.
2807 * gdbserver/configure.in: Create stamp-h.
2808 * gdbserver/configure: Regenerated.
2810 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2812 * gdbserver/inferiors.c: New file.
2813 * gdbserver/target.c: New file.
2814 * gdbserver/target.h: New file.
2815 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
2817 * gdbserver/linux-low.c (inferior_pid): New static variable,
2818 moved from server.c.
2819 (linux_create_inferior): Renamed from create_inferior.
2820 Call add_inferior. Return 0 on success instead of a PID.
2821 (linux_attach): Renamed from myattach.
2822 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
2823 (linux_thread_alive): Renamed from mythread_alive.
2824 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
2826 (linux_resume): Renamed from myresume. Add missing ``return 0''.
2827 (regsets_store_inferior_registers): Correct error message.
2828 Add missing ``return 0''.
2829 (linux_fetch_registers): Renamed from fetch_inferior_registers.
2830 (linux_store_registers): Renamed from store_inferior_registers.
2831 (linux_read_memory): Renamed from read_inferior_memory.
2832 (linux_write_memory): Renamed from write_inferior_memory.
2833 (linux_target_ops): New structure.
2834 (initialize_low): Call set_target_ops ().
2835 * gdbserver/remote-utils.c (unhexify): New function.
2836 (hexify): New function.
2837 (input_interrupt): Send signals to ``signal_pid''.
2838 * gdbserver/server.c (inferior_pid): Remove.
2839 (start_inferior): Update create_inferior call.
2840 (attach_inferior): Call add_inferior.
2841 (handle_query): New function.
2842 (main): Call handle_query for `q' packets.
2843 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
2844 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2846 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2848 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
2850 * gdbserver/configure.in: Check for <string.h>
2851 * gdbserver/configure: Regenerate.
2852 * gdbserver/config.in: Regenerate.
2853 * gdbserver/gdbreplay.c: Include needed system headers.
2854 (remote_open): Remove strchr prototype.
2855 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
2856 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
2857 (supply_register_by_name): Likewise.
2858 (collect_register): Change buf argument to void *.
2859 (collect_register_by_name): Likewise.
2860 * gdbserver/regcache.h: Add missing prototypes.
2861 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
2862 * gdbserver/server.c (handle_query): New function.
2863 (attached): New static variable, moved out of main.
2864 (main): Quiet longjmp clobber warnings.
2865 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
2866 * gdbserver/utils.c (error): Remove NORETURN.
2869 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2871 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
2872 after the last symbol in a block.
2874 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
2876 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
2877 is non zero as a found symbol.
2879 2002-04-08 Andrew Cagney <ac131313@redhat.com>
2881 * findvar.c: Include "builtin-regs.h".
2882 (value_of_register): Call value_of_builtin_reg when applicable.
2883 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
2884 (target_map_name_to_register): Call
2885 builtin_reg_map_name_to_regnum.
2886 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
2887 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
2888 (builtin_regs_h): Define.
2889 (builtin-regs.o): New target.
2890 (findvar.o): Add $(builtin_regs_h).
2891 * builtin-regs.c, builtin-regs.h: New files.
2892 * std-regs.c: New file.
2893 Partial fix for PR gdb/251.
2895 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2897 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
2898 it's no longer required.
2900 2002-04-08 Andrew Cagney <ac131313@redhat.com>
2902 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
2904 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2906 From Jimi X <jimix@watson.ibm.com>:
2907 * rs6000-tdep.c (rs6000_software_single_step): Use
2908 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
2909 and size. Use target_insert_breakpoint() and
2910 target_remove_breakpoint() to insert and remove breakpoints
2911 instead of explicit memory reads and writes.
2913 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2915 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
2916 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
2917 ELF_OBJECT_FORMAT ifdef.
2919 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2921 From Jimi X <jimix@watson.ibm.com>:
2922 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
2924 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2926 From Jimi X <jimix@watson.ibm.com>:
2927 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
2928 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
2930 2002-04-07 Mark Kettenis <kettenis@gnu.org>
2932 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
2933 s/asprintf/xasprintf/.
2934 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
2936 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2938 I believe Jeff Law denies responsability for this one:
2939 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
2940 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
2941 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
2942 Work-around for PR gdb/366.
2944 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
2946 * remote-e7000.c (write_small, e7000_read_inferior_memory,
2947 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
2948 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
2950 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
2952 * sh-tdep.c (sh_fp_frame_init_saved_regs,
2953 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
2956 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2958 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
2961 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2963 * README (Reporting Bugs in GDB): Document the bug web page as the
2964 prefered way of submitting bugs.
2967 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2969 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
2971 * gdbarch.h, gdbarch.c: Re-generate.
2973 2002-04-07 Andreas Schwab <schwab@suse.de>
2975 * m68klinux-nat.c (fill_fpregset): Properly pass address of
2976 buffer to regcache_collect.
2978 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2980 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
2981 * gdbarch.c, gdbarch.h: Re-generate.
2983 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2985 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
2986 declaration. Fix -Werror.
2988 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
2990 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
2991 * gdbarch.c: Regenerate.
2993 2002-04-05 Michael Snyder <msnyder@redhat.com>
2995 * breakpoint.c (clear_command): Rewrite middle section to
2996 combine two loops with identical control conditions.
2997 Add a cleanup to eliminate a memory leak.
2998 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
3000 2002-04-05 H.J. Lu (hjl@gnu.org)
3002 * solib-svr4.c (bkpt_names): Add "__start".
3004 2002-04-04 Andrew Cagney <ac131313@redhat.com>
3006 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
3007 as test for 64 bit target.
3009 2002-04-05 Andrew Cagney <ac131313@redhat.com>
3011 * h8500-tdep.c (h8500_write_fp): Delete function.
3012 * dwarf2cfi.c (cfi_write_fp): Document as not used.
3013 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
3014 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
3015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
3016 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
3017 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
3019 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
3020 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
3021 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
3022 (d10v_write_fp): Delete function.
3023 * inferior.h (write_fp, generic_target_write_fp): Delete
3025 * regcache.c (generic_target_write_fp): Delete function.
3026 (write_fp): Delete function.
3027 * gdbarch.sh (TARGET_WRITE_FP): Delete.
3028 * gdbarch.h, gdbarch.c: Regenerate.
3029 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
3030 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
3031 (sparc64_write_fp): Delete declaration.
3032 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
3033 (h8500_write_fp): Delete declaration.
3035 2002-04-04 Andrew Cagney <ac131313@redhat.com>
3037 * sparc-tdep.c (sparc64_write_fp): Delete.
3038 (sparc_push_dummy_frame): Replace write_fp call with code to store
3040 (sparc_gdbarch_init): Do not initialize write_fp.
3042 2002-04-05 Kevin Buettner <kevinb@redhat.com>
3044 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
3047 2002-03-29 Jim Blandy <jimb@redhat.com>
3049 * stack.c (get_selected_block): Add new argument `addr_in_block',
3050 used to return the exact code address we used to select the block,
3052 * blockframe.c (get_frame_block, get_current_block): Same.
3053 * frame.h (get_frame_block, get_current_block,
3054 get_selected_block): Update declarations.
3055 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
3056 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
3058 2002-04-05 Michael Snyder <msnyder@redhat.com>
3060 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
3063 2002-04-05 J. Brobecker <brobecker@gnat.com>
3065 * utils.c (xfullpath): New function.
3066 * defs.h (xfullpath): Add declaration.
3067 * source.c (openp): Use xfullpath in place of gdb_realpath to
3068 avoid resolving the basename part of filenames when the
3069 associated file is a symbolic link. This fixes a potential
3070 inconsistency between the filenames known to GDB and the
3071 filenames it prints in the annotations.
3072 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
3073 to be able to match a filename with either the real filename, or
3074 the name of any symbolic link to this file.
3075 (lookup_partial_symtab): Ditto.
3077 2002-04-04 Michael Snyder <msnyder@redhat.com>
3079 * breakpoint.c: Add support for hardware breakpoints in overlays.
3080 (overlay_events_enabled): New state variable.
3081 (insert_breakpoints): Use overlay_events_enabled to decide
3082 whether to attempt to set a breakpoint at the overlay load addr.
3083 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3084 (remove_breakpoint): Use overlay_events_enabled to decide
3085 whether breakpoints need to be removed from overlay load addr.
3086 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3087 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
3088 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
3089 disable_overlay_breakpoints): Update overlay_events_enabled.
3091 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
3093 * dwarf2read.c (struct function_range): New.
3094 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
3095 (check_cu_functions): New.
3096 (read_file_scope): Initialize global function lists.
3097 Call dwarf_decode_line after processing children.
3098 (read_func_scope): Add to global function list.
3099 (dwarf_decode_lines): Call check_cu_functions everywhere
3100 record_line is called. Call record_line with a linenumber
3101 of 0 to mark sequence ends.
3103 2002-04-04 Michal Ludvig <mludvig@suse.cz>
3105 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
3106 change sync with glibc.
3108 2002-04-03 Jim Blandy <jimb@redhat.com>
3110 * configure.in: Call AC_C_INLINE.
3111 * configure: Regenerated.
3113 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
3115 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
3116 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
3118 2002-03-31 Mark Kettenis <kettenis@gnu.org>
3120 * NEWS: Mention gcore support on FreeBSD/i386.
3122 * fbsd-proc.c: New file.
3123 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
3124 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
3126 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
3129 2002-03-29 Jim Blandy <jimb@redhat.com>
3131 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
3132 unescaped newlines in string literals, but newer ones don't. So
3135 2002-03-26 Michael Snyder <msnyder@redhat.com>
3136 Andrew Cagney <cagney@redhat.com>
3138 * cli/cli-dump.c: New file. Dump memory to file,
3139 restore file to memory.
3140 * cli/cli-dump.h: New file.
3141 * Makefile.in: Add rules, dependencies for cli-dump.o.
3142 * NEWS: Mention new commands.
3144 2002-03-28 Michael Snyder <msnyder@redhat.com>
3146 * symfile.c (symbol_file_add): Move test for null symbols to later.
3148 2002-03-27 Andrew Cagney <ac131313@redhat.com>
3150 From veksler at il.ibm.com:
3151 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
3152 the xstrduped original path.
3155 2002-03-27 Michael Snyder <msnyder@redhat.com>
3157 * breakpoint.c (_initialize_breakpoint): Clean up help string.
3158 * infcmd.c (_initialize_infcmd): Ditto.
3159 * language.c (_initialize_language): Ditto.
3160 * symfile.c (_initialize_symfile): Ditto.
3161 * top.c (_init_main): Ditto.
3162 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3164 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
3166 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
3167 vector registers handling.
3168 (skip_prologue): Handle new AltiVec instructions. Fill in new
3169 fields of frame data.
3170 (frame_get_saved_regs): Fill in information for AltiVec registers.
3172 2002-03-27 Jim Blandy <jimb@redhat.com>
3174 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
3175 a function; leave this macro here to invoke that function.
3176 (symbol_init_mangled_name): Declaration for that function.
3177 * symtab.c (symbol_init_mangled_name): New function.
3179 2002-03-27 Andrew Cagney <ac131313@redhat.com>
3181 * valarith.c: Replace strerror with safe_strerror.
3182 * tracepoint.c: Ditto.
3184 * go32-nat.c: Ditto.
3188 2002-03-27 Andreas Schwab <schwab@suse.de>
3190 * event-top.c (command_line_handler): Remove useless if.
3192 2002-03-27 Andreas Jaeger <aj@suse.de>
3194 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
3197 2002-03-27 Michal Ludvig <mludvig@suse.cz>
3199 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
3200 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
3201 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
3202 (x86_64_linux_dr_get_status, supply_gregset),
3203 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
3204 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
3205 (x86_64_register_info_table): Add.
3206 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
3207 (x86_64_register_raw_size, x86_64_register_virtual_type),
3208 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
3209 general x86_64_register_info_table.
3210 (i386_gdbarch_init): gdbarch_register_bytes is now set
3211 dynamicaly during initialization.
3212 * regformats/reg-x86-64.dat: Synced with changes to registers above.
3213 * gdbserver/linux-x86-64-low.c: Ditto.
3215 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3217 * gdbserver/server.c (main): Call target_signal_to_host_p
3218 and target_signal_to_host on signals received from the remote.
3219 * gdbserver/remote-utils.c (prepare_resume_reply): Call
3220 target_signal_from_host on signals sent to the remote.
3221 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
3222 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
3224 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3226 * signals/signals.c: Include "server.h" in gdbserver build.
3227 (target_signal_from_name): Don't use STREQ.
3228 (_initialize_signals): Likewise. Don't include function in
3231 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3233 * signals.c: Moved to...
3234 * signals/signals.c: Here.
3235 * Makefile (signals.o): Update.
3237 2002-03-26 Jeff Law (law@redhat.com)
3239 * somread.c (som_symtab_read): Remove some commented out code and
3240 updated related comments. Do not set the minimal symbol table to
3241 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
3242 in a dynamic executable.
3243 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
3244 where we are unable to find the minimal symbol for the given
3247 2002-03-25 Jeff Law (law@redhat.com)
3249 * linux-proc.c (read_mapping): Scan up to end of line for filename.
3251 2002-03-25 Michal Ludvig <mludvig@suse.cz>
3253 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
3255 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3257 * command.h: Update copyright.
3258 (struct cmd_list_element): Replace definition with opaque
3260 (enum cmd_types): Document that it will eventually be moved to
3262 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
3263 (MALLOCED_REPLACEMENT): Delete macro.
3264 * Makefile.in (cli_decode_h): Add $(command_h).
3265 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
3266 * top.c: Include "cli/cli-decode.h".
3267 * completer.c: Include "cli/cli-decode.h".
3268 * maint.c: Include "cli/cli-decode.h".
3269 * cli/cli-decode.h: Include "command.h".
3270 (enum command_class): Delete.
3271 (enum cmd_types): Comment out.
3272 (enum cmd_auto_boolean): Delete.
3273 (enum var_types): Delete.
3275 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3277 * cli/cli-decode.c: Include "gdb_assert.h".
3278 (add_set_or_show_cmd): New static function.
3279 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
3280 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
3281 all fields, such as func, from the set command.
3283 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3285 * MAINTAINERS (sh-elf): Change warning flag to -w.
3287 2002-03-23 Andrew Cagney <cagney@redhat.com>
3289 * defs.h (error): Add printf format attribute.
3290 * thread-db.c (thread_from_lwp): Fix error format string.
3291 * stack.c (parse_frame_specification): Ditto.
3292 * cli/cli-decode.c (undef_cmd_error): Ditto.
3293 * scm-lang.c (scm_lookup_name): Ditto.
3294 * tracepoint.c (trace_error): Ditto.
3295 * remote-utils.c (usage): Ditto.
3296 * remote.c (compare_sections_command): Ditto.
3299 2002-03-22 Andrew Cagney <ac131313@redhat.com>
3301 * gdbtypes.c (append_composite_type_field): New function.
3302 (init_composite_type): New function.
3303 * gdbtypes.h (append_composite_type_field): Declare.
3304 (init_composite_type): Ditto.
3306 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
3308 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
3310 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
3311 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
3312 structure returning convention for SYSV ABI case, but not
3313 for GNU/Linux, FreeBSD, or NetBSD.
3315 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
3317 * symtab.h (lookup_block_symbol): Add mangled_name argument
3320 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
3321 with new mangled_name argument.
3322 * linespec.c (decode_line_1): Likewise.
3323 * valops (value_of_this): Likewise.
3324 * symtab.c (lookup_transparent_type): Likewise.
3325 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
3326 (lookup_symbol): If we are given a mangled name, pass it down
3327 to lookup_symbol_aux.
3328 (lookup_block_symbol): If we are given a mangled name to check
3329 against, only return symbols which match it.
3331 2002-03-22 Christopher Faylor <cgf@redhat.com>
3333 * win32-nat.c (child_create_inferior): Check for proper shell to use
3334 here, in case the user changes it on the fly.
3335 (_initialize_inftarg): Remove shell path considerations.
3337 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
3339 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
3340 for gdbarch_max_register_raw_size and max_register_virtual_size.
3341 Adjust copyright year.
3343 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
3345 * dbxread.c (process_one_symbol): Extend the first N_SLINE
3346 in a function to cover the entire beginning of the function
3347 as well if it does not already.
3349 2002-03-21 Tom Rix <trix@redhat.com>
3351 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
3352 (rs6000_ptrace64): Renamed from ptrace64.
3354 2002-03-20 Martin M. Hunt <hunt@redhat.com>
3356 * gdbserver/remote-utils.c (remote_open): Don't call
3357 getprotobyname, we're all using TCP here so just use
3359 * gdbserver/gdbreplay.c (remote_open): Ditto.
3361 2002-03-20 Martin M. Hunt <hunt@redhat.com>
3363 * regcache.c (_initialize_regcache): No need to call
3364 build_regcache() at this time; it gets called whenever
3365 the gdbarch changes.
3367 2002-03-20 David O'Brien <obrien@FreeBSD.org>
3369 * sparc-nat.c: Include sys/param.h where possible.
3371 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
3374 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
3375 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
3376 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
3378 * stabsread.c (rs6000_builtin_type): Likewise.
3379 (read_sun_floating_type): Likewise.
3381 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3383 * stabsread.c (read_member_functions): Remove skip code for duplicate
3384 constructor/destructor methods. Use standard parsing for these
3385 methods and just do not chain them to the list of methods after
3388 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
3390 * coffread.c: Remove redundant static declarations. Replace
3391 occurrences of `PTR' with `void *'.
3392 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
3393 * top.h (quit_cover): Likewise.
3394 * defs.h (catch_errors): Likewise.
3396 2002-03-18 Andrew Cagney <ac131313@redhat.com>
3398 * defs.h (XMALLOC): Define.
3399 * gdb-events.sh (XMALLOC): Delete macro.
3400 * gdb-events.c, gdb-events.h: Regenerate.
3401 * gdbarch.sh (XMALLOC): Delete macro.
3402 * gdbarch.c: Regenerate.
3403 * serial.c (XMALLOC): Delete macro.
3404 * ui-file.c (XMALLOC): Ditto.
3405 * ser-unix.h (XMALLOC): Ditto.
3406 * sh-tdep.c (XMALLOC): Ditto.
3407 * ui-out.c (XMALLOC): Ditto.
3408 * utils.c (XMALLOC): Ditto.
3409 * i386-tdep.c (XMALLOC): Ditto.
3410 * gdb-events.c (XMALLOC): Ditto.
3411 * d10v-tdep.c (XMALLOC): Ditto.
3412 * cli-out.c (XMALLOC): Ditto.
3414 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
3415 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
3416 * ui-file.c, ui-out.c: Ditto.
3418 2002-03-18 Andrew Cagney <ac131313@redhat.com>
3420 * command.h (struct cmd_list_element): Add field context.
3421 (set_cmd_context, get_cmd_context): Declare.
3422 * cli/cli-decode.h: Ditto.
3423 * cli/cli-decode.c (get_cmd_context): New function.
3424 (set_cmd_context): New function.
3425 (add_cmd): Initialize context.
3426 Part of fixing PR gdb/145 and PR gdb/146.
3428 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3430 * cli/cli-decode.c (cmd_type): New function.
3431 * command.h (cmd_type): Declare.
3432 * infrun.c (set_schedlock_func): Call function cmd_type.
3433 * kod.c (kod_set_os): Call cmd_type.
3434 * cris-tdep.c (cris_version_update): Use function cmd_type.
3435 (cris_mode_update, cris_abi_update): Ditto.
3437 * command.h: (execute_cmd_post_hook): Declare.
3438 (execute_cmd_pre_hook): Declare.
3439 * cli/cli-script.c (clear_hook_in_cleanup): New function.
3440 (execute_cmd_post_hook, execute_cmd_pre_hook): New
3441 functions. Execute pre/post hook while ensuring that afterwords
3443 * top.c (execute_command): Use execute_cmd_post_hook, and
3444 execute_cmd_pre_hook to execute pre/post commands.
3445 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
3447 (hook_stop_stub): Call execute_cmd_pre_hook.
3449 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3451 * kod.c (kod_set_os): Revert previous change. Is called by ``info
3452 set'' and this leads to a core dump. Move xstrdup of
3453 operating_system to after check that it is not NULL.
3455 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3457 * kod.c (kod_set_os): Remove unnecessary check that
3458 ``command->type'' is set_cmd.
3460 * valprint.c (set_input_radix): Use input_radix.
3461 (set_output_radix): Use output_radix.
3462 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
3465 2002-03-16 Andrew Cagney <ac131313@redhat.com>
3467 * value.h (struct value): Delete field ``substring_addr''. Change
3468 aligner fields to force_doublest_align, force_longest_align,
3469 force_core_addr_align and force_pointer_aligh.
3471 * value.h (struct value): Fix typo in above change.
3473 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3475 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
3476 to fix internal_error from ``maintenance print architecture''.
3478 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3480 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
3481 for gcc versions after gcc-2.8.1.
3483 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3485 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
3486 for method resolution. Restore adjustment of ``this'' pointer after
3487 calling value_struct_elt, which was accidentally removed during the
3490 2002-03-15 Andrew Cagney <ac131313@redhat.com>
3492 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
3494 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
3496 * value.h (value_of_register): Update.
3498 2002-03-14 Richard Henderson <rth@redhat.com>
3500 * configure.in: Detect declaration for canonicalize_file_name.
3501 * utils.c (canonicalize_file_name): Declare, if needed.
3502 (gdb_realpath): Prefer realpath if available and usable.
3503 * config.in, configure: Rebuild.
3505 2002-03-14 Richard Henderson <rth@redhat.com>
3507 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
3508 a constant array bound.
3510 * MAINTAINERS: Add myself to write-after-approval.
3512 2002-03-14 Michael Snyder <msnyder@redhat.com>
3514 * symfile.c (syms_from_objfile): Return immediately if no syms.
3515 (symbol_file_add): Return immediately if no syms.
3516 (find_sym_fns): Return immediately if no syms.
3518 2002-03-13 Michal Ludvig <mludvig@suse.cz>
3520 * gdbserver/remote-util.c (remote_open): Print remote-side's
3521 IP address when remote debugging over the network.
3523 2002-03-12 David O'Brien <obrien@FreeBSD.org>
3525 * config/sparc/fbsd.mh: Fix copyright.
3526 * config/sparc/fbsd.mt: Likewise.
3528 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
3530 * MAINTAINERS: Fix typo in name of gdb warnings option.
3531 (x86-64): Fix formating so that this can be parsed by awk.
3533 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
3535 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
3536 * defs.h: Include "gdb/signals.h".
3537 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
3539 2002-03-10 Michal Ludvig <mludvig@suse.cz>
3541 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
3542 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
3545 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
3546 Don Howard <dhoward@redhat.com>
3548 * mips-tdep.c (ST0_FR): Define.
3549 (mips2_fp_compat): New function, temporarily disabled.
3550 (mips_read_fp_register_single): New function.
3551 (mips_read_fp_register_double): New function.
3552 (mips_print_register): Use them.
3553 (do_fp_register_row): Likewise.
3555 2002-03-09 Andrew Cagney <ac131313@redhat.com>
3557 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
3560 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3562 * stabsread.c (read_member_functions): Fix is_stub test for
3563 static member functions, improve comment.
3565 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
3567 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
3568 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
3569 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
3570 commands that set boolean values.
3571 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
3572 (arm_rdi_resume): Always initialize PC.
3573 (arm_rdi_open): Don't use rslt as a boolean.
3574 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
3575 (arm_rdi_fetch_registers, arm_rdi_store_registers)
3576 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
3577 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
3579 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
3581 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
3582 * configure: Rebuilt.
3584 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3586 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
3587 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
3589 2002-03-06 Andrew Cagney <ac131313@redhat.com>
3591 * cli/cli-decode.c (set_cmd_completer): New function.
3592 * command.h (set_cmd_completer): Declare.
3593 * cli/cli-decode.h (set_cmd_completer): Ditto.
3595 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
3596 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3597 * win32-nat.c (_initialize_inftarg): Ditto.
3598 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3599 * proc-api.c (_initialize_proc_api): Ditto.
3600 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
3601 * source.c (_initialize_source): Ditto.
3602 * exec.c (_initialize_exec): Ditto.
3603 * solib.c (_initialize_solib): Ditto.
3604 * top.c (init_main): Ditto.
3605 * tracepoint.c (_initialize_tracepoint): Ditto.
3606 * symfile.c (_initialize_symfile): Ditto.
3607 * printcmd.c (_initialize_printcmd): Ditto.
3608 * infcmd.c (_initialize_infcmd): Ditto.
3609 * corefile.c (_initialize_core): Ditto.
3611 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3613 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
3615 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3617 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
3619 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3621 * NEWS: Update headings, 5.2 has branched.
3623 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
3625 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
3626 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
3627 (register_addr, REGISTER_RAW_SIZE): Likewise.
3628 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
3629 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
3631 2002-03-03 Michal Ludvig <mludvig@suse.cz>
3633 * MAINTAINERS (x86-64): Add myself.
3634 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
3635 changed value_ptr -> struct value *
3637 2002-03-01 David O'Brien <obrien@FreeBSD.org>
3639 * configure.host (sparc64-*-freebsd): Add.
3640 * configure.tgt: Likewise.
3641 * config/sparc/fbsd.mh: New file.
3642 * config/sparc/fbsd.mt: Likewise.
3643 * config/sparc/nm-fbsd.h: Likewise.
3644 * config/sparc/tm-fbsd.h: Likewise.
3646 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
3648 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
3649 regformats/reg-s390x.dat.
3651 2002-03-01 Andrew Cagney <ac131313@redhat.com>
3653 * utils.c: Add FIXME explaining true/false problem.
3655 2002-02-28 Andrew Cagney <ac131313@redhat.com>
3657 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
3659 2002-02-28 Michael Chastain <mec@shout.net>
3661 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
3663 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
3665 * gdbserver/linux-s390-low.c: New file.
3666 * regformats/reg-s390.dat: New file.
3667 * regformats/reg-s390x.dat: New file.
3668 * gdbserver/configure.srv: Add S/390.
3669 * gdbserver/Makefile.in: Add S/390.
3670 * configure.tgt: Enable gdbserver for S/390.
3672 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
3674 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
3675 first line of the doc string for "info dos", except at the end of
3676 the sentence, since the short help stops at the first period.
3678 2002-02-28 Jason Merrill <jason@redhat.com>
3680 * dwarf2read.c (dwarf_cfi_name): Add new codes.
3682 2002-02-27 Fred Fish <fnf@redhat.com>
3684 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
3685 comment (dumy -> dummy).
3687 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3689 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
3691 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
3693 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
3695 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3697 * gdbserver/acconfig.h: New file.
3698 * gdbserver/i387-fp.c: New file.
3699 * gdbserver/i387-fp.h: New file.
3700 * gdbserver/linux-x86-64.c: New file.
3701 * regformats/reg-x86-64.dat: New file.
3702 * configure.tgt: Add x86_64-*-linux* gdbserver support.
3703 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
3704 * gdbserver/configure.in: Add support for regsets.
3705 * gdbserver/config.in: Regenerate.
3706 * gdbserver/configure: Regenerate.
3707 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
3708 * gdbserver/linux-low.h: New file.
3709 * gdbserver/linux-low.c: Include "linux-low.h". Add support
3711 * gdbserver/linux-arm-low.c: Include "linux-low.h".
3712 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
3713 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
3714 * gdbserver/linux-mips-low.c: Include "linux-low.h".
3715 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
3716 * gdbserver/linux-sh-low.c: Include "linux-low.h".
3717 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
3718 "i387-fp.h". Add PTRACE_GETREGS and friends.
3719 * gdbserver/regcache.c (supply_register): New function.
3720 (supply_register_by_name): New function.
3721 (collect_register): New function.
3722 (collect_register_by_name): New function.
3724 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3726 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
3727 (config.status): Add configure.srv dependency.
3728 (server_h): Add config.h dependency.
3730 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3732 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
3733 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
3734 * gdbserver/configure.srv: Change i386-*-linux* to use
3737 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3739 * x86-64-tdep.c: Re-indent. Update copyright date.
3741 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3743 From Michal Ludvig <mludvig@suse.cz>:
3744 * x86-64-tdep.c (value.h): Delete.
3745 (gdb_assert.h): Include.
3746 (x86_64_register_convert_to_virtual,
3747 x86_64_register_convert_to_raw ): Add check which lets only
3748 floating-point values to be converted.
3749 (value_push): Delete.
3750 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
3751 (i386_gdbarch_init): Number of register_bytes fixed.
3753 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3755 * MAINTAINERS: Add x86-64 target.
3757 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3759 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
3760 * osfsolib.c (solib_map_sections): Ditto.
3761 * irix5-nat.c (solib_map_sections): Ditto.
3762 * corelow.c (gdb_check_format): Ditto.
3763 * symfile.c (symfile_bfd_open): Ditto.
3764 * solib.c (solib_map_sections): Ditto.
3767 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3769 * remote.c (_initialize_remote): By default, disable ``e'' and
3770 ``E'' step out-of-range packets.
3772 2002-02-26 Andreas Schwab <schwab@suse.de>
3774 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
3775 m68k_linux_frame_saved_pc.
3776 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
3778 (SIGCONTEXT_PC_OFFSET): Remove.
3779 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
3780 m68k_linux_sigtramp_saved_pc): New functions.
3781 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
3782 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
3783 (UCONTEXT_PC_OFFSET): Define.
3784 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
3785 non-RT and RT signal trampolines.
3787 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
3789 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
3790 (TARGET_NBPG, STACK_END_ADDR): Delete
3791 (VARIABLES_INSIDE_BLOCK): Delete.
3793 2002-02-25 Andrew Cagney <ac131313@redhat.com>
3795 * utils.c (perror_with_name): Make string parameter constant.
3796 (print_sys_errmsg): Ditto.
3798 * defs.h (perror_with_name): Update.
3799 (print_sys_errmsg): Update.
3802 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
3804 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
3805 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
3807 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3809 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
3810 if it already matches the current architecture from the exec file.
3811 Include arch-utils.h for gdbarch_info_init prototype.
3812 * Makefile.in (rs6000-nat.o): Update dependencies.
3814 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
3816 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
3817 list of exported variables.
3819 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
3821 * gdbserver/configure.srv: New file.
3822 * gdbserver/configure.in: Use configure.srv instead
3823 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
3825 * gdbserver/configure: Regenerated.
3826 * gdbserver/terminal.h: New file.
3827 * gdbserver/Makefile.in: Update for configure changes. Remove
3828 more unneeded include paths.
3830 2002-02-24 Andrew Cagney <ac131313@redhat.com>
3832 From wiz at danbala:
3833 * config/sparc/tm-sp64.h: Fix grammar and typos.
3836 2002-02-24 Andrew Cagney <ac131313@redhat.com>
3838 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
3839 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
3840 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
3841 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
3842 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
3843 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
3844 * s390-tdep.c: Ditto.
3845 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
3846 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
3847 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
3848 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
3849 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
3850 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
3851 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
3852 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
3853 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
3854 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
3857 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3859 * lin-thread.c: Delete file.
3860 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
3861 to gdb_proc_service.h.
3862 * configure: Re-generate.
3864 * ocd.c (ocd_open): Do not try to open the "ocd" device.
3865 * serial.c (serial_open): Delete check for "ocd".
3868 * Makefile.in (linux-thread.o): Delete target.
3869 * linux-thread.c: Delete file.
3871 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
3872 renamed SH files to be consistent.
3874 * symtab.c (sort_search_symbols): Use xfree.
3876 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
3878 * arm-linux-tdep.c (arm_linux_init_abi): Register
3879 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
3880 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
3881 definition with undef, since we don't want the sysvr4 definition.
3882 (SKIP_TRAMPOLINE_CODE): Likewise.
3884 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3886 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
3888 * configure.in: (AC_CHECK_FUNCS) Added test for
3889 canonicalize_file_name Regenerated.
3890 * config.in, configure: Regenerated.
3891 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
3892 defined use canonicalize_file_name.
3894 2002-02-23 Michael Chastain <mec@shout.net>
3896 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
3898 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3900 * README: Remove references to cygnus.com.
3901 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
3902 dot com'' form. Remove references to cygnus.com and sourceware.
3904 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3906 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
3907 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
3908 1003.1-2001 no longer allows "head -1".
3909 * gdb/Makefile.in (version.c): Likewise.
3910 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
3911 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
3912 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
3914 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3916 * cli/cli-decode.c (cmd_cfunc_eq): New function.
3917 * command.h (cmd_cfunc_eq): Declare.
3918 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
3920 * cli/cli-cmds.h (is_complete_command): Change parameter to a
3921 ``struct cmd_list_element *''.
3922 * cli/cli-cmds.c (is_complete_command): Update. Use
3924 * top.c (execute_command): Pass the command to
3925 is_complete_command.
3926 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
3928 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3930 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
3931 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
3932 architecture defines.
3933 * s390-tdep.c (s390_gdbarch_init): Likewise.
3935 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
3937 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
3938 (arm_linux_push_arguments): Likewise.
3939 (arm_linux_init_abi): Register them. Also register linux-specific
3941 (find_minsym_and_objfile): Use strcmp, not STREQ.
3942 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
3943 (arm_linux_call_dummy_words): Delete declaration.
3944 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
3945 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
3947 (LOWEST_PC): Delete.
3949 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3951 * maint.c (print_section_info): Do not prepend `0x' to filepos
3952 output, it will be handled by local_hex_string_custom.
3954 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
3956 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
3957 (store_newfpe_double, store_newfpe_extended, store_fpregister)
3958 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
3960 2002-02-22 Jim Blandy <jimb@redhat.com>
3962 Indicate that the bcache functions don't change the strings
3964 * bcache.h (bcache, hash): Add `const' keywords to declarations.
3965 * bcache.c (bcache, hash): Add `const' keywords to definitions.
3967 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
3969 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
3971 2002-02-21 Christopher Faylor <cgf@redhat.com>
3973 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
3974 find the complete path to a loaded DLL.
3976 2002-02-21 Fred Fish <fnf@redhat.com>
3978 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
3979 that marks the end of the range of a function, enter a line number
3980 entry that has a line number of zero and a PC offset that matches
3981 the end of the function. This starts a range of PC's for which no
3982 line number information is known.
3983 * symtab.c (find_pc_sect_line): If our best fit is in a range of
3984 PC's for which no line number info is found (line number is zero)
3985 then we didn't find any valid line information.
3986 * symtab.h: Document use of zero line number entry.
3988 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
3990 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
3991 (have_ptrace_getvrregs): Define for run time checks.
3992 (gdb_vrregset_t): New type for Altivec register handling.
3993 (fetch_register, store_register): Fetch/store altivec register
3995 (fetch_altivec_register, store_altivec_register): New functions.
3996 (supply_vrregset, fill_vrregset): New functions.
3997 (fetch_altivec_registers, store_altivec_registers): New functions.
3998 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
4001 2002-02-21 Jiri Smid <smid@suse.cz>
4003 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
4005 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
4007 * Makefile.in (armnbsd-nat.o): Update dependencies.
4008 * armnbsd-nat.c (supply_gregset): New function. Common code to
4009 supply the integer register set.
4010 (supply_fparegset): New function. Similar for FPA registers.
4011 (fetch_regs, fetch_fp_regs): Use them.
4012 (fetch_core_registers): Likewise.
4013 (fetch_elfcore_registers): New function.
4014 (arm_netbsd_elfcore_fns): New core-file type specification.
4015 (_initialize_arm_netbsd_nat): Register it.
4017 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
4019 * armnbsd-nat.c: Include gdbcore.h.
4020 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
4021 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
4022 'void' to declaration, to shut up ARI.
4023 (fetch_core_registers): Make static. Rewrite using supply_register.
4024 (arm_netbsd_core_fns): New core-file type specification.
4025 (_initialize_arm_netbsd_nat): New function.
4027 2002-02-21 Christopher Faylor <cgf@redhat.com>
4029 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
4032 2002-02-20 Christopher Faylor <cgf@redhat.com>
4034 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
4037 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4039 * jv-exp.y (parse_number): Change type of implicit longs
4040 to builtin_type_uint64.
4042 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4044 * gdbserver/linux-low.c (mywait): Change argument to waitpid
4045 to be an integer instead of a `union wait'.
4047 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4049 * mips-linux-nat.c: Call the operating system GNU/Linux.
4050 * mips-linux-tdep.c: Likewise.
4051 * mips-tdep.c: Likewise.
4053 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4056 * jv-exp.y (parse_number): Handle 64-bit integers.
4058 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4060 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
4061 AC_STDC_HEADERS to AC_HEADER_STDC.
4062 * gdbserver/configure: Regenerated.
4064 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
4066 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
4068 * sparc-tdep.c (get_longjmp_target): Likewise.
4070 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
4072 * News: Add news about ARM and Multi-arch. Mention the new target
4075 2002-02-19 Jim Blandy <jimb@redhat.com>
4077 * stabsread.c (error_type_complaint): Improve error message.
4079 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
4081 * gdbserver/README: Update documentation.
4082 * gdbserver/configure.in: Update configury to match documentation.
4083 * gdbserver/Makefile.in: Likewise.
4084 * gdbserver/configure: Regenerated.
4085 * gdbserver/aclocal.m4: New file, generated by aclocal.
4086 * gdbserver/config.in: New file, generated by autoheader.
4088 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4090 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
4093 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4095 * arm-tdep.h (enum arm_float_model): New enum.
4096 (struct gdbarch_tdep): Add fp_model.
4097 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
4098 up floating-point conversions until we know the floating-point model
4099 in use by the inferior. Don't complain about being unable to
4100 determine the ABI of the inferior when we don't have one.
4101 (arm_extract_return_value): Support different floating-point models.
4102 (arm_store_return_value): Likewise.
4103 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
4105 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
4107 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4109 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
4110 of ``current_gdbarch''.
4112 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4114 * armnbsd-nat.c : ANSIfy all function declarations.
4115 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
4116 (fetch_inferior_registers): Re-implement in terms of above.
4117 (store_register, store_regs, store_fp_register, store_fp_regs): New.
4118 (store_inferior_registers): Re-implement in terms of above.
4120 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4122 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
4124 * arm-linux-tdep.c: Likewise.
4125 * config/arm/tm-linux.h: Likewise.
4127 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4129 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
4130 * config/arm/nbsd.mt (TM_FILE): Delete.
4131 * config/arm/tm-nbsd.h: Delete.
4133 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4135 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
4136 Initialize CALL_DUMMY_LENGTH.
4138 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4140 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
4142 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
4143 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
4144 defines one thing and that is incorrect for this port.
4145 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
4147 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4149 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
4151 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4153 * win32-nat.c (display_selector): New function. Displays information
4154 about the information returned by GetThreadSelectorEntry API function.
4155 (display_selectors): New function. Displays the infomation of
4156 the selector given as argument, or of CS, DS ans FS selectors
4157 if no argument is given.
4158 ( _initialize_inftarg): Add "w32" as info prefix command.
4159 Add "info w32 selector" as command calling display_selectors.
4161 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
4163 * i386-tdep.c (get_longjmp_target): Fix compilation failure
4164 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
4167 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4169 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
4171 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4173 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
4174 (arm_fix_call_dummy): Call it.
4175 (arm_call_dummy_breakpoint_offset): Delete.
4176 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
4177 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
4179 2002-02-18 Andrew Cagney <ac131313@redhat.com>
4181 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
4182 Default to func_frame_chain_valid.
4183 * gdbarch.h, gdbarch.c: Re-generate.
4184 * frame.h (FRAME_CHAIN_VALID): Delete definition.
4186 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
4188 * ppc-linux-nat.c: Update copyright.
4189 (fetch_register, store_register): Add tid parameter, don't compute
4191 (fetch_ppc_registers, store_ppc_registers): Add tid
4192 parameter. Pass it along to callees.
4193 (fetch_inferior_registers, store_inferior_registers): Compute tid
4194 here, and pass it to calleed functions.
4195 (fill_gregset, supply_fpregset): Clean up formatting.
4197 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4199 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
4200 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
4202 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4204 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
4205 * gdbarch.c gdbarch.h: Regenerate.
4206 * breakpoint.c (create_longjmp_breakpoint): Always compile this
4208 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
4209 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
4210 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
4212 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
4213 * arm-tdep.c (arm_get_longjmp_target): New function.
4214 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
4215 this to a positive value register arm_get_longjmp_target as the
4217 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
4218 (arm_linux_init_abi): Set up longjmp description in tdep.
4219 * armnbsd-nat.c (get_longjmp_target): Delete.
4220 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
4221 description in tdep.
4222 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
4223 (get_longjmp_target): Delete declaration.
4224 (GET_LONGJMP_TARGET): Delete.
4225 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
4226 (GET_LONGJMP_TARGET): Delete.
4228 2002-02-17 Kevin Buettner <kevinb@redhat.com>
4230 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
4231 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
4232 of ``current_gdbarch''.
4234 2002-02-17 Tom Tromey <tromey@redhat.com>
4236 * cli/cli-cmds.c (compare_strings): New function.
4237 (complete_command): Only print each unique item once.
4238 * completer.h (complete_line): Declare.
4239 * completer.c (complete_line): New function.
4240 (line_completion_function): Use it.
4242 2002-02-16 Andrew Cagney <ac131313@redhat.com>
4244 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
4245 * gdbarch.h, gdbarch.c: Re-generate.
4247 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
4249 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
4251 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
4253 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4254 * valops.c (value_arg_coerce): Don't take the address of a reference
4255 to convert an argument to a reference.
4257 2002-02-15 Christopher Faylor <cgf@redhat.com>
4259 * win32-nat.c (get_image_name): New function.
4260 (handle_load_dll): Use get_image_name function.
4261 (get_child_debug_event): Avoid registering debug events until possibly
4262 execed process is started.
4263 (child_create_inferior): Allow invocation via shell so that command
4264 line redirection, etc. works ok.
4265 (_initialize_inftarg): Add new command: "set shell" to control whether
4266 a shell is used to start a process.
4268 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
4270 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
4271 instead of find_register_by_number.
4272 (cannot_store_register): Likewise.
4274 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
4276 * dwarf2read.c: Replace fprintf (stderr, ...) by
4277 fprintf_unfiltered (gdb_stderr, ...).
4279 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
4281 * gdbserver/gdbserver.1: Document --attach.
4283 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
4285 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
4287 * arm-tdep.c (arm_default_arm_le_breakpoint)
4288 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
4289 (arm_default_thumb_be_breakpoint): New. Initialize them from
4290 traditional breakpoint defines.
4291 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
4292 (arm_gdbarch_init): Initialize new breakpoint variables.
4293 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
4294 (arm_linux_init_abi): Initialize linux-specific breakpoint.
4295 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
4296 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
4298 (arm_netbsd_init_abi_common): ... here; new function.
4299 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
4300 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
4301 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
4302 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
4304 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
4306 * arm-tdep.h (enum arm_abi): New enum.
4307 (struct gdbarch_tdep): New structure.
4308 (LOWEST_PC): Provide a default.
4309 (arm_gdbarch_register_os_abi): Declare new function.
4310 * arm-tdep.c (arm_abi_names): New array.
4311 (process_note_abi_tag_sections): New function.
4312 (get_elfosabi): New function.
4313 (arm_gdbarch_register_os_abi): New function.
4314 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
4315 support for that ABI has been built in, then call the appropriate
4316 configuration routine. Use gdbarch_num_regs() to get the number
4318 (arm_dump_tdep): New function.
4319 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
4320 place-holder functions.
4321 (_initialize_arm_tdep): Register them.
4322 * config/arm/tm-arm.h (LOWEST_PC): Delete.
4324 * armnbsd-tdep.c: New file.
4325 * Makefile.in (armnbsd-tdep.o): Add dependencies.
4326 * config/arm/nbsd.mt (TDEPFILES): Add it.
4327 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
4329 * armnbsd-nat.c: Include regcache.h.
4330 * Makefile.in (armnbsd-nat.o): Update dependency list.
4332 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
4334 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4336 * gdbserver/Makefile.in: Fix typos in target rules.
4338 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4340 Fix part of PR gdb/267.
4341 * linespec.c (find_methods): Handle constructors specially for now.
4343 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
4345 * arm-tdep.c (arm_push_arguments): Eliminate special float type
4347 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
4348 standard_coerce_float_to_double().
4350 2002-02-14 Christopher Faylor <cgf@redhat.com>
4352 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
4355 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
4357 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
4358 find_variant_by_name, because it confuses the multiarch
4359 framework. Return NULL if there isn't an architecture with the
4360 user supplied name, instead of forcing a different one without
4361 recording the change with the multiarch machinery.
4362 (find_variant_by_name): Delete.
4364 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4366 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
4367 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
4369 2002-02-13 Martin M. Hunt <hunt@redhat.com>
4371 * stack.c (print_frame_info_base): When calling
4372 print_frame_info_listing_hook, set current_source_symtab.
4374 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4376 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
4377 and remove unused $(INCLUDE_DIR).
4378 Add regcache.c to OBS.
4379 Add generated register protocol files to clean target.
4380 Update dependencies for new objects, obsolete old target code.
4382 * gdbserver/linux-low.c: Remove all platform-specific code to
4383 new files. Remove various dead code. Update to use regcache
4385 * gdbserver/remote-utils.c (fromhex): Add return statement
4387 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
4389 (input_interrupt): Add integer parameter to match prototype
4390 of a signal handler.
4391 (outreg): Use register_data ().
4392 (prepare_resume_reply): Use gdbserver_expedite_regs.
4393 * gdbserver/server.c (main): Dynamically allocate own_buf because
4394 PBUFSIZ is no longer constant. Use registers_to_string () and
4395 registers_from_string ().
4396 * gdbserver/server.h: No longer include "defs.h". Add prototypes
4397 for error (), fatal (), and warning (). Update definition of
4398 PBUFSIZ to use regcache functionality. Add include guard.
4399 * gdbserver/utils.c (fatal): Add missing ``const''.
4400 (warning): New function.
4402 * regformats/regdat.sh: Include "regcache.h" in generated files.
4403 Provide init_registers () function.
4404 * regformats/regdef.h: Add prototype for set_register_cache ().
4407 * gdbserver/linux-arm-low.c: New file.
4408 * gdbserver/linux-i386-low.c: New file.
4409 * gdbserver/linux-ia64-low.c: New file.
4410 * gdbserver/linux-m68k-low.c: New file.
4411 * gdbserver/linux-mips-low.c: New file.
4412 * gdbserver/linux-ppc-low.c: New file.
4413 * gdbserver/linux-sh-low.c: New file.
4415 * gdbserver/regcache.c: New file.
4416 * gdbserver/regcache.h: New file.
4418 * gdbserver/low-linux.c: Removed obsolete file.
4420 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4422 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
4423 * config/i386/linux.mt: Likewise.
4424 * config/ia64/linux.mt: Likewise.
4425 * config/m68k/linux.mh: Likewise.
4426 * config/powerpc/linux.mh: Likewise.
4427 * config/mips/linux.mt: Likewise.
4429 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
4431 * config/i386/i386lynx.mh: Mark gdbserver variables
4432 as (currently) obsolete for this target.
4433 * config/i386/nbsd.mt: Likewise.
4434 * config/i386/nbsdelf.mt: Likewise.
4435 * config/m32r/m32r.mt: Likewise.
4436 * config/m68k/m68klynx.mh: Likewise.
4437 * config/m68k/nbsd.mt: Likewise.
4438 * config/m68k/sun3os4.mh: Likewise.
4439 * config/mips/vr5000.mt: Likewise.
4440 * config/ns32k/nbsd.mt: Likewise.
4441 * config/pa/hppabsd.mh: Likewise.
4442 * config/pa/hppaosf.mh: Likewise.
4443 * config/powerpc/nbsd.mt: Likewise.
4444 * config/rs6000/rs6000lynx.mh: Likewise.
4445 * config/s390/s390.mt: Likewise.
4446 * config/s390/s390x.mt: Likewise.
4447 * config/sparc/sparclynx.mh: Likewise.
4448 * config/sparc/sun4os4.mh: Likewise.
4449 * config/i386/x86-64linux.mt: Likewise.
4450 * config/sparc/linux.mh: Likewise.
4452 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4454 * configure.tgt: Configure gdbserver only for known working
4455 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
4456 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
4457 SUBDIRS if it is configured. Update comment for ${nativefile}.
4458 * configure: Regenerated.
4460 2002-02-13 Michael Snyder <msnyder@redhat.com>
4462 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
4464 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
4465 (default_gcore_mach): Just return 0, work around a problem in bfd.
4466 (default_gcore_target): OK to return NULL if exec_bfd is null.
4467 (make_mem_sec): Use a cast, avoid a warning.
4469 * procfs.c (find_memory_regions_callback): Use a cast instead of
4470 calling host_pointer_to_address (which complains if
4471 sizeof (host pointer) != sizeof (target pointer)).
4472 (procfs_make_note_section): Avoid overflow in psargs string.
4474 * procfs.c (procfs_make_note_section): Make the default
4475 implementation return an error.
4477 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
4479 * procfs.c (procfs_make_note_section): Provide a default definition
4480 (for alpha-dec-osf4.0f). Fix typos.
4482 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
4484 * linux-proc.c: Add include of regcache.h.
4485 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
4487 2002-02-13 Andrew Cagney <ac131313@redhat.com>
4489 From 2002-01-18 Greg McGary <greg@mcgary.org>:
4490 * memattr.c (create_mem_region): Disallow useless empty region.
4491 Regions are half-open intervals, so allow [A..B) [B..C) as
4494 2002-02-13 Michael Chastain <mec@shout.net>
4496 * defs.h: Kill CONST_PTR.
4497 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
4498 * c-lang.c (c_builtin_types): Likewise.
4499 * ch-lang.c (ch_builtin_types): Likewise.
4500 * f-lang.c (f_builtin_types): Likewise.
4501 * language.c (unknown_builtin_types): Likewise.
4502 * m2-lang.c (m2_builtin_types): Likewise.
4503 * p-lang.c (pascal_builtin_types): Likewise.
4504 * scm-lang.c (c_builtin_types): Likewise.
4506 2002-02-13 Keith Seitz <keiths@redhat.com>
4508 * arm-tdep.h (arm_get_next_pc): Add declaration.
4510 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
4512 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
4513 with other related struct-returning functions.
4514 (arm_extract_struct_value_address): New function.
4515 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
4516 initialize float_format, double_format and long_double_format as
4517 appropriate to the endianness of the target.
4518 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
4519 (arm_use_struct_convention): Delete declaration.
4520 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4522 2002-02-13 Keith Seitz <keiths@redhat.com>
4524 * defs.h (core_addr_to_string_nz): New function.
4526 2002-02-13 Mark Kettenis <kettenis@gnu.org>
4528 Apply missing bits of 2002-01-15 patch.
4529 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
4530 (fill_fpregset): Use i387_fill_fsave.
4532 2002-02-12 Keith Seitz <keiths@redhat.com>
4534 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
4535 (core_addr_to_string_nz): New function.
4537 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4539 * arm-linux-nat.c: Really include arm-tdep.h.
4540 * config/arm/tm-linux.h (struct type, struct value): Declare.
4542 2002-02-11 Michael Snyder <msnyder@redhat.com>
4544 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
4545 (gcore section): Ifdef for Solaris and Unixware only.
4546 (procfs_do_thread_registers): Unixware needs one lwpstatus
4547 per thread (not one prstatus or pstatus).
4548 (procfs_make_note_section): Iterate only over kernel threads (lwps),
4549 not over all gdb threads. For unixware, call elfcore_write_pstatus
4550 once before iterating over threads.
4552 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4554 * arm-tdep.h: New file.
4555 * arm-tdep.c: Include arm-tdep.h.
4556 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4557 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4558 (arm_print_float_info, arm_register_type, convert_to_extended)
4559 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4560 (arm_extract_return_value, arm_register_name): Make static.
4561 (arm_software_single_step): Similarly. Fix types in declaration.
4562 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
4563 (arm_store_return_value, arm_store_struct_return): New functions.
4564 (arm_gdbarch_init): Register the above functions. Also register
4565 call_dummy_start_offset, sizeof_call_dummy_words,
4566 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
4567 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
4568 max_register_virtual_size, register_size. Set up
4569 prologue_cache.saved_regs here, rather than ...
4570 (_initialize_arm_tdep): ... here.
4571 * config/arm/tm-arm.h (struct type, struct value): Delete forward
4573 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4574 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4575 (arm_print_float_info, arm_register_type, convert_to_extended)
4576 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4577 (arm_extract_return_value, arm_register_name): Delete declarations.
4578 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
4579 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
4580 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
4581 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
4582 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4583 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
4584 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
4585 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
4586 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
4587 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
4588 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
4589 (arm_get_next_pc): No-longer static -- these are needed by the RDI
4591 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
4592 * remote-rdi.c remote-rdp.c: Likewise.
4593 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
4594 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
4595 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
4598 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
4599 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
4600 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
4601 from non-ARM_ prefixed definitions.
4602 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
4604 * remote-rdi.c remote-rdp.c: Likewise.
4605 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
4607 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4609 * arm-tdep.c (arm_frameless_function_invocation)
4610 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4611 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4612 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4613 (arm_pop_frame, arm_get_next_pc): Make static.
4614 (arm_gdbarch_init): Register above in gdbarch structure.
4615 (arm_read_fp): Renamed from arm_target_read_fp.
4616 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
4617 * config/arm/tm-arm.h (arm_frameless_function_invocation)
4618 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4619 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4620 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4621 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
4622 (arm_pc_is_thumb_dummy): Delete declarations.
4623 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
4624 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
4625 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
4626 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
4628 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
4630 * symtab.c (compare_search_syms): New function.
4631 (sort_search_symbols): New function.
4632 (search_symbols): Sort symbols after searching rather than
4635 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4637 * NEWS: Linux -> GNU/Linux.
4639 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4641 * gdbarch.sh: For for level one methods, disallow a definition
4642 when partially multi-arched. Add comments explaining rationale.
4643 * gdbarch.h: Re-generate.
4645 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4647 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
4650 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4652 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
4654 * gdbarch.c: Re-generate.
4656 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4658 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
4659 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
4662 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4664 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
4666 (PUSH_ARGUMENTS): Switch to using predefault.
4667 * gdbarch.c: Regenerate.
4669 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4671 * valops.c (PUSH_ARGUMENTS): Delete definition.
4672 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
4673 partial. Default to default_push_arguments.
4674 * gdbarch.h, gdbarch.c: Regenerate.
4676 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4678 * defs.h (throw_exception): Rename return_to_top_level. Update
4680 * utils.c (error_stream, internal_verror, quit): Ditto.
4681 * top.c (throw_exception, catcher): Ditto.
4682 * sparclet-rom.c (sparclet_load): Ditto.
4683 * remote.c (interrupt_query, minitelnet): Ditto.
4684 * remote-sds.c (interrupt_query): Ditto.
4685 * remote-mips.c (mips_error, mips_kill): Ditto.
4686 * ocd.c (interrupt_query): Ditto.
4687 * monitor.c (monitor_interrupt_query): Ditto.
4688 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
4689 * target.h: Update comment.
4691 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
4693 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4695 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
4696 default_double_format.
4697 * gdbarch.h, gdbarch.c: Re-generate.
4698 * findvar.c (floatformat_unknown): Delete variable definition.
4699 * doublest.h (floatformat_unknown): Delete variable declaration.
4701 2002-02-09 Jim Blandy <jimb@redhat.com>
4703 * stabsread.c (read_type): Add code to parse Sun's syntax for
4704 prototyped function types.
4706 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4708 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
4709 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
4711 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4713 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
4714 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
4715 now _initialize_xcoffsolib gets called again and overrides the
4716 commands from solib.c in a native configuration.
4718 2002-02-09 Mark Kettenis <kettenis@gnu.org>
4720 * doublest.c (store_typed_floating): Don't try to return a value.
4723 2002-02-08 Jim Blandy <jimb@redhat.com>
4725 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
4726 is prototyped and has no arguments, print its argument list as
4729 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4731 * MAINTAINERS (write-after-approval): Add myself.
4732 (paper-trail): I've escaped!
4734 2002-02-08 Christopher Faylor <cgf@redhat.com>
4736 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
4738 (_initialize_check_for_gdb_ini): Ditto.
4740 2002-02-08 Martin M. Hunt <hunt@redhat.com>
4742 * win32-nat.c (cygwin_pid_to_str): Fix typo.
4743 xaprintf -> xasprintf.
4745 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
4747 * win32-nat.c: Remove use of printf and sprintf functions.
4749 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
4751 * arm-tdep.c (arm_frame_chain_valid): Make static.
4752 (arm_push_arguments): Likewise.
4753 (arm_gdbarch_init): New function.
4754 (_initialize_arm_tdep): Call it.
4755 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
4756 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
4757 (FRAME_CHAIN_VALID): Delete.
4758 (arm_frame_chain_valid): Delete declaration.
4759 (PUSH_ARGUMENTS): Delete.
4760 (arm_push_arguments): Delete declaration.
4761 (CALL_DUMMY_P): Delete.
4763 2002-02-08 Andrew Cagney <ac131313@redhat.com>
4764 Corinna Vinschen <vinschen@redhat.com>
4766 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
4767 on builtin float types.
4769 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
4771 * utils.c: Include <curses.h> before "bfd.h".
4772 * tui/tui-hooks.c: Likewise.
4773 * tui/tui.c: Likewise.
4774 * tui/tuiCommand.c: Likewise.
4775 * tui/tuiData.c: Likewise.
4776 * tui/tuiDataWin.c: Likewise.
4777 * tui/tuiDisassem.c: Likewise.
4778 * tui/tuiGeneralWin.c: Likewise.
4779 * tui/tuiIO.c: Likewise.
4780 * tui/tuiLayout.c: Likewise.
4781 * tui/tuiRegs.c: Likewise.
4782 * tui/tuiSource.c: Likewise.
4783 * tui/tuiSourceWin.c: Likewise.
4784 * tui/tuiStack.c: Likewise.
4785 * tui/tuiWin.c: Likewise.
4787 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
4789 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
4790 to include space for pseudoregs as well. Update loops accordingly.
4791 (sh_fp_frame_init_saved_regs): Ditto.
4792 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
4794 2002-02-07 Andrew Cagney <ac131313@redhat.com>
4796 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
4797 Add Richard Earnshaw to Arm maintainers.
4799 2002-02-07 Andrew Cagney <ac131313@redhat.com>
4801 * defs.h (warning_begin): Delete declaration.
4803 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
4806 2002-02-07 Michael Snyder <msnyder@redhat.com>
4808 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4809 Logic bug, remove misplaced else.
4811 2002-02-07 Klee Dienes <klee@apple.com>
4813 * fork-inferior.c (fork_inferior): Add '!' to the list of
4814 characters that need to be quoted when building a string for the
4815 shell. Quote '!' specifically with a backslash, since CSH chokes
4816 when trying to evaluate "str!str".
4818 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
4820 * rdi-share/host.h: Only provide a typedef for bool if it is not
4823 2002-02-04 Michael Snyder <msnyder@redhat.com>
4825 * breakpoint.h (enum bptype): Add new overlay event bp type.
4826 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
4828 * breakpoint.c (create_internal_breakpoint): New function.
4829 (internal_breakpoint_number): Moved into create_internal_breakpoint.
4830 (create_longjmp_breakpoint): Use create_internal_breakpoint.
4831 (create_thread_event_breakpoint): Ditto.
4832 (create_solib_event_breakpoint): Ditto.
4833 (create_overlay_event_breakpoint): New function.
4834 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
4835 (update_breakpoints_after_exec): Delete and re-initialize
4836 overlay event breakpoints after an exec. Add FIXME comment
4837 about longjmp breakpoint.
4838 (print_it_typical): Ignore overlay event breakpoints.
4839 (print_one_breakpoint): Ditto.
4841 (bpstat_what): Do not stop for overlay event breakpoints.
4842 (delete_breakpoint): Don't delete overlay event breakpoints.
4843 (breakpoint_re_set_one): Delete the overlay event breakpoint.
4844 (breakpoint_re_set): Re-create overlay event breakpoint.
4846 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
4847 (overlay_manual_command): Disable overlay breakpoints.
4848 (overlay_off_command): Disable overlay breakpoints.
4850 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
4852 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
4853 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
4854 to here from config/tm-arm.h.
4855 (coff_sym_is_thumb): Make static.
4856 (arm_elf_make_msymbol_special): New function.
4857 (arm_coff_make_msymbol_special): New function.
4858 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
4859 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
4860 (coff_sym_is_thumb): Delete declaration.
4861 (arm_elf_make_msymbol_special): Declare.
4862 (arm_coff_make_msymbol_special): Declare.
4863 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
4864 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
4866 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
4868 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
4870 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
4872 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
4873 * gdbarch.c gdbarch.h: Regenerate.
4874 * arch-utils.c (default_print_float_info): New function.
4875 * arch-utils.h (default_print_float_info): Prototype it.
4876 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
4877 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
4878 (PRINT_FLOAT_INFO): Document it.
4880 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
4881 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
4882 (PRINT_FLOAT_INFO): Define.
4884 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
4886 * win32-nat.c (_initialize_check_for_gdb_ini):
4887 Add typecast to sprintf argument to suppress a warning.
4889 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
4891 * win32-nat.c (last_sig): Changed type of variable to target_signal,
4892 to allow easier handling of pass state.
4893 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
4894 that gives exception name and address.
4895 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
4896 and set last_sig value to ourstatus->value.sig. Some missing
4898 (child_continue): Correctly report continue_status.
4899 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
4900 TARGET_SIGNAL_0 (new default value).
4901 (child_resume): consider sig argument passed to decide if
4902 the exception should be passed to debuggee or not.
4904 2002-02-05 Michael Snyder <msnyder@redhat.com>
4906 * regcache.c (fetch_register): Call target_fetch_register
4907 only if we don't call FETCH_PSEUDO_REGISTER.
4908 (store_register): Call target_store_register only if we
4909 don't call STORE_PSEUDO_REGISTER.
4911 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
4913 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
4914 ELF_MAKE_MSYMBOL_SPECIAL.
4915 * gdbarch.c, gdbarch.h: Regenerate.
4916 * arch-utils.c (default_make_msymbol_special): New function.
4917 * arch-utils.h (default_make_msymbol_special): Export.
4918 * elfread.c (elf_symtab_read): Compile use of
4919 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
4921 * coffread.c (coff_symtab_read): Ditto, for
4922 COFF_MAKE_MSYMBOL_SPECIAL.
4924 2002-02-05 Jim Blandy <jimb@redhat.com>
4926 * solib-svr4.c (svr4_truncate_ptr): New function.
4927 (svr4_relocate_section_addresses): Do the address arithmetic with
4928 the appropriate truncation for target addresses, even when
4929 CORE_ADDR is larger than a target address.
4931 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4933 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
4936 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4938 * gdbserver/linux-low.c (kill_inferior): Remove commented out
4941 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4943 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
4945 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4947 * gdbserver/linux-low.c: Remove unused include files.
4949 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4951 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
4952 (read_inferior_memory): Use it.
4953 (write_inferior_memory): Likewise.
4955 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4957 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
4958 grubbing through sys_errlist.
4960 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4962 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
4964 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4965 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
4967 2002-02-04 Andrew Cagney <ac131313@redhat.com>
4969 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
4970 (do_sfunc, set_cmd_sfunc): New functions.
4972 * command.h (struct cmd_list_element): Add field func.
4973 * cli/cli-decode.h (struct cmd_list_element): Ditto.
4974 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
4975 * cli/cli-decode.h: Ditto.
4977 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
4978 (help_all, help_cmd_list): Ditto.
4979 (find_cmd, complete_on_cmdlist): Ditto.
4980 * top.c (execute_command): Ditto.
4982 * cli/cli-setshow.c (do_setshow_command): Call func instead of
4985 * infcmd.c (notice_args_read): Fix function signature.
4987 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
4988 * cli/cli-decode.c (add_set_cmd): Ditto.
4989 * utils.c (initialize_utils): Ditto.
4990 * maint.c (_initialize_maint_cmds): Ditto.
4991 * infrun.c (_initialize_infrun): Ditto.
4992 * demangle.c (_initialize_demangler): Ditto.
4993 * remote.c (add_packet_config_cmd): Ditto.
4994 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4995 * cris-tdep.c (_initialize_cris_tdep): Ditto.
4996 * proc-api.c (_initialize_proc_api): Ditto.
4997 * kod.c (_initialize_kod): Ditto.
4998 * valprint.c (_initialize_valprint): Ditto.
4999 * top.c (init_main): Ditto.
5000 * infcmd.c (_initialize_infcmd): Ditto.
5001 * corefile.c (_initialize_core): Ditto.
5002 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5003 * arch-utils.c (initialize_current_architecture): Ditto.
5004 (_initialize_gdbarch_utils): Ditto.
5005 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
5007 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
5008 * wince.c (_initialize_inftarg): Ditto.
5009 * symfile.c (_initialize_symfile): Ditto.
5010 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5011 * language.c (_initialize_language): Ditto.
5012 * arc-tdep.c (_initialize_arc_tdep): Ditto.
5014 2002-02-04 Michael Snyder <msnyder@redhat.com>
5016 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
5018 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5020 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
5021 Add rules for building the register data files.
5023 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5025 * regformats/regdat.sh: Add braces to the definition of
5026 expedite_regs_${arch}.
5028 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5030 * regformats/regdef.h (struct reg): Add comment describing the
5031 requirements for offset and size fields.
5033 2002-02-04 Andreas Schwab <schwab@suse.de>
5035 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
5036 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
5038 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
5040 * gdbarch.sh (copyright): Update years in generated header.
5041 (SMASH_TEXT_ADDRESS): Add rule.
5042 * gdbarch.h, gdbarch.c: Re-generate.
5043 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
5044 * dbxread.c: Likewise.
5045 * dwarfread.c: Likewise.
5046 * elfread.c: Likewise.
5047 * somread.c: Likewise.
5049 * arm-tdep.c (arm_smash_text_address): New function.
5050 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
5052 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5054 Add support for hardware watchpoints on win32 native.
5055 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
5056 CONTEXT_DEBUG_REGISTERS.
5057 (dr variable): New variable. Static array containing a local copy
5059 (debug_registers_changed): New variable. Reflects when debug registers
5060 are changed and need to be written to inferior.
5061 (debug_registers_used): New variable. Reflects when any debug register
5062 was set, used when new threads are created.
5063 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
5065 (thread_rec): Set dr array if id is the thread of current_event .
5066 (child_continue, child_resume): Change the debug registers for all
5067 threads if debug_registers_changed.
5068 (child_add_thread): Change the debug registers if debug_registers_used.
5069 * config/i386/cygwin.mh: Add use of i386-nat.o file.
5070 Link nm.h to new nm-cygwin.h file.
5071 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
5072 of hardware registers.
5074 2002-02-03 Andrew Cagney <ac131313@redhat.com>
5076 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
5077 Restore behavour broken by 2002-01-20 Andrew Cagney
5078 <ac131313@redhat.com> IEEE_FLOAT removal.
5080 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5082 * c-valprint.c (c_val_print): Pass a proper valaddr to
5083 cp_print_class_method.
5084 * valops.c (search_struct_method): If there is only one method
5085 and args is NULL, return that method.
5087 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5089 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
5090 accessing tag_name directly.
5092 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5094 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
5095 of accessing tag_name directly.
5097 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5100 * gdbtypes.c (replace_type): New function.
5101 * gdbtypes.h (replace_type): Add prototype.
5102 * stabsread.c (read_type): Use replace_type.
5104 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
5106 * Makefile.in (memattr.o): Add missing dependencies rule.
5108 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5110 * breakpoint.c (break_at_finish_command): Really export.
5111 (break_at_finish_at_depth_command): Ditto.
5112 (tbreak_at_finish_command): Ditto.
5113 * hppa-tdep.c: Include completer.h.
5114 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
5115 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
5117 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5119 * utils.c (do_write): New function.
5120 (error_stream): Rewrite combining the code from error_begin and
5122 (verror): Rewrite using error_stream.
5123 (error_begin): Delete function.
5125 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5127 * utils.c (error_begin): Make static.
5128 * defs.h (error_begin): Delete declaration.
5130 * linespec.c (cplusplus_error): Replace cplusplus_hint.
5131 (decode_line_1): Use cplusplus_error instead of error_begin,
5132 cplusplus_hint and return_to_top_level.
5133 * coffread.c (coff_symfile_read): Use error instead of error_begin
5134 and return_to_top_level.
5135 * infrun.c (default_skip_permanent_breakpoint): Ditto.
5137 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5139 * language.h (type_error, range_error): Make string parameter
5141 * language.c (warning_pre_print): Delete extern declaration.
5142 * dwarfread.c (warning_pre_print): Ditto.
5143 * language.c (type_error, range_error): Rewrite to use verror and
5144 vwarning instead of warning_begin.
5146 2002-02-01 Michael Snyder <msnyder@redhat.com>
5148 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
5149 (set_ignore_count): Move misplaced comment back where it belongs.
5151 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5153 * command.h (NO_FUNCTION): Delete macro.
5154 * cli/cli-decode.h (NO_FUNCTION): Ditto.
5155 * top.c (execute_command): Replace NO_FUNCTION with NULL.
5156 * tracepoint.c (_initialize_tracepoint): Ditto.
5157 * cli/cli-decode.c (add_set_cmd): Ditto.
5158 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5160 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
5162 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
5163 Update ``this'' pointer when calling virtual functions.
5165 2002-02-01 Michael Snyder <msnyder@redhat.com>
5167 * breakpoint.c (create_temp_exception_breakpoint): Delete.
5168 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
5170 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
5172 * regformats/reg-arm.dat: New file.
5173 * regformats/reg-i386.dat: New file.
5174 * regformats/reg-ia64.dat: New file.
5175 * regformats/reg-m68k.dat: New file.
5176 * regformats/reg-mips.dat: New file.
5177 * regformats/reg-ppc.dat: New file.
5178 * regformats/reg-sh.dat: New file.
5179 * regformats/regdef.h: New file.
5180 * regformats/regdat.sh: New file.
5182 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
5184 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
5185 (arm_frame_args_address, arm_frame_locals_address): New functions.
5186 (arm_frame_num_args): New function.
5187 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
5188 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
5189 (FRMA_NUM_ARGS): Call arm_frame_num_args.
5191 2002-01-31 Michael Snyder <msnyder@redhat.com>
5193 * breakpoint.c (break_at_finish_command): Export.
5194 (break_at_finish_at_depth_command): Export.
5195 (tbreak_at_finish_command): Export.
5196 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
5197 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
5198 "tbreak" commands, which are HPPA specific.
5200 * printcmd.c (disassemble_command): Remove an ancient
5201 artifact of an old merge.
5203 * symfile.h (enum overlay_debugging_state):
5204 Define enum constant values for overlay mode.
5205 * symfile.c (overlay_debugging): Use enums instead of literals.
5206 (overlay_is_mapped, overlay_auto_command,
5207 overlay_manual_command): Ditto.
5209 * breakpoint.c (insert_breakpoints, remove_breakpoint,
5210 breakpoint_here_p, breakpoint_inserted_here_p,
5211 breakpoint_thread_match, bpstat_stop_status,
5212 describe_other_breakpoints, check_duplicates, clear_command):
5213 Coding standard fixes.
5215 * target.c (target_xfer_memory): Add spaces, coding standard.
5216 (do_xfer_memory): Add missing line to trust-readonly
5217 code: check bfd SEC_READONLY flag for section.
5219 2002-01-31 Andrew Cagney <ac131313@redhat.com>
5221 * PROBLEMS: Fix typo, 5.1->5.1.1.
5223 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
5225 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
5226 data symbols, since we search based on textlow and texthigh.
5227 (find_pc_sect_symtab): Likewise.
5229 2002-01-30 Andrew Cagney <ac131313@redhat.com>
5231 * defs.h (vwarning): Declare.
5232 * utils.c (vwarning): New function.
5233 (warning): Call vwarning.
5234 (warning_begin): Delete function.
5236 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
5237 the warning message.
5238 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
5241 2002-01-30 Michael Snyder <msnyder@redhat.com>
5243 * NEWS: Mention "set trust-readonly-sections" command.
5244 Mention generate-core-file command.
5246 2002-01-15 Michael Snyder <msnyder@redhat.com>
5248 * target.c: New command, "set trust-readonly-sections on".
5249 (do_xfer_memory): Honor the suggestion to trust readonly sections
5250 by reading them from the object file instead of from the target.
5251 (initialize_targets): Register command "set trust-readonly-sections".
5253 2002-01-29 Andrew Cagney <ac131313@redhat.com>
5255 * parse.c (target_map_name_to_register): Simplify, search regs and
5256 pseudo-regs using a single loop.
5258 2002-01-30 Andrew Cagney <ac131313@redhat.com>
5260 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
5262 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
5264 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
5265 * config/i386/i386v42mp.mh: Add i387-nat.o .
5266 * i386v4-nat.c: Include i387-nat.h.
5267 (supply_fpregset): Use i387_supply_fsave.
5268 (fill_fpregset): Use i387_fill_fsave.
5270 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
5272 * arm-tdep.c (arm_call_dummy_words): Define.
5273 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
5274 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
5275 (CALL_DUMMY_WORDS): Define.
5276 (arm_call_dummy_words): Declare.
5277 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
5278 (arm_linux_call_dummy_words): Declare.
5280 2002-01-30 Andreas Schwab <schwab@suse.de>
5282 * m68klinux-nat.c: Fix last change to use regcache_collect
5283 instead of referencing registers[] directly.
5285 2002-01-29 Andrew Cagney <ac131313@redhat.com>
5287 * parse.c (target_map_name_to_register): Delete code wrapped in
5288 #ifdef REGISTER_NAME_ALIAS_HOOK.
5290 2002-01-28 Michael Snyder <msnyder@redhat.com>
5292 * regcache.c (legacy_read_register_gen): Need to be able to
5293 read pseudo-register as well as real register.
5294 (legacy_write_register_gen): Ditto.
5296 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5298 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5299 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
5300 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
5301 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
5302 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
5303 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
5304 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
5305 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
5306 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
5307 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5308 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
5309 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
5310 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
5311 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
5312 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
5313 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
5314 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
5315 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
5316 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
5317 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
5319 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5321 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
5322 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
5323 (initialize_current_architecture): Update target_byte_order using
5324 information from BFD.
5325 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
5326 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
5328 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5330 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
5331 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
5333 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
5334 #ifdef INVALID_FLOAT.
5335 * infcmd.c (do_registers_info): Ditto.
5336 * values.c (unpack_double): Ditto. Add comment.
5338 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
5339 already commented out.
5341 2002-01-26 Andreas Schwab <schwab@suse.de>
5343 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5344 * m68klinux-nat.c: Update ptrace interface for fetching/storing
5345 registers and add support for PTRACE_GETREGS.
5347 2002-01-24 Andrew Cagney <ac131313@redhat.com>
5349 GDB 5.1.1 released from 5.1 branch.
5350 * NEWS: Add 5.1.1 news.
5351 * README: Sync with 5.1 branch.
5353 2002-01-23 Fred Fish <fnf@redhat.com>
5355 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
5356 stabstring on initial malloc. Reallocing will copy it for us,
5359 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
5361 * Makefile.in (hpread_h): Delete.
5362 (HFILES_NO_SRCDIR): Remove hpread.h.
5363 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
5364 (hpread.o): Update dependencies.
5365 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
5367 * hp-psymtab-read.c: Remove file.
5368 * hp-symtab-read.c: Remove file.
5369 * hpread.h: Remove file.
5371 * hpread.c: Merge all contents of hp-psymtab-read.c,
5372 hp-symtab-read.c and hpread.h into this file, as it was prior to
5375 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
5376 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
5377 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
5378 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
5380 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
5382 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
5383 fill_gregset): Call gdbarch_tdep() just once, assign result to
5384 variable and use that, instead of calling the function several
5387 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5389 * configure.host: Accept sparcv9 as alias for sparc64.
5390 * configure.tgt: Likewise.
5392 2002-01-22 Kevin Buettner <kevinb@redhat.com>
5394 * solib-aix5.c (build_so_list_from_mapfile)
5395 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
5396 arguments is not reversed.
5397 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
5398 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
5400 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
5402 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
5403 modified version of obsolete sh_fetch_pseudo_register.
5404 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
5405 (sh4_register_read): New function.
5406 (sh_pseudo_register_write): New function. Renamed and modified
5407 version of obsolete sh_store_pseudo_register.
5408 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
5409 (sh4_register_write): New function.
5410 (sh_gdbarch_init): Remove setting of gdbarch function
5411 fetch_pseudo_register and store_pseudo_register. Remove setting of
5412 register_convert_to_raw, register_convert_to_virtual,
5413 register_convertible.
5414 (sh_sh4_register_convertible): Delete. No longer needed. All is
5415 taken care by architecture specific functions
5416 register_read/register_write.
5417 (sh_sh4_register_convert_to_virtual): Make static.
5418 (sh_sh4_register_convert_to_raw): Ditto.
5420 2002-01-22 Andrew Cagney <ac131313@redhat.com>
5422 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
5423 (floatformat_is_nan, floatformat_mantissa): Ditto.
5425 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
5426 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
5427 builtin_type_ieee_double_little,
5428 builtin_type_ieee_double_littlebyte_bigword,
5429 builtin_type_m68881_ext, builtin_type_i960_ext,
5430 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
5431 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
5432 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
5433 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
5435 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
5437 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
5438 parameter. Set frameless flag if it exists and depended of
5439 whether the scanned function is frameless or not.
5440 (xstormy16_skip_prologue): If function is frameless, return
5441 result of xstormy16_scan_prologue().
5442 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
5445 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
5447 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
5448 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
5449 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
5450 sh_sh4_register_byte, sh_sh4_register_raw_size,
5451 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
5452 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
5453 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
5454 sh_store_pseudo_register, sh_do_pseudo_register): Call
5455 gdbarch_tdep() just once, assign result to variable and use that,
5456 instead of calling the function several times.
5458 2002-01-20 Mark Kettenis <kettenis@gnu.org>
5460 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
5461 macros instead of LAST_FPU_CTRL_REGNUM.
5462 (store_register): Likewise.
5464 2002-01-21 Jim Blandy <jimb@redhat.com>
5466 * infcmd.c (run_command): Check that the `exec' target layer's BFD
5467 is up-to-date before running the program, not just when a program
5470 2002-01-21 Fred Fish <fnf@redhat.com>
5472 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
5473 when we have found all instructions we are looking for.
5475 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
5477 * arm-tdep.c (arm_register_name): New function.
5478 (arm_registers_names): Make static.
5479 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
5480 (arm_register_name): Declare.
5481 (REGISTER_NAME): Use it.
5483 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
5484 Kevin Buettner <kevinb@redhat.com>
5486 Convert arm targets to new FRAME interface.
5487 * arm-tdep.c (struct frame_extra_info): Remove fsr.
5488 (arm_frame_find_save_regs): Delete.
5489 (arm_frame_init_saved_regs): New.
5490 (arm_init_extra_frame_info): Alloacte saved_regs as required.
5491 Allocate extra_info as required. Convert all uses of fsr.regs
5492 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
5494 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
5495 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
5496 (check_prologue_cache, save_prologue_cache): Likewise.
5497 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
5498 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
5499 (FRAME_FIND_SAVED_REGS): Delete.
5500 (arm_frame_find_saved_regs): Delete prototype.
5501 (arm_frame_init_saved_regs): New prototype.
5502 (FRAME_INIT_SAVED_REGS): Define.
5504 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5506 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
5508 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5510 From Jeff Law <law@redhat.com>:
5511 * infttrace.c: Include <sys/pstat.h>.
5512 (child_pid_to_exec_file): Revamp. Use pstat call to get the
5513 exec file if the ttrace equivalent fails.
5515 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5517 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
5518 (closeLogFile): Ditto.
5520 2002-01-20 Michael Chastain <mec@shout.net>
5522 * top.c (print_gdb_version): Bump copyright year to 2002.
5524 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5526 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
5527 Zannoni and Eli Zaretskii.
5529 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5531 * buildsym.c: Update copyright years.
5532 * c-typeprint.c: Likewise.
5533 * dwarf2read.c: Likewise.
5534 * f-typeprint.c: Likewise.
5535 * gdbtypes.c: Likewise.
5536 * gdbtypes.h: Likewise.
5537 * hp-symtab-read.c: Likewise.
5538 * hpread.c: Likewise.
5539 * mdebugread.c: Likewise.
5540 * p-typeprint.c: Likewise.
5542 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5544 * remote-sim.c (gdbsim_open): Simplify code testing the macro
5545 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
5546 byte-order selectable.
5547 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
5548 * arch-utils.c: Ditto.
5549 (set_endian): Ditto.
5550 (set_endian_from_file): Ditto.
5551 * gdbserver/low-sim.c (create_inferior): Ditto.
5552 * gdbarch.sh: Ditto.
5553 * gdbarch.h: Re-generate.
5554 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5555 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
5556 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
5557 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5558 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5559 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5560 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
5561 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
5563 * config/mips/tm-wince.h: Remove #undef of macro
5564 TARGET_BYTE_ORDER_SELECTABLE.
5565 * config/sh/tm-wince.h: Ditto.
5567 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5569 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
5570 member function fields. Add accessor macro
5571 TYPE_FN_FIELD_ARTIFICIAL.
5572 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
5573 * c-typeprint.c (c_type_print_base): Skip artificial member
5576 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5578 * f-typeprint.c: Delete unused function f_type_print_args.
5579 * p-typeprint.c: Delete unused function pascal_type_print_args.
5581 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5583 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
5584 comment. Add ``artificial'' to ``union field_location''.
5586 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
5588 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
5589 * mdebugread.c (parse_symbol): Likewise.
5590 * stabsread.c (define_symbol): Likewise.
5591 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
5592 initializing TYPE_FIELD_BITPOS to n (obsolete).
5593 (hpread_doc_function_type): Likewise.
5594 * hpread.c (hpread_function_type): Likewise.
5596 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5598 * configure.in (host_makefile_frag): Only require a host makefile
5599 fragment when a native build.
5600 * configure: Re-generate.
5602 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5604 * doublest.h (floatformat_from_type): Declare.
5605 * doublest.c (floatformat_from_type): New function.
5606 (convert_typed_floating): Use.
5608 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
5609 call to function floatformat_from_type.
5611 * gdbarch.sh (IEEE_FLOAT): Delete.
5612 * gdbarch.h, gdbarch.c: Re-generate.
5613 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
5614 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
5615 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
5616 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
5617 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
5618 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
5619 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
5620 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
5621 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
5622 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
5623 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
5624 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
5626 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
5627 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5628 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5629 * sh-tdep.c (sh_gdbarch_init): Ditto.
5630 * mips-tdep.c (mips_gdbarch_init): Ditto.
5631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5632 * cris-tdep.c (cris_gdbarch_init): Ditto.
5634 2002-01-20 Jiri Smid <smid@suse.cz>
5636 * configure.host, configure.tgt: Support x86-64.
5637 * NEWS: Note new target x86-64.
5639 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
5640 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
5641 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
5642 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
5643 x86-64-linux-nat.o): Fix dependencies.
5645 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5647 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
5648 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
5649 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
5650 * config/sparc/xm-sun4os4.h: Delete file.
5651 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
5653 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5655 * config/sparc/sparclynx.mh (XM_FILE): Delete.
5656 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
5657 * config/m68k/m68klynx.mh (XM_FILE): Delete.
5658 * config/i386/i386lynx.mh (XM_FILE): Delete.
5659 * config/rs6000/xm-rs6000ly.h: Delete file.
5660 * config/sparc/xm-sparclynx.h: Delete file.
5661 * config/m68k/xm-m68klynx.h: Delete file.
5662 * config/i386/xm-i386lynx.h: Delete file.
5663 * config/xm-lynx.h: Delete file.
5664 * config/djgpp/fnchange.lst: Update.
5666 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5668 * alpha-tdep.c (alpha_register_byte): New function.
5669 (alpha_register_raw_size): Ditto.
5670 (alpha_register_virtual_size): Ditto.
5671 (alpha_skip_prologue_internal): Renamed from
5672 alpha_skip_prologue.
5673 (alpha_skip_prologue): New version that calls
5674 alpha_skip_prologue_internal.
5675 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
5676 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
5677 second argument from alpha_skip_prologue.
5678 (REGISTER_BYTE): Use alpha_register_byte.
5679 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
5680 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
5681 (FRAMELESS_FUNCTION_INVOCATION): Use
5682 generic_frameless_function_invocation_not.
5683 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
5684 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
5686 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5688 * config/mips/xm-news-mips.h: Delete file.
5689 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
5691 * config/m88k/xm-m88k.h: Delete file.
5692 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
5693 * config/m88k/xm-delta88v4.h: Ditto.
5694 * config/m88k/xm-delta88.h: Ditto.
5696 * config/alpha/xm-fbsd.h: Delete file.
5697 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
5699 * config/sparc/xm-sparc.h: Delete file.
5700 * Makefile.in (xm-sun4os4.h): Delete dependency.
5701 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
5702 * config/sparc/xm-sun4os4.h: Ditto.
5703 * config/sparc/xm-linux.h: Ditto.
5705 * config/i386/xm-windows.h: Delete file.
5707 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5709 * utils.c: Include <sys/param.h> for MAXPATHLEN.
5710 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
5712 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5714 * alpha-tdep.c (alpha_call_dummy_words): New.
5715 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
5716 (CALL_DUMMY_P): Define.
5717 (CALL_DUMMY_WORDS): Define.
5718 (SIZEOF_CALL_DUMMY_WORDS): Define.
5720 2002-01-19 Per Bothner <per@bothner.com>
5722 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
5723 isn't NULL, which can happen with some gcj-3.x-produced code.
5725 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5727 * alpha-tdep.c (alpha_register_virtual_type): New function.
5728 (alpha_init_frame_pc_first): Ditto.
5729 (alpha_fix_call_dummy): Ditto.
5730 (alpha_store_struct_return): Ditto.
5731 (alpha_extract_struct_value_address): Ditto.
5732 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
5733 alpha_register_virtual_type.
5734 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
5735 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
5736 alpha_extract_struct_value_address.
5737 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
5738 (INIT_FRAME_PC): Use init_frame_pc_noop.
5739 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
5741 2002-01-19 Mark Kettenis <kettenis@gnu.org>
5743 * i386gnu-nat.c: Include "i386-tdep.h".
5744 (fetch_fpregs): Simplify code dealing with uninitialized floating
5745 point states such that it doesn't require FP7_REGNUM.
5747 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5749 * alpha-tdep.c (frame_extra_info): New.
5750 (alpha_find_saved_regs): Make static. Use
5752 (alpha_frame_init_saved_regs): New function.
5753 (alpha_frame_saved_pc): Use frame->extra_info.
5754 (temp_saved_regs): Don't declare as struct frame_saved_regs.
5755 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
5756 (init_extra_frame_info): Rename to...
5757 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
5758 (alpha_print_extra_frame_info): New function.
5759 (alpha_frame_locals_address): Ditto.
5760 (alpha_frame_args_address): Ditto.
5761 (alpha_pop_frame): Use frame->extra_info.
5762 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
5763 alpha_frame_args_address.
5764 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
5765 (alpha_find_saved_regs): Remove prototype.
5766 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
5767 (EXTRA_FRAME_INFO): Remove.
5768 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
5769 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
5771 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5773 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
5774 (alpha_cannot_fetch_register): Ditto.
5775 (alpha_cannot_store_register): Ditto.
5776 (alpha_register_convertible): Ditto.
5777 (alpha_use_struct_convention): Ditto.
5778 * config/alpha/tm-alpha.h: Update copyright years.
5779 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
5780 (INNER_THAN): Use core_addr_lessthan.
5781 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
5782 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
5783 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
5784 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
5785 (FRAME_CHAIN): Remove unnecessary cast.
5787 2002-01-18 Andrew Cagney <ac131313@redhat.com>
5789 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
5792 2002-01-18 Andrew Cagney <ac131313@redhat.com>
5794 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
5795 * monitor.c, remote-array.c, remote-bug.c: Ditto.
5796 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
5797 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
5798 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
5799 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
5800 * x86-64-linux-nat.c: Ditto.
5802 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5804 * alpha-tdep.c (alpha_register_name): New function.
5805 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
5806 (REGISTER_NAME): Define.
5808 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5810 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
5812 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5814 * alpha-tdep.c: Update copyright years.
5815 (alpha_next_pc): New function.
5816 (alpha_software_single_step): Ditto.
5817 * config/alpha/tm-alpha.h: Add prototype for
5818 alpha_software_single_step.
5820 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5822 * alphabsd-nat.c: Update copyright years.
5823 (fill_gregset): Use regcache_collect.
5824 (fill_fpregset): Likewise.
5825 (fetch_inferior_registers): Only fetch integer registers
5826 if requested to do so.
5827 (store_inferior_registers): Only store integer registers
5828 if requested to do so.
5830 2002-01-17 Andrew Cagney <ac131313@redhat.com>
5832 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
5833 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
5834 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
5835 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
5836 * config/alpha/fbsd.mh (XDEPFILES): Delete.
5837 * config/arm/linux.mh (XDEPFILES): Delete.
5838 * config/arm/nbsd.mh (XDEPFILES): Delete.
5839 * config/i386/i386dgux.mh (XDEPFILES): Delete.
5840 * config/i386/i386sol2.mh (XDEPFILES): Delete.
5841 * config/i386/i386m3.mh (XDEPFILES): Delete.
5842 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
5843 * config/i386/i386gnu.mh (XDEPFILES): Delete.
5844 * config/i386/fbsd.mh (XDEPFILES): Delete.
5845 * config/i386/i386bsd.mh (XDEPFILES): Delete.
5846 * config/i386/i386sco5.mh (XDEPFILES): Delete.
5847 * config/i386/i386v4.mh (XDEPFILES): Delete.
5848 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
5849 * config/i386/i386sco4.mh (XDEPFILES): Delete.
5850 * config/i386/i386aix.mh (XDEPFILES): Delete.
5851 * config/i386/go32.mh (XDEPFILES): Delete.
5852 * config/i386/cygwin.mh (XDEPFILES): Delete.
5853 * config/i386/i386lynx.mh (XDEPFILES): Delete.
5854 * config/i386/i386mach.mh (XDEPFILES): Delete.
5855 * config/i386/i386v32.mh (XDEPFILES): Delete.
5856 * config/i386/linux.mh (XDEPFILES): Delete.
5857 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
5858 * config/i386/ncr3000.mh (XDEPFILES): Delete.
5859 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
5860 * config/i386/i386sco.mh (XDEPFILES): Delete.
5861 * config/i386/i386v.mh (XDEPFILES): Delete.
5862 * config/i386/nbsd.mh (XDEPFILES): Delete.
5863 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
5864 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
5865 * config/i386/symmetry.mh (XDEPFILES): Delete.
5866 * config/i386/obsd.mh (XDEPFILES): Delete.
5867 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
5868 * config/ia64/linux.mh (XDEPFILES): Delete.
5869 * config/ia64/aix.mh (XDEPFILES): Delete.
5870 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
5871 * config/m68k/dpx2.mh (XDEPFILES): Delete.
5872 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
5873 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
5874 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
5875 * config/m68k/linux.mh (XDEPFILES): Delete.
5876 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
5877 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
5878 * config/m68k/nbsd.mh (XDEPFILES): Delete.
5879 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
5880 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
5881 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
5882 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
5883 * config/m88k/delta88.mh (XDEPFILES): Delete.
5884 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
5885 * config/m88k/m88k.mh (XDEPFILES): Delete.
5886 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
5887 * config/mips/linux.mh (XDEPFILES): Delete.
5888 * config/mips/irix6.mh (XDEPFILES): Delete.
5889 * config/mips/irix5.mh (XDEPFILES): Delete.
5890 * config/mips/irix4.mh (XDEPFILES): Delete.
5891 * config/mips/irix3.mh (XDEPFILES): Delete.
5892 * config/mips/decstation.mh (XDEPFILES): Delete.
5893 * config/mips/mipsm3.mh (XDEPFILES): Delete.
5894 (NATDEPFILES): Move core-aout.o to here.
5895 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
5896 * config/pa/hpux1020.mh (XDEPFILES): Delete.
5897 * config/pa/hppabsd.mh (XDEPFILES): Delete.
5898 * config/pa/hppahpux.mh (XDEPFILES): Delete.
5899 * config/pa/hpux11w.mh (XDEPFILES): Delete.
5900 * config/pa/hppaosf.mh (XDEPFILES): Delete.
5901 * config/pa/hpux11.mh (XDEPFILES): Delete.
5902 * config/powerpc/aix.mh (XDEPFILES): Delete.
5903 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
5904 * config/powerpc/linux.mh (XDEPFILES): Delete.
5905 * config/romp/rtbsd.mh: Rename XDEPFILES.
5906 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
5907 * config/rs6000/aix4.mh (XDEPFILES): Delete.
5908 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
5909 * config/s390/s390.mh (XDEPFILES): Delete.
5910 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
5911 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
5912 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
5913 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
5914 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
5915 * config/sparc/nbsd.mh (XDEPFILES): Delete.
5916 * config/sparc/linux.mh (XDEPFILES): Delete.
5917 * config/vax/vaxult.mh (XDEPFILES): Delete.
5918 * config/vax/vaxult2.mh (XDEPFILES): Delete.
5919 * Makefile.in (DEPFILES): Remove XDEPFILES.
5921 2002-01-17 Andrew Cagney <ac131313@redhat.com>
5923 * utils.c (internal_verror): Fix comments, default is yes not no.
5924 Update queries to match. Default to quit and dump core.
5926 2002-01-17 Andrew Cagney <ac131313@redhat.com>
5928 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
5930 * defs.h, event-top.c, gdbcmd.h: Ditto.
5931 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
5932 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
5933 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
5934 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
5935 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
5936 * mi/mi-main.c:Ditto.
5938 * stack.c, symfile.c: Update copyright.
5940 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
5942 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
5943 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
5944 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
5945 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
5947 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
5949 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
5950 * gdbserver/low-lynx.c (myattach): Likewise.
5951 * gdbserver/low-nbsd.c (myattach): Likewise.
5952 * gdbserver/low-sim.c (myattach): Likewise.
5953 * gdbserver/low-sparc.c (myattach): Likewise.
5954 * gdbserver/low-sun3.c (myattach): Likewise.
5956 * gdbserver/low-linux.c (myattach): New function.
5958 * gdbserver/server.c (attach_inferior): New function.
5959 (main): Handle "--attach".
5961 2002-01-16 Andrew Cagney <ac131313@redhat.com>
5963 * MAINTAINERS (language support): Daniel Jacobwitz is C++
5966 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
5968 * c-typeprint.c (is_type_conversion_operator): Add additional
5969 check for non-conversion operators.
5971 2002-01-15 Michael Snyder <msnyder@redhat.com>
5973 * linux-proc.c: Add "info proc" command, a la procfs.c.
5974 (read_mapping): New function, abstract and re-use code.
5975 (linux_find_memory_regions): Use new func read_mapping.
5976 (linux_info_proc_cmd): New function, implement "info proc".
5977 (_initialize_linux_proc): Add new command "info proc".
5979 2002-01-15 Michael Snyder <msnyder@redhat.com>
5981 * symfile.c (generic_load): Use bfd_map_over_sections method
5982 instead of manipulating bfd structure members directly.
5983 (add_section_size_callback): New function, bfd sections callback
5984 used by generic_load.
5985 (load_sections_callback): New function, bfd sections callback
5986 used by generic_load.
5988 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
5990 [Based on work by Jim Blandy]
5991 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
5992 (builtin_type_vec128): Export.
5993 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
5995 (builtin_type_vec128): New builtin type for 128 bit vector
5997 (build_gdbtypes): Initialize builtin_type_v16qi and
5998 builtin_type_v8hi. Create the vec128 register builtin type
6000 (build_builtin_type_vec128): New function.
6001 (_initialize_gdbtypes): Register builtin_type_v16qi and
6002 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
6003 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
6004 AltiVec register to new builtin type.
6006 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
6008 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
6011 2002-01-14 Andrew Cagney <ac131313@redhat.com>
6013 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
6014 CLEAN_UP_REGISTER_VALUE.
6015 * regcache.c (supply_register): Update only call.
6017 2002-01-14 Andrew Cagney <ac131313@redhat.com>
6019 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6020 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6021 a29k-*-vxworks* targets as obsolete.
6023 2002-01-14 Michael Snyder <msnyder@redhat.com>
6025 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
6026 until we can resolve portability issues.
6027 * gregset.h: Remove references to fpxregs.
6028 * gcore.c (gcore_command): Initialize note_sec to NULL.
6030 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6032 * signals.c (target_signal_to_name): Rewrite. Only use
6033 signals[].name when in bounds and non-NULL.
6035 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6037 From Petr Ledvina <ledvinap@kae.zcu.cz>:
6038 * signals.c (target_signal_to_name): Verify that SIG is within the
6039 bounds of the signals array.
6041 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6043 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
6045 2002-01-13 Keith Seitz <keiths@redhat.com>
6047 * stack.c (print_frame_info_base): Print the frame's pc
6048 only if when print_frame_info_listing_hook is not defined.
6050 2002-01-13 Keith Seitz <keiths@redhat.com>
6052 * varobj.c (varobj_set_value): Make sure that there were no
6053 errors evaluating the object before attempting to set its
6055 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
6056 so this offset adjustment is no longer necessary.
6057 (create_child): Don't set the error flag if the child is
6059 (value_of_child): If value_fetch_lazy fails, return NULL
6060 so that callers will be notified that an error occurred.
6061 (c_value_of_variable): Delay check of variable's validity
6062 until later. We actually want all structs and unions to have
6064 Do not return "???" for variables which could not be evaluated.
6065 This error condition must be returned to the caller so that it
6066 can get the error condition from gdb.
6067 (cplus_name_of_child): Adjust index for vptr before figuring
6068 out the name of the child.
6069 (cplus_value_of_child): If a child's (real) parent is not valid,
6070 don't even bother trying to give a value for it. Just return
6071 an error. Change all instances in this function.
6072 (cplus_type_of_child): If our parent is one of the "fake"
6073 parents, we need to get at the type of the real parent, and
6074 derive the child's true type using this information.
6076 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6078 From 2002-01-09 John Marshall <johnm@falch.net>:
6079 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
6080 sources.redhat.com, and tweak some related URLs which had
6081 suffered from linkrot.
6083 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6086 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
6087 structures passed in registers.
6089 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
6091 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
6092 white space which prevented compilation. Reported by DSK
6093 <dsk@student.unsw.edu.au>.
6095 2002-01-11 Michael Snyder <msnyder@redhat.com>
6097 * symfile.c (build_section_addr_info_from_section_tab):
6098 Use bfd access method instead of manipulating bfd directly.
6099 (syms_from_objfile): Ditto.
6100 (simple_overlay_update_1): Ditto.
6101 (simple_overlay_update): Ditto.
6102 (generic_load): Ditto.
6103 (overlay_unmapped_address): FIXME comment, bfd access methods.
6104 (sections_overlap): FIXME comment, bfd access methods.
6105 (pc_in_mapped_range): FIXME comment, bfd access methods.
6106 (pc_in_unmapped_range): FIXME comment, bfd access methods.
6107 (section_is_mapped): FIXME comment, bfd access methods.
6108 (section_is_overlay): FIXME comment, bfd access methods.
6110 * symfile.c (generic_load): Whitespace and long line cleanups.
6111 Remove duplicate variable, change several local variables to
6112 more appropriate data types.
6113 (print_transfer_performance): Use %lu instead of %ld for ulongs.
6115 2002-01-12 Andrew Cagney <ac131313@redhat.com>
6118 * language.c (longest_local_hex_string_custom): Use phex_nz to
6119 convert NUM to a hex string.
6121 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
6123 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
6125 Update Copyright year.
6127 2002-01-12 Andrew Cagney <ac131313@redhat.com>
6129 * language.c (longest_raw_hex_string): Delete unused function.
6131 2002-01-11 Petr Sorfa <petrs@caldera.com>
6133 * MAINTAINERS (write-after-approval): Add myself.
6134 * dwarf2read.c (read_tag_string_type): Handling of
6136 (read_tag_string_type): FORTRAN fix to prevent propagation of
6138 (set_cu_language): Handling of DW_LANG_Fortran95
6140 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6142 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
6143 GETPID(inferior_ptid).
6144 (store_inferior_registers): Likewise.
6146 2002-01-10 Jason Merrill <jason@redhat.com>
6148 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
6151 2002-01-10 Andrew Cagney <ac131313@redhat.com>
6153 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
6154 and bfd/elf32-sh-nbsd.c.
6156 2002-01-10 Michael Snyder <msnyder@redhat.com>
6158 * NEWS: Mention --pid and corefile/proc-id behavior change.
6160 * Makefile.in: Add rules for gcore.o and linux-proc.o.
6161 * gcore.c: Include cli/cli-decode.h instead of command.h.
6163 * main.c (captured_main): Add new command line option "--pid".
6164 If the second command line argument (following the symbol-file)
6165 begins with a digit, try to attach to it before trying to open
6167 (print_gdb_help): Document the "--pid" argument.
6169 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
6171 * completer.c (command_completer): New function.
6173 * completer.h <command_completer>: Add prototype.
6175 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
6176 completer for the "help" command.
6178 2002-01-09 Jason Merrill <jason@redhat.com>
6180 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
6182 2002-01-09 Michael Snyder <msnyder@redhat.com>
6184 * i386-linux-nat.c (fill_fpxregset): Make global.
6185 (store_fpxregset): Ditto.
6187 * gregset.h (gdb_fpxregset_t): Define.
6188 (supply_fpxregset): Prototype.
6189 (fill_fpxregset): Prototype.
6191 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
6193 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
6195 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
6196 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
6197 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
6199 2002-01-09 Andrew Cagney <ac131313@redhat.com>
6201 * MAINTAINERS: Update target maintainer rules so that any
6202 Maintainer can approve a tested patch for a maintenance-only
6205 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
6207 * MAINTAINERS (write-after-approval): Add myself.
6209 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
6212 2002-01-08 Michael Snyder <msnyder@redhat.com>
6214 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
6215 real name of the executable, rather than the /proc name.
6217 2002-01-03 Michael Snyder <msnyder@redhat.com>
6219 Implement a "generate-core-file" command in gdb, save target state.
6220 * gcore.c: New file. Implement new command 'generate-core-file'.
6221 Save a corefile image of the current state of the inferior.
6222 * linux-proc.c: Add linux-specific code for saving corefiles.
6223 * target.h (struct target_ops): Add new target vectors for saving
6224 corefiles; to_find_memory_regions and to_make_corefile_notes.
6225 (target_find_memory_regions): New macro.
6226 (target_make_corefile_notes): New macro.
6227 * target.c (update_current_target): Inherit new target methods.
6228 (dummy_find_memory_regions): New place-holder method.
6229 (dummy_make_corefile_notes): New place-holder method.
6230 (init_dummy_target): Initialize new dummy target vectors.
6231 * exec.c (exec_set_find_memory_regions): New function.
6232 Allow the exec_ops vector for memory regions to be taken over.
6233 (exec_make_note_section): New function, target vector method.
6234 * defs.h (exec_set_find_memory_regions): Export prototype.
6235 * procfs.c (proc_find_memory_regions): New function, corefile method.
6236 (procfs_make_note_section): New function, corefile method.
6237 (init_procfs_ops): Set new target vector pointers.
6238 (find_memory_regions_callback): New function.
6239 (procfs_do_thread_registers): New function.
6240 (procfs_corefile_thread_callback): New function.
6241 * sol-thread.c (sol_find_memory_regions): New function.
6242 (sol_make_note_section): New function.
6243 (init_sol_thread_ops): Initialize new target vectors.
6244 * inftarg.c (inftarg_set_find_memory_regions): New function.
6245 Allow to_find_memory_regions vector to be taken over.
6246 (inftarg_set_make_corefile_notes): New function.
6247 Allow to_make_corefile_notes vector to be taken over.
6248 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
6249 interface layer if not target_has_execution (may be a corefile).
6250 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
6251 * config/sparc/sun4sol2.mh: Ditto.
6252 * config/alpha/alpha-linux.mh: Ditto.
6253 * config/arm/linux.mh: Ditto.
6254 * config/i386/x86-64linux.mh: Ditto.
6255 * config/ia64/linux.mh: Ditto.
6256 * config/m68k/linux.mh: Ditto.
6257 * config/mips/linux.mh: Ditto.
6258 * config/powerpc/linux.mh: Ditto.
6259 * config/sparc/linux.mh: Ditto.
6261 2002-01-07 Michael Snyder <msnyder@redhat.com>
6263 * arm-linux-nat.c: Remove references to regcache.c internal data
6264 (registers[] and register_valid[]).
6266 2002-01-07 Michael Snyder <msnyder@redhat.com>
6268 * linux-proc.c: New file. Implement child_pid_to_exec_file,
6269 so that attaching to a pid will automatically read the process's
6270 symbol file and shlibs.
6271 * Makefile.in: Add rule for linux-proc.o.
6272 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
6273 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
6274 * config/arm/linux.mh: Ditto.
6275 * config/i386/linux.mh: Ditto.
6276 * config/i386/x86-64linux.mh: Ditto.
6277 * config/ia64/linux.mh: Ditto.
6278 * config/m68k/linux.mh: Ditto.
6279 * config/mips/linux.mh: Ditto.
6280 * config/powerpc/linux.mh: Ditto.
6281 * config/sparc/linux.mh: Ditto.
6283 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
6285 * win32-nat.c: Add i386-tdep.h dependency.
6287 2002-01-07 Michael Snyder <msnyder@redhat.com>
6289 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
6290 instead of bfd_get_arch_size. Don't bail out just because
6291 there's no exec_bfd.
6293 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
6294 * p-valprint.c (pascal_object_print_value): Ditto.
6295 * somread.c (som_symtab_read): Ditto.
6296 * symfile.c (simple_free_overlay_region_table): Ditto.
6297 * valops.c (value_assign): Ditto.
6299 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
6300 use tilde_expand and strerror for opening save-tracepoints file.
6302 * thread-db.c (thread_db_new_objfile): Indendation fix.
6304 * infptrace.c (GDB_MAX_ALLOCA): New define.
6305 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
6306 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
6307 can be overridden with whatever value is appropriate to the host).
6308 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
6309 alloca to allocate potentially large buffer.
6310 * rs6000-nat.c (child_xfer_memory): Ditto.
6311 * symm-nat.c (child_xfer_memory): Ditto.
6312 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
6314 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
6316 From Nick Clifton <nickc@redhat.com>
6317 * d10v-tdep.c: Set STACK_START to 0x200bffe.
6319 2002-01-07 Michael Snyder <msnyder@redhat.com>
6321 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
6322 Don't use exec_bfd if it's NULL.
6324 2002-01-06 Mark Kettenis <kettenis@gnu.org>
6326 * valops.c (value_arg_coerce): Fix formatting.
6328 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6330 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
6333 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6335 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
6336 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
6337 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
6338 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
6339 z8k-coff have not been multi-arched. Update z8k-coff build
6342 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6344 * MAINTAINERS: Mark a29k target as obsolete.
6345 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
6346 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
6348 * NEWS: Note that a29k targets are obsolete.
6349 * a29k-tdep.c: Mark as obsolete.
6350 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6351 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6352 a29k-*-vxworks* targets as obsolete.
6353 * remote-adapt.c: Obsolete.
6354 * remote-eb.c: Obsolete.
6355 * remote-mm.c: Obsolete.
6356 * remote-udi.c: Obsolete.
6357 * config/a29k/a29k-udi.mt: Obsolete.
6358 * config/a29k/a29k.mt: Obsolete.
6359 * config/a29k/tm-a29k.h: Obsolete.
6360 * config/a29k/tm-vx29k.h: Obsolete.
6361 * config/a29k/vx29k.mt: Obsolete.
6363 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6365 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
6366 with BFD_ENDIAN_BIG.
6368 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6370 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
6371 * configure, config.in: Re-generate.
6372 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
6373 * defs.h: Do not include <endian.h>.
6375 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
6377 * acconfig.h (HAVE_PT_GETXMMREGS): New.
6378 * config.in: Regenerate.
6379 * configure.in: Update copyright years.
6380 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
6381 * configure: Regenerate.
6382 * i386bsd-nat.c: Update copyright years.
6383 (fill_gregset): Use regcache_collect.
6384 (fetch_inferior_registers): Only fetch integer registers
6385 if requested to do so. Add support for XMM registers
6386 using PT_GETXMMREGS.
6387 (store_inferior_registers): Only store integer registers
6388 if requested to do so. Add support for XMM registers
6389 using PT_SETXMMREGS.
6390 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
6391 (store_inferior_registers): Remove.
6392 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
6393 (fetch_elfcore_registers): New function.
6394 (i386nbsd_elfcore_fns): New.
6395 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
6396 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
6398 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6399 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
6400 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
6401 * config/i386/tm-nbsd.h: Update copyright years.
6402 (HAVE_SSE_REGS): Define.
6403 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
6404 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
6405 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
6406 (SIGCONTEXT_PC_OFFSET): Remove.
6407 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
6409 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6411 * configure.tgt: Remove powerpc-*-macos* target.
6412 * config/m68k/xm-mpw.h: Delete file.
6413 * config/xm-mpw.h: Delete file.
6414 * ser-mac.c: Delete file.
6415 * mpw-make.sed: Delete file.
6416 * mpw-config.in: Delete file.
6417 * mac-xdep.c: Delete file.
6418 * mac-gdb.r: Delete file.
6419 * mac-defs.h: Delete file.
6420 * mac-nat.c: Delete file.
6421 * config/powerpc/macos.mh: Delete file.
6422 * config/powerpc/macos.mt: Delete file.
6423 * config/powerpc/nm-macos.h: Delete file.
6424 * config/powerpc/tm-macos.h: Delete file.
6425 * source.c (openp, open_source_file): Remove obsolete code.
6426 * top.c (gdb_readline): Ditto.
6427 * utils.c (query): Ditto.
6428 * event-top.c (display_gdb_prompt): Ditto.
6429 * Makefile.in (ser-mac.o): Delete obsolete target.
6432 2002-01-04 Andrew Cagney <ac131313@redhat.com>
6434 * defs.h (BIG_ENDIAN): Delete macro definition.
6435 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
6436 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
6437 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
6438 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
6439 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
6440 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
6441 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
6442 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
6443 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
6444 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
6445 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
6446 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
6447 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
6448 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
6449 * gdbarch.c: Re-generate.
6451 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6453 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
6456 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6458 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
6460 2002-01-04 Andrew Cagney <ac131313@redhat.com>
6462 * value.h (value_ptr): Delete typedef.
6464 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6466 * i386nbsd-nat.c: Update copyright years.
6467 Include i386-tdep.h.
6469 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
6471 * stabsread.c: Update copyright years.
6473 From Debashis Mahata <debashis.mahata@wipro.com>:
6474 (read_struct_fields): Deal with Sun C compiler erroneous stab
6475 output for structs and unions.
6478 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6480 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
6483 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6485 * cp-abi.c: Fix whitespace.
6486 (baseclass_offset): New wrapper function.
6487 * cp-abi.h (baseclass_offset): Add prototype.
6488 (struct cp_abi_ops): Add baseclass_offset pointer.
6490 * valops.c (vb_match): Move to...
6491 * gnu-v2-abi.c (vb_match): here.
6492 * valops.c (baseclass_offset): Move to...
6493 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
6495 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
6497 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
6498 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
6499 * hpacc-abi.c (init_hpacc_ops): Likewise.
6501 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6503 * valops.c (find_overload_match): Accept obj as a
6504 reference parameter. Update it before returning.
6505 * value.h (find_overload_match): Update prototype.
6506 * eval.c (evaluate_subexp_standard): Pass object to
6507 find_overload_match by reference.
6509 2002-01-03 Andrew Cagney <ac131313@redhat.com>
6511 * valarith.c: Replace value_ptr with struct value pointer. Remove
6512 register attribute from value declarations.
6515 * scm-lang.c (scm_lookup_name): Ditto.
6517 2002-01-03 Michael Snyder <msnyder@redhat.com>
6519 Abstract the functionality of iterating over mapped memory
6520 regions into a general purpose iterator function.
6521 * procfs.c (iterate_over_mappings): New function, general purpose
6522 iterator for memory sections.
6523 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
6524 (solib_mappings_callback): New function, callback for above.
6525 (info_proc_mappings): Reimpliment using iterate_over_mappings.
6526 (info_mappings_callback): New function, callback for above.
6528 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
6530 2002-01-01 Mark Kettenis <kettenis@gnu.org>
6532 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
6533 * i386-tdep.c: Include "elf-bfd.h".
6534 (process_note_abi_tag_sections): New function.
6535 (i386_gdbarch_init): Add code to recognize various OS/ABI
6538 * maint.c (_initialize_maint_cmds): Add missing \ in
6541 For older changes see ChangeLog-2001
6547 version-control: never