1 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3 * ppcnbsd-nat.c: Rewrite.
4 * ppcnbsd-tdep.c: New file.
5 * ppcnbsd-tdep.h: New file.
6 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7 solib.o, and solib-svr4.o.
8 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9 nbsd-tdep.o, and corelow.o.
11 2002-05-28 Andrew Cagney <ac131313@redhat.com>
13 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
14 `tr' and `sed'. Mention that `broken' targets are not expected to
17 2002-05-27 Michal Ludvig <mludvig@suse.cz>
19 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
20 Let PC point right after the prologue before looking up symbols.
22 2002-05-27 Martin M. Hunt <hunt@redhat.com>
24 * i386-tdep.c (i386_register_virtual_type): Return
25 builtin_type_vec128i for SSE registers.
27 * gdbtypes.h (builtin_type_vec128i): Declare.
29 * gdbtypes.c (build_builtin_type_vec128i): New function.
30 (builtin_type_v2_double, builtin_type_v4_int64): New types.
31 (builtin_type_vec128i): New type for SSE2 128-bit registers.
32 (build_gdbtypes): Initialize new builtin vector types.
33 (_initialize_gdbtypes): Register new vector types with gdbarch.
35 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
37 * MAINTAINERS: ns32k is not longer an obsolete candidate,
38 since it has been multi-arch'd.
39 * NEWS: Note that ns32k-*-* is now partial multi-arch.
40 Move Alpha and VAX multi-arch news entries to same section
41 as other multi-arch news.
43 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
45 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
46 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
47 static. Rename some register numbers to put them in ns32k-tdep
49 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
50 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
52 (_initialize_ns32k_tdep): Use gdbarch_register.
53 * ns32k-tdep.h: New file.
54 * ns32knbsd-tdep.c: New file.
55 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
56 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
57 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
58 REGISTER_BYTES, REGISTER_BYTE): Remove.
59 * config/ns32k/tm-ns32k.h: New file.
60 * config/ns32k/tm-umax.h: Remove.
62 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
64 * ns32k-tdep.c (ns32k_saved_pc_after_call,
65 ns32k_store_struct_return, ns32k_extract_return_value,
66 ns32k_store_return_value, ns32k_extract_struct_value_address): New
68 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
69 ns32k_saved_pc_after_call.
70 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
71 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
72 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
73 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
74 ns32k_extract_struct_value_address.
76 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
78 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
79 ns32k_fix_call_dummy): New.
80 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
81 ns32k_call_dummy_words.
82 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
83 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
84 CALL_DUMMY_NARGS): Remove.
85 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
87 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
89 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
90 ns32k_frame_saved_pc, ns32k_frame_args_address,
91 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
92 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
93 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
94 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
95 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
96 (BREAKPOINT): Remove..
97 (FRAME_CHAIN): Define as ns32k_frame_chain.
98 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
99 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
100 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
101 (FRAME_FIND_SAVED_REGS): Remove.
102 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
103 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
104 (POP_FRAME): Define as ns32k_pop_frame.
106 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
108 * ns32k-tdep.c (ns32k_register_byte_32082,
109 ns32k_register_byte_32382, ns32k_register_raw_size,
110 ns32k_register_virtual_size, ns32k_register_virtual_type): New
112 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
113 ns32k_register_byte_32382.
114 * config/ns32k/tm-umax.h: Update copyright years.
115 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
116 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
117 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
118 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
119 (ns32k_get_enter_addr): Fix prototype.
121 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
123 * ns32k-tdep.c: Update copyright years.
124 (ns32k_register_name_32082): New function.
125 (ns32k_register_name_32382): Ditto.
126 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
127 (REGISTER_NAME): Define as ns32k_register_name_32382.
128 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
129 (REGISTER_NAME): Define as ns32k_register_name_32082.
131 2002-05-24 Jim Blandy <jimb@redhat.com>
133 * dwarf2read.c (free_line_header): Use xfree, not free.
135 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
137 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
138 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
140 2002-05-23 Andrew Cagney <ac131313@redhat.com>
142 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
144 2002-05-23 Andrew Cagney <ac131313@redhat.com>
146 From Ross Alexander at NEC Europe:
147 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
149 2002-05-23 Michael Snyder <msnyder@redhat.com>
151 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
152 for input, rather than parse_and_eval_address.
154 2002-05-23 Andrew Cagney <ac131313@redhat.com>
156 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
157 * Makefile.in (sim_d10v_h): Update definition.
159 2002-05-24 Andrew Cagney <cagney@redhat.com>
161 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
162 change `2002-05-22 Michael Snyder' below.
163 (d10v_push_arguments): Ditto.
164 (d10v_extract_return_value): Ditto.
166 2002-05-23 Jim Blandy <jimb@redhat.com>
168 * macrotab.c (check_for_redefinition): Don't complain if the new
169 definition is the same as the previous one. Take more arguments
170 to allow the comparison.
171 (macro_define_object, macro_define_function): Pass more arguments
172 to check_for_redefinition.
174 2002-05-22 Michael Snyder <msnyder@redhat.com>
176 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
177 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
178 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
179 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
180 Don't bail if return_pc is PC_IN_CALL_DUMMY.
181 Add a temp variable to save a call (and a memory read).
182 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
183 if possible (so that PC_IN_CALL_DUMMY will work).
185 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
187 * MAINTAINERS: Remove status `OBSOLETE' from v850.
189 2002-05-22 Michal Ludvig <mludvig@suse.cz>
191 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
193 (dwarf2_build_frame_info): Corrected handling of eh_frame.
194 (dwarf2_build_frame_info): Add offset to fde->initial_location
195 so that frames of shared libraries are mapped correctly.
196 (execute_stack_op): Change type of 'result' from ULONGEST to
199 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
201 * config/alpha/tm-nbsd.h: Include solib.h.
203 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
205 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
206 assumptions about the host's byte order.
208 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
210 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
212 * alphanbsd-tdep.c: Include solib-svr4.h.
213 * shnbsd-tdep.c: Ditto.
215 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
217 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
218 nbsd-tdep.h to dependency list.
219 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
220 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
221 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
222 nbsdaout.mh and nbsdelf.mh consistently.
223 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
224 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
225 nbsdaout.mt and nbsdelf.mh consistently.
226 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
227 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
228 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
229 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
230 a.out shared library stuff from here...
231 * config/nm-nbsdaout.h: ...to here.
232 * config/tm-nbsd.h: Remove.
233 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
234 * config/arm/nbsd.mh: Remove.
235 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
237 * config/arm/nbsdaout.mh: New file.
238 * config/arm/nbsdelf.mh: New file.
239 * config/arm/nm-nbsdaout.h: New file.
240 * config/i386/nbsd.mh: Remove.
241 * config/i386/nbsd.mt: Remove.
242 * config/i386/nbsdaout.mh: New file.
243 * config/i386/nbsdaout.mt: New file.
244 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
245 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
246 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
247 i386_register_u_addr): Remove.
248 * config/i386/nm-nbsdaout.h: New file.
249 * config/i386/nm-nbsdelf.h: Remove.
250 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
251 (USE_STRUCT_CONVENTION): Remove.
252 * config/i386/tm-nbsdaout.h: New file.
253 * config/i386/tm-nbsdelf.h: Remove.
254 * config/m68k/nbsd.mh: Remove.
255 * config/m68k/nbsd.mt: Remove.
256 * config/m68k/nbsdaout.mh: New file.
257 * config/m68k/nbsdaout.mt: New file.
258 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
259 * config/m68k/nm-nbsdaout.h: New file.
260 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
261 (IN_SOLIB_CALL_TRAMPOLINE): Define.
262 * config/ns32k/nbsd.mh: Remove.
263 * config/ns32k/nbsd.mt: Remove.
264 * config/ns32k/nbsdaout.mh: New file.
265 * config/ns32k/nbsdaout.mt: New file.
266 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
267 * config/ns32k/nm-nbsdaout.h: New file.
268 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
269 (IN_SOLIB_CALL_TRAMPOLINE): Define.
270 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
271 (SVR4_SHARED_LIBS): Remove.
272 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
273 * config/sparc/nbsd.mh: Remove.
274 * config/sparc/nbsd.mt: Remove.
275 * config/sparc/nbsdaout.mh: New file.
276 * config/sparc/nbsdaout.mt: New file.
277 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
278 * config/sparc/nbsdelf.mt: New file.
279 * config/sparc/nm-nbsdaout.h: New file.
280 * config/sparc/nm-nbsdelf.h: Remove.
281 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
282 * config/sparc/tm-nbsdaout.h: New file.
284 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
286 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
288 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
290 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
292 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
294 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
296 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
298 * NEWS: Note new MIPS NetBSD native configuration.
299 * configure.host (mips*-*-netbsd*): New host.
300 * configure.tgt (mips*-*-netbsd*): New target.
301 * mipsnbsd-nat.c: New file.
302 * mipsnbsd-tdep.c: New file.
303 * mipsnbsd-tdep.h: New file.
304 * config/mips/nbsd.mh: New file.
305 * config/mips/nbsd.mt: New file.
306 * config/mips/nm-nbsd.h: New file.
307 * config/mips/tm-nbsd.h: New file.
309 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
311 * Makefile.in (SFILES): Add osabi.c.
312 (COMMON_OBS): Add osabi.o.
313 (osabi.o): New dependency list.
316 * doc/gdbint.texinfo: Document new generic OS ABI framework.
318 * Makefile.in (alpha_tdep_h): Define and use instead of
320 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
321 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
323 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
324 * alpha-tdep.h: Include osabi.h.
326 (gdbarch_tdep): Use generic OS ABI framework.
327 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
328 gdbarch_register_osabi.
329 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
330 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
331 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
333 * Makefile.in (sh_tdep_h): Add osabi.h.
334 * sh-tdep.h (sh_osabi): Remove.
335 (gdbarch_tdep): Use generic OS ABI framework.
336 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
337 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
338 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
339 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
341 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
342 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
343 gdbarch_register_osabi.
344 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
345 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
346 (get_elfosabi): Rename to...
347 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
348 ABI framework support routines.
349 (arm_gdbarch_init): Use generic OS ABI framework.
350 (arm_dump_tdep): Likewise.
351 (_initialize_arm_tdep): Likewise.
352 * arm-tdep.h: Include osabi.h.
354 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
356 (arm_gdbarch_register_os_abi): Remove prototype.
357 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
358 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
360 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
361 * mips-tdep.c: Include osabi.h.
362 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
365 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
367 * h8300-tdep.c: Fix formatting.
369 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
371 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
372 printing vector registers.
374 2002-05-19 Andrew Cagney <ac131313@redhat.com>
376 From Fernando Nasser:
377 * remote.c (remote_async_open_1): Re-throw the exception when the
379 (remote_cisco_open): Ditto.
380 (remote_open_1): Ditto.
382 2002-05-19 Andrew Cagney <ac131313@redhat.com>
384 * remote.c (remote_start_remote_dummy): Add uiout parameter.
385 (remote_start_remote): Add uiout parameter. Pass through to
386 remote_start_remote_dummy.
387 (remote_open_1): Use catch_exception instead of catch_errors.
388 (remote_async_open_1): Ditto.
389 (remote_cisco_open): Ditto.
391 2002-05-19 Andrew Cagney <ac131313@redhat.com>
393 * remote.c (remote_start_remote): Replace PTR with void pointer.
394 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
397 2002-05-18 Andrew Cagney <ac131313@redhat.com>
399 * gdb_indent.sh: Allow the script to be run in the sim directory.
401 2002-05-18 Mark Kettenis <kettenis@gnu.org>
403 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
404 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
406 * corelow.c (core_open): Only call set_gdbarch_from_file if
409 2002-05-17 Andrey Volkov <avolkov@transas.com>
411 * h8300-tdep.c: Add support of EXR register
412 * config/h8300/tm-h8300.h: Ditto.
414 2002-05-17 Andrey Volkov <avolkov@transas.com>
416 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
418 2002-05-17 Andrey Volkov <avolkov@transas.com>
420 * h8300-tdep.c: Change literal regnums to REGNO.
422 2002-05-17 Jim Blandy <jimb@redhat.com>
424 * NEWS: Note addition of macro support.
426 Expand preprocessor macros in C expressions.
427 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
428 (scan_macro_expansion, scanning_macro_expansion,
429 finished_macro_expansion): New function declarations.
430 (expression_macro_lookup_func, expression_macro_lookup_baton): New
431 variable declarations.
432 * parser-defs.h (expression_context_pc): New declaration.
433 * parse.c (expression_context_pc): New variable.
434 (parse_exp_1): Set expression_context_pc, as well as
435 expression_context_block.
436 * c-exp.y (yylex): If we're not already reading the result of a
437 macro expansion, try to macro-expand the next token. When we're
438 done scanning a macro expansion, switch back to the mainline text.
439 Commas and `if's in a macro's expansion don't terminate the input.
440 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
441 (macro_original_text, macro_expanded_text,
442 expression_macro_lookup_func, expression_macro_lookup_baton): New
444 (scan_macro_expansion, scanning_macro_expansion,
445 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
446 c_preprocess_and_parse): New functions.
447 (c_language_defn, cplus_language_defn, asm_language_defn): Call
448 c_preprocess_and_parse, instead of c_parse.
449 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
450 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
452 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
454 * sh-tdep.c (gdb_print_insn_sh64): Delete.
455 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
456 (sh_gdbarch_init): Always use gdb_print_insn_sh.
458 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
460 * NEWS: Add section for multi-arched targets. Add v850 to that section.
462 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
464 * Makefile.in (sh_tdep_h): Define and use.
465 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
466 register enum): Move to...
467 * * sh-tdep.h: ...here.
468 * sh-tdep.c: Include sh-tdep.h.
469 * sh3-rom.c: Likewise.
470 * shnbsd-tdep.c: Likewise.
472 2002-05-16 Michael Snyder <msnyder@redhat.com>
474 * arm-tdep.c: Spelling fix in comment.
476 2002-05-16 Jim Blandy <jimb@redhat.com>
478 Add commands for manually expanding macros and showing their
480 * macrocmd.c, macroscope.c, macroscope.h: New files.
481 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
482 (macroscope_h): New variable.
483 (HFILES_NO_SRCDIR): Add macroscope.h.
484 (COMMON_OBS): Add macrocmd.o, macroscope.o.
485 (macroscope.o, macrocmd.o): New rules.
487 Teach the Dwarf 2 reader to read macro information.
488 * dwarf2read.c: #include "macrotab.h".
489 (dwarf_macinfo_buffer): New variable.
490 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
492 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
493 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
494 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
495 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
496 dwarf2_macro_spaces_in_definition): New complaints.
497 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
498 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
499 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
500 the partial symbol table.
501 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
502 from what's recorded in the partial symbol table.
503 (read_file_scope): If the compilation unit has a
504 `DW_AT_macro_info' attribute, read its macro information.
505 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
507 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
510 * ser-tcp.c: Don't include <netinet/udp.h>.
512 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
514 * MAINTAINERS: Update my email address.
516 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
518 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
519 include file of the same name.
521 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
523 * configure.tgt: Mark v850 as multi-arched.
524 * config/v850/tm-v850.h: Remove file.
525 * config/v850/v850.mt: Eliminate TM_FILE.
527 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
529 * v850-tdep.c: Full multi-arch.
530 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
531 Define GDB_MULTI_ARCH to 2.
533 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
535 * p-exp.y (current_type): New static variable.
536 Carries the type of the expression at the position that is parsed.
537 (push_current_type, pop_current_type): Two new functions. Used
538 to store/restore current_type in expression on specific tokens.
539 (search_field): New static variable. Set to one after parsing a point
540 as at that point only a FIELDNAME token should be searched.
541 (FIELDNAME): New token. After a point only a token belonging to
542 current_type type definition is allowed.
543 (all over token rules): reset and change current_type according
545 (exp '[' rule): insert implicit array index field if
546 exp is a pascal string type.
548 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
550 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
551 frame info. Use frame_info's saved_regs instead of matching member
552 in extra_frame_info throughout.
553 (v850_frame_init_saved_regs): New function.
554 (v850_init_extra_frame_info): Move most functionality into
555 v850_frame_init_saved_regs().
556 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
557 (v850_frame_find_saved_regs): Remove declaration.
558 (FRAME_FIND_SAVED_REGS): Remove definition.
559 (v850_frame_init_saved_regs): Add declaration.
560 (FRAME_INIT_SAVED_REGS): Add definition.
562 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
564 * v850-tdep.c: Begin multi-arch'ing v850.
565 (v850_target_architecture_hook): Remove function.
566 (v850_gdbarch_init): New function. Add code previously in
567 v850_target_architecture_hook().
568 (_initialize_v850_tdep): Don't set target_architecture_hook.
569 Call register_gdbarch_init() instead.
571 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
573 * gdbtypes.h (struct cplus_struct_type): Remove args field.
574 * hpread.c (hpread_read_struct_type): Remove assignments to args.
575 (fixup_class_method_type): Likewise.
577 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
579 From Martin Pool <mbp@samba.org>:
580 * gdbserver/server.c (gdbserver_usage): New function.
583 2002-05-15 Jim Blandy <jimb@redhat.com>
585 Add macro structures to GDB's symbol tables. Nobody puts anything
587 * symtab.h (struct symtab): New member: `macro_table'.
588 * buildsym.h (pending_macros): New global variable.
589 * buildsym.c: #include "macrotab.h".
590 (buildsym_init): Initialize `pending_macros'.
591 (end_symtab): If we found macro information while reading a CU's
592 debugging info, do build a symtab structure for it. Make the
593 symtab point to the macro information, and clear the
594 `pending_macros' pointer which held it while we were reading the
596 (really_free_pendings): Free any pending macro table.
597 * objfiles.h (struct objfile): New member: `macro_cache'.
598 * objfiles.c (allocate_objfile): Set allocate and free functions
599 for the macro cache's objstack.
600 (free_objfile): Empty the macro cache's obstack.
601 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
602 set new allocate and free functions for it.
603 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
604 free functions for the macro cache's objstack. (Why is this
605 function building its own objfile?)
606 * symmisc.c (print_objfile_statistics): Print statistics on the
608 * Makefile.in: Note that buildsym.o depends on macrotab.h.
610 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
612 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
613 (REGISTER_U_ADDR): Delete definition.
614 (arm_register_u_addr): Delete declaration.
616 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
618 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
619 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
621 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
623 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
626 2002-05-14 Andrew Cagney <ac131313@redhat.com>
628 * regcache.c (register_valid): Revise comments refering to "Not
629 available" and "unavailable".
630 * frame.c (frame_register_read): Ditto.
631 * findvar.c (value_of_register): Ditto.
633 2002-05-15 Andrew Cagney <cagney@redhat.com>
635 * Makefile.in (remote_sim_h): Replace remote-sim_h.
636 (remote-sim.o): Update dependencies.
637 (d10v-tdep.o): Specify dependencies.
638 (sim_d10v_h): Define.
640 2002-05-14 Jim Blandy <jimb@redhat.com>
642 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
643 * macrotab.c (macro_lookup_inclusion, find_definition,
644 new_macro_table): Same.
646 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
647 not `! strcmp ()'. This is a dubious improvement.
648 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
650 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
651 although it's not necessary, to avoid a warning.
653 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
655 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
656 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
658 (struct main_type): New.
659 (struct type): Move most members to struct main_type. Change
660 cv_type and as_type to new type_chain member. Add instance_flags.
661 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
662 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
663 (finish_cv_type): Remove prototype.
664 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
666 (alloc_type_instance): New function.
667 (smash_type): New function.
668 (make_pointer_type, make_reference_type, make_function_type)
669 (smash_to_member_type, smash_to_method_type): Call smash_type.
670 (make_qualified_type): New function.
671 (make_type_with_address_space): Call make_qualified_type.
672 (make_cv_type): Likewise.
673 (finish_cv_type): Remove unnecessary function.
674 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
675 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
676 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
677 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
678 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
679 * hpread.c (hpread_read_struct_type): Likewise.
680 * stabsread.c (read_struct_type): Likewise.
682 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
684 * configure.tgt: Add a catch all sh* target, for cases like
685 sh[2,3,4]-elf and sh-hms.
687 2002-05-14 Keith Seitz <keiths@redhat.com>
689 * event-loop.c (create_file_handler): Don't do anything but
690 update data when we are given a fd which we are already
693 2002-05-14 Michal Ludvig <mludvig@suse.cz>
695 * dwarf2cfi.c (context_cpy): Copy registers correctly.
696 (update_context): Use __func__ in warnings.
698 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
700 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
701 and tcp_close to net_open and net_close.
702 (net_open): Accept "udp:" and "tcp:" specifications. Connect
703 using UDP if requested. Don't try to disable Nagle on UDP
705 * remote.c (remote_serial_open): New function. Warn about UDP.
706 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
708 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
710 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
712 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
714 * configure.tgt: Remove sh-hms target.
715 * MAINTAINERS: Don't list sh-hms as a separate target.
717 2002-05-13 Jim Blandy <jimb@redhat.com>
719 Add first preprocessor macro-expansion files.
720 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
721 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
722 (splay_tree_h, macroexp_h, macrotab_h): New variable.
723 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
724 (COMMON_OBS): Add macrotab.o, macroexp.o.
725 (macroexp.o, macrotab.o): New rules.
727 2002-05-13 Andrew Cagney <ac131313@redhat.com>
729 * config/m88k/tm-m88k.h: Update copyright.
730 (m88k_target_write_pc): Declare
731 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
732 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
733 (SHIFT_INST_REGS): Update definition.
734 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
735 using old definition of TARGET_WRITE_PC.
736 * regcache.c (generic_target_write_pc): Delete code handling
738 * gdbarch.sh (NNPC_REGNUM): Delete.
739 * gdbarch.h, gdbarch.c: Regenerate.
741 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
743 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
746 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
748 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
749 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
750 (gen_address_of, gen_struct_ref, gen_repeat): Use type
752 * c-typeprint.c (cp_type_print_method_args): Likewise.
753 (c_type_print_args): Likewise.
754 * d10v-tdep.c (d10v_push_arguments): Likewise.
755 (d10v_extract_return_value): Likewise.
756 * expprint.c (print_subexp): Likewise.
757 * gdbtypes.c (lookup_primitive_typename): Likewise.
758 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
759 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
760 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
761 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
762 (TYPE_VECTOR): Likewise.
763 * hpread.c (hpread_read_struct_type)
764 (fix_static_member_physnames, fixup_class_method_type)
765 (hpread_type_lookup): Likewise.
766 * mdebugread.c (parse_symbol, parse_type): Likewise.
767 * p-lang.c (is_pascal_string_type): Likewise.
768 * valops.c (hand_function_call): Likewise.
769 * x86-64-tdep.c (classify_argument): Likewise.
771 * hpread.c (hpread_read_function_type)
772 (hpread_read_doc_function_type): Call replace_type.
773 * dstread.c (create_new_type): Delete.
774 (decode_dst_structure, process_dst_function): Call alloc_type.
775 Use type access macros.
777 2002-05-12 Mark Kettenis <kettenis@gnu.org>
779 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
780 the're not supported by the current architecture.
781 (i387_fill_fxsave): Likewise.
783 2002-05-12 Fred Fish <fnf@redhat.com>
785 * symfile.c (default_symfile_offsets): Arrange for uninitialized
786 sect_index_xxx members to index the first slot in section_offsets
787 if all of the section_offsets are zero.
789 2002-05-12 Mark Kettenis <kettenis@gnu.org>
791 * configure.tgt (sparc-*openbsd): Remove entry accidentially
792 checked in with last change.
794 2002-05-12 Mark Kettenis <kettenis@gnu.org>
796 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
797 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
800 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
802 * Makefile.in: Update dependencies.
804 2002-05-11 Andrew Cagney <ac131313@redhat.com>
806 * language.c (local_hex_string_custom): Simplify. Do not depend
807 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
809 * memattr.c (mem_info_command): Replace calls to
810 longest_local_hex_string and longest_local_hex_string_custom.
811 * buildsym.c (make_blockvector): Ditto.
812 * solib.c (info_sharedlibrary_command): Ditto.
813 * tracepoint.c (tracepoints_info): Ditto.
814 * symtab.c (print_msymbol_info): Ditto.
816 * language.c (local_hex_string): Delete.
817 (local_hex_string_custom): Delete.
818 (longest_local_hex_string): Rename to local_hex_string.
819 (longest_local_hex_string_custom): Rename to
820 local_hex_string_custom.
821 * language.h (local_hex_string): Change parameter type to LONGEST.
822 (local_hex_string_custom): Ditto.
823 (longest_local_hex_string): Delete declaration.
824 (longest_local_hex_string_custom): Ditto.
826 * solib.c: Update copyright.
827 * memattr.c: Update copyright.
829 2002-05-11 Andrew Cagney <ac131313@redhat.com>
831 * arch-utils.h (legacy_register_to_value): Declare.
832 (legacy_value_to_register): Declare.
833 (legacy_convert_register_p): Declare.
834 * arch-utils.c (legacy_register_to_value): New function.
835 (legacy_value_to_register): New function.
836 (legacy_convert_register_p): New function.
838 * gdbarch.sh (REGISTER_TO_VALUE): Define.
839 (VALUE_TO_REGISTER): Define.
840 (CONVERT_REGISTER_P): Define.
841 * gdbarch.h, gdbarch.c: Regenerate.
843 * valops.c (value_assign): Use CONVERT_REGISTER_P and
845 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
848 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
849 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
851 * Makefile.in: Update dependencies for valops.c.
852 * valops.c: Include "gdb_assert.h".
853 (typecmp): Skip THIS parameter to methods.
854 (find_method_list): Remove static_memfuncp argument,
855 update callers. Check for stub methods.
856 (find_value_oload_method_list): Don't set *static_memfuncp.
857 (find_overload_match): Don't check for stub methods. Assert
858 that methods are not stubbed. Handle static methods.
859 (value_find_oload_method_list): Remove static_memfuncp argument.
860 * gdbtypes.c (check_stub_method): Do not add THIS pointer
861 to the argument list for static stub methods.
862 * value.h (value_find_oload_method_list): Update prototype.
864 2002-05-11 Andrew Cagney <ac131313@redhat.com>
866 * arch-utils.h (generic_register_size): Declare.
867 (generic_register_raw_size, generic_register_virtual_size): Delete
869 * arch-utils.c (generic_register_raw_size): Delete.
870 (generic_register_size): New function.
871 (generic_register_virtual_size): Delete.
873 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
874 default generic_register_size.
875 * gdbarch.h, gdbarch.c: Re-generate.
877 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
878 register_virtual_size.
879 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
880 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
882 2002-05-11 Andrew Cagney <ac131313@redhat.com>
884 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
885 * gdbarch.h, gdbarch.c: Regenerate.
886 * gnu-v3-abi.c: Update copyright.
887 (vtable_address_point_offset): Update.
888 (gnuv3_rtti_type): Update.
889 (gnuv3_baseclass_offset): Update.
890 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
891 (init_fetch_link_map_offsets): Update.
892 * remote.c (get_remote_state): Update.
894 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
896 * TODO: Remove value_headof/value_from_vtable_info comment.
897 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
898 * values.c (value_headof, value_from_vtable_info): Delete.
899 * value.h (value_from_vtable_info): Delete prototype.
901 2002-05-11 Andrew Cagney <ac131313@redhat.com>
903 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
904 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
906 (gdb_assert_h): Define.
907 (gdb_wait_h): Define.
908 (gdb_regex_h): Define.
910 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
912 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
913 * linespec.c (find_methods): Handle GCC 3.x template constructors.
915 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
917 * nbsd-tdep.c: Fix comment.
919 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
921 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
922 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
923 (nbsd-tdep.o): New dependency list.
924 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
926 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
927 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
928 * nbsd-tdep.c: New file.
929 * nbsd-tdep.h: New file.
930 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
932 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
933 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
934 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
935 * config/sh/nbsd.mt (TDEPFILES): Ditto.
937 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
939 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
940 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
941 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
942 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
943 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
944 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
946 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
948 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
949 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
950 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
951 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
952 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
953 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
954 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
956 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
958 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
959 fetch_elfcore_registers to...
960 * i386nbsd-tdep.c: ...here.
961 (i386nbsd_use_struct_convention): Rename to...
962 (i386nbsd_aout_use_struct_convention): ...this.
963 (i386nbsd_supply_reg): New function.
964 (i386nbsd_fill_reg): New function.
965 (fetch_core_registers): Use i386nbsd_supply_reg.
966 (fetch_elfcore_registers): Likewise.
967 (_initialize_i386nbsd_tdep): New function.
968 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
969 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
970 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
971 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
972 (i386nbsd_aout_use_struct_convention): ...this.
974 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
976 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
977 (store_inferior_registers): Use shnbsd_fill_reg.
978 * shnbsd-tdep.c (sh_nbsd_supply_registers,
979 sh_nbsd_supply_register): Collapse into...
980 (shnbsd_supply_reg): ...this.
981 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
982 (shnbsd_fill_reg): ...this.
983 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
984 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
985 (fetch_core_registers): Use shnbsd_supply_reg.
986 (fetch_elfcore_registers): Use shnbsd_supply_reg.
987 (sh_nbsd_core_fns): Rename to...
988 (shnbsd_core_fns): ...this.
989 (sh_nbsd_elfcore_fns): Rename to...
990 (shnbsd_elfcore_fns): ...this.
991 (sh_nbsd_init_abi): Rename to...
992 (shnbsd_init_abi): ...this.
993 (_initialize_sh_nbsd_tdep): Rename to...
994 (_initialize_shnbsd_tdep): ...this.
995 * shnbsd-tdep.h (sh_nbsd_supply_registers,
996 sh_nbsd_supply_register, sh_nbsd_fill_registers,
997 sh_nbsd_fill_register): Remove prototypes.
998 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
1000 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1002 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
1003 (i387-nat.o): Delete dependency list.
1004 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
1005 (x86-64-linux-nat.o): Likewise.
1006 * i387-nat.c: Delete file, moving contents to...
1007 * i387-tdep.c: ...here.
1008 * i387-nat.h: Rename...
1009 * i387-tdep.h: ...to this.
1010 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
1011 * i386-linux-nat.c: Likewise.
1012 * i386bsd-nat.c: Likewise.
1013 * i386gnu-nat.c: Likewise.
1014 * i386nbsd-nat.c: Likewise.
1015 * i386v4-nat.c: Likewise.
1016 * x86-64-linux-nat.c: Likewise.
1017 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
1018 * config/i386/go32.mh (NATDEPFILES): Likewise.
1019 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1020 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
1021 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
1022 * config/i386/linux.mh (NATDEPFILES): Likewise.
1023 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
1024 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1025 * config/i386/obsd.mh (NATDEPFILES): Likewise.
1026 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1028 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1030 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
1031 (alphanbsd-nat.o): Remove dependency list.
1032 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
1033 * alphanbsd-nat.c: Delete. Contents moved to...
1034 * alphanbsd-tdep.c: ...here.
1035 (_initialize_alphanbsd_tdep): Register core functions.
1036 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
1038 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1040 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
1041 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
1042 (alphanbsd-nat.o): Likewise.
1043 (alphabsd-tdep.o): New dependency list.
1044 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
1045 (fill_gregset): Use alphabsd_fill_reg.
1046 (supply_fpregset): Use alphabsd_supply_fpreg.
1047 (fill_fpregset): Use alphabsd_fill_fpreg.
1048 (fetch_inferior_registers): Use struct reg and struct fpreg
1049 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
1050 and alphabsd_supply_fpreg.
1051 (store_inferior_registers): Use struct reg and struct fpreg
1052 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
1053 and alphabsd_fill_fpreg.
1054 * alphabsd-tdep.c: New file.
1055 * alphabsd-tdep.h: New file.
1056 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
1057 (fetch_elfcore_registers): Use alphabsd_supply_reg and
1058 alphabsd_supply_fpreg.
1059 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
1060 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
1062 2002-05-11 Eric Christopher <echristo@redhat.com>
1064 * mips-tdep.c (mips_double_register_type): Fix thinko.
1065 (mips_single_register_type): Ditto.
1066 * MAINTAINERS: Add self.
1068 2002-05-11 Mark Kettenis <kettenis@gnu.org>
1070 * i387-nat.c (i387_supply_register, i387_fill_fsave,
1071 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
1072 right thing on architectures with different endianness and/or
1075 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
1077 From Christian Limpach <chris@Pin.LU>
1078 * configure.in: Change sed expression which comments out
1079 NATDEPFILES to also comment out continuation lines.
1080 * configure: Regenerate.
1082 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1084 * sh-tdep.c: Clean up code erroneously reintroduced by previous
1087 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1089 * sh-tdep.c: Include correct file.
1091 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1093 New support for sh64-elf (sh5) target.
1095 * configure.tgt: For sh64-elf target, default to sh-elf.
1097 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
1098 (struct gdbarch_tdep): Add new fields for new registers and ABI
1101 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
1102 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
1103 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
1104 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
1105 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
1106 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
1107 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
1108 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
1109 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
1110 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
1111 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
1112 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
1113 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
1114 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
1115 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
1116 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
1117 sh64_get_gdb_regnum, sh64_media_reg_base_num,
1118 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
1119 sign_extend, sh64_nofp_frame_init_saved_regs,
1120 sh64_init_extra_frame_info, sh64_get_saved_register,
1121 sh64_extract_struct_value_address, sh64_pop_frame,
1122 sh64_push_arguments, sh64_extract_return_value,
1123 sh64_store_return_value, sh64_show_media_regs,
1124 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
1125 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
1126 sh_sh64_register_virtual_type,
1127 sh_sh64_register_convert_to_virtual,
1128 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
1129 sh64_register_read, sh64_pseudo_register_write,
1130 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
1131 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
1132 sh64_do_pseudo_register, sh_compact_do_registers_info,
1133 sh64_do_registers_info, sh_gdbarch_init): New functions.
1135 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1137 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
1139 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
1141 * linespec.c (decode_line_1): Check for a double quote after
1142 a filename correctly.
1144 2002-05-10 Jim Blandy <jimb@redhat.com>
1146 Properly track the size of the current objfile's .debug_line section.
1147 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
1148 (DWARF_LINE_SIZE): New macro.
1149 (dwarf2_build_psymtabs_hard): Record the line section's size in
1150 the partial symbol table.
1151 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
1154 2002-05-10 Petr Sorfa <petrs@caldera.com>
1156 * ia64-tdep.c: Handle breakpoints on L instruction type
1157 in MLX instruction bundle by moving the breakpoint to
1158 the third slot (X instruction type) as L holds only data.
1160 2002-05-10 Kevin Buettner <kevinb@redhat.com>
1162 * dbxread.c (discarding_local_symbols_complaint): New complaint.
1163 (process_one_symbol): Complain about discarding local symbols
1164 due to a misplaced N_LBRAC entry.
1166 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
1168 From Daniel Berlin <dan@cgsoftware.com>
1169 * linespec.c (find_toplevel_char): '<' and '>' also increase and
1170 decrease the depth we are at, in the case of templates.
1172 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
1174 * mips-tdep.c (mips_float_register_type): New function.
1175 (mips_double_register_type): New function.
1176 (mips_print_register): Use them.
1177 (do_fp_register_row): Likewise.
1179 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
1181 * signals/signals.c (signals): Remove conditional compilation around
1182 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
1183 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
1185 2002-05-09 Michael Snyder <msnyder@redhat.com>
1187 * remote-rdp.c (remote_rdp_can_run): Remove.
1189 2002-05-09 Tom Tromey <tromey@redhat.com>
1191 * jv-valprint.c (java_val_print): Handle `char' as a special case
1194 2002-05-09 Michael Snyder <msnyder@redhat.com>
1196 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
1197 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
1198 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
1199 str r(0123),[sp,#nn].
1200 (arm_skip_prologue): Ditto. Also make disassembly
1201 order-independent by placing it in a loop.
1203 2002-05-06 Michael Snyder <msnyder@redhat.com>
1205 * stabsread.c (read_type): Add recognition for new attribute:
1206 "@V;" means that an array type is actually a vector.
1207 This is analogous to the vector flag that's been added to dwarf2.
1209 2002-05-09 Mark Kettenis <kettenis@gnu.org>
1211 * i386-tdep.h (i386_abi): New enum.
1212 (struct gdbarch_tdep): Replace os_ident member with abi.
1213 (i386_gdbarch_register_os_abi): New prototype.
1214 * i386-tdep.c (i386_abi_names): New array.
1215 (process_note_abi_tag_sections): Removed.
1216 (process_note_sections): New function.
1217 (i386_elf_abi_from_note, i386_elf_abi): New functions.
1218 (struct i386_abi_handler): New struct.
1219 (i386_abi_handler_list): New variable.
1220 (i386_gdbarch_register_os_abi): New function.
1221 (i386_gdbarch_init): Adapt for the changes given above.
1223 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
1225 * gregset.h: Say "GNU/Linux".
1227 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
1229 * gdbtypes.c : Add new builtin type for 64 bit vectors.
1230 (build_gdbtypes): Build builtin_type_v2_float.
1231 (_initialize_gdbtypes): Register new builtin type.
1233 2002-05-08 Andrew Cagney <ac131313@redhat.com>
1235 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
1236 (clear_gdbarch_swap): New function.
1237 (initialize_non_multiarch): Call.
1238 (gdbarch_update_p): Before calling init(), swap out and clear the
1239 existing architecture.
1240 * gdbarch.c: Regenerate.
1242 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1244 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
1247 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1249 * sh-nbsd-nat.c: Rename to...
1250 * shnbsd-nat.c: ...this.
1251 * sh-nbsd-tdep.c: Rename to...
1252 * shnbsd-tdep.c: ...this.
1253 * sh-nbsd-tdep.h: Rename to...
1254 * shnbsd-tdep.h: ...this.
1255 * config/sh/nbsd.mh: Use shnbsd-nat.o.
1256 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
1258 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
1260 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
1261 concatenation for command help messages.
1263 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1265 * NEWS: Note new sh*-*-netbsdelf* configuration.
1266 * configure.host: Set gdb_host_cpu to sh for all sh*.
1267 (sh*-*-netbsdelf*): New host.
1268 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
1269 (sh*-*-netbsdelf*): New target.
1270 * sh-nbsd-nat.c: New file.
1271 * sh-nbsd-tdep.c: New file.
1272 * sh-nbsd-tdep.h: New file.
1273 * config/sh/nbsd.mh: New file.
1274 * config/sh/nbsd.mt: New file.
1275 * config/sh/nm-nbsd.h: New file.
1276 * config/sh/tm-nbsd.h: New file.
1278 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1280 * sh-tdep.c (sh_osabi_names): Declare.
1281 (process_note_abi_tag_sections): New function.
1282 (get_elfosabi): Ditto.
1283 (sh_gdbarch_register_os_abi): Ditto.
1284 (sh_dump_tdep): Ditto.
1285 _initialize_sh_tdep): Use gdbarch_register to register
1286 sh_gdbarch_init and sh_dump_tdep.
1287 * config/sh/tm-sh.h (sh_osabi): Declare.
1288 (gdbarch_tdep): Add sh_osabi and osabi_name members.
1290 2002-05-07 Andrew Cagney <ac131313@redhat.com>
1292 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
1293 (thumb_scan_prologue): Ditto.
1294 (arm_find_callers_reg): Ditto.
1295 (arm_frame_chain): Ditto.
1296 (arm_init_extra_frame_info): Ditto.
1297 (arm_frame_saved_pc): Ditto.
1298 (arm_pop_frame): Ditto.
1299 (arm_push_return_address): New function.
1300 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
1301 call_dummy_location, call_dummy_breakpoint_offset_p,
1302 call_dummy_breakpoint_offset, call_dummy_p,
1303 call_dummy_stack_adjust_p, call_dummy_words,
1304 sizeof_call_dummy_words, call_dummy_start_offset,
1305 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
1306 call_dummy_address, push_return_address and push_dummy_frame for
1307 generic dummy frames.
1309 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1311 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
1312 size computation for alloca.
1313 (sh_fp_frame_init_saved_regs): Likewise.
1315 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
1317 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
1318 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
1319 * arm-tdep.c (arm_store_return_value): Use them.
1320 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
1321 * remote-rdp.c (remote_rdp_fetch_register): Use
1322 ARM_MAX_REGISTER_RAW_SIZE.
1323 (remote_rdp_store_register): Likewise.
1325 2002-05-07 Michal Ludvig <mludvig@suse.cz>
1327 * dwarf2cfi.c: Code cleanup, removed unused variables,
1328 added default labels to switch {} statements.
1329 * x86-64-tdep.c: Ditto.
1330 * x86-64-linux-nat.c: Ditto.
1332 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1334 * solib.h: Protect against multiple inclusion.
1336 2002-05-06 Jim Blandy <jimb@redhat.com>
1338 Add first preprocessor macro-expansion files.
1339 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1340 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1341 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1342 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1343 (COMMON_OBS): Add macrotab.o, macroexp.o.
1344 (macroexp.o, macrotab.o): New rules.
1346 Separate the job of reading the line number info statement program
1347 header (...expialidocious) out into its own function.
1348 * dwarf2read.c (struct line_head, struct filenames, struct
1349 directories): Replace with...
1350 (struct line_header): New structure, containing the full
1351 contents of the statement program header, including the
1352 include directory and file name tables.
1353 (read_file_scope): If we have line number info, instead of just
1354 calling dwarf_decode_lines to do all the work, call
1355 dwarf_decode_line_header first to get a `struct line_header'
1356 containing the data in the statement program header, and then
1357 pass that to dwarf_decode_lines, which will pick up where that
1358 left off. Be sure to clean up the `struct line_header' object.
1359 (dwarf_decode_line_header, free_line_header, add_include_dir,
1360 add_file_name): New functions.
1361 (dwarf_decode_lines): Move all the code to read the statement
1362 program header into dwarf_decode_line_header. Take the line
1363 header it built as the first argument, instead of the offset to
1364 the compilation unit's line number info. Use the new `struct
1365 line_header' type instead of the old structures. No need to do
1366 cleanups here now, since we don't allocate anything.
1367 (dwarf2_statement_list_fits_in_line_number_section,
1368 dwarf2_line_header_too_long): New complaints.
1370 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
1372 * gdbtypes.c (init_vector_type): New function.
1373 (build_builtin_type_vec128): Simplify the representation of SIMD
1375 (build_gdbtypes): Initialize new builtin vector types.
1376 (_initialize_gdbtypes): Register new vector types with gdbarch.
1377 (builtin_type_v4_float, builtin_type_v4_int32,
1378 builtin_type_v8_int16, builtin_type_v16_int8,
1379 builtin_type_v2_int32, builtin_type_v4_int16,
1380 builtin_type_v8_int8): New (renamed) SIMD types.
1382 2002-05-06 Mark Kettenis <kettenis@gnu.org>
1384 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
1385 (i387_fill_fxsave): Likewise.
1387 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
1389 * alpha-tdep.c (alpha_extract_return_value): Don't use
1390 non-constant array size in prototype.
1392 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1394 From Brian Taylor <briant at model dot com>:
1395 * ui-out.c (ui_out_field_core_addr): Use the function
1396 longest_local_hex_string_custom'to format addresses > 32 bits
1399 * ui-out.c (ui_out_field_core_addr): Update comment.
1401 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1403 * stack.c (select_and_print_frame): Make static. Delete the
1405 (func_command): Update call.
1406 (select_frame_command): Delete code computing the frame level.
1407 * frame.h (select_and_print_frame): Delete declaration.
1409 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1411 * sparc-tdep.c (sparc_get_saved_register): Comment why
1412 get_prev_frame call is safe.
1414 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1416 * frame.h (select_frame): Delete level parameter.
1417 * stack.c (select_frame): Update. Use frame_relative_level to
1418 obtain the frame's level.
1419 (select_and_print_frame): Update call.
1420 (select_frame_command): Ditto.
1421 (up_silently_base): Ditto.
1422 (down_silently_base): Ditto.
1423 * ocd.c (ocd_start_remote): Ditto.
1424 * remote-rdp.c (remote_rdp_open): Ditto.
1425 * remote-mips.c (mips_initialize): Ditto.
1426 (common_open): Ditto.
1427 * remote-e7000.c (e7000_start_remote): Ditto.
1428 * m3-nat.c (select_thread): Ditto.
1429 * hppa-tdep.c (child_get_current_exception_event): Ditto.
1430 (child_get_current_exception_event): Ditto.
1431 * varobj.c (varobj_create): Ditto.
1432 (varobj_update): Ditto.
1433 (c_value_of_root): Ditto.
1434 * tracepoint.c (finish_tfind_command): Ditto.
1435 * corelow.c (core_open): Ditto.
1436 * arch-utils.c (generic_prepare_to_proceed): Ditto.
1437 * thread.c (info_threads_command): Ditto.
1438 (switch_to_thread): Ditto.
1439 * infrun.c (normal_stop): Ditto.
1440 (restore_selected_frame): Ditto.
1441 (restore_inferior_status): Ditto.
1442 * breakpoint.c (insert_breakpoints): Ditto.
1443 (watchpoint_check): Ditto.
1444 (bpstat_stop_status): Ditto.
1445 (do_enable_breakpoint): Ditto.
1446 * blockframe.c (flush_cached_frames): Ditto.
1447 (reinit_frame_cache): Ditto.
1449 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1451 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
1454 2002-05-04 Jim Blandy <jimb@redhat.com>
1456 * gdbtypes.c (replace_type): Doc fix.
1458 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1460 * valprint.c (strcat_longest): Delete commented out function.
1463 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1465 * MAINTAINERS: Mark a29k as deleted.
1466 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
1467 Move new configurations to the top.
1468 * configure.tgt: Remove a29k.
1469 * config/a29k/tm-vx29k.h: Delete.
1470 * config/a29k/vx29k.mt: Delete.
1471 * config/a29k/tm-a29k.h: Delete.
1472 * config/a29k/a29k-udi.mt: Delete.
1473 * config/a29k/a29k.mt: Delete.
1474 * a29k-tdep.c: Delete.
1475 * remote-udi.c: Delete.
1476 * remote-mm.c: Delete.
1477 * remote-eb.c: Delete.
1478 * remote-adapt.c: Delete.
1479 * Makefile.in: Remove obsolete code.
1480 * gdbserver/Makefile.in: Ditto.
1481 * config/s390/s390x.mt: Ditto.
1482 * config/s390/s390.mt: Ditto.
1483 * config/sparc/sparclynx.mh: Ditto.
1484 * config/sparc/linux.mh: Ditto.
1485 * config/pa/hppaosf.mh: Ditto.
1486 * config/pa/hppabsd.mh: Ditto.
1487 * config/ns32k/nbsd.mt: Ditto.
1488 * config/mips/vr5000.mt: Ditto.
1489 * config/m68k/sun3os4.mh: Ditto.
1490 * config/m68k/nbsd.mt: Ditto.
1491 * config/m68k/m68klynx.mh: Ditto.
1492 * config/m32r/m32r.mt: Ditto.
1493 * config/i386/x86-64linux.mt: Ditto.
1494 * config/i386/nbsdelf.mt: Ditto.
1495 * config/i386/nbsd.mt: Ditto.
1496 * config/i386/i386lynx.mh: Ditto.
1498 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1500 * target.c (debug_print_register): New function. Handle oversize
1502 (debug_to_fetch_registers): Call.
1503 (debug_to_store_registers): Call.
1505 2002-05-03 Jim Blandy <jimb@redhat.com>
1507 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
1508 (read_type): Doc fix.
1509 * gdbtypes.c (replace_type): Doc fix.
1511 * stabsread.c (multiply_defined_struct): New complaint.
1512 (read_struct_type): If the type we were passed isn't empty, or
1513 incomplete, don't read the new struct type into it; complain,
1514 and return the original type unchanged. Take a new `type_code'
1515 argument, which is the type code for the new type.
1516 (read_type): Rather than storing the type's type code here, pass
1517 it as an argument to read_struct_type, and let that take care of
1518 storing it. That way, we don't overwrite the original type code,
1519 so read_struct_type can use it to decide whether we're overwriting
1520 something we shouldn't.
1521 (complain_about_struct_wipeout): New function.
1523 2002-05-03 Andrew Cagney <ac131313@redhat.com>
1525 * gdbarch.sh: Assert that gdbarch is non-NULL.
1526 * gdbarch.c: Regenerate.
1528 2002-05-03 Jason Merrill <jason@redhat.com>
1530 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
1533 2002-05-03 Michal Ludvig <mludvig@suse.cz>
1535 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
1536 (x86_64_dwarf2gdb_regno_map_length),
1537 (x86_64_dwarf2_reg_to_regnum): Added.
1538 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
1539 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
1540 (_initialize_x86_64_tdep): Synced with the change above.
1541 (x86_64_skip_prologue): Reformulated message.
1543 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1545 * f-exp.y: Also use new prev_lexptr variable
1546 to improve error reporting. Based on Michael Snyder
1547 2002-04-24 dated patch to c-exp.y.
1548 * jv-exp.y: Likewise.
1549 * m2-exp.y: Likewise.
1551 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
1553 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
1554 we are dealing with vectors.
1556 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1558 * config/m68k/tm-nbsd.h: Obvious fix,
1559 correct machine name.
1561 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1563 * p-typeprint.c (pascal_type_print_base): Add support
1564 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
1566 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1568 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
1569 for fondamental pascal 'char' type.
1571 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1573 * p-lang.h (is_pascal_string_type): Declaration changed,
1574 new sixth argument of type char ** added.
1575 * p-lang.c (is_pascal_string_type): Implementation
1576 changed. Args length_pos, length_size, string_pos, char_size
1577 can now be NULL. New argument arrayname set to the field
1578 name of the char array. Return value set to char array
1579 field index plus one.
1580 * p-valprint.c (pascal_val_print): Adapt to new declaration of
1581 is_pascal_string_type function.
1583 2002-05-02 Andrew Cagney <cagney@redhat.com>
1585 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
1586 <cagney@redhat.com> change.
1587 * gdbarch.c: Regenerate.
1589 2002-05-02 Andrew Cagney <cagney@redhat.com>
1591 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
1592 before probing for a new one. Detect errorenous gdbarch_init
1594 * gdbarch.c: Regenerate.
1596 2002-05-01 Andrew Cagney <cagney@redhat.com>
1598 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
1599 * config/mcore/tm-mcore.h: Ditto. Update copyright.
1600 * config/v850/tm-v850.h: Ditto. Update copyright.
1602 2002-04-30 Andrew Cagney <ac131313@redhat.com>
1604 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
1607 2002-04-30 Michael Snyder <msnyder@redhat.com>
1609 * arm-tdep.c: Whitespace clean-ups.
1610 (arm_skip_prologue): Fix thinko; two lines
1611 should have been removed as part of 4/24 change.
1613 2002-04-30 Kevin Buettner <kevinb@redhat.com>
1615 * rs6000-tdep.c: Added comment describing how fpscr register
1616 numbers were chosen.
1618 2002-04-30 Michael Snyder <msnyder@redhat.com>
1620 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
1622 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
1624 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
1625 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
1626 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
1628 2002-04-29 Kevin Buettner <kevinb@redhat.com>
1630 From Louis Hamilton <hamilton@redhat.com>:
1631 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
1632 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
1633 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
1634 not bfd-private xcoff data, to determine wordsize.
1635 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
1637 2002-04-29 Andrew Cagney <ac131313@redhat.com>
1639 GDB 5.2 released from 5.2 branch.
1641 2002-04-29 Michal Ludvig <mludvig@suse.cz>
1643 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
1644 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
1645 (x86_64_register_info_table): Added comments with register numbers.
1647 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
1649 * rs6000-tdep.c (rs6000_extract_return_value,
1650 rs6000_store_return_value): Handle returning vectors.
1651 (rs6000_gdbarch_init): Use
1652 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
1653 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1655 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
1657 (ppc_sysv_abi_push_arguments): Handle vector parameters.
1658 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
1660 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1662 * hpread.c (hpread_psymtab_to_symtab_1,
1663 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
1664 with fprintf_unfiltered (gdb_stderr,...).
1666 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1668 * remote-array.c (printf_monitor, write_monitor,
1669 array_insert_breakpoint, array_remove_breakpoint ):
1670 Replace fprintf (stderr,...
1671 with fprintf_unfiltered (gdb_stderr,....
1672 * remote-es.c: Likewise.
1673 * remote-os9k.c: Likewise.
1674 * remote-st.c: Likewise.
1676 2002-04-28 Andreas Schwab <schwab@suse.de>
1678 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
1679 linux-proc.o and gcore.o.
1681 2002-04-26 Michal Ludvig <mludvig@suse.cz>
1683 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
1684 code without frame pointers.
1686 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1688 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
1691 2002-04-26 Ben Elliston <bje@redhat.com>
1693 * target.c (do_xfer_memory): Correct reference to the new option
1694 "trust-readonly-sections".
1696 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
1698 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
1699 * gdbtypes.c (recursive_dump_type): Output the vector flag.
1700 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
1702 (read_array_type): Record the fact that this array type is really a
1703 vector (i.e. are passed in by value).
1705 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
1707 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
1708 * alpha-tdep.c (alpha_sigcontext_addr): New function.
1709 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
1710 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
1711 * alpha-linux-tdep.c: Include frame.h.
1712 (alpha_linux_sigcontext_addr): New function.
1713 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
1714 alpha_linux_sigcontext_addr.
1715 * alpha-osf1-tdep.c: Include gdbcore.h.
1716 (alpha_osf1_sigcontext_addr): New function.
1717 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
1718 alpha_osf1_sigcontext_addr.
1719 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
1720 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
1722 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1724 * stack.c (selected_frame_level):
1725 (select_frame): Do not set selected_frame_level.
1726 * frame.h (selected_frame_level): Delete declaration.
1728 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1730 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
1731 convert_from_func_ptr-addr when AIX / PowerOpen.
1733 2002-04-25 Andrew Cagney <ac131313@redhat.com>
1735 * valops.c (hand_function_call): Call
1736 generic_save_call_dummy_addr.
1737 * frame.h (generic_save_call_dummy_addr): Declare.
1738 * blockframe.c (struct dummy_frame): Add fields call_lo and
1740 (generic_find_dummy_frame): Check for PC in range call_lo to
1741 call_hi instead of entry_point_address.
1742 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
1743 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
1744 (generic_save_call_dummy_addr): New function.
1746 2002-04-24 David S. Miller <davem@redhat.com>
1748 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
1749 sparc_skip_prologue.
1750 (sparc_skip_prologue): Kill frameless_p arg, and use line number
1751 information to find prologue when possible.
1752 (sparc_prologue_frameless_p): Call examine_prologue directly.
1753 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
1754 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
1756 (SKIP_PROLOGUE): Likewise.
1758 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1760 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
1761 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
1762 indicate that the condition it was testing is always true.
1763 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
1764 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1765 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1767 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1769 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
1770 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
1771 tdep->jb_pc and tdep->jb_elt_size.
1772 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
1773 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
1774 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
1775 * alpha-nat.c (get_longjmp_target): Remove.
1776 (JB_ELEMENT_SIZE): Ditto.
1778 * alpha-tdep.c (alpha_get_longjmp_target): New function.
1779 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
1780 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
1781 to alpha_get_longjmp_target.
1782 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
1783 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
1784 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
1786 2002-04-25 Andrew Cagney <ac131313@redhat.com>
1788 * README: Update to GDB 5.2.
1790 2002-04-25 Andrew Cagney <ac131313@redhat.com>
1792 * gdbarch.sh (LC_ALL): Set to `c'.
1794 2002-04-25 Theodore A. Roth <troth@verinet.com>
1796 * avr-tdep.c: Ran through gdb_indent.sh.
1798 2002-04-25 Theodore A. Roth <troth@verinet.com>
1800 * MAINTAINERS: Add myself as AVR maintainer.
1801 * NEWS: Note new target avr.
1803 2002-04-25 Theodore A. Roth <troth@verinet.com>
1805 * Makefile.in: Add support for AVR target.
1806 * configure.tgt: Add support for AVR target.
1807 * avr-tdep.c: New file
1808 * config/avr/avr.mt: New file.
1810 2002-04-25 Theodore A. Roth <troth@verinet.com>
1812 * MAINTAINERS: Add myself to write-after-approval.
1814 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1816 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
1817 with fprintf_unfiltered (gdb_stderr,....
1819 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1822 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
1824 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1826 * p-exp.y: Also use new prev_lexptr variable
1827 to improve error reporting. Based on Michael Snyder
1828 2002-04-24 dated patch to c-exp.y.
1830 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1832 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
1833 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
1834 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
1836 * config/alpha/tm-alpha.h: Remove forward decls of struct type
1838 (FUNCTION_START_OFFSET): Remove.
1839 (BREAKPOINT): Ditto.
1841 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1843 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
1846 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1848 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
1849 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
1850 alpha_linux_pc_in_sigtramp.
1851 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
1852 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
1853 alpha_osf1_pc_in_sigtramp.
1854 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
1855 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
1856 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1857 alphafbsd_pc_in_sigtramp.
1858 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
1859 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1860 alphanbsd_pc_in_sigtramp.
1861 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
1862 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
1864 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1866 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1868 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1870 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
1872 (alphanbsd-nat.o): New dependency list.
1873 (alphanbsd-tdep.o): Ditto.
1874 * NEWS: Note new native NetBSD/alpha configuration.
1875 * alphanbsd-nat.c: New file.
1876 * alphanbsd-tdep.c: Ditto.
1877 * configure.host (alpha*-*-netbsd*): New host.
1878 * configure.tgt (alpha*-*-netbsd*): New target.
1879 * config/alpha/nbsd.mh: New file.
1880 * config/alpha/nbsd.mt: Ditto.
1881 * config/alpha/nm-nbsd.h: Ditto.
1882 * config/alpha/tm-nbsd.h: Ditto.
1884 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1886 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
1887 (alpha-osf1-tdep.o): New dependency list.
1888 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
1889 and skip_sigtramp_frame members.
1890 * alpha-linux-tdep.c: Include gdbcore.h.
1891 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
1892 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
1893 * alpha-osf1-tdep.c: New file.
1894 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
1896 (alpha_frame_past_sigtramp_frame): New function.
1897 (alpha_dynamic_sigtramp_offset): Ditto.
1898 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
1899 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
1900 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
1901 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
1902 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
1903 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
1904 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
1905 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
1906 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
1907 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
1908 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
1909 to find_solib_trampoline_target.
1910 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
1911 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
1912 (SKIP_TRAMPOLINE_CODE): Remove.
1913 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1914 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1915 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1916 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1917 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
1918 (PROC_SIGTRAMP_MAGIC): Ditto.
1919 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1920 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1921 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1922 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1923 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1925 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1927 * NEWS: Note that Alpha targets are now multi-arch.
1929 2002-04-24 Michael Snyder <msnyder@redhat.com>
1931 * parser-defs.h (prev_lexptr): New external variable.
1932 * parse.c (parse_exp_1): Set prev_lexptr to null before
1933 calling the language-specific parser.
1934 * c-exp.y (yylex): Set prev_lexptr to start of current token.
1935 (yyerror): Use prev_lexptr in error reporting.
1937 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
1939 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
1940 * gregset.h: If FILL_FPXREGSET is defined, provide
1941 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
1942 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
1943 is defined, call fill_fpxregset.
1945 2002-04-24 Roland McGrath <roland@frob.com>
1947 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
1948 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
1949 (supply_gregset, supply_fpregset): New functions.
1951 * gnu-nat.c (gnu_find_memory_regions): New function.
1952 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
1953 (gnu_xfer_memory): Add a cast.
1955 2002-04-24 Michael Snyder <msnyder@redhat.com>
1957 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
1958 loop. Add handling for "str lr, [sp, #-4]!" and for saves
1959 of argument regs ("str r(0123), [r11, #-nn"]).
1960 (arm_skip_prologue): Better handling for frameless functions.
1961 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
1962 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
1964 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
1966 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
1967 NUM_PSEUDO_REGS can be used.
1969 2002-04-24 Andrew Cagney <ac131313@redhat.com>
1971 * arch-utils.h: Update copyright.
1973 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
1974 * gdbarch.h, gdbarch.c: Re-generate.
1976 * inferior.h (IN_SIGTRAMP): Delete definition.
1977 * arch-utils.c (legacy_pc_in_sigtramp): New function.
1978 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
1980 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
1981 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
1982 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
1983 (find_proc_framesize): Ditto.
1984 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
1985 (alpha_init_extra_frame_info): Ditto.
1986 * infrun.c (handle_inferior_event): Ditto.
1987 (handle_inferior_event): Ditto.
1988 (check_sigtramp2): Ditto.
1989 * blockframe.c (create_new_frame): Ditto.
1990 (get_prev_frame): Ditto.
1991 * ppc-linux-tdep.c: Update comments.
1992 * i386-linux-tdep.c: Update comments.
1993 * breakpoint.c (bpstat_what): Update comment.
1995 2002-04-24 Michal Ludvig <mludvig@suse.cz>
1997 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
1998 (regsets_store_inferior_registers): Removed cast to int from
2000 * gdbserver/regcache.h: Added declaration of struct inferior_info.
2002 2002-04-24 David S. Miller <davem@redhat.com>
2004 * i960-tdep.c (register_in_window_p): New function.
2005 (i960_find_saved_register): Use it instead of
2006 REGISTER_IN_WINDOW_P.
2007 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
2009 * symtab.h (find_stab_function_addr): Kill extern.
2010 * minsyms.c (find_stab_function_addr): Remove from here...
2011 * dbxread.c: ... to here, and mark it static.
2013 2002-04-20 David S. Miller <davem@redhat.com>
2015 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
2016 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
2018 2002-04-21 David S. Miller <davem@redhat.com>
2020 * remote-vxsparc.c (vx_read_register): Fix typo, we want
2021 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
2022 (vx_write_register): Likewise.
2024 2002-04-23 J. Brobecker <brobecker@gnat.com>
2026 * source.c (is_regular_file): New function.
2027 (openp): Check wether file to open is a regular file
2028 to avoid opening directories.
2030 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2032 * findvar.c (extract_signed_integer): Cast printf argument
2033 to suppress format warning.
2034 (extract_unsigned_integer): Likewise.
2035 * infcmd.c (registers_info): Likewise.
2036 * top.c (get_prompt_1): Likewise.
2037 * valops.c (value_assign): Likewise.
2038 * valprint.c (print_decimal): Likewise.
2040 2002-04-22 H.J. Lu (hjl@gnu.org)
2042 * c-exp.y (typebase): Support
2044 [long|long long|short] [signed|unsigned] [int|]
2048 signed [long|long long|short] int
2050 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2052 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
2054 * vax-tdep.h: New file.
2055 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
2056 Make several routines static.
2057 (vax_get_saved_register): New function.
2058 (vax_gdbarch_init): New function.
2059 (_initialize_vax_tdep): Register vax_gdbarch_init.
2060 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
2061 Remove macros now under the control of gdbarch.
2063 2002-04-22 Michael Snyder <msnyder@redhat.com>
2065 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
2066 Some whitespace and coding standards tweaks.
2068 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2070 * vax-tdep.c: Include regcache.h.
2071 (vax_call_dummy_words): New.
2072 (sizeof_vax_call_dummy_words): New.
2073 (vax_fix_call_dummy): New function.
2074 (vax_saved_pc_after_call): Ditto.
2075 * config/vax/tm-vax.h: Don't include regcache.h.
2076 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
2077 (CALL_DUMMY): Remove.
2078 (CALL_DUMMY_WORDS): Define.
2079 (SIZEOF_CALL_DUMMY_WORDS): Define.
2080 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
2082 2002-04-18 Michael Snyder <msnyder@redhat.com>
2084 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
2086 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2088 * vax-tdep.c (vax_frame_chain): New function.
2089 (vax_push_dummy_frame): Ditto.
2090 (vax_pop_frame): Ditto.
2091 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
2092 (FRAMELESS_FUNCTION_INVOCATION): Use
2093 generic_frameless_function_invocation_not.
2094 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
2095 (POP_FRAME): Use vax_pop_frame.
2097 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2099 * vax-tdep.c (vax_store_struct_return): New function.
2100 (vax_extract_return_value): Ditto.
2101 (vax_store_return_value): Ditto.
2102 (vax_extract_struct_value_address): Ditto.
2103 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
2104 vax_store_struct_return.
2105 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
2106 (STORE_RETURN_VALUE): Use vax_store_return_value.
2107 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
2109 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2111 * vax-tdep.c (vax_frame_saved_pc): New function.
2112 (vax_frame_args_address_correct): Ditto.
2113 (vax_frame_args_address): Ditto.
2114 (vax_frame_locals_address): Ditto.
2115 (vax_frame_num_args): Move code to be in proximity to
2116 other frame-related functions.
2117 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
2118 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
2119 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
2120 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
2121 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
2123 2002-04-22 H.J. Lu (hjl@gnu.org)
2125 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
2128 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2130 * vax-tdep.c (vax_frame_init_saved_regs): New function.
2131 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
2132 (FRAME_INIT_SAVED_REGS): New macro.
2134 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2136 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
2138 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2140 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
2142 (fetch_osf_core_registers): Likewise.
2143 (supply_gregset): Likewise.
2145 2002-04-22 J. Brobecker <brobecker@gnat.com>
2147 * symfile.h (get_section_index): Define.
2148 * symfile.c (get_section_index): New function.
2149 * mdebugread.c (SC_IS_SBSS): New macro.
2150 (SC_IS_BSS): Return true for the scBss storage class only, as
2151 the scSBss storage class refers to the .sbss section.
2152 (parse_partial_symbols): Discard the symbols which associated
2153 section does not exist.
2154 Make sure to use the .sbss section index for symbols which
2155 storage class is scBss, rather than using the .bss section index.
2157 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2159 * vax-tdep.c: Update copyright years.
2160 (vax_register_name): New function.
2161 (vax_register_byte): Ditto.
2162 (vax_register_raw_size): Ditto.
2163 (vax_register_virtual_size): Ditto.
2164 (vax_register_virtual_type): Ditto.
2165 * config/vax/tm-vax.h: Update copyright years.
2166 (REGISTER_NAMES): Remove.
2167 (REGISTER_NAME): Define.
2168 (REGISTER_BYTE): Use vax_register_byte.
2169 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
2170 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
2171 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
2173 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2175 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
2177 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
2179 2002-04-21 David S. Miller <davem@redhat.com>
2181 * arch-utils.c (generic_prologue_frameless_p): Kill
2182 SKIP_PROLOGUE_FRAMELESS_P code.
2183 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
2185 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
2186 * arc-tdep.c (arc_prologue_frameless_p): Implement.
2187 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
2189 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
2190 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
2191 (sparc_gdbarch_init): Pass it to
2192 set_gdbarch_prologue_frameless_p.
2194 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2196 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
2197 (alphabsd-nat.o): New dependency list.
2199 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2201 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
2203 (alpha-linux-tdep.o): New dependency list.
2204 (alphafbsd-tdep.o): Likewise.
2206 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2208 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
2210 * alpha-tdep.c: ...from here.
2211 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
2213 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2215 * config/alpha/tm-alpha.h: Move alpha_software_single_step
2216 prototype from here...
2217 * alpha-tdep.h: ...to here.
2219 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2221 * frame.h (selected_frame_level): Document as deprecated.
2222 (frame_relative_level): Declare.
2223 * stack.c (frame_relative_level): New function.
2224 (selected_frame_level): Document as deprecated.
2225 (select_frame): Do not set the selected_frame_level.
2227 * stack.c (frame_info, record_selected_frame): Update.
2228 (frame_command, current_frame_command): Update.
2229 (up_silently_base, up_command, down_silently_base): Update.
2230 (down_command): Update.
2231 * inflow.c (kill_command): Update.
2232 * tracepoint.c (finish_tfind_command): Update.
2233 * corelow.c (core_open): Update.
2234 * thread.c (info_threads_command): Update.
2235 (do_captured_thread_select): Update.
2236 * infcmd.c (finish_command): Update.
2237 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
2239 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2241 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
2243 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2245 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
2248 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2250 * alphafbsd-tdep.c: Update copyright years. Include
2252 (alphafbsd_use_struct_convention): Make static.
2253 (alphafbsd_init_abi): New function.
2254 (_initialize_alphafbsd_tdep): New function.
2255 * config/alpha/tm-fbsd.h: Update copyright years.
2256 (USE_STRUCT_CONVENTION): Remove.
2258 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2260 * alpha-tdep.c (alpha_abi_handler): New structure to describe
2261 an Alpha ABI variant.
2262 (alpha_abi_handler_list): Declare.
2263 (alpha_gdbarch_register_os_abi): New function.
2264 (alpha_gdbarch_init): Give registered ABI variant handlers a
2265 chance to tweak the gdbarch once we have set up defaults.
2266 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
2268 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2270 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
2271 to standard_coerce_float_to_double.
2272 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2274 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2276 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
2277 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
2278 from gdbarch_tdep rather than a constant.
2279 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
2280 the default text address for all Alpha Unix ABIs.
2281 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
2282 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
2284 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2286 * alpha-tdep.h: New file. Includes several Alpha target constants
2288 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
2289 let gdbarch deal with.
2290 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
2291 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
2293 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
2294 Alpha target register names.
2295 * alphabsd-nat.c: Likewise.
2296 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
2297 Alpha target register names. Make serveral routines static.
2298 (alpha_get_saved_register): New function.
2299 (alpha_abi_names): New.
2300 (process_note_abi_tag_sections): New function.
2301 (get_elfosabi): New function.
2302 (alpha_gdbarch_init): New function.
2303 (alpha_dump_tdep): New function.
2304 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
2306 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2308 * frame.c (find_saved_register): Delete #ifdef
2309 HAVE_REGISTER_WINDOWS code.
2310 * config/sparc/tm-sparc.h: Update comments.
2311 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
2313 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2315 * i960-tdep.c (i960_find_saved_register): New function.
2316 (i960_get_saved_register): New function.
2317 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
2318 (i960_get_saved_register): Declare.
2319 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
2321 2002-04-20 David S. Miller <davem@redhat.com>
2323 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
2325 2002-04-20 Andrew Cagney <ac131313@redhat.com>
2327 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
2328 instead of NUM_PSEUDO_REGS.
2330 2002-04-20 David S. Miller <davem@redhat.com>
2332 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
2333 GDB_MULTI_ARCH_PARTIAL
2334 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
2335 define, let tm-sp64.h do it.
2337 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
2339 * frame.c (find_saved_register): Avoid a NULL pointer
2340 dereference and actually walk the frame list.
2342 2002-04-20 Andrew Cagney <ac131313@redhat.com>
2344 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
2345 sorted in most most-recent-used order. Document.
2346 * gdbarch.h, gdbarch.c: Regenerate.
2348 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2350 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
2351 (add_inferior): Call create_register_cache.
2352 (clear_inferiors): Call free_register_cache.
2353 (inferior_regcache_data, set_inferior_regcache_data): New functions.
2354 * gdbserver/regcache.c (struct inferior_regcache_data): New.
2355 (registers): Remove.
2356 (get_regcache): New function.
2357 (create_register_cache, free_register_cache): New functions.
2358 (set_register_cache): Don't initialize the register cache here.
2359 (registers_to_string, registers_from_string, register_data): Call
2361 * gdbserver/regcache.h: Add prototypes.
2362 * gdbserver/server.h: Likewise.
2364 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2366 * gdbserver/mem-break.c: New file.
2367 * gdbserver/mem-break.h: New file.
2368 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
2370 * gdbserver/inferiors.c (struct inferior_info): Add target_data
2372 (clear_inferiors): Free target_data member if set.
2373 (inferior_target_data, set_inferior_target_data): New functions.
2374 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
2375 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
2376 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
2377 (struct inferior_linux_data): New.
2378 (linux_create_inferior): Use set_inferior_target_data.
2379 (linux_attach): Likewise. Call add_inferior.
2380 (linux_wait_for_one_inferior): New function.
2381 (linux_wait): Call it.
2382 (linux_write_memory): Add const.
2383 (initialize_low): Call set_breakpoint_data.
2384 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
2386 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
2388 * gdbserver/server.h: Include mem-break.h. Update inferior.c
2390 * gdbserver/target.c (read_inferior_memory)
2391 (write_inferior_memory): New functions.
2392 * gdbserver/target.h (read_inferior_memory)
2393 (write_inferior_memory): Change macros to prototypes.
2394 (struct target_ops): Update comments. Add const to write_memory
2397 2002-04-19 Andrew Cagney <ac131313@redhat.com>
2399 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
2401 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
2402 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
2403 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
2406 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
2409 * gdbtypes.c (init_simd_type): Rewrite using new functions.
2410 (build_builtin_type_vec128): Ditto.
2411 (append_composite_type_field): Fix calculation of type length in
2414 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
2416 * config/djgpp/README: Update.
2418 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
2421 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
2423 * alpha-tdep.c (setup_arbitrary_frame): Rename...
2424 (alpha_setup_arbitrary_frame): ...to this.
2425 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
2426 for alpha_setup_arbitrary_frame.
2428 2002-04-18 Andrew Cagney <cagney@redhat.com>
2430 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
2431 * gdbarch.h, gdbarch.c: Regenerate.
2433 * defs.h (breakpoint_from_pc_fn): Delete type definition.
2434 * target.h (memory_breakpoint_from_pc): Update declaration.
2435 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
2437 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
2438 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
2439 * mem-break.c (memory_breakpoint_from_pc): Ditto.
2440 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
2441 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
2442 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
2443 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
2444 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
2445 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
2446 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
2447 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
2448 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
2450 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
2452 * monitor.c (monitor_insert_breakpoint): Ditto.
2453 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
2455 * config/mcore/tm-mcore.h: Update copyright.
2456 * mem-break.c: Ditto.
2457 * xstormy16-tdep.c: Ditto.
2459 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
2461 * p-exp.y: Add precedence rule for '^' token.
2462 This removes the shift/reduce conflicts.
2463 Remove the comment concerning these shift/reduce conflicts.
2465 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
2467 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
2468 (registers_powerpc_nofp): New register set for processors
2469 without floating point unit.
2471 2002-04-18 David S. Miller <davem@redhat.com>
2473 * MAINTAINERS: Add myself to write-after-approval.
2475 2002-04-17 Michael Snyder <msnyder@redhat.com>
2477 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
2479 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2481 * rs6000-tdep.c (frame_initial_stack_address): Use
2482 frame_register_read to read the alloca_reg.
2484 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2486 * frame.c (find_saved_register): Find saved registers in the next
2490 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2492 * gdbarch.sh (LANG): Set to ``c''.
2494 2002-04-15 Andrew Cagney <ac131313@redhat.com>
2496 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
2498 2002-04-15 Andrew Cagney <ac131313@redhat.com>
2500 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
2503 * hpread.c (hpread_get_lntt): Add declaration.
2504 Also fix PR gdb/391.
2506 2002-04-14 Andrew Cagney <ac131313@redhat.com>
2508 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
2509 * aclocal.m4, configure: Re-generate.
2512 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
2514 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
2515 instead of tm_print_insn.
2517 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
2519 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
2521 2002-04-14 Andrew Cagney <ac131313@redhat.com>
2523 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
2524 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
2525 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
2527 2002-04-12 Don Howard <dhoward@redhat.com>
2529 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
2530 max_user_call_depth.
2531 (init_cmd_lists): Initialize the new value;
2532 * cli/cli-script.c (execute_user_command): Limit the call depth of
2533 user defined commands. This avoids a core-dump when user commands
2534 are infinitly recursive.
2536 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2538 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
2539 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
2540 from tdep struct instead of DEFAULT_LR_SAVE.
2541 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
2542 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
2543 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
2545 2002-04-12 Michael Snyder <msnyder@redhat.com>
2547 * Remote.c: Spelling fix.
2548 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
2549 If no symbol found for "sbrk", try "_sbrk".
2550 (make_output_phdrs): Use bfd_section_name.
2551 (gcore_copy_callback): Use bfd_section_name.
2552 * eval.c: Indentation fix-ups.
2553 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
2554 in case it gets applied to an address that is already
2555 in the instruction space.
2556 * cli/cli-decode.c (help_list): Allow long lines to wrap.
2557 * symfile.c: Fix indentation, long lines.
2558 * source.c: White space fix-up.
2560 2002-04-12 Andrew Cagney <cagney@redhat.com>
2562 * defs.h (read_relative_register_raw_bytes): Delete declaration.
2563 * frame.c (frame_register_read): New function. Return non-zero on
2565 (read_relative_register_raw_bytes_for_frame): Delete.
2566 (read_relative_register_raw_bytes): Delete.
2567 * frame.h (frame_register_read): Declare.
2568 * d30v-tdep.c: Update Copyright. Use frame_register_read.
2570 * infcmd.c (do_registers_info): Ditto.
2571 * hppa-tdep.c: Ditto.
2572 * rs6000-tdep.c: Ditto.
2573 * h8500-tdep.c: Ditto.
2574 * mips-tdep.c: Ditto.
2575 * h8300-tdep.c: Ditto.
2576 * z8k-tdep.c: Ditto.
2578 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2580 From Jimi X <jimix@watson.ibm.com>:
2581 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
2584 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2586 From Jimi X <jimix@watson.ibm.com>:
2587 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
2590 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2592 From Jimi X <jimix@watson.ibm.com>:
2593 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
2594 register sets for these processor variants.
2596 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
2598 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
2599 registers which are allowed to fail to store.
2600 * gdbserver/linux-low.h (linux_target_ops): Likewise.
2601 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
2602 (ppc_cannot_store_register): FPSCR may not be storable.
2603 * regformats/reg-ppc.dat: Support FPSCR.
2605 2002-04-11 Kevin Buettner <kevinb@redhat.com>
2607 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
2608 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
2609 Add fpscr as an invalid/unfetchable register.
2610 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
2611 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
2612 (fill_fpregset): Add support for register fpscr.
2613 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
2614 (fill_gregset): Account for the fact that register ``mq'' might
2616 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
2617 (registers_power): Add fpscr to register set at slot 71.
2618 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
2619 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
2621 2002-04-11 Michael Snyder <msnyder@redhat.com>
2623 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
2624 * configure: Regenerate.
2625 * config.in: Regenerate.
2626 * acconfig.h: Add define for _SYSCALL32.
2627 * core-sol2.c: Remove #define _SYSCALL32.
2628 * solib-legacy.c: Remove #define _SYSCALL32.
2630 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2632 * stack.c (select_frame): Cleanup internal error message, do not
2635 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2637 * stack.c (select_frame): Check that selected_frame and the
2638 specified level are as expected.
2639 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
2641 * frame.h (struct frame_info): Add field `level'. Update
2643 Work-in-progress PR gdb/464.
2645 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2647 * maint.c (maint_print_section_info): Rename print_section_info.
2648 (print_bfd_section_info, print_objfile_section_info): Update.
2649 * inferior.h (struct gdbarch): Add opaque declaration.
2650 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
2651 * gdbarch.h: Regenerate.
2653 2002-04-10 Michal Ludvig <mludvig@suse.cz>
2655 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
2656 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
2657 (kernel_u_size): Added.
2658 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
2659 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
2661 2002-04-04 Jim Ingham <jingham@apple.com>
2663 * valarith.c (find_size_for_pointer_math): New function, either returns
2664 the size for a pointer's target, returns 1 for void *, or errors for
2666 (value_add, value_sub): use find_size_for_pointer_math.
2668 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2670 * linux-low.c (linux_look_up_symbols): New hook.
2671 (linux_target_ops): Add linux_look_up_symbols.
2672 * remote-utils.c (decode_address): New function.
2673 (look_up_one_symbol): New function.
2674 * server.c (handle_query): Call target look_up_symbols hook.
2675 * server.h (look_up_one_symbol): Add prototype.
2676 * target.h (struct target_ops): Add look_up_symbols hook.
2678 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2680 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
2681 * ChangeLog: Correct paths in last ChangeLog entry.
2683 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2685 * gdbserver/linux-low.h: Remove obsolete prototypes.
2686 (struct linux_target_ops): New.
2687 (extern the_low_target): New.
2688 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2689 (register_addr): Use the_low_target explicitly.
2690 (fetch_register): Likewise.
2691 (usr_fetch_inferior_registers): Likewise.
2692 (usr_store_inferior_registers): Likewise.
2693 * gdbserver/linux-arm-low.c (num_regs): Remove.
2694 (arm_num_regs): Define.
2695 (arm_regmap): Renamed from regmap, made static.
2696 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
2698 (arm_cannot_store_register): Renamed from cannot_store_register,
2700 (the_low_target): New.
2701 * gdbserver/linux-i386-low.c (num_regs): Remove.
2702 (i386_num_regs): Define.
2703 (i386_regmap): Renamed from regmap, made static.
2704 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
2706 (i386_cannot_store_register): Renamed from cannot_store_register,
2708 (the_low_target): New.
2709 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2710 (ia64_num_regs): Define.
2711 (ia64_regmap): Renamed from regmap, made static.
2712 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
2714 (ia64_cannot_store_register): Renamed from cannot_store_register,
2716 (the_low_target): New.
2717 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2718 (m68k_num_regs): Define.
2719 (m68k_regmap): Renamed from regmap, made static.
2720 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
2722 (m68k_cannot_store_register): Renamed from cannot_store_register,
2724 (the_low_target): New.
2725 * gdbserver/linux-mips-low.c (num_regs): Remove.
2726 (mips_num_regs): Define.
2727 (mips_regmap): Renamed from regmap, made static.
2728 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
2730 (mips_cannot_store_register): Renamed from cannot_store_register,
2732 (the_low_target): New.
2733 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2734 (ppc_num_regs): Define.
2735 (ppc_regmap): Renamed from regmap, made static.
2736 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
2738 (ppc_cannot_store_register): Renamed from cannot_store_register,
2740 (the_low_target): New.
2741 * gdbserver/linux-s390-low.c (num_regs): Remove.
2742 (s390_num_regs): Define.
2743 (s390_regmap): Renamed from regmap, made static.
2744 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
2746 (s390_cannot_store_register): Renamed from cannot_store_register,
2748 (the_low_target): New.
2749 * gdbserver/linux-sh-low.c (num_regs): Remove.
2750 (sh_num_regs): Define.
2751 (sh_regmap): Renamed from regmap, made static.
2752 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
2754 (sh_cannot_store_register): Renamed from cannot_store_register,
2756 (the_low_target): New.
2757 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2758 (the_low_target): New.
2760 2002-04-09 Andrew Cagney <ac131313@redhat.com>
2762 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
2763 override FP_REGNUM with frame->fp. Update copyright.
2764 * parse.c (num_std_regs, std_regs): Delete.
2765 (target_map_name_to_register): Do not search std_regs. Update
2766 function description.
2767 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
2768 declarations. Update copyright.
2771 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2773 * gdbserver/Makefile.in: Add stamp-h target.
2774 * gdbserver/configure.in: Create stamp-h.
2775 * gdbserver/configure: Regenerated.
2777 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2779 * gdbserver/inferiors.c: New file.
2780 * gdbserver/target.c: New file.
2781 * gdbserver/target.h: New file.
2782 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
2784 * gdbserver/linux-low.c (inferior_pid): New static variable,
2785 moved from server.c.
2786 (linux_create_inferior): Renamed from create_inferior.
2787 Call add_inferior. Return 0 on success instead of a PID.
2788 (linux_attach): Renamed from myattach.
2789 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
2790 (linux_thread_alive): Renamed from mythread_alive.
2791 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
2793 (linux_resume): Renamed from myresume. Add missing ``return 0''.
2794 (regsets_store_inferior_registers): Correct error message.
2795 Add missing ``return 0''.
2796 (linux_fetch_registers): Renamed from fetch_inferior_registers.
2797 (linux_store_registers): Renamed from store_inferior_registers.
2798 (linux_read_memory): Renamed from read_inferior_memory.
2799 (linux_write_memory): Renamed from write_inferior_memory.
2800 (linux_target_ops): New structure.
2801 (initialize_low): Call set_target_ops ().
2802 * gdbserver/remote-utils.c (unhexify): New function.
2803 (hexify): New function.
2804 (input_interrupt): Send signals to ``signal_pid''.
2805 * gdbserver/server.c (inferior_pid): Remove.
2806 (start_inferior): Update create_inferior call.
2807 (attach_inferior): Call add_inferior.
2808 (handle_query): New function.
2809 (main): Call handle_query for `q' packets.
2810 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
2811 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2813 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2815 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
2817 * gdbserver/configure.in: Check for <string.h>
2818 * gdbserver/configure: Regenerate.
2819 * gdbserver/config.in: Regenerate.
2820 * gdbserver/gdbreplay.c: Include needed system headers.
2821 (remote_open): Remove strchr prototype.
2822 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
2823 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
2824 (supply_register_by_name): Likewise.
2825 (collect_register): Change buf argument to void *.
2826 (collect_register_by_name): Likewise.
2827 * gdbserver/regcache.h: Add missing prototypes.
2828 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
2829 * gdbserver/server.c (handle_query): New function.
2830 (attached): New static variable, moved out of main.
2831 (main): Quiet longjmp clobber warnings.
2832 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
2833 * gdbserver/utils.c (error): Remove NORETURN.
2836 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2838 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
2839 after the last symbol in a block.
2841 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
2843 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
2844 is non zero as a found symbol.
2846 2002-04-08 Andrew Cagney <ac131313@redhat.com>
2848 * findvar.c: Include "builtin-regs.h".
2849 (value_of_register): Call value_of_builtin_reg when applicable.
2850 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
2851 (target_map_name_to_register): Call
2852 builtin_reg_map_name_to_regnum.
2853 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
2854 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
2855 (builtin_regs_h): Define.
2856 (builtin-regs.o): New target.
2857 (findvar.o): Add $(builtin_regs_h).
2858 * builtin-regs.c, builtin-regs.h: New files.
2859 * std-regs.c: New file.
2860 Partial fix for PR gdb/251.
2862 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2864 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
2865 it's no longer required.
2867 2002-04-08 Andrew Cagney <ac131313@redhat.com>
2869 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
2871 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2873 From Jimi X <jimix@watson.ibm.com>:
2874 * rs6000-tdep.c (rs6000_software_single_step): Use
2875 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
2876 and size. Use target_insert_breakpoint() and
2877 target_remove_breakpoint() to insert and remove breakpoints
2878 instead of explicit memory reads and writes.
2880 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2882 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
2883 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
2884 ELF_OBJECT_FORMAT ifdef.
2886 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2888 From Jimi X <jimix@watson.ibm.com>:
2889 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
2891 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2893 From Jimi X <jimix@watson.ibm.com>:
2894 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
2895 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
2897 2002-04-07 Mark Kettenis <kettenis@gnu.org>
2899 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
2900 s/asprintf/xasprintf/.
2901 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
2903 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2905 I believe Jeff Law denies responsability for this one:
2906 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
2907 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
2908 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
2909 Work-around for PR gdb/366.
2911 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
2913 * remote-e7000.c (write_small, e7000_read_inferior_memory,
2914 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
2915 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
2917 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
2919 * sh-tdep.c (sh_fp_frame_init_saved_regs,
2920 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
2923 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2925 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
2928 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2930 * README (Reporting Bugs in GDB): Document the bug web page as the
2931 prefered way of submitting bugs.
2934 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2936 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
2938 * gdbarch.h, gdbarch.c: Re-generate.
2940 2002-04-07 Andreas Schwab <schwab@suse.de>
2942 * m68klinux-nat.c (fill_fpregset): Properly pass address of
2943 buffer to regcache_collect.
2945 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2947 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
2948 * gdbarch.c, gdbarch.h: Re-generate.
2950 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2952 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
2953 declaration. Fix -Werror.
2955 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
2957 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
2958 * gdbarch.c: Regenerate.
2960 2002-04-05 Michael Snyder <msnyder@redhat.com>
2962 * breakpoint.c (clear_command): Rewrite middle section to
2963 combine two loops with identical control conditions.
2964 Add a cleanup to eliminate a memory leak.
2965 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
2967 2002-04-05 H.J. Lu (hjl@gnu.org)
2969 * solib-svr4.c (bkpt_names): Add "__start".
2971 2002-04-04 Andrew Cagney <ac131313@redhat.com>
2973 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
2974 as test for 64 bit target.
2976 2002-04-05 Andrew Cagney <ac131313@redhat.com>
2978 * h8500-tdep.c (h8500_write_fp): Delete function.
2979 * dwarf2cfi.c (cfi_write_fp): Document as not used.
2980 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
2981 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
2982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
2983 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
2984 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
2986 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
2987 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
2988 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
2989 (d10v_write_fp): Delete function.
2990 * inferior.h (write_fp, generic_target_write_fp): Delete
2992 * regcache.c (generic_target_write_fp): Delete function.
2993 (write_fp): Delete function.
2994 * gdbarch.sh (TARGET_WRITE_FP): Delete.
2995 * gdbarch.h, gdbarch.c: Regenerate.
2996 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
2997 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
2998 (sparc64_write_fp): Delete declaration.
2999 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
3000 (h8500_write_fp): Delete declaration.
3002 2002-04-04 Andrew Cagney <ac131313@redhat.com>
3004 * sparc-tdep.c (sparc64_write_fp): Delete.
3005 (sparc_push_dummy_frame): Replace write_fp call with code to store
3007 (sparc_gdbarch_init): Do not initialize write_fp.
3009 2002-04-05 Kevin Buettner <kevinb@redhat.com>
3011 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
3014 2002-03-29 Jim Blandy <jimb@redhat.com>
3016 * stack.c (get_selected_block): Add new argument `addr_in_block',
3017 used to return the exact code address we used to select the block,
3019 * blockframe.c (get_frame_block, get_current_block): Same.
3020 * frame.h (get_frame_block, get_current_block,
3021 get_selected_block): Update declarations.
3022 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
3023 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
3025 2002-04-05 Michael Snyder <msnyder@redhat.com>
3027 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
3030 2002-04-05 J. Brobecker <brobecker@gnat.com>
3032 * utils.c (xfullpath): New function.
3033 * defs.h (xfullpath): Add declaration.
3034 * source.c (openp): Use xfullpath in place of gdb_realpath to
3035 avoid resolving the basename part of filenames when the
3036 associated file is a symbolic link. This fixes a potential
3037 inconsistency between the filenames known to GDB and the
3038 filenames it prints in the annotations.
3039 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
3040 to be able to match a filename with either the real filename, or
3041 the name of any symbolic link to this file.
3042 (lookup_partial_symtab): Ditto.
3044 2002-04-04 Michael Snyder <msnyder@redhat.com>
3046 * breakpoint.c: Add support for hardware breakpoints in overlays.
3047 (overlay_events_enabled): New state variable.
3048 (insert_breakpoints): Use overlay_events_enabled to decide
3049 whether to attempt to set a breakpoint at the overlay load addr.
3050 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3051 (remove_breakpoint): Use overlay_events_enabled to decide
3052 whether breakpoints need to be removed from overlay load addr.
3053 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3054 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
3055 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
3056 disable_overlay_breakpoints): Update overlay_events_enabled.
3058 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
3060 * dwarf2read.c (struct function_range): New.
3061 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
3062 (check_cu_functions): New.
3063 (read_file_scope): Initialize global function lists.
3064 Call dwarf_decode_line after processing children.
3065 (read_func_scope): Add to global function list.
3066 (dwarf_decode_lines): Call check_cu_functions everywhere
3067 record_line is called. Call record_line with a linenumber
3068 of 0 to mark sequence ends.
3070 2002-04-04 Michal Ludvig <mludvig@suse.cz>
3072 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
3073 change sync with glibc.
3075 2002-04-03 Jim Blandy <jimb@redhat.com>
3077 * configure.in: Call AC_C_INLINE.
3078 * configure: Regenerated.
3080 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
3082 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
3083 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
3085 2002-03-31 Mark Kettenis <kettenis@gnu.org>
3087 * NEWS: Mention gcore support on FreeBSD/i386.
3089 * fbsd-proc.c: New file.
3090 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
3091 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
3093 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
3096 2002-03-29 Jim Blandy <jimb@redhat.com>
3098 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
3099 unescaped newlines in string literals, but newer ones don't. So
3102 2002-03-26 Michael Snyder <msnyder@redhat.com>
3103 Andrew Cagney <cagney@redhat.com>
3105 * cli/cli-dump.c: New file. Dump memory to file,
3106 restore file to memory.
3107 * cli/cli-dump.h: New file.
3108 * Makefile.in: Add rules, dependencies for cli-dump.o.
3109 * NEWS: Mention new commands.
3111 2002-03-28 Michael Snyder <msnyder@redhat.com>
3113 * symfile.c (symbol_file_add): Move test for null symbols to later.
3115 2002-03-27 Andrew Cagney <ac131313@redhat.com>
3117 From veksler at il.ibm.com:
3118 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
3119 the xstrduped original path.
3122 2002-03-27 Michael Snyder <msnyder@redhat.com>
3124 * breakpoint.c (_initialize_breakpoint): Clean up help string.
3125 * infcmd.c (_initialize_infcmd): Ditto.
3126 * language.c (_initialize_language): Ditto.
3127 * symfile.c (_initialize_symfile): Ditto.
3128 * top.c (_init_main): Ditto.
3129 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3131 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
3133 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
3134 vector registers handling.
3135 (skip_prologue): Handle new AltiVec instructions. Fill in new
3136 fields of frame data.
3137 (frame_get_saved_regs): Fill in information for AltiVec registers.
3139 2002-03-27 Jim Blandy <jimb@redhat.com>
3141 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
3142 a function; leave this macro here to invoke that function.
3143 (symbol_init_mangled_name): Declaration for that function.
3144 * symtab.c (symbol_init_mangled_name): New function.
3146 2002-03-27 Andrew Cagney <ac131313@redhat.com>
3148 * valarith.c: Replace strerror with safe_strerror.
3149 * tracepoint.c: Ditto.
3151 * go32-nat.c: Ditto.
3155 2002-03-27 Andreas Schwab <schwab@suse.de>
3157 * event-top.c (command_line_handler): Remove useless if.
3159 2002-03-27 Andreas Jaeger <aj@suse.de>
3161 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
3164 2002-03-27 Michal Ludvig <mludvig@suse.cz>
3166 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
3167 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
3168 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
3169 (x86_64_linux_dr_get_status, supply_gregset),
3170 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
3171 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
3172 (x86_64_register_info_table): Add.
3173 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
3174 (x86_64_register_raw_size, x86_64_register_virtual_type),
3175 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
3176 general x86_64_register_info_table.
3177 (i386_gdbarch_init): gdbarch_register_bytes is now set
3178 dynamicaly during initialization.
3179 * regformats/reg-x86-64.dat: Synced with changes to registers above.
3180 * gdbserver/linux-x86-64-low.c: Ditto.
3182 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3184 * gdbserver/server.c (main): Call target_signal_to_host_p
3185 and target_signal_to_host on signals received from the remote.
3186 * gdbserver/remote-utils.c (prepare_resume_reply): Call
3187 target_signal_from_host on signals sent to the remote.
3188 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
3189 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
3191 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3193 * signals/signals.c: Include "server.h" in gdbserver build.
3194 (target_signal_from_name): Don't use STREQ.
3195 (_initialize_signals): Likewise. Don't include function in
3198 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3200 * signals.c: Moved to...
3201 * signals/signals.c: Here.
3202 * Makefile (signals.o): Update.
3204 2002-03-26 Jeff Law (law@redhat.com)
3206 * somread.c (som_symtab_read): Remove some commented out code and
3207 updated related comments. Do not set the minimal symbol table to
3208 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
3209 in a dynamic executable.
3210 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
3211 where we are unable to find the minimal symbol for the given
3214 2002-03-25 Jeff Law (law@redhat.com)
3216 * linux-proc.c (read_mapping): Scan up to end of line for filename.
3218 2002-03-25 Michal Ludvig <mludvig@suse.cz>
3220 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
3222 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3224 * command.h: Update copyright.
3225 (struct cmd_list_element): Replace definition with opaque
3227 (enum cmd_types): Document that it will eventually be moved to
3229 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
3230 (MALLOCED_REPLACEMENT): Delete macro.
3231 * Makefile.in (cli_decode_h): Add $(command_h).
3232 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
3233 * top.c: Include "cli/cli-decode.h".
3234 * completer.c: Include "cli/cli-decode.h".
3235 * maint.c: Include "cli/cli-decode.h".
3236 * cli/cli-decode.h: Include "command.h".
3237 (enum command_class): Delete.
3238 (enum cmd_types): Comment out.
3239 (enum cmd_auto_boolean): Delete.
3240 (enum var_types): Delete.
3242 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3244 * cli/cli-decode.c: Include "gdb_assert.h".
3245 (add_set_or_show_cmd): New static function.
3246 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
3247 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
3248 all fields, such as func, from the set command.
3250 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3252 * MAINTAINERS (sh-elf): Change warning flag to -w.
3254 2002-03-23 Andrew Cagney <cagney@redhat.com>
3256 * defs.h (error): Add printf format attribute.
3257 * thread-db.c (thread_from_lwp): Fix error format string.
3258 * stack.c (parse_frame_specification): Ditto.
3259 * cli/cli-decode.c (undef_cmd_error): Ditto.
3260 * scm-lang.c (scm_lookup_name): Ditto.
3261 * tracepoint.c (trace_error): Ditto.
3262 * remote-utils.c (usage): Ditto.
3263 * remote.c (compare_sections_command): Ditto.
3266 2002-03-22 Andrew Cagney <ac131313@redhat.com>
3268 * gdbtypes.c (append_composite_type_field): New function.
3269 (init_composite_type): New function.
3270 * gdbtypes.h (append_composite_type_field): Declare.
3271 (init_composite_type): Ditto.
3273 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
3275 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
3277 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
3278 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
3279 structure returning convention for SYSV ABI case, but not
3280 for GNU/Linux, FreeBSD, or NetBSD.
3282 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
3284 * symtab.h (lookup_block_symbol): Add mangled_name argument
3287 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
3288 with new mangled_name argument.
3289 * linespec.c (decode_line_1): Likewise.
3290 * valops (value_of_this): Likewise.
3291 * symtab.c (lookup_transparent_type): Likewise.
3292 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
3293 (lookup_symbol): If we are given a mangled name, pass it down
3294 to lookup_symbol_aux.
3295 (lookup_block_symbol): If we are given a mangled name to check
3296 against, only return symbols which match it.
3298 2002-03-22 Christopher Faylor <cgf@redhat.com>
3300 * win32-nat.c (child_create_inferior): Check for proper shell to use
3301 here, in case the user changes it on the fly.
3302 (_initialize_inftarg): Remove shell path considerations.
3304 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
3306 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
3307 for gdbarch_max_register_raw_size and max_register_virtual_size.
3308 Adjust copyright year.
3310 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
3312 * dbxread.c (process_one_symbol): Extend the first N_SLINE
3313 in a function to cover the entire beginning of the function
3314 as well if it does not already.
3316 2002-03-21 Tom Rix <trix@redhat.com>
3318 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
3319 (rs6000_ptrace64): Renamed from ptrace64.
3321 2002-03-20 Martin M. Hunt <hunt@redhat.com>
3323 * gdbserver/remote-utils.c (remote_open): Don't call
3324 getprotobyname, we're all using TCP here so just use
3326 * gdbserver/gdbreplay.c (remote_open): Ditto.
3328 2002-03-20 Martin M. Hunt <hunt@redhat.com>
3330 * regcache.c (_initialize_regcache): No need to call
3331 build_regcache() at this time; it gets called whenever
3332 the gdbarch changes.
3334 2002-03-20 David O'Brien <obrien@FreeBSD.org>
3336 * sparc-nat.c: Include sys/param.h where possible.
3338 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
3341 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
3342 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
3343 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
3345 * stabsread.c (rs6000_builtin_type): Likewise.
3346 (read_sun_floating_type): Likewise.
3348 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3350 * stabsread.c (read_member_functions): Remove skip code for duplicate
3351 constructor/destructor methods. Use standard parsing for these
3352 methods and just do not chain them to the list of methods after
3355 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
3357 * coffread.c: Remove redundant static declarations. Replace
3358 occurrences of `PTR' with `void *'.
3359 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
3360 * top.h (quit_cover): Likewise.
3361 * defs.h (catch_errors): Likewise.
3363 2002-03-18 Andrew Cagney <ac131313@redhat.com>
3365 * defs.h (XMALLOC): Define.
3366 * gdb-events.sh (XMALLOC): Delete macro.
3367 * gdb-events.c, gdb-events.h: Regenerate.
3368 * gdbarch.sh (XMALLOC): Delete macro.
3369 * gdbarch.c: Regenerate.
3370 * serial.c (XMALLOC): Delete macro.
3371 * ui-file.c (XMALLOC): Ditto.
3372 * ser-unix.h (XMALLOC): Ditto.
3373 * sh-tdep.c (XMALLOC): Ditto.
3374 * ui-out.c (XMALLOC): Ditto.
3375 * utils.c (XMALLOC): Ditto.
3376 * i386-tdep.c (XMALLOC): Ditto.
3377 * gdb-events.c (XMALLOC): Ditto.
3378 * d10v-tdep.c (XMALLOC): Ditto.
3379 * cli-out.c (XMALLOC): Ditto.
3381 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
3382 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
3383 * ui-file.c, ui-out.c: Ditto.
3385 2002-03-18 Andrew Cagney <ac131313@redhat.com>
3387 * command.h (struct cmd_list_element): Add field context.
3388 (set_cmd_context, get_cmd_context): Declare.
3389 * cli/cli-decode.h: Ditto.
3390 * cli/cli-decode.c (get_cmd_context): New function.
3391 (set_cmd_context): New function.
3392 (add_cmd): Initialize context.
3393 Part of fixing PR gdb/145 and PR gdb/146.
3395 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3397 * cli/cli-decode.c (cmd_type): New function.
3398 * command.h (cmd_type): Declare.
3399 * infrun.c (set_schedlock_func): Call function cmd_type.
3400 * kod.c (kod_set_os): Call cmd_type.
3401 * cris-tdep.c (cris_version_update): Use function cmd_type.
3402 (cris_mode_update, cris_abi_update): Ditto.
3404 * command.h: (execute_cmd_post_hook): Declare.
3405 (execute_cmd_pre_hook): Declare.
3406 * cli/cli-script.c (clear_hook_in_cleanup): New function.
3407 (execute_cmd_post_hook, execute_cmd_pre_hook): New
3408 functions. Execute pre/post hook while ensuring that afterwords
3410 * top.c (execute_command): Use execute_cmd_post_hook, and
3411 execute_cmd_pre_hook to execute pre/post commands.
3412 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
3414 (hook_stop_stub): Call execute_cmd_pre_hook.
3416 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3418 * kod.c (kod_set_os): Revert previous change. Is called by ``info
3419 set'' and this leads to a core dump. Move xstrdup of
3420 operating_system to after check that it is not NULL.
3422 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3424 * kod.c (kod_set_os): Remove unnecessary check that
3425 ``command->type'' is set_cmd.
3427 * valprint.c (set_input_radix): Use input_radix.
3428 (set_output_radix): Use output_radix.
3429 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
3432 2002-03-16 Andrew Cagney <ac131313@redhat.com>
3434 * value.h (struct value): Delete field ``substring_addr''. Change
3435 aligner fields to force_doublest_align, force_longest_align,
3436 force_core_addr_align and force_pointer_aligh.
3438 * value.h (struct value): Fix typo in above change.
3440 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3442 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
3443 to fix internal_error from ``maintenance print architecture''.
3445 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3447 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
3448 for gcc versions after gcc-2.8.1.
3450 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3452 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
3453 for method resolution. Restore adjustment of ``this'' pointer after
3454 calling value_struct_elt, which was accidentally removed during the
3457 2002-03-15 Andrew Cagney <ac131313@redhat.com>
3459 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
3461 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
3463 * value.h (value_of_register): Update.
3465 2002-03-14 Richard Henderson <rth@redhat.com>
3467 * configure.in: Detect declaration for canonicalize_file_name.
3468 * utils.c (canonicalize_file_name): Declare, if needed.
3469 (gdb_realpath): Prefer realpath if available and usable.
3470 * config.in, configure: Rebuild.
3472 2002-03-14 Richard Henderson <rth@redhat.com>
3474 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
3475 a constant array bound.
3477 * MAINTAINERS: Add myself to write-after-approval.
3479 2002-03-14 Michael Snyder <msnyder@redhat.com>
3481 * symfile.c (syms_from_objfile): Return immediately if no syms.
3482 (symbol_file_add): Return immediately if no syms.
3483 (find_sym_fns): Return immediately if no syms.
3485 2002-03-13 Michal Ludvig <mludvig@suse.cz>
3487 * gdbserver/remote-util.c (remote_open): Print remote-side's
3488 IP address when remote debugging over the network.
3490 2002-03-12 David O'Brien <obrien@FreeBSD.org>
3492 * config/sparc/fbsd.mh: Fix copyright.
3493 * config/sparc/fbsd.mt: Likewise.
3495 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
3497 * MAINTAINERS: Fix typo in name of gdb warnings option.
3498 (x86-64): Fix formating so that this can be parsed by awk.
3500 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
3502 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
3503 * defs.h: Include "gdb/signals.h".
3504 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
3506 2002-03-10 Michal Ludvig <mludvig@suse.cz>
3508 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
3509 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
3512 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
3513 Don Howard <dhoward@redhat.com>
3515 * mips-tdep.c (ST0_FR): Define.
3516 (mips2_fp_compat): New function, temporarily disabled.
3517 (mips_read_fp_register_single): New function.
3518 (mips_read_fp_register_double): New function.
3519 (mips_print_register): Use them.
3520 (do_fp_register_row): Likewise.
3522 2002-03-09 Andrew Cagney <ac131313@redhat.com>
3524 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
3527 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3529 * stabsread.c (read_member_functions): Fix is_stub test for
3530 static member functions, improve comment.
3532 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
3534 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
3535 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
3536 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
3537 commands that set boolean values.
3538 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
3539 (arm_rdi_resume): Always initialize PC.
3540 (arm_rdi_open): Don't use rslt as a boolean.
3541 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
3542 (arm_rdi_fetch_registers, arm_rdi_store_registers)
3543 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
3544 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
3546 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
3548 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
3549 * configure: Rebuilt.
3551 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3553 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
3554 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
3556 2002-03-06 Andrew Cagney <ac131313@redhat.com>
3558 * cli/cli-decode.c (set_cmd_completer): New function.
3559 * command.h (set_cmd_completer): Declare.
3560 * cli/cli-decode.h (set_cmd_completer): Ditto.
3562 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
3563 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3564 * win32-nat.c (_initialize_inftarg): Ditto.
3565 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3566 * proc-api.c (_initialize_proc_api): Ditto.
3567 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
3568 * source.c (_initialize_source): Ditto.
3569 * exec.c (_initialize_exec): Ditto.
3570 * solib.c (_initialize_solib): Ditto.
3571 * top.c (init_main): Ditto.
3572 * tracepoint.c (_initialize_tracepoint): Ditto.
3573 * symfile.c (_initialize_symfile): Ditto.
3574 * printcmd.c (_initialize_printcmd): Ditto.
3575 * infcmd.c (_initialize_infcmd): Ditto.
3576 * corefile.c (_initialize_core): Ditto.
3578 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3580 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
3582 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3584 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
3586 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3588 * NEWS: Update headings, 5.2 has branched.
3590 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
3592 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
3593 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
3594 (register_addr, REGISTER_RAW_SIZE): Likewise.
3595 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
3596 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
3598 2002-03-03 Michal Ludvig <mludvig@suse.cz>
3600 * MAINTAINERS (x86-64): Add myself.
3601 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
3602 changed value_ptr -> struct value *
3604 2002-03-01 David O'Brien <obrien@FreeBSD.org>
3606 * configure.host (sparc64-*-freebsd): Add.
3607 * configure.tgt: Likewise.
3608 * config/sparc/fbsd.mh: New file.
3609 * config/sparc/fbsd.mt: Likewise.
3610 * config/sparc/nm-fbsd.h: Likewise.
3611 * config/sparc/tm-fbsd.h: Likewise.
3613 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
3615 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
3616 regformats/reg-s390x.dat.
3618 2002-03-01 Andrew Cagney <ac131313@redhat.com>
3620 * utils.c: Add FIXME explaining true/false problem.
3622 2002-02-28 Andrew Cagney <ac131313@redhat.com>
3624 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
3626 2002-02-28 Michael Chastain <mec@shout.net>
3628 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
3630 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
3632 * gdbserver/linux-s390-low.c: New file.
3633 * regformats/reg-s390.dat: New file.
3634 * regformats/reg-s390x.dat: New file.
3635 * gdbserver/configure.srv: Add S/390.
3636 * gdbserver/Makefile.in: Add S/390.
3637 * configure.tgt: Enable gdbserver for S/390.
3639 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
3641 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
3642 first line of the doc string for "info dos", except at the end of
3643 the sentence, since the short help stops at the first period.
3645 2002-02-28 Jason Merrill <jason@redhat.com>
3647 * dwarf2read.c (dwarf_cfi_name): Add new codes.
3649 2002-02-27 Fred Fish <fnf@redhat.com>
3651 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
3652 comment (dumy -> dummy).
3654 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3656 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
3658 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
3660 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
3662 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3664 * gdbserver/acconfig.h: New file.
3665 * gdbserver/i387-fp.c: New file.
3666 * gdbserver/i387-fp.h: New file.
3667 * gdbserver/linux-x86-64.c: New file.
3668 * regformats/reg-x86-64.dat: New file.
3669 * configure.tgt: Add x86_64-*-linux* gdbserver support.
3670 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
3671 * gdbserver/configure.in: Add support for regsets.
3672 * gdbserver/config.in: Regenerate.
3673 * gdbserver/configure: Regenerate.
3674 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
3675 * gdbserver/linux-low.h: New file.
3676 * gdbserver/linux-low.c: Include "linux-low.h". Add support
3678 * gdbserver/linux-arm-low.c: Include "linux-low.h".
3679 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
3680 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
3681 * gdbserver/linux-mips-low.c: Include "linux-low.h".
3682 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
3683 * gdbserver/linux-sh-low.c: Include "linux-low.h".
3684 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
3685 "i387-fp.h". Add PTRACE_GETREGS and friends.
3686 * gdbserver/regcache.c (supply_register): New function.
3687 (supply_register_by_name): New function.
3688 (collect_register): New function.
3689 (collect_register_by_name): New function.
3691 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3693 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
3694 (config.status): Add configure.srv dependency.
3695 (server_h): Add config.h dependency.
3697 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3699 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
3700 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
3701 * gdbserver/configure.srv: Change i386-*-linux* to use
3704 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3706 * x86-64-tdep.c: Re-indent. Update copyright date.
3708 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3710 From Michal Ludvig <mludvig@suse.cz>:
3711 * x86-64-tdep.c (value.h): Delete.
3712 (gdb_assert.h): Include.
3713 (x86_64_register_convert_to_virtual,
3714 x86_64_register_convert_to_raw ): Add check which lets only
3715 floating-point values to be converted.
3716 (value_push): Delete.
3717 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
3718 (i386_gdbarch_init): Number of register_bytes fixed.
3720 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3722 * MAINTAINERS: Add x86-64 target.
3724 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3726 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
3727 * osfsolib.c (solib_map_sections): Ditto.
3728 * irix5-nat.c (solib_map_sections): Ditto.
3729 * corelow.c (gdb_check_format): Ditto.
3730 * symfile.c (symfile_bfd_open): Ditto.
3731 * solib.c (solib_map_sections): Ditto.
3734 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3736 * remote.c (_initialize_remote): By default, disable ``e'' and
3737 ``E'' step out-of-range packets.
3739 2002-02-26 Andreas Schwab <schwab@suse.de>
3741 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
3742 m68k_linux_frame_saved_pc.
3743 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
3745 (SIGCONTEXT_PC_OFFSET): Remove.
3746 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
3747 m68k_linux_sigtramp_saved_pc): New functions.
3748 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
3749 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
3750 (UCONTEXT_PC_OFFSET): Define.
3751 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
3752 non-RT and RT signal trampolines.
3754 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
3756 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
3757 (TARGET_NBPG, STACK_END_ADDR): Delete
3758 (VARIABLES_INSIDE_BLOCK): Delete.
3760 2002-02-25 Andrew Cagney <ac131313@redhat.com>
3762 * utils.c (perror_with_name): Make string parameter constant.
3763 (print_sys_errmsg): Ditto.
3765 * defs.h (perror_with_name): Update.
3766 (print_sys_errmsg): Update.
3769 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
3771 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
3772 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
3774 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3776 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
3777 if it already matches the current architecture from the exec file.
3778 Include arch-utils.h for gdbarch_info_init prototype.
3779 * Makefile.in (rs6000-nat.o): Update dependencies.
3781 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
3783 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
3784 list of exported variables.
3786 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
3788 * gdbserver/configure.srv: New file.
3789 * gdbserver/configure.in: Use configure.srv instead
3790 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
3792 * gdbserver/configure: Regenerated.
3793 * gdbserver/terminal.h: New file.
3794 * gdbserver/Makefile.in: Update for configure changes. Remove
3795 more unneeded include paths.
3797 2002-02-24 Andrew Cagney <ac131313@redhat.com>
3799 From wiz at danbala:
3800 * config/sparc/tm-sp64.h: Fix grammar and typos.
3803 2002-02-24 Andrew Cagney <ac131313@redhat.com>
3805 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
3806 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
3807 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
3808 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
3809 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
3810 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
3811 * s390-tdep.c: Ditto.
3812 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
3813 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
3814 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
3815 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
3816 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
3817 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
3818 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
3819 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
3820 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
3821 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
3824 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3826 * lin-thread.c: Delete file.
3827 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
3828 to gdb_proc_service.h.
3829 * configure: Re-generate.
3831 * ocd.c (ocd_open): Do not try to open the "ocd" device.
3832 * serial.c (serial_open): Delete check for "ocd".
3835 * Makefile.in (linux-thread.o): Delete target.
3836 * linux-thread.c: Delete file.
3838 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
3839 renamed SH files to be consistent.
3841 * symtab.c (sort_search_symbols): Use xfree.
3843 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
3845 * arm-linux-tdep.c (arm_linux_init_abi): Register
3846 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
3847 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
3848 definition with undef, since we don't want the sysvr4 definition.
3849 (SKIP_TRAMPOLINE_CODE): Likewise.
3851 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3853 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
3855 * configure.in: (AC_CHECK_FUNCS) Added test for
3856 canonicalize_file_name Regenerated.
3857 * config.in, configure: Regenerated.
3858 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
3859 defined use canonicalize_file_name.
3861 2002-02-23 Michael Chastain <mec@shout.net>
3863 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
3865 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3867 * README: Remove references to cygnus.com.
3868 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
3869 dot com'' form. Remove references to cygnus.com and sourceware.
3871 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3873 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
3874 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
3875 1003.1-2001 no longer allows "head -1".
3876 * gdb/Makefile.in (version.c): Likewise.
3877 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
3878 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
3879 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
3881 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3883 * cli/cli-decode.c (cmd_cfunc_eq): New function.
3884 * command.h (cmd_cfunc_eq): Declare.
3885 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
3887 * cli/cli-cmds.h (is_complete_command): Change parameter to a
3888 ``struct cmd_list_element *''.
3889 * cli/cli-cmds.c (is_complete_command): Update. Use
3891 * top.c (execute_command): Pass the command to
3892 is_complete_command.
3893 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
3895 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3897 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
3898 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
3899 architecture defines.
3900 * s390-tdep.c (s390_gdbarch_init): Likewise.
3902 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
3904 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
3905 (arm_linux_push_arguments): Likewise.
3906 (arm_linux_init_abi): Register them. Also register linux-specific
3908 (find_minsym_and_objfile): Use strcmp, not STREQ.
3909 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
3910 (arm_linux_call_dummy_words): Delete declaration.
3911 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
3912 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
3914 (LOWEST_PC): Delete.
3916 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3918 * maint.c (print_section_info): Do not prepend `0x' to filepos
3919 output, it will be handled by local_hex_string_custom.
3921 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
3923 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
3924 (store_newfpe_double, store_newfpe_extended, store_fpregister)
3925 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
3927 2002-02-22 Jim Blandy <jimb@redhat.com>
3929 Indicate that the bcache functions don't change the strings
3931 * bcache.h (bcache, hash): Add `const' keywords to declarations.
3932 * bcache.c (bcache, hash): Add `const' keywords to definitions.
3934 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
3936 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
3938 2002-02-21 Christopher Faylor <cgf@redhat.com>
3940 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
3941 find the complete path to a loaded DLL.
3943 2002-02-21 Fred Fish <fnf@redhat.com>
3945 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
3946 that marks the end of the range of a function, enter a line number
3947 entry that has a line number of zero and a PC offset that matches
3948 the end of the function. This starts a range of PC's for which no
3949 line number information is known.
3950 * symtab.c (find_pc_sect_line): If our best fit is in a range of
3951 PC's for which no line number info is found (line number is zero)
3952 then we didn't find any valid line information.
3953 * symtab.h: Document use of zero line number entry.
3955 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
3957 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
3958 (have_ptrace_getvrregs): Define for run time checks.
3959 (gdb_vrregset_t): New type for Altivec register handling.
3960 (fetch_register, store_register): Fetch/store altivec register
3962 (fetch_altivec_register, store_altivec_register): New functions.
3963 (supply_vrregset, fill_vrregset): New functions.
3964 (fetch_altivec_registers, store_altivec_registers): New functions.
3965 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
3968 2002-02-21 Jiri Smid <smid@suse.cz>
3970 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
3972 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
3974 * Makefile.in (armnbsd-nat.o): Update dependencies.
3975 * armnbsd-nat.c (supply_gregset): New function. Common code to
3976 supply the integer register set.
3977 (supply_fparegset): New function. Similar for FPA registers.
3978 (fetch_regs, fetch_fp_regs): Use them.
3979 (fetch_core_registers): Likewise.
3980 (fetch_elfcore_registers): New function.
3981 (arm_netbsd_elfcore_fns): New core-file type specification.
3982 (_initialize_arm_netbsd_nat): Register it.
3984 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
3986 * armnbsd-nat.c: Include gdbcore.h.
3987 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
3988 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
3989 'void' to declaration, to shut up ARI.
3990 (fetch_core_registers): Make static. Rewrite using supply_register.
3991 (arm_netbsd_core_fns): New core-file type specification.
3992 (_initialize_arm_netbsd_nat): New function.
3994 2002-02-21 Christopher Faylor <cgf@redhat.com>
3996 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
3999 2002-02-20 Christopher Faylor <cgf@redhat.com>
4001 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
4004 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4006 * jv-exp.y (parse_number): Change type of implicit longs
4007 to builtin_type_uint64.
4009 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4011 * gdbserver/linux-low.c (mywait): Change argument to waitpid
4012 to be an integer instead of a `union wait'.
4014 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4016 * mips-linux-nat.c: Call the operating system GNU/Linux.
4017 * mips-linux-tdep.c: Likewise.
4018 * mips-tdep.c: Likewise.
4020 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4023 * jv-exp.y (parse_number): Handle 64-bit integers.
4025 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4027 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
4028 AC_STDC_HEADERS to AC_HEADER_STDC.
4029 * gdbserver/configure: Regenerated.
4031 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
4033 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
4035 * sparc-tdep.c (get_longjmp_target): Likewise.
4037 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
4039 * News: Add news about ARM and Multi-arch. Mention the new target
4042 2002-02-19 Jim Blandy <jimb@redhat.com>
4044 * stabsread.c (error_type_complaint): Improve error message.
4046 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
4048 * gdbserver/README: Update documentation.
4049 * gdbserver/configure.in: Update configury to match documentation.
4050 * gdbserver/Makefile.in: Likewise.
4051 * gdbserver/configure: Regenerated.
4052 * gdbserver/aclocal.m4: New file, generated by aclocal.
4053 * gdbserver/config.in: New file, generated by autoheader.
4055 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4057 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
4060 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4062 * arm-tdep.h (enum arm_float_model): New enum.
4063 (struct gdbarch_tdep): Add fp_model.
4064 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
4065 up floating-point conversions until we know the floating-point model
4066 in use by the inferior. Don't complain about being unable to
4067 determine the ABI of the inferior when we don't have one.
4068 (arm_extract_return_value): Support different floating-point models.
4069 (arm_store_return_value): Likewise.
4070 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
4072 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
4074 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4076 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
4077 of ``current_gdbarch''.
4079 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4081 * armnbsd-nat.c : ANSIfy all function declarations.
4082 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
4083 (fetch_inferior_registers): Re-implement in terms of above.
4084 (store_register, store_regs, store_fp_register, store_fp_regs): New.
4085 (store_inferior_registers): Re-implement in terms of above.
4087 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4089 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
4091 * arm-linux-tdep.c: Likewise.
4092 * config/arm/tm-linux.h: Likewise.
4094 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4096 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
4097 * config/arm/nbsd.mt (TM_FILE): Delete.
4098 * config/arm/tm-nbsd.h: Delete.
4100 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4102 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
4103 Initialize CALL_DUMMY_LENGTH.
4105 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4107 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
4109 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
4110 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
4111 defines one thing and that is incorrect for this port.
4112 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
4114 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4116 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
4118 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4120 * win32-nat.c (display_selector): New function. Displays information
4121 about the information returned by GetThreadSelectorEntry API function.
4122 (display_selectors): New function. Displays the infomation of
4123 the selector given as argument, or of CS, DS ans FS selectors
4124 if no argument is given.
4125 ( _initialize_inftarg): Add "w32" as info prefix command.
4126 Add "info w32 selector" as command calling display_selectors.
4128 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
4130 * i386-tdep.c (get_longjmp_target): Fix compilation failure
4131 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
4134 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4136 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
4138 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4140 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
4141 (arm_fix_call_dummy): Call it.
4142 (arm_call_dummy_breakpoint_offset): Delete.
4143 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
4144 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
4146 2002-02-18 Andrew Cagney <ac131313@redhat.com>
4148 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
4149 Default to func_frame_chain_valid.
4150 * gdbarch.h, gdbarch.c: Re-generate.
4151 * frame.h (FRAME_CHAIN_VALID): Delete definition.
4153 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
4155 * ppc-linux-nat.c: Update copyright.
4156 (fetch_register, store_register): Add tid parameter, don't compute
4158 (fetch_ppc_registers, store_ppc_registers): Add tid
4159 parameter. Pass it along to callees.
4160 (fetch_inferior_registers, store_inferior_registers): Compute tid
4161 here, and pass it to calleed functions.
4162 (fill_gregset, supply_fpregset): Clean up formatting.
4164 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4166 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
4167 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
4169 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4171 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
4172 * gdbarch.c gdbarch.h: Regenerate.
4173 * breakpoint.c (create_longjmp_breakpoint): Always compile this
4175 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
4176 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
4177 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
4179 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
4180 * arm-tdep.c (arm_get_longjmp_target): New function.
4181 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
4182 this to a positive value register arm_get_longjmp_target as the
4184 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
4185 (arm_linux_init_abi): Set up longjmp description in tdep.
4186 * armnbsd-nat.c (get_longjmp_target): Delete.
4187 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
4188 description in tdep.
4189 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
4190 (get_longjmp_target): Delete declaration.
4191 (GET_LONGJMP_TARGET): Delete.
4192 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
4193 (GET_LONGJMP_TARGET): Delete.
4195 2002-02-17 Kevin Buettner <kevinb@redhat.com>
4197 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
4198 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
4199 of ``current_gdbarch''.
4201 2002-02-17 Tom Tromey <tromey@redhat.com>
4203 * cli/cli-cmds.c (compare_strings): New function.
4204 (complete_command): Only print each unique item once.
4205 * completer.h (complete_line): Declare.
4206 * completer.c (complete_line): New function.
4207 (line_completion_function): Use it.
4209 2002-02-16 Andrew Cagney <ac131313@redhat.com>
4211 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
4212 * gdbarch.h, gdbarch.c: Re-generate.
4214 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
4216 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
4218 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
4220 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4221 * valops.c (value_arg_coerce): Don't take the address of a reference
4222 to convert an argument to a reference.
4224 2002-02-15 Christopher Faylor <cgf@redhat.com>
4226 * win32-nat.c (get_image_name): New function.
4227 (handle_load_dll): Use get_image_name function.
4228 (get_child_debug_event): Avoid registering debug events until possibly
4229 execed process is started.
4230 (child_create_inferior): Allow invocation via shell so that command
4231 line redirection, etc. works ok.
4232 (_initialize_inftarg): Add new command: "set shell" to control whether
4233 a shell is used to start a process.
4235 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
4237 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
4238 instead of find_register_by_number.
4239 (cannot_store_register): Likewise.
4241 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
4243 * dwarf2read.c: Replace fprintf (stderr, ...) by
4244 fprintf_unfiltered (gdb_stderr, ...).
4246 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
4248 * gdbserver/gdbserver.1: Document --attach.
4250 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
4252 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
4254 * arm-tdep.c (arm_default_arm_le_breakpoint)
4255 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
4256 (arm_default_thumb_be_breakpoint): New. Initialize them from
4257 traditional breakpoint defines.
4258 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
4259 (arm_gdbarch_init): Initialize new breakpoint variables.
4260 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
4261 (arm_linux_init_abi): Initialize linux-specific breakpoint.
4262 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
4263 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
4265 (arm_netbsd_init_abi_common): ... here; new function.
4266 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
4267 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
4268 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
4269 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
4271 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
4273 * arm-tdep.h (enum arm_abi): New enum.
4274 (struct gdbarch_tdep): New structure.
4275 (LOWEST_PC): Provide a default.
4276 (arm_gdbarch_register_os_abi): Declare new function.
4277 * arm-tdep.c (arm_abi_names): New array.
4278 (process_note_abi_tag_sections): New function.
4279 (get_elfosabi): New function.
4280 (arm_gdbarch_register_os_abi): New function.
4281 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
4282 support for that ABI has been built in, then call the appropriate
4283 configuration routine. Use gdbarch_num_regs() to get the number
4285 (arm_dump_tdep): New function.
4286 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
4287 place-holder functions.
4288 (_initialize_arm_tdep): Register them.
4289 * config/arm/tm-arm.h (LOWEST_PC): Delete.
4291 * armnbsd-tdep.c: New file.
4292 * Makefile.in (armnbsd-tdep.o): Add dependencies.
4293 * config/arm/nbsd.mt (TDEPFILES): Add it.
4294 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
4296 * armnbsd-nat.c: Include regcache.h.
4297 * Makefile.in (armnbsd-nat.o): Update dependency list.
4299 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
4301 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4303 * gdbserver/Makefile.in: Fix typos in target rules.
4305 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4307 Fix part of PR gdb/267.
4308 * linespec.c (find_methods): Handle constructors specially for now.
4310 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
4312 * arm-tdep.c (arm_push_arguments): Eliminate special float type
4314 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
4315 standard_coerce_float_to_double().
4317 2002-02-14 Christopher Faylor <cgf@redhat.com>
4319 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
4322 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
4324 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
4325 find_variant_by_name, because it confuses the multiarch
4326 framework. Return NULL if there isn't an architecture with the
4327 user supplied name, instead of forcing a different one without
4328 recording the change with the multiarch machinery.
4329 (find_variant_by_name): Delete.
4331 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4333 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
4334 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
4336 2002-02-13 Martin M. Hunt <hunt@redhat.com>
4338 * stack.c (print_frame_info_base): When calling
4339 print_frame_info_listing_hook, set current_source_symtab.
4341 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4343 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
4344 and remove unused $(INCLUDE_DIR).
4345 Add regcache.c to OBS.
4346 Add generated register protocol files to clean target.
4347 Update dependencies for new objects, obsolete old target code.
4349 * gdbserver/linux-low.c: Remove all platform-specific code to
4350 new files. Remove various dead code. Update to use regcache
4352 * gdbserver/remote-utils.c (fromhex): Add return statement
4354 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
4356 (input_interrupt): Add integer parameter to match prototype
4357 of a signal handler.
4358 (outreg): Use register_data ().
4359 (prepare_resume_reply): Use gdbserver_expedite_regs.
4360 * gdbserver/server.c (main): Dynamically allocate own_buf because
4361 PBUFSIZ is no longer constant. Use registers_to_string () and
4362 registers_from_string ().
4363 * gdbserver/server.h: No longer include "defs.h". Add prototypes
4364 for error (), fatal (), and warning (). Update definition of
4365 PBUFSIZ to use regcache functionality. Add include guard.
4366 * gdbserver/utils.c (fatal): Add missing ``const''.
4367 (warning): New function.
4369 * regformats/regdat.sh: Include "regcache.h" in generated files.
4370 Provide init_registers () function.
4371 * regformats/regdef.h: Add prototype for set_register_cache ().
4374 * gdbserver/linux-arm-low.c: New file.
4375 * gdbserver/linux-i386-low.c: New file.
4376 * gdbserver/linux-ia64-low.c: New file.
4377 * gdbserver/linux-m68k-low.c: New file.
4378 * gdbserver/linux-mips-low.c: New file.
4379 * gdbserver/linux-ppc-low.c: New file.
4380 * gdbserver/linux-sh-low.c: New file.
4382 * gdbserver/regcache.c: New file.
4383 * gdbserver/regcache.h: New file.
4385 * gdbserver/low-linux.c: Removed obsolete file.
4387 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4389 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
4390 * config/i386/linux.mt: Likewise.
4391 * config/ia64/linux.mt: Likewise.
4392 * config/m68k/linux.mh: Likewise.
4393 * config/powerpc/linux.mh: Likewise.
4394 * config/mips/linux.mt: Likewise.
4396 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
4398 * config/i386/i386lynx.mh: Mark gdbserver variables
4399 as (currently) obsolete for this target.
4400 * config/i386/nbsd.mt: Likewise.
4401 * config/i386/nbsdelf.mt: Likewise.
4402 * config/m32r/m32r.mt: Likewise.
4403 * config/m68k/m68klynx.mh: Likewise.
4404 * config/m68k/nbsd.mt: Likewise.
4405 * config/m68k/sun3os4.mh: Likewise.
4406 * config/mips/vr5000.mt: Likewise.
4407 * config/ns32k/nbsd.mt: Likewise.
4408 * config/pa/hppabsd.mh: Likewise.
4409 * config/pa/hppaosf.mh: Likewise.
4410 * config/powerpc/nbsd.mt: Likewise.
4411 * config/rs6000/rs6000lynx.mh: Likewise.
4412 * config/s390/s390.mt: Likewise.
4413 * config/s390/s390x.mt: Likewise.
4414 * config/sparc/sparclynx.mh: Likewise.
4415 * config/sparc/sun4os4.mh: Likewise.
4416 * config/i386/x86-64linux.mt: Likewise.
4417 * config/sparc/linux.mh: Likewise.
4419 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4421 * configure.tgt: Configure gdbserver only for known working
4422 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
4423 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
4424 SUBDIRS if it is configured. Update comment for ${nativefile}.
4425 * configure: Regenerated.
4427 2002-02-13 Michael Snyder <msnyder@redhat.com>
4429 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
4431 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
4432 (default_gcore_mach): Just return 0, work around a problem in bfd.
4433 (default_gcore_target): OK to return NULL if exec_bfd is null.
4434 (make_mem_sec): Use a cast, avoid a warning.
4436 * procfs.c (find_memory_regions_callback): Use a cast instead of
4437 calling host_pointer_to_address (which complains if
4438 sizeof (host pointer) != sizeof (target pointer)).
4439 (procfs_make_note_section): Avoid overflow in psargs string.
4441 * procfs.c (procfs_make_note_section): Make the default
4442 implementation return an error.
4444 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
4446 * procfs.c (procfs_make_note_section): Provide a default definition
4447 (for alpha-dec-osf4.0f). Fix typos.
4449 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
4451 * linux-proc.c: Add include of regcache.h.
4452 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
4454 2002-02-13 Andrew Cagney <ac131313@redhat.com>
4456 From 2002-01-18 Greg McGary <greg@mcgary.org>:
4457 * memattr.c (create_mem_region): Disallow useless empty region.
4458 Regions are half-open intervals, so allow [A..B) [B..C) as
4461 2002-02-13 Michael Chastain <mec@shout.net>
4463 * defs.h: Kill CONST_PTR.
4464 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
4465 * c-lang.c (c_builtin_types): Likewise.
4466 * ch-lang.c (ch_builtin_types): Likewise.
4467 * f-lang.c (f_builtin_types): Likewise.
4468 * language.c (unknown_builtin_types): Likewise.
4469 * m2-lang.c (m2_builtin_types): Likewise.
4470 * p-lang.c (pascal_builtin_types): Likewise.
4471 * scm-lang.c (c_builtin_types): Likewise.
4473 2002-02-13 Keith Seitz <keiths@redhat.com>
4475 * arm-tdep.h (arm_get_next_pc): Add declaration.
4477 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
4479 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
4480 with other related struct-returning functions.
4481 (arm_extract_struct_value_address): New function.
4482 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
4483 initialize float_format, double_format and long_double_format as
4484 appropriate to the endianness of the target.
4485 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
4486 (arm_use_struct_convention): Delete declaration.
4487 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4489 2002-02-13 Keith Seitz <keiths@redhat.com>
4491 * defs.h (core_addr_to_string_nz): New function.
4493 2002-02-13 Mark Kettenis <kettenis@gnu.org>
4495 Apply missing bits of 2002-01-15 patch.
4496 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
4497 (fill_fpregset): Use i387_fill_fsave.
4499 2002-02-12 Keith Seitz <keiths@redhat.com>
4501 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
4502 (core_addr_to_string_nz): New function.
4504 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4506 * arm-linux-nat.c: Really include arm-tdep.h.
4507 * config/arm/tm-linux.h (struct type, struct value): Declare.
4509 2002-02-11 Michael Snyder <msnyder@redhat.com>
4511 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
4512 (gcore section): Ifdef for Solaris and Unixware only.
4513 (procfs_do_thread_registers): Unixware needs one lwpstatus
4514 per thread (not one prstatus or pstatus).
4515 (procfs_make_note_section): Iterate only over kernel threads (lwps),
4516 not over all gdb threads. For unixware, call elfcore_write_pstatus
4517 once before iterating over threads.
4519 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4521 * arm-tdep.h: New file.
4522 * arm-tdep.c: Include arm-tdep.h.
4523 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4524 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4525 (arm_print_float_info, arm_register_type, convert_to_extended)
4526 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4527 (arm_extract_return_value, arm_register_name): Make static.
4528 (arm_software_single_step): Similarly. Fix types in declaration.
4529 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
4530 (arm_store_return_value, arm_store_struct_return): New functions.
4531 (arm_gdbarch_init): Register the above functions. Also register
4532 call_dummy_start_offset, sizeof_call_dummy_words,
4533 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
4534 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
4535 max_register_virtual_size, register_size. Set up
4536 prologue_cache.saved_regs here, rather than ...
4537 (_initialize_arm_tdep): ... here.
4538 * config/arm/tm-arm.h (struct type, struct value): Delete forward
4540 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4541 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4542 (arm_print_float_info, arm_register_type, convert_to_extended)
4543 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4544 (arm_extract_return_value, arm_register_name): Delete declarations.
4545 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
4546 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
4547 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
4548 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
4549 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4550 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
4551 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
4552 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
4553 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
4554 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
4555 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
4556 (arm_get_next_pc): No-longer static -- these are needed by the RDI
4558 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
4559 * remote-rdi.c remote-rdp.c: Likewise.
4560 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
4561 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
4562 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
4565 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
4566 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
4567 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
4568 from non-ARM_ prefixed definitions.
4569 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
4571 * remote-rdi.c remote-rdp.c: Likewise.
4572 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
4574 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4576 * arm-tdep.c (arm_frameless_function_invocation)
4577 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4578 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4579 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4580 (arm_pop_frame, arm_get_next_pc): Make static.
4581 (arm_gdbarch_init): Register above in gdbarch structure.
4582 (arm_read_fp): Renamed from arm_target_read_fp.
4583 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
4584 * config/arm/tm-arm.h (arm_frameless_function_invocation)
4585 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4586 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4587 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4588 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
4589 (arm_pc_is_thumb_dummy): Delete declarations.
4590 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
4591 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
4592 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
4593 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
4595 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
4597 * symtab.c (compare_search_syms): New function.
4598 (sort_search_symbols): New function.
4599 (search_symbols): Sort symbols after searching rather than
4602 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4604 * NEWS: Linux -> GNU/Linux.
4606 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4608 * gdbarch.sh: For for level one methods, disallow a definition
4609 when partially multi-arched. Add comments explaining rationale.
4610 * gdbarch.h: Re-generate.
4612 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4614 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
4617 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4619 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
4621 * gdbarch.c: Re-generate.
4623 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4625 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
4626 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
4629 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4631 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
4633 (PUSH_ARGUMENTS): Switch to using predefault.
4634 * gdbarch.c: Regenerate.
4636 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4638 * valops.c (PUSH_ARGUMENTS): Delete definition.
4639 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
4640 partial. Default to default_push_arguments.
4641 * gdbarch.h, gdbarch.c: Regenerate.
4643 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4645 * defs.h (throw_exception): Rename return_to_top_level. Update
4647 * utils.c (error_stream, internal_verror, quit): Ditto.
4648 * top.c (throw_exception, catcher): Ditto.
4649 * sparclet-rom.c (sparclet_load): Ditto.
4650 * remote.c (interrupt_query, minitelnet): Ditto.
4651 * remote-sds.c (interrupt_query): Ditto.
4652 * remote-mips.c (mips_error, mips_kill): Ditto.
4653 * ocd.c (interrupt_query): Ditto.
4654 * monitor.c (monitor_interrupt_query): Ditto.
4655 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
4656 * target.h: Update comment.
4658 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
4660 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4662 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
4663 default_double_format.
4664 * gdbarch.h, gdbarch.c: Re-generate.
4665 * findvar.c (floatformat_unknown): Delete variable definition.
4666 * doublest.h (floatformat_unknown): Delete variable declaration.
4668 2002-02-09 Jim Blandy <jimb@redhat.com>
4670 * stabsread.c (read_type): Add code to parse Sun's syntax for
4671 prototyped function types.
4673 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4675 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
4676 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
4678 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4680 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
4681 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
4682 now _initialize_xcoffsolib gets called again and overrides the
4683 commands from solib.c in a native configuration.
4685 2002-02-09 Mark Kettenis <kettenis@gnu.org>
4687 * doublest.c (store_typed_floating): Don't try to return a value.
4690 2002-02-08 Jim Blandy <jimb@redhat.com>
4692 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
4693 is prototyped and has no arguments, print its argument list as
4696 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4698 * MAINTAINERS (write-after-approval): Add myself.
4699 (paper-trail): I've escaped!
4701 2002-02-08 Christopher Faylor <cgf@redhat.com>
4703 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
4705 (_initialize_check_for_gdb_ini): Ditto.
4707 2002-02-08 Martin M. Hunt <hunt@redhat.com>
4709 * win32-nat.c (cygwin_pid_to_str): Fix typo.
4710 xaprintf -> xasprintf.
4712 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
4714 * win32-nat.c: Remove use of printf and sprintf functions.
4716 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
4718 * arm-tdep.c (arm_frame_chain_valid): Make static.
4719 (arm_push_arguments): Likewise.
4720 (arm_gdbarch_init): New function.
4721 (_initialize_arm_tdep): Call it.
4722 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
4723 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
4724 (FRAME_CHAIN_VALID): Delete.
4725 (arm_frame_chain_valid): Delete declaration.
4726 (PUSH_ARGUMENTS): Delete.
4727 (arm_push_arguments): Delete declaration.
4728 (CALL_DUMMY_P): Delete.
4730 2002-02-08 Andrew Cagney <ac131313@redhat.com>
4731 Corinna Vinschen <vinschen@redhat.com>
4733 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
4734 on builtin float types.
4736 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
4738 * utils.c: Include <curses.h> before "bfd.h".
4739 * tui/tui-hooks.c: Likewise.
4740 * tui/tui.c: Likewise.
4741 * tui/tuiCommand.c: Likewise.
4742 * tui/tuiData.c: Likewise.
4743 * tui/tuiDataWin.c: Likewise.
4744 * tui/tuiDisassem.c: Likewise.
4745 * tui/tuiGeneralWin.c: Likewise.
4746 * tui/tuiIO.c: Likewise.
4747 * tui/tuiLayout.c: Likewise.
4748 * tui/tuiRegs.c: Likewise.
4749 * tui/tuiSource.c: Likewise.
4750 * tui/tuiSourceWin.c: Likewise.
4751 * tui/tuiStack.c: Likewise.
4752 * tui/tuiWin.c: Likewise.
4754 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
4756 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
4757 to include space for pseudoregs as well. Update loops accordingly.
4758 (sh_fp_frame_init_saved_regs): Ditto.
4759 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
4761 2002-02-07 Andrew Cagney <ac131313@redhat.com>
4763 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
4764 Add Richard Earnshaw to Arm maintainers.
4766 2002-02-07 Andrew Cagney <ac131313@redhat.com>
4768 * defs.h (warning_begin): Delete declaration.
4770 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
4773 2002-02-07 Michael Snyder <msnyder@redhat.com>
4775 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4776 Logic bug, remove misplaced else.
4778 2002-02-07 Klee Dienes <klee@apple.com>
4780 * fork-inferior.c (fork_inferior): Add '!' to the list of
4781 characters that need to be quoted when building a string for the
4782 shell. Quote '!' specifically with a backslash, since CSH chokes
4783 when trying to evaluate "str!str".
4785 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
4787 * rdi-share/host.h: Only provide a typedef for bool if it is not
4790 2002-02-04 Michael Snyder <msnyder@redhat.com>
4792 * breakpoint.h (enum bptype): Add new overlay event bp type.
4793 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
4795 * breakpoint.c (create_internal_breakpoint): New function.
4796 (internal_breakpoint_number): Moved into create_internal_breakpoint.
4797 (create_longjmp_breakpoint): Use create_internal_breakpoint.
4798 (create_thread_event_breakpoint): Ditto.
4799 (create_solib_event_breakpoint): Ditto.
4800 (create_overlay_event_breakpoint): New function.
4801 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
4802 (update_breakpoints_after_exec): Delete and re-initialize
4803 overlay event breakpoints after an exec. Add FIXME comment
4804 about longjmp breakpoint.
4805 (print_it_typical): Ignore overlay event breakpoints.
4806 (print_one_breakpoint): Ditto.
4808 (bpstat_what): Do not stop for overlay event breakpoints.
4809 (delete_breakpoint): Don't delete overlay event breakpoints.
4810 (breakpoint_re_set_one): Delete the overlay event breakpoint.
4811 (breakpoint_re_set): Re-create overlay event breakpoint.
4813 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
4814 (overlay_manual_command): Disable overlay breakpoints.
4815 (overlay_off_command): Disable overlay breakpoints.
4817 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
4819 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
4820 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
4821 to here from config/tm-arm.h.
4822 (coff_sym_is_thumb): Make static.
4823 (arm_elf_make_msymbol_special): New function.
4824 (arm_coff_make_msymbol_special): New function.
4825 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
4826 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
4827 (coff_sym_is_thumb): Delete declaration.
4828 (arm_elf_make_msymbol_special): Declare.
4829 (arm_coff_make_msymbol_special): Declare.
4830 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
4831 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
4833 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
4835 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
4837 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
4839 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
4840 * gdbarch.c gdbarch.h: Regenerate.
4841 * arch-utils.c (default_print_float_info): New function.
4842 * arch-utils.h (default_print_float_info): Prototype it.
4843 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
4844 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
4845 (PRINT_FLOAT_INFO): Document it.
4847 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
4848 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
4849 (PRINT_FLOAT_INFO): Define.
4851 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
4853 * win32-nat.c (_initialize_check_for_gdb_ini):
4854 Add typecast to sprintf argument to suppress a warning.
4856 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
4858 * win32-nat.c (last_sig): Changed type of variable to target_signal,
4859 to allow easier handling of pass state.
4860 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
4861 that gives exception name and address.
4862 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
4863 and set last_sig value to ourstatus->value.sig. Some missing
4865 (child_continue): Correctly report continue_status.
4866 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
4867 TARGET_SIGNAL_0 (new default value).
4868 (child_resume): consider sig argument passed to decide if
4869 the exception should be passed to debuggee or not.
4871 2002-02-05 Michael Snyder <msnyder@redhat.com>
4873 * regcache.c (fetch_register): Call target_fetch_register
4874 only if we don't call FETCH_PSEUDO_REGISTER.
4875 (store_register): Call target_store_register only if we
4876 don't call STORE_PSEUDO_REGISTER.
4878 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
4880 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
4881 ELF_MAKE_MSYMBOL_SPECIAL.
4882 * gdbarch.c, gdbarch.h: Regenerate.
4883 * arch-utils.c (default_make_msymbol_special): New function.
4884 * arch-utils.h (default_make_msymbol_special): Export.
4885 * elfread.c (elf_symtab_read): Compile use of
4886 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
4888 * coffread.c (coff_symtab_read): Ditto, for
4889 COFF_MAKE_MSYMBOL_SPECIAL.
4891 2002-02-05 Jim Blandy <jimb@redhat.com>
4893 * solib-svr4.c (svr4_truncate_ptr): New function.
4894 (svr4_relocate_section_addresses): Do the address arithmetic with
4895 the appropriate truncation for target addresses, even when
4896 CORE_ADDR is larger than a target address.
4898 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4900 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
4903 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4905 * gdbserver/linux-low.c (kill_inferior): Remove commented out
4908 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4910 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
4912 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4914 * gdbserver/linux-low.c: Remove unused include files.
4916 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4918 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
4919 (read_inferior_memory): Use it.
4920 (write_inferior_memory): Likewise.
4922 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4924 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
4925 grubbing through sys_errlist.
4927 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4929 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
4931 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4932 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
4934 2002-02-04 Andrew Cagney <ac131313@redhat.com>
4936 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
4937 (do_sfunc, set_cmd_sfunc): New functions.
4939 * command.h (struct cmd_list_element): Add field func.
4940 * cli/cli-decode.h (struct cmd_list_element): Ditto.
4941 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
4942 * cli/cli-decode.h: Ditto.
4944 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
4945 (help_all, help_cmd_list): Ditto.
4946 (find_cmd, complete_on_cmdlist): Ditto.
4947 * top.c (execute_command): Ditto.
4949 * cli/cli-setshow.c (do_setshow_command): Call func instead of
4952 * infcmd.c (notice_args_read): Fix function signature.
4954 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
4955 * cli/cli-decode.c (add_set_cmd): Ditto.
4956 * utils.c (initialize_utils): Ditto.
4957 * maint.c (_initialize_maint_cmds): Ditto.
4958 * infrun.c (_initialize_infrun): Ditto.
4959 * demangle.c (_initialize_demangler): Ditto.
4960 * remote.c (add_packet_config_cmd): Ditto.
4961 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4962 * cris-tdep.c (_initialize_cris_tdep): Ditto.
4963 * proc-api.c (_initialize_proc_api): Ditto.
4964 * kod.c (_initialize_kod): Ditto.
4965 * valprint.c (_initialize_valprint): Ditto.
4966 * top.c (init_main): Ditto.
4967 * infcmd.c (_initialize_infcmd): Ditto.
4968 * corefile.c (_initialize_core): Ditto.
4969 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4970 * arch-utils.c (initialize_current_architecture): Ditto.
4971 (_initialize_gdbarch_utils): Ditto.
4972 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
4974 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
4975 * wince.c (_initialize_inftarg): Ditto.
4976 * symfile.c (_initialize_symfile): Ditto.
4977 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4978 * language.c (_initialize_language): Ditto.
4979 * arc-tdep.c (_initialize_arc_tdep): Ditto.
4981 2002-02-04 Michael Snyder <msnyder@redhat.com>
4983 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
4985 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
4987 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
4988 Add rules for building the register data files.
4990 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
4992 * regformats/regdat.sh: Add braces to the definition of
4993 expedite_regs_${arch}.
4995 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
4997 * regformats/regdef.h (struct reg): Add comment describing the
4998 requirements for offset and size fields.
5000 2002-02-04 Andreas Schwab <schwab@suse.de>
5002 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
5003 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
5005 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
5007 * gdbarch.sh (copyright): Update years in generated header.
5008 (SMASH_TEXT_ADDRESS): Add rule.
5009 * gdbarch.h, gdbarch.c: Re-generate.
5010 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
5011 * dbxread.c: Likewise.
5012 * dwarfread.c: Likewise.
5013 * elfread.c: Likewise.
5014 * somread.c: Likewise.
5016 * arm-tdep.c (arm_smash_text_address): New function.
5017 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
5019 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5021 Add support for hardware watchpoints on win32 native.
5022 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
5023 CONTEXT_DEBUG_REGISTERS.
5024 (dr variable): New variable. Static array containing a local copy
5026 (debug_registers_changed): New variable. Reflects when debug registers
5027 are changed and need to be written to inferior.
5028 (debug_registers_used): New variable. Reflects when any debug register
5029 was set, used when new threads are created.
5030 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
5032 (thread_rec): Set dr array if id is the thread of current_event .
5033 (child_continue, child_resume): Change the debug registers for all
5034 threads if debug_registers_changed.
5035 (child_add_thread): Change the debug registers if debug_registers_used.
5036 * config/i386/cygwin.mh: Add use of i386-nat.o file.
5037 Link nm.h to new nm-cygwin.h file.
5038 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
5039 of hardware registers.
5041 2002-02-03 Andrew Cagney <ac131313@redhat.com>
5043 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
5044 Restore behavour broken by 2002-01-20 Andrew Cagney
5045 <ac131313@redhat.com> IEEE_FLOAT removal.
5047 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5049 * c-valprint.c (c_val_print): Pass a proper valaddr to
5050 cp_print_class_method.
5051 * valops.c (search_struct_method): If there is only one method
5052 and args is NULL, return that method.
5054 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5056 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
5057 accessing tag_name directly.
5059 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5061 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
5062 of accessing tag_name directly.
5064 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5067 * gdbtypes.c (replace_type): New function.
5068 * gdbtypes.h (replace_type): Add prototype.
5069 * stabsread.c (read_type): Use replace_type.
5071 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
5073 * Makefile.in (memattr.o): Add missing dependencies rule.
5075 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5077 * breakpoint.c (break_at_finish_command): Really export.
5078 (break_at_finish_at_depth_command): Ditto.
5079 (tbreak_at_finish_command): Ditto.
5080 * hppa-tdep.c: Include completer.h.
5081 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
5082 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
5084 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5086 * utils.c (do_write): New function.
5087 (error_stream): Rewrite combining the code from error_begin and
5089 (verror): Rewrite using error_stream.
5090 (error_begin): Delete function.
5092 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5094 * utils.c (error_begin): Make static.
5095 * defs.h (error_begin): Delete declaration.
5097 * linespec.c (cplusplus_error): Replace cplusplus_hint.
5098 (decode_line_1): Use cplusplus_error instead of error_begin,
5099 cplusplus_hint and return_to_top_level.
5100 * coffread.c (coff_symfile_read): Use error instead of error_begin
5101 and return_to_top_level.
5102 * infrun.c (default_skip_permanent_breakpoint): Ditto.
5104 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5106 * language.h (type_error, range_error): Make string parameter
5108 * language.c (warning_pre_print): Delete extern declaration.
5109 * dwarfread.c (warning_pre_print): Ditto.
5110 * language.c (type_error, range_error): Rewrite to use verror and
5111 vwarning instead of warning_begin.
5113 2002-02-01 Michael Snyder <msnyder@redhat.com>
5115 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
5116 (set_ignore_count): Move misplaced comment back where it belongs.
5118 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5120 * command.h (NO_FUNCTION): Delete macro.
5121 * cli/cli-decode.h (NO_FUNCTION): Ditto.
5122 * top.c (execute_command): Replace NO_FUNCTION with NULL.
5123 * tracepoint.c (_initialize_tracepoint): Ditto.
5124 * cli/cli-decode.c (add_set_cmd): Ditto.
5125 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5127 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
5129 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
5130 Update ``this'' pointer when calling virtual functions.
5132 2002-02-01 Michael Snyder <msnyder@redhat.com>
5134 * breakpoint.c (create_temp_exception_breakpoint): Delete.
5135 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
5137 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
5139 * regformats/reg-arm.dat: New file.
5140 * regformats/reg-i386.dat: New file.
5141 * regformats/reg-ia64.dat: New file.
5142 * regformats/reg-m68k.dat: New file.
5143 * regformats/reg-mips.dat: New file.
5144 * regformats/reg-ppc.dat: New file.
5145 * regformats/reg-sh.dat: New file.
5146 * regformats/regdef.h: New file.
5147 * regformats/regdat.sh: New file.
5149 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
5151 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
5152 (arm_frame_args_address, arm_frame_locals_address): New functions.
5153 (arm_frame_num_args): New function.
5154 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
5155 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
5156 (FRMA_NUM_ARGS): Call arm_frame_num_args.
5158 2002-01-31 Michael Snyder <msnyder@redhat.com>
5160 * breakpoint.c (break_at_finish_command): Export.
5161 (break_at_finish_at_depth_command): Export.
5162 (tbreak_at_finish_command): Export.
5163 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
5164 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
5165 "tbreak" commands, which are HPPA specific.
5167 * printcmd.c (disassemble_command): Remove an ancient
5168 artifact of an old merge.
5170 * symfile.h (enum overlay_debugging_state):
5171 Define enum constant values for overlay mode.
5172 * symfile.c (overlay_debugging): Use enums instead of literals.
5173 (overlay_is_mapped, overlay_auto_command,
5174 overlay_manual_command): Ditto.
5176 * breakpoint.c (insert_breakpoints, remove_breakpoint,
5177 breakpoint_here_p, breakpoint_inserted_here_p,
5178 breakpoint_thread_match, bpstat_stop_status,
5179 describe_other_breakpoints, check_duplicates, clear_command):
5180 Coding standard fixes.
5182 * target.c (target_xfer_memory): Add spaces, coding standard.
5183 (do_xfer_memory): Add missing line to trust-readonly
5184 code: check bfd SEC_READONLY flag for section.
5186 2002-01-31 Andrew Cagney <ac131313@redhat.com>
5188 * PROBLEMS: Fix typo, 5.1->5.1.1.
5190 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
5192 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
5193 data symbols, since we search based on textlow and texthigh.
5194 (find_pc_sect_symtab): Likewise.
5196 2002-01-30 Andrew Cagney <ac131313@redhat.com>
5198 * defs.h (vwarning): Declare.
5199 * utils.c (vwarning): New function.
5200 (warning): Call vwarning.
5201 (warning_begin): Delete function.
5203 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
5204 the warning message.
5205 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
5208 2002-01-30 Michael Snyder <msnyder@redhat.com>
5210 * NEWS: Mention "set trust-readonly-sections" command.
5211 Mention generate-core-file command.
5213 2002-01-15 Michael Snyder <msnyder@redhat.com>
5215 * target.c: New command, "set trust-readonly-sections on".
5216 (do_xfer_memory): Honor the suggestion to trust readonly sections
5217 by reading them from the object file instead of from the target.
5218 (initialize_targets): Register command "set trust-readonly-sections".
5220 2002-01-29 Andrew Cagney <ac131313@redhat.com>
5222 * parse.c (target_map_name_to_register): Simplify, search regs and
5223 pseudo-regs using a single loop.
5225 2002-01-30 Andrew Cagney <ac131313@redhat.com>
5227 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
5229 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
5231 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
5232 * config/i386/i386v42mp.mh: Add i387-nat.o .
5233 * i386v4-nat.c: Include i387-nat.h.
5234 (supply_fpregset): Use i387_supply_fsave.
5235 (fill_fpregset): Use i387_fill_fsave.
5237 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
5239 * arm-tdep.c (arm_call_dummy_words): Define.
5240 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
5241 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
5242 (CALL_DUMMY_WORDS): Define.
5243 (arm_call_dummy_words): Declare.
5244 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
5245 (arm_linux_call_dummy_words): Declare.
5247 2002-01-30 Andreas Schwab <schwab@suse.de>
5249 * m68klinux-nat.c: Fix last change to use regcache_collect
5250 instead of referencing registers[] directly.
5252 2002-01-29 Andrew Cagney <ac131313@redhat.com>
5254 * parse.c (target_map_name_to_register): Delete code wrapped in
5255 #ifdef REGISTER_NAME_ALIAS_HOOK.
5257 2002-01-28 Michael Snyder <msnyder@redhat.com>
5259 * regcache.c (legacy_read_register_gen): Need to be able to
5260 read pseudo-register as well as real register.
5261 (legacy_write_register_gen): Ditto.
5263 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5265 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5266 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
5267 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
5268 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
5269 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
5270 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
5271 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
5272 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
5273 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
5274 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5275 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
5276 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
5277 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
5278 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
5279 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
5280 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
5281 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
5282 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
5283 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
5284 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
5286 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5288 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
5289 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
5290 (initialize_current_architecture): Update target_byte_order using
5291 information from BFD.
5292 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
5293 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
5295 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5297 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
5298 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
5300 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
5301 #ifdef INVALID_FLOAT.
5302 * infcmd.c (do_registers_info): Ditto.
5303 * values.c (unpack_double): Ditto. Add comment.
5305 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
5306 already commented out.
5308 2002-01-26 Andreas Schwab <schwab@suse.de>
5310 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5311 * m68klinux-nat.c: Update ptrace interface for fetching/storing
5312 registers and add support for PTRACE_GETREGS.
5314 2002-01-24 Andrew Cagney <ac131313@redhat.com>
5316 GDB 5.1.1 released from 5.1 branch.
5317 * NEWS: Add 5.1.1 news.
5318 * README: Sync with 5.1 branch.
5320 2002-01-23 Fred Fish <fnf@redhat.com>
5322 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
5323 stabstring on initial malloc. Reallocing will copy it for us,
5326 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
5328 * Makefile.in (hpread_h): Delete.
5329 (HFILES_NO_SRCDIR): Remove hpread.h.
5330 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
5331 (hpread.o): Update dependencies.
5332 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
5334 * hp-psymtab-read.c: Remove file.
5335 * hp-symtab-read.c: Remove file.
5336 * hpread.h: Remove file.
5338 * hpread.c: Merge all contents of hp-psymtab-read.c,
5339 hp-symtab-read.c and hpread.h into this file, as it was prior to
5342 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
5343 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
5344 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
5345 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
5347 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
5349 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
5350 fill_gregset): Call gdbarch_tdep() just once, assign result to
5351 variable and use that, instead of calling the function several
5354 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5356 * configure.host: Accept sparcv9 as alias for sparc64.
5357 * configure.tgt: Likewise.
5359 2002-01-22 Kevin Buettner <kevinb@redhat.com>
5361 * solib-aix5.c (build_so_list_from_mapfile)
5362 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
5363 arguments is not reversed.
5364 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
5365 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
5367 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
5369 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
5370 modified version of obsolete sh_fetch_pseudo_register.
5371 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
5372 (sh4_register_read): New function.
5373 (sh_pseudo_register_write): New function. Renamed and modified
5374 version of obsolete sh_store_pseudo_register.
5375 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
5376 (sh4_register_write): New function.
5377 (sh_gdbarch_init): Remove setting of gdbarch function
5378 fetch_pseudo_register and store_pseudo_register. Remove setting of
5379 register_convert_to_raw, register_convert_to_virtual,
5380 register_convertible.
5381 (sh_sh4_register_convertible): Delete. No longer needed. All is
5382 taken care by architecture specific functions
5383 register_read/register_write.
5384 (sh_sh4_register_convert_to_virtual): Make static.
5385 (sh_sh4_register_convert_to_raw): Ditto.
5387 2002-01-22 Andrew Cagney <ac131313@redhat.com>
5389 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
5390 (floatformat_is_nan, floatformat_mantissa): Ditto.
5392 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
5393 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
5394 builtin_type_ieee_double_little,
5395 builtin_type_ieee_double_littlebyte_bigword,
5396 builtin_type_m68881_ext, builtin_type_i960_ext,
5397 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
5398 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
5399 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
5400 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
5402 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
5404 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
5405 parameter. Set frameless flag if it exists and depended of
5406 whether the scanned function is frameless or not.
5407 (xstormy16_skip_prologue): If function is frameless, return
5408 result of xstormy16_scan_prologue().
5409 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
5412 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
5414 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
5415 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
5416 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
5417 sh_sh4_register_byte, sh_sh4_register_raw_size,
5418 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
5419 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
5420 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
5421 sh_store_pseudo_register, sh_do_pseudo_register): Call
5422 gdbarch_tdep() just once, assign result to variable and use that,
5423 instead of calling the function several times.
5425 2002-01-20 Mark Kettenis <kettenis@gnu.org>
5427 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
5428 macros instead of LAST_FPU_CTRL_REGNUM.
5429 (store_register): Likewise.
5431 2002-01-21 Jim Blandy <jimb@redhat.com>
5433 * infcmd.c (run_command): Check that the `exec' target layer's BFD
5434 is up-to-date before running the program, not just when a program
5437 2002-01-21 Fred Fish <fnf@redhat.com>
5439 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
5440 when we have found all instructions we are looking for.
5442 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
5444 * arm-tdep.c (arm_register_name): New function.
5445 (arm_registers_names): Make static.
5446 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
5447 (arm_register_name): Declare.
5448 (REGISTER_NAME): Use it.
5450 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
5451 Kevin Buettner <kevinb@redhat.com>
5453 Convert arm targets to new FRAME interface.
5454 * arm-tdep.c (struct frame_extra_info): Remove fsr.
5455 (arm_frame_find_save_regs): Delete.
5456 (arm_frame_init_saved_regs): New.
5457 (arm_init_extra_frame_info): Alloacte saved_regs as required.
5458 Allocate extra_info as required. Convert all uses of fsr.regs
5459 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
5461 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
5462 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
5463 (check_prologue_cache, save_prologue_cache): Likewise.
5464 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
5465 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
5466 (FRAME_FIND_SAVED_REGS): Delete.
5467 (arm_frame_find_saved_regs): Delete prototype.
5468 (arm_frame_init_saved_regs): New prototype.
5469 (FRAME_INIT_SAVED_REGS): Define.
5471 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5473 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
5475 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5477 From Jeff Law <law@redhat.com>:
5478 * infttrace.c: Include <sys/pstat.h>.
5479 (child_pid_to_exec_file): Revamp. Use pstat call to get the
5480 exec file if the ttrace equivalent fails.
5482 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5484 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
5485 (closeLogFile): Ditto.
5487 2002-01-20 Michael Chastain <mec@shout.net>
5489 * top.c (print_gdb_version): Bump copyright year to 2002.
5491 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5493 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
5494 Zannoni and Eli Zaretskii.
5496 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5498 * buildsym.c: Update copyright years.
5499 * c-typeprint.c: Likewise.
5500 * dwarf2read.c: Likewise.
5501 * f-typeprint.c: Likewise.
5502 * gdbtypes.c: Likewise.
5503 * gdbtypes.h: Likewise.
5504 * hp-symtab-read.c: Likewise.
5505 * hpread.c: Likewise.
5506 * mdebugread.c: Likewise.
5507 * p-typeprint.c: Likewise.
5509 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5511 * remote-sim.c (gdbsim_open): Simplify code testing the macro
5512 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
5513 byte-order selectable.
5514 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
5515 * arch-utils.c: Ditto.
5516 (set_endian): Ditto.
5517 (set_endian_from_file): Ditto.
5518 * gdbserver/low-sim.c (create_inferior): Ditto.
5519 * gdbarch.sh: Ditto.
5520 * gdbarch.h: Re-generate.
5521 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5522 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
5523 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
5524 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5525 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5526 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5527 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
5528 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
5530 * config/mips/tm-wince.h: Remove #undef of macro
5531 TARGET_BYTE_ORDER_SELECTABLE.
5532 * config/sh/tm-wince.h: Ditto.
5534 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5536 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
5537 member function fields. Add accessor macro
5538 TYPE_FN_FIELD_ARTIFICIAL.
5539 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
5540 * c-typeprint.c (c_type_print_base): Skip artificial member
5543 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5545 * f-typeprint.c: Delete unused function f_type_print_args.
5546 * p-typeprint.c: Delete unused function pascal_type_print_args.
5548 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5550 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
5551 comment. Add ``artificial'' to ``union field_location''.
5553 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
5555 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
5556 * mdebugread.c (parse_symbol): Likewise.
5557 * stabsread.c (define_symbol): Likewise.
5558 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
5559 initializing TYPE_FIELD_BITPOS to n (obsolete).
5560 (hpread_doc_function_type): Likewise.
5561 * hpread.c (hpread_function_type): Likewise.
5563 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5565 * configure.in (host_makefile_frag): Only require a host makefile
5566 fragment when a native build.
5567 * configure: Re-generate.
5569 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5571 * doublest.h (floatformat_from_type): Declare.
5572 * doublest.c (floatformat_from_type): New function.
5573 (convert_typed_floating): Use.
5575 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
5576 call to function floatformat_from_type.
5578 * gdbarch.sh (IEEE_FLOAT): Delete.
5579 * gdbarch.h, gdbarch.c: Re-generate.
5580 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
5581 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
5582 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
5583 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
5584 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
5585 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
5586 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
5587 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
5588 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
5589 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
5590 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
5591 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
5593 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
5594 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5595 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5596 * sh-tdep.c (sh_gdbarch_init): Ditto.
5597 * mips-tdep.c (mips_gdbarch_init): Ditto.
5598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5599 * cris-tdep.c (cris_gdbarch_init): Ditto.
5601 2002-01-20 Jiri Smid <smid@suse.cz>
5603 * configure.host, configure.tgt: Support x86-64.
5604 * NEWS: Note new target x86-64.
5606 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
5607 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
5608 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
5609 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
5610 x86-64-linux-nat.o): Fix dependencies.
5612 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5614 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
5615 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
5616 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
5617 * config/sparc/xm-sun4os4.h: Delete file.
5618 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
5620 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5622 * config/sparc/sparclynx.mh (XM_FILE): Delete.
5623 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
5624 * config/m68k/m68klynx.mh (XM_FILE): Delete.
5625 * config/i386/i386lynx.mh (XM_FILE): Delete.
5626 * config/rs6000/xm-rs6000ly.h: Delete file.
5627 * config/sparc/xm-sparclynx.h: Delete file.
5628 * config/m68k/xm-m68klynx.h: Delete file.
5629 * config/i386/xm-i386lynx.h: Delete file.
5630 * config/xm-lynx.h: Delete file.
5631 * config/djgpp/fnchange.lst: Update.
5633 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5635 * alpha-tdep.c (alpha_register_byte): New function.
5636 (alpha_register_raw_size): Ditto.
5637 (alpha_register_virtual_size): Ditto.
5638 (alpha_skip_prologue_internal): Renamed from
5639 alpha_skip_prologue.
5640 (alpha_skip_prologue): New version that calls
5641 alpha_skip_prologue_internal.
5642 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
5643 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
5644 second argument from alpha_skip_prologue.
5645 (REGISTER_BYTE): Use alpha_register_byte.
5646 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
5647 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
5648 (FRAMELESS_FUNCTION_INVOCATION): Use
5649 generic_frameless_function_invocation_not.
5650 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
5651 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
5653 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5655 * config/mips/xm-news-mips.h: Delete file.
5656 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
5658 * config/m88k/xm-m88k.h: Delete file.
5659 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
5660 * config/m88k/xm-delta88v4.h: Ditto.
5661 * config/m88k/xm-delta88.h: Ditto.
5663 * config/alpha/xm-fbsd.h: Delete file.
5664 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
5666 * config/sparc/xm-sparc.h: Delete file.
5667 * Makefile.in (xm-sun4os4.h): Delete dependency.
5668 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
5669 * config/sparc/xm-sun4os4.h: Ditto.
5670 * config/sparc/xm-linux.h: Ditto.
5672 * config/i386/xm-windows.h: Delete file.
5674 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5676 * utils.c: Include <sys/param.h> for MAXPATHLEN.
5677 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
5679 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5681 * alpha-tdep.c (alpha_call_dummy_words): New.
5682 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
5683 (CALL_DUMMY_P): Define.
5684 (CALL_DUMMY_WORDS): Define.
5685 (SIZEOF_CALL_DUMMY_WORDS): Define.
5687 2002-01-19 Per Bothner <per@bothner.com>
5689 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
5690 isn't NULL, which can happen with some gcj-3.x-produced code.
5692 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5694 * alpha-tdep.c (alpha_register_virtual_type): New function.
5695 (alpha_init_frame_pc_first): Ditto.
5696 (alpha_fix_call_dummy): Ditto.
5697 (alpha_store_struct_return): Ditto.
5698 (alpha_extract_struct_value_address): Ditto.
5699 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
5700 alpha_register_virtual_type.
5701 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
5702 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
5703 alpha_extract_struct_value_address.
5704 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
5705 (INIT_FRAME_PC): Use init_frame_pc_noop.
5706 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
5708 2002-01-19 Mark Kettenis <kettenis@gnu.org>
5710 * i386gnu-nat.c: Include "i386-tdep.h".
5711 (fetch_fpregs): Simplify code dealing with uninitialized floating
5712 point states such that it doesn't require FP7_REGNUM.
5714 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5716 * alpha-tdep.c (frame_extra_info): New.
5717 (alpha_find_saved_regs): Make static. Use
5719 (alpha_frame_init_saved_regs): New function.
5720 (alpha_frame_saved_pc): Use frame->extra_info.
5721 (temp_saved_regs): Don't declare as struct frame_saved_regs.
5722 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
5723 (init_extra_frame_info): Rename to...
5724 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
5725 (alpha_print_extra_frame_info): New function.
5726 (alpha_frame_locals_address): Ditto.
5727 (alpha_frame_args_address): Ditto.
5728 (alpha_pop_frame): Use frame->extra_info.
5729 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
5730 alpha_frame_args_address.
5731 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
5732 (alpha_find_saved_regs): Remove prototype.
5733 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
5734 (EXTRA_FRAME_INFO): Remove.
5735 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
5736 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
5738 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5740 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
5741 (alpha_cannot_fetch_register): Ditto.
5742 (alpha_cannot_store_register): Ditto.
5743 (alpha_register_convertible): Ditto.
5744 (alpha_use_struct_convention): Ditto.
5745 * config/alpha/tm-alpha.h: Update copyright years.
5746 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
5747 (INNER_THAN): Use core_addr_lessthan.
5748 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
5749 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
5750 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
5751 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
5752 (FRAME_CHAIN): Remove unnecessary cast.
5754 2002-01-18 Andrew Cagney <ac131313@redhat.com>
5756 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
5759 2002-01-18 Andrew Cagney <ac131313@redhat.com>
5761 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
5762 * monitor.c, remote-array.c, remote-bug.c: Ditto.
5763 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
5764 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
5765 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
5766 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
5767 * x86-64-linux-nat.c: Ditto.
5769 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5771 * alpha-tdep.c (alpha_register_name): New function.
5772 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
5773 (REGISTER_NAME): Define.
5775 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5777 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
5779 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5781 * alpha-tdep.c: Update copyright years.
5782 (alpha_next_pc): New function.
5783 (alpha_software_single_step): Ditto.
5784 * config/alpha/tm-alpha.h: Add prototype for
5785 alpha_software_single_step.
5787 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5789 * alphabsd-nat.c: Update copyright years.
5790 (fill_gregset): Use regcache_collect.
5791 (fill_fpregset): Likewise.
5792 (fetch_inferior_registers): Only fetch integer registers
5793 if requested to do so.
5794 (store_inferior_registers): Only store integer registers
5795 if requested to do so.
5797 2002-01-17 Andrew Cagney <ac131313@redhat.com>
5799 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
5800 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
5801 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
5802 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
5803 * config/alpha/fbsd.mh (XDEPFILES): Delete.
5804 * config/arm/linux.mh (XDEPFILES): Delete.
5805 * config/arm/nbsd.mh (XDEPFILES): Delete.
5806 * config/i386/i386dgux.mh (XDEPFILES): Delete.
5807 * config/i386/i386sol2.mh (XDEPFILES): Delete.
5808 * config/i386/i386m3.mh (XDEPFILES): Delete.
5809 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
5810 * config/i386/i386gnu.mh (XDEPFILES): Delete.
5811 * config/i386/fbsd.mh (XDEPFILES): Delete.
5812 * config/i386/i386bsd.mh (XDEPFILES): Delete.
5813 * config/i386/i386sco5.mh (XDEPFILES): Delete.
5814 * config/i386/i386v4.mh (XDEPFILES): Delete.
5815 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
5816 * config/i386/i386sco4.mh (XDEPFILES): Delete.
5817 * config/i386/i386aix.mh (XDEPFILES): Delete.
5818 * config/i386/go32.mh (XDEPFILES): Delete.
5819 * config/i386/cygwin.mh (XDEPFILES): Delete.
5820 * config/i386/i386lynx.mh (XDEPFILES): Delete.
5821 * config/i386/i386mach.mh (XDEPFILES): Delete.
5822 * config/i386/i386v32.mh (XDEPFILES): Delete.
5823 * config/i386/linux.mh (XDEPFILES): Delete.
5824 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
5825 * config/i386/ncr3000.mh (XDEPFILES): Delete.
5826 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
5827 * config/i386/i386sco.mh (XDEPFILES): Delete.
5828 * config/i386/i386v.mh (XDEPFILES): Delete.
5829 * config/i386/nbsd.mh (XDEPFILES): Delete.
5830 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
5831 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
5832 * config/i386/symmetry.mh (XDEPFILES): Delete.
5833 * config/i386/obsd.mh (XDEPFILES): Delete.
5834 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
5835 * config/ia64/linux.mh (XDEPFILES): Delete.
5836 * config/ia64/aix.mh (XDEPFILES): Delete.
5837 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
5838 * config/m68k/dpx2.mh (XDEPFILES): Delete.
5839 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
5840 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
5841 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
5842 * config/m68k/linux.mh (XDEPFILES): Delete.
5843 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
5844 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
5845 * config/m68k/nbsd.mh (XDEPFILES): Delete.
5846 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
5847 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
5848 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
5849 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
5850 * config/m88k/delta88.mh (XDEPFILES): Delete.
5851 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
5852 * config/m88k/m88k.mh (XDEPFILES): Delete.
5853 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
5854 * config/mips/linux.mh (XDEPFILES): Delete.
5855 * config/mips/irix6.mh (XDEPFILES): Delete.
5856 * config/mips/irix5.mh (XDEPFILES): Delete.
5857 * config/mips/irix4.mh (XDEPFILES): Delete.
5858 * config/mips/irix3.mh (XDEPFILES): Delete.
5859 * config/mips/decstation.mh (XDEPFILES): Delete.
5860 * config/mips/mipsm3.mh (XDEPFILES): Delete.
5861 (NATDEPFILES): Move core-aout.o to here.
5862 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
5863 * config/pa/hpux1020.mh (XDEPFILES): Delete.
5864 * config/pa/hppabsd.mh (XDEPFILES): Delete.
5865 * config/pa/hppahpux.mh (XDEPFILES): Delete.
5866 * config/pa/hpux11w.mh (XDEPFILES): Delete.
5867 * config/pa/hppaosf.mh (XDEPFILES): Delete.
5868 * config/pa/hpux11.mh (XDEPFILES): Delete.
5869 * config/powerpc/aix.mh (XDEPFILES): Delete.
5870 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
5871 * config/powerpc/linux.mh (XDEPFILES): Delete.
5872 * config/romp/rtbsd.mh: Rename XDEPFILES.
5873 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
5874 * config/rs6000/aix4.mh (XDEPFILES): Delete.
5875 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
5876 * config/s390/s390.mh (XDEPFILES): Delete.
5877 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
5878 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
5879 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
5880 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
5881 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
5882 * config/sparc/nbsd.mh (XDEPFILES): Delete.
5883 * config/sparc/linux.mh (XDEPFILES): Delete.
5884 * config/vax/vaxult.mh (XDEPFILES): Delete.
5885 * config/vax/vaxult2.mh (XDEPFILES): Delete.
5886 * Makefile.in (DEPFILES): Remove XDEPFILES.
5888 2002-01-17 Andrew Cagney <ac131313@redhat.com>
5890 * utils.c (internal_verror): Fix comments, default is yes not no.
5891 Update queries to match. Default to quit and dump core.
5893 2002-01-17 Andrew Cagney <ac131313@redhat.com>
5895 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
5897 * defs.h, event-top.c, gdbcmd.h: Ditto.
5898 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
5899 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
5900 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
5901 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
5902 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
5903 * mi/mi-main.c:Ditto.
5905 * stack.c, symfile.c: Update copyright.
5907 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
5909 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
5910 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
5911 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
5912 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
5914 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
5916 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
5917 * gdbserver/low-lynx.c (myattach): Likewise.
5918 * gdbserver/low-nbsd.c (myattach): Likewise.
5919 * gdbserver/low-sim.c (myattach): Likewise.
5920 * gdbserver/low-sparc.c (myattach): Likewise.
5921 * gdbserver/low-sun3.c (myattach): Likewise.
5923 * gdbserver/low-linux.c (myattach): New function.
5925 * gdbserver/server.c (attach_inferior): New function.
5926 (main): Handle "--attach".
5928 2002-01-16 Andrew Cagney <ac131313@redhat.com>
5930 * MAINTAINERS (language support): Daniel Jacobwitz is C++
5933 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
5935 * c-typeprint.c (is_type_conversion_operator): Add additional
5936 check for non-conversion operators.
5938 2002-01-15 Michael Snyder <msnyder@redhat.com>
5940 * linux-proc.c: Add "info proc" command, a la procfs.c.
5941 (read_mapping): New function, abstract and re-use code.
5942 (linux_find_memory_regions): Use new func read_mapping.
5943 (linux_info_proc_cmd): New function, implement "info proc".
5944 (_initialize_linux_proc): Add new command "info proc".
5946 2002-01-15 Michael Snyder <msnyder@redhat.com>
5948 * symfile.c (generic_load): Use bfd_map_over_sections method
5949 instead of manipulating bfd structure members directly.
5950 (add_section_size_callback): New function, bfd sections callback
5951 used by generic_load.
5952 (load_sections_callback): New function, bfd sections callback
5953 used by generic_load.
5955 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
5957 [Based on work by Jim Blandy]
5958 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
5959 (builtin_type_vec128): Export.
5960 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
5962 (builtin_type_vec128): New builtin type for 128 bit vector
5964 (build_gdbtypes): Initialize builtin_type_v16qi and
5965 builtin_type_v8hi. Create the vec128 register builtin type
5967 (build_builtin_type_vec128): New function.
5968 (_initialize_gdbtypes): Register builtin_type_v16qi and
5969 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
5970 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
5971 AltiVec register to new builtin type.
5973 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
5975 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
5978 2002-01-14 Andrew Cagney <ac131313@redhat.com>
5980 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
5981 CLEAN_UP_REGISTER_VALUE.
5982 * regcache.c (supply_register): Update only call.
5984 2002-01-14 Andrew Cagney <ac131313@redhat.com>
5986 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5987 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5988 a29k-*-vxworks* targets as obsolete.
5990 2002-01-14 Michael Snyder <msnyder@redhat.com>
5992 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
5993 until we can resolve portability issues.
5994 * gregset.h: Remove references to fpxregs.
5995 * gcore.c (gcore_command): Initialize note_sec to NULL.
5997 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5999 * signals.c (target_signal_to_name): Rewrite. Only use
6000 signals[].name when in bounds and non-NULL.
6002 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6004 From Petr Ledvina <ledvinap@kae.zcu.cz>:
6005 * signals.c (target_signal_to_name): Verify that SIG is within the
6006 bounds of the signals array.
6008 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6010 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
6012 2002-01-13 Keith Seitz <keiths@redhat.com>
6014 * stack.c (print_frame_info_base): Print the frame's pc
6015 only if when print_frame_info_listing_hook is not defined.
6017 2002-01-13 Keith Seitz <keiths@redhat.com>
6019 * varobj.c (varobj_set_value): Make sure that there were no
6020 errors evaluating the object before attempting to set its
6022 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
6023 so this offset adjustment is no longer necessary.
6024 (create_child): Don't set the error flag if the child is
6026 (value_of_child): If value_fetch_lazy fails, return NULL
6027 so that callers will be notified that an error occurred.
6028 (c_value_of_variable): Delay check of variable's validity
6029 until later. We actually want all structs and unions to have
6031 Do not return "???" for variables which could not be evaluated.
6032 This error condition must be returned to the caller so that it
6033 can get the error condition from gdb.
6034 (cplus_name_of_child): Adjust index for vptr before figuring
6035 out the name of the child.
6036 (cplus_value_of_child): If a child's (real) parent is not valid,
6037 don't even bother trying to give a value for it. Just return
6038 an error. Change all instances in this function.
6039 (cplus_type_of_child): If our parent is one of the "fake"
6040 parents, we need to get at the type of the real parent, and
6041 derive the child's true type using this information.
6043 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6045 From 2002-01-09 John Marshall <johnm@falch.net>:
6046 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
6047 sources.redhat.com, and tweak some related URLs which had
6048 suffered from linkrot.
6050 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6053 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
6054 structures passed in registers.
6056 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
6058 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
6059 white space which prevented compilation. Reported by DSK
6060 <dsk@student.unsw.edu.au>.
6062 2002-01-11 Michael Snyder <msnyder@redhat.com>
6064 * symfile.c (build_section_addr_info_from_section_tab):
6065 Use bfd access method instead of manipulating bfd directly.
6066 (syms_from_objfile): Ditto.
6067 (simple_overlay_update_1): Ditto.
6068 (simple_overlay_update): Ditto.
6069 (generic_load): Ditto.
6070 (overlay_unmapped_address): FIXME comment, bfd access methods.
6071 (sections_overlap): FIXME comment, bfd access methods.
6072 (pc_in_mapped_range): FIXME comment, bfd access methods.
6073 (pc_in_unmapped_range): FIXME comment, bfd access methods.
6074 (section_is_mapped): FIXME comment, bfd access methods.
6075 (section_is_overlay): FIXME comment, bfd access methods.
6077 * symfile.c (generic_load): Whitespace and long line cleanups.
6078 Remove duplicate variable, change several local variables to
6079 more appropriate data types.
6080 (print_transfer_performance): Use %lu instead of %ld for ulongs.
6082 2002-01-12 Andrew Cagney <ac131313@redhat.com>
6085 * language.c (longest_local_hex_string_custom): Use phex_nz to
6086 convert NUM to a hex string.
6088 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
6090 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
6092 Update Copyright year.
6094 2002-01-12 Andrew Cagney <ac131313@redhat.com>
6096 * language.c (longest_raw_hex_string): Delete unused function.
6098 2002-01-11 Petr Sorfa <petrs@caldera.com>
6100 * MAINTAINERS (write-after-approval): Add myself.
6101 * dwarf2read.c (read_tag_string_type): Handling of
6103 (read_tag_string_type): FORTRAN fix to prevent propagation of
6105 (set_cu_language): Handling of DW_LANG_Fortran95
6107 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6109 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
6110 GETPID(inferior_ptid).
6111 (store_inferior_registers): Likewise.
6113 2002-01-10 Jason Merrill <jason@redhat.com>
6115 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
6118 2002-01-10 Andrew Cagney <ac131313@redhat.com>
6120 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
6121 and bfd/elf32-sh-nbsd.c.
6123 2002-01-10 Michael Snyder <msnyder@redhat.com>
6125 * NEWS: Mention --pid and corefile/proc-id behavior change.
6127 * Makefile.in: Add rules for gcore.o and linux-proc.o.
6128 * gcore.c: Include cli/cli-decode.h instead of command.h.
6130 * main.c (captured_main): Add new command line option "--pid".
6131 If the second command line argument (following the symbol-file)
6132 begins with a digit, try to attach to it before trying to open
6134 (print_gdb_help): Document the "--pid" argument.
6136 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
6138 * completer.c (command_completer): New function.
6140 * completer.h <command_completer>: Add prototype.
6142 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
6143 completer for the "help" command.
6145 2002-01-09 Jason Merrill <jason@redhat.com>
6147 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
6149 2002-01-09 Michael Snyder <msnyder@redhat.com>
6151 * i386-linux-nat.c (fill_fpxregset): Make global.
6152 (store_fpxregset): Ditto.
6154 * gregset.h (gdb_fpxregset_t): Define.
6155 (supply_fpxregset): Prototype.
6156 (fill_fpxregset): Prototype.
6158 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
6160 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
6162 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
6163 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
6164 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
6166 2002-01-09 Andrew Cagney <ac131313@redhat.com>
6168 * MAINTAINERS: Update target maintainer rules so that any
6169 Maintainer can approve a tested patch for a maintenance-only
6172 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
6174 * MAINTAINERS (write-after-approval): Add myself.
6176 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
6179 2002-01-08 Michael Snyder <msnyder@redhat.com>
6181 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
6182 real name of the executable, rather than the /proc name.
6184 2002-01-03 Michael Snyder <msnyder@redhat.com>
6186 Implement a "generate-core-file" command in gdb, save target state.
6187 * gcore.c: New file. Implement new command 'generate-core-file'.
6188 Save a corefile image of the current state of the inferior.
6189 * linux-proc.c: Add linux-specific code for saving corefiles.
6190 * target.h (struct target_ops): Add new target vectors for saving
6191 corefiles; to_find_memory_regions and to_make_corefile_notes.
6192 (target_find_memory_regions): New macro.
6193 (target_make_corefile_notes): New macro.
6194 * target.c (update_current_target): Inherit new target methods.
6195 (dummy_find_memory_regions): New place-holder method.
6196 (dummy_make_corefile_notes): New place-holder method.
6197 (init_dummy_target): Initialize new dummy target vectors.
6198 * exec.c (exec_set_find_memory_regions): New function.
6199 Allow the exec_ops vector for memory regions to be taken over.
6200 (exec_make_note_section): New function, target vector method.
6201 * defs.h (exec_set_find_memory_regions): Export prototype.
6202 * procfs.c (proc_find_memory_regions): New function, corefile method.
6203 (procfs_make_note_section): New function, corefile method.
6204 (init_procfs_ops): Set new target vector pointers.
6205 (find_memory_regions_callback): New function.
6206 (procfs_do_thread_registers): New function.
6207 (procfs_corefile_thread_callback): New function.
6208 * sol-thread.c (sol_find_memory_regions): New function.
6209 (sol_make_note_section): New function.
6210 (init_sol_thread_ops): Initialize new target vectors.
6211 * inftarg.c (inftarg_set_find_memory_regions): New function.
6212 Allow to_find_memory_regions vector to be taken over.
6213 (inftarg_set_make_corefile_notes): New function.
6214 Allow to_make_corefile_notes vector to be taken over.
6215 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
6216 interface layer if not target_has_execution (may be a corefile).
6217 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
6218 * config/sparc/sun4sol2.mh: Ditto.
6219 * config/alpha/alpha-linux.mh: Ditto.
6220 * config/arm/linux.mh: Ditto.
6221 * config/i386/x86-64linux.mh: Ditto.
6222 * config/ia64/linux.mh: Ditto.
6223 * config/m68k/linux.mh: Ditto.
6224 * config/mips/linux.mh: Ditto.
6225 * config/powerpc/linux.mh: Ditto.
6226 * config/sparc/linux.mh: Ditto.
6228 2002-01-07 Michael Snyder <msnyder@redhat.com>
6230 * arm-linux-nat.c: Remove references to regcache.c internal data
6231 (registers[] and register_valid[]).
6233 2002-01-07 Michael Snyder <msnyder@redhat.com>
6235 * linux-proc.c: New file. Implement child_pid_to_exec_file,
6236 so that attaching to a pid will automatically read the process's
6237 symbol file and shlibs.
6238 * Makefile.in: Add rule for linux-proc.o.
6239 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
6240 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
6241 * config/arm/linux.mh: Ditto.
6242 * config/i386/linux.mh: Ditto.
6243 * config/i386/x86-64linux.mh: Ditto.
6244 * config/ia64/linux.mh: Ditto.
6245 * config/m68k/linux.mh: Ditto.
6246 * config/mips/linux.mh: Ditto.
6247 * config/powerpc/linux.mh: Ditto.
6248 * config/sparc/linux.mh: Ditto.
6250 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
6252 * win32-nat.c: Add i386-tdep.h dependency.
6254 2002-01-07 Michael Snyder <msnyder@redhat.com>
6256 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
6257 instead of bfd_get_arch_size. Don't bail out just because
6258 there's no exec_bfd.
6260 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
6261 * p-valprint.c (pascal_object_print_value): Ditto.
6262 * somread.c (som_symtab_read): Ditto.
6263 * symfile.c (simple_free_overlay_region_table): Ditto.
6264 * valops.c (value_assign): Ditto.
6266 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
6267 use tilde_expand and strerror for opening save-tracepoints file.
6269 * thread-db.c (thread_db_new_objfile): Indendation fix.
6271 * infptrace.c (GDB_MAX_ALLOCA): New define.
6272 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
6273 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
6274 can be overridden with whatever value is appropriate to the host).
6275 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
6276 alloca to allocate potentially large buffer.
6277 * rs6000-nat.c (child_xfer_memory): Ditto.
6278 * symm-nat.c (child_xfer_memory): Ditto.
6279 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
6281 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
6283 From Nick Clifton <nickc@redhat.com>
6284 * d10v-tdep.c: Set STACK_START to 0x200bffe.
6286 2002-01-07 Michael Snyder <msnyder@redhat.com>
6288 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
6289 Don't use exec_bfd if it's NULL.
6291 2002-01-06 Mark Kettenis <kettenis@gnu.org>
6293 * valops.c (value_arg_coerce): Fix formatting.
6295 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6297 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
6300 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6302 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
6303 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
6304 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
6305 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
6306 z8k-coff have not been multi-arched. Update z8k-coff build
6309 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6311 * MAINTAINERS: Mark a29k target as obsolete.
6312 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
6313 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
6315 * NEWS: Note that a29k targets are obsolete.
6316 * a29k-tdep.c: Mark as obsolete.
6317 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6318 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6319 a29k-*-vxworks* targets as obsolete.
6320 * remote-adapt.c: Obsolete.
6321 * remote-eb.c: Obsolete.
6322 * remote-mm.c: Obsolete.
6323 * remote-udi.c: Obsolete.
6324 * config/a29k/a29k-udi.mt: Obsolete.
6325 * config/a29k/a29k.mt: Obsolete.
6326 * config/a29k/tm-a29k.h: Obsolete.
6327 * config/a29k/tm-vx29k.h: Obsolete.
6328 * config/a29k/vx29k.mt: Obsolete.
6330 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6332 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
6333 with BFD_ENDIAN_BIG.
6335 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6337 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
6338 * configure, config.in: Re-generate.
6339 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
6340 * defs.h: Do not include <endian.h>.
6342 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
6344 * acconfig.h (HAVE_PT_GETXMMREGS): New.
6345 * config.in: Regenerate.
6346 * configure.in: Update copyright years.
6347 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
6348 * configure: Regenerate.
6349 * i386bsd-nat.c: Update copyright years.
6350 (fill_gregset): Use regcache_collect.
6351 (fetch_inferior_registers): Only fetch integer registers
6352 if requested to do so. Add support for XMM registers
6353 using PT_GETXMMREGS.
6354 (store_inferior_registers): Only store integer registers
6355 if requested to do so. Add support for XMM registers
6356 using PT_SETXMMREGS.
6357 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
6358 (store_inferior_registers): Remove.
6359 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
6360 (fetch_elfcore_registers): New function.
6361 (i386nbsd_elfcore_fns): New.
6362 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
6363 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
6365 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6366 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
6367 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
6368 * config/i386/tm-nbsd.h: Update copyright years.
6369 (HAVE_SSE_REGS): Define.
6370 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
6371 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
6372 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
6373 (SIGCONTEXT_PC_OFFSET): Remove.
6374 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
6376 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6378 * configure.tgt: Remove powerpc-*-macos* target.
6379 * config/m68k/xm-mpw.h: Delete file.
6380 * config/xm-mpw.h: Delete file.
6381 * ser-mac.c: Delete file.
6382 * mpw-make.sed: Delete file.
6383 * mpw-config.in: Delete file.
6384 * mac-xdep.c: Delete file.
6385 * mac-gdb.r: Delete file.
6386 * mac-defs.h: Delete file.
6387 * mac-nat.c: Delete file.
6388 * config/powerpc/macos.mh: Delete file.
6389 * config/powerpc/macos.mt: Delete file.
6390 * config/powerpc/nm-macos.h: Delete file.
6391 * config/powerpc/tm-macos.h: Delete file.
6392 * source.c (openp, open_source_file): Remove obsolete code.
6393 * top.c (gdb_readline): Ditto.
6394 * utils.c (query): Ditto.
6395 * event-top.c (display_gdb_prompt): Ditto.
6396 * Makefile.in (ser-mac.o): Delete obsolete target.
6399 2002-01-04 Andrew Cagney <ac131313@redhat.com>
6401 * defs.h (BIG_ENDIAN): Delete macro definition.
6402 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
6403 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
6404 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
6405 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
6406 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
6407 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
6408 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
6409 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
6410 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
6411 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
6412 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
6413 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
6414 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
6415 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
6416 * gdbarch.c: Re-generate.
6418 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6420 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
6423 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6425 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
6427 2002-01-04 Andrew Cagney <ac131313@redhat.com>
6429 * value.h (value_ptr): Delete typedef.
6431 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6433 * i386nbsd-nat.c: Update copyright years.
6434 Include i386-tdep.h.
6436 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
6438 * stabsread.c: Update copyright years.
6440 From Debashis Mahata <debashis.mahata@wipro.com>:
6441 (read_struct_fields): Deal with Sun C compiler erroneous stab
6442 output for structs and unions.
6445 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6447 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
6450 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6452 * cp-abi.c: Fix whitespace.
6453 (baseclass_offset): New wrapper function.
6454 * cp-abi.h (baseclass_offset): Add prototype.
6455 (struct cp_abi_ops): Add baseclass_offset pointer.
6457 * valops.c (vb_match): Move to...
6458 * gnu-v2-abi.c (vb_match): here.
6459 * valops.c (baseclass_offset): Move to...
6460 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
6462 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
6464 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
6465 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
6466 * hpacc-abi.c (init_hpacc_ops): Likewise.
6468 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6470 * valops.c (find_overload_match): Accept obj as a
6471 reference parameter. Update it before returning.
6472 * value.h (find_overload_match): Update prototype.
6473 * eval.c (evaluate_subexp_standard): Pass object to
6474 find_overload_match by reference.
6476 2002-01-03 Andrew Cagney <ac131313@redhat.com>
6478 * valarith.c: Replace value_ptr with struct value pointer. Remove
6479 register attribute from value declarations.
6482 * scm-lang.c (scm_lookup_name): Ditto.
6484 2002-01-03 Michael Snyder <msnyder@redhat.com>
6486 Abstract the functionality of iterating over mapped memory
6487 regions into a general purpose iterator function.
6488 * procfs.c (iterate_over_mappings): New function, general purpose
6489 iterator for memory sections.
6490 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
6491 (solib_mappings_callback): New function, callback for above.
6492 (info_proc_mappings): Reimpliment using iterate_over_mappings.
6493 (info_mappings_callback): New function, callback for above.
6495 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
6497 2002-01-01 Mark Kettenis <kettenis@gnu.org>
6499 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
6500 * i386-tdep.c: Include "elf-bfd.h".
6501 (process_note_abi_tag_sections): New function.
6502 (i386_gdbarch_init): Add code to recognize various OS/ABI
6505 * maint.c (_initialize_maint_cmds): Add missing \ in
6508 For older changes see ChangeLog-2001
6514 version-control: never