1 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
6 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8 * arm-tdep.h (enum arm_float_model): New enum.
9 (struct gdbarch_tdep): Add fp_model.
10 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11 up floating-point conversions until we know the floating-point model
12 in use by the inferior. Don't complain about being unable to
13 determine the ABI of the inferior when we don't have one.
14 (arm_extract_return_value): Support different floating-point models.
15 (arm_store_return_value): Likewise.
16 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
18 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
20 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
22 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
23 of ``current_gdbarch''.
25 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
27 * armnbsd-nat.c : ANSIfy all function declarations.
28 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
29 (fetch_inferior_registers): Re-implement in terms of above.
30 (store_register, store_regs, store_fp_register, store_fp_regs): New.
31 (store_inferior_registers): Re-implement in terms of above.
33 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
35 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
37 * arm-linux-tdep.c: Likewise.
38 * config/arm/tm-linux.h: Likewise.
40 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
42 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
43 * config/arm/nbsd.mt (TM_FILE): Delete.
44 * config/arm/tm-nbsd.h: Delete.
46 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
48 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
49 Initialize CALL_DUMMY_LENGTH.
51 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
53 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
55 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
56 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
57 defines one thing and that is incorrect for this port.
58 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
60 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
62 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
64 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
66 * win32-nat.c (display_selector): New function. Displays information
67 about the information returned by GetThreadSelectorEntry API function.
68 (display_selectors): New function. Displays the infomation of
69 the selector given as argument, or of CS, DS ans FS selectors
70 if no argument is given.
71 ( _initialize_inftarg): Add "w32" as info prefix command.
72 Add "info w32 selector" as command calling display_selectors.
74 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
76 * i386-tdep.c (get_longjmp_target): Fix compilation failure
77 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
80 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
82 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
84 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
86 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
87 (arm_fix_call_dummy): Call it.
88 (arm_call_dummy_breakpoint_offset): Delete.
89 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
90 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
92 2002-02-18 Andrew Cagney <ac131313@redhat.com>
94 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
95 Default to func_frame_chain_valid.
96 * gdbarch.h, gdbarch.c: Re-generate.
97 * frame.h (FRAME_CHAIN_VALID): Delete definition.
99 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
101 * ppc-linux-nat.c: Update copyright.
102 (fetch_register, store_register): Add tid parameter, don't compute
104 (fetch_ppc_registers, store_ppc_registers): Add tid
105 parameter. Pass it along to callees.
106 (fetch_inferior_registers, store_inferior_registers): Compute tid
107 here, and pass it to calleed functions.
108 (fill_gregset, supply_fpregset): Clean up formatting.
110 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
112 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
113 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
115 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
117 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
118 * gdbarch.c gdbarch.h: Regenerate.
119 * breakpoint.c (create_longjmp_breakpoint): Always compile this
121 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
122 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
123 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
125 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
126 * arm-tdep.c (arm_get_longjmp_target): New function.
127 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
128 this to a positive value register arm_get_longjmp_target as the
130 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
131 (arm_linux_init_abi): Set up longjmp description in tdep.
132 * armnbsd-nat.c (get_longjmp_target): Delete.
133 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
135 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
136 (get_longjmp_target): Delete declaration.
137 (GET_LONGJMP_TARGET): Delete.
138 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
139 (GET_LONGJMP_TARGET): Delete.
141 2002-02-17 Kevin Buettner <kevinb@redhat.com>
143 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
144 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
145 of ``current_gdbarch''.
147 2002-02-17 Tom Tromey <tromey@redhat.com>
149 * cli/cli-cmds.c (compare_strings): New function.
150 (complete_command): Only print each unique item once.
151 * completer.h (complete_line): Declare.
152 * completer.c (complete_line): New function.
153 (line_completion_function): Use it.
155 2002-02-16 Andrew Cagney <ac131313@redhat.com>
157 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
158 * gdbarch.h, gdbarch.c: Re-generate.
160 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
162 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
164 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
166 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
167 * valops.c (value_arg_coerce): Don't take the address of a reference
168 to convert an argument to a reference.
170 2002-02-15 Christopher Faylor <cgf@redhat.com>
172 * win32-nat.c (get_image_name): New function.
173 (handle_load_dll): Use get_image_name function.
174 (get_child_debug_event): Avoid registering debug events until possibly
175 execed process is started.
176 (child_create_inferior): Allow invocation via shell so that command
177 line redirection, etc. works ok.
178 (_initialize_inftarg): Add new command: "set shell" to control whether
179 a shell is used to start a process.
181 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
183 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
184 instead of find_register_by_number.
185 (cannot_store_register): Likewise.
187 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
189 * dwarf2read.c: Replace fprintf (stderr, ...) by
190 fprintf_unfiltered (gdb_stderr, ...).
192 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
194 * gdbserver/gdbserver.1: Document --attach.
196 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
198 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
200 * arm-tdep.c (arm_default_arm_le_breakpoint)
201 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
202 (arm_default_thumb_be_breakpoint): New. Initialize them from
203 traditional breakpoint defines.
204 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
205 (arm_gdbarch_init): Initialize new breakpoint variables.
206 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
207 (arm_linux_init_abi): Initialize linux-specific breakpoint.
208 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
209 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
211 (arm_netbsd_init_abi_common): ... here; new function.
212 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
213 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
214 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
215 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
217 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
219 * arm-tdep.h (enum arm_abi): New enum.
220 (struct gdbarch_tdep): New structure.
221 (LOWEST_PC): Provide a default.
222 (arm_gdbarch_register_os_abi): Declare new function.
223 * arm-tdep.c (arm_abi_names): New array.
224 (process_note_abi_tag_sections): New function.
225 (get_elfosabi): New function.
226 (arm_gdbarch_register_os_abi): New function.
227 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
228 support for that ABI has been built in, then call the appropriate
229 configuration routine. Use gdbarch_num_regs() to get the number
231 (arm_dump_tdep): New function.
232 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
233 place-holder functions.
234 (_initialize_arm_tdep): Register them.
235 * config/arm/tm-arm.h (LOWEST_PC): Delete.
237 * armnbsd-tdep.c: New file.
238 * Makefile.in (armnbsd-tdep.o): Add dependencies.
239 * config/arm/nbsd.mt (TDEPFILES): Add it.
240 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
242 * armnbsd-nat.c: Include regcache.h.
243 * Makefile.in (armnbsd-nat.o): Update dependency list.
245 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
247 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
249 * gdbserver/Makefile.in: Fix typos in target rules.
251 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
253 Fix part of PR gdb/267.
254 * linespec.c (find_methods): Handle constructors specially for now.
256 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
258 * arm-tdep.c (arm_push_arguments): Eliminate special float type
260 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
261 standard_coerce_float_to_double().
263 2002-02-14 Christopher Faylor <cgf@redhat.com>
265 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
268 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
270 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
271 find_variant_by_name, because it confuses the multiarch
272 framework. Return NULL if there isn't an architecture with the
273 user supplied name, instead of forcing a different one without
274 recording the change with the multiarch machinery.
275 (find_variant_by_name): Delete.
277 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
279 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
280 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
282 2002-02-13 Martin M. Hunt <hunt@redhat.com>
284 * stack.c (print_frame_info_base): When calling
285 print_frame_info_listing_hook, set current_source_symtab.
287 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
289 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
290 and remove unused $(INCLUDE_DIR).
291 Add regcache.c to OBS.
292 Add generated register protocol files to clean target.
293 Update dependencies for new objects, obsolete old target code.
295 * gdbserver/linux-low.c: Remove all platform-specific code to
296 new files. Remove various dead code. Update to use regcache
298 * gdbserver/remote-utils.c (fromhex): Add return statement
300 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
302 (input_interrupt): Add integer parameter to match prototype
304 (outreg): Use register_data ().
305 (prepare_resume_reply): Use gdbserver_expedite_regs.
306 * gdbserver/server.c (main): Dynamically allocate own_buf because
307 PBUFSIZ is no longer constant. Use registers_to_string () and
308 registers_from_string ().
309 * gdbserver/server.h: No longer include "defs.h". Add prototypes
310 for error (), fatal (), and warning (). Update definition of
311 PBUFSIZ to use regcache functionality. Add include guard.
312 * gdbserver/utils.c (fatal): Add missing ``const''.
313 (warning): New function.
315 * regformats/regdat.sh: Include "regcache.h" in generated files.
316 Provide init_registers () function.
317 * regformats/regdef.h: Add prototype for set_register_cache ().
320 * gdbserver/linux-arm-low.c: New file.
321 * gdbserver/linux-i386-low.c: New file.
322 * gdbserver/linux-ia64-low.c: New file.
323 * gdbserver/linux-m68k-low.c: New file.
324 * gdbserver/linux-mips-low.c: New file.
325 * gdbserver/linux-ppc-low.c: New file.
326 * gdbserver/linux-sh-low.c: New file.
328 * gdbserver/regcache.c: New file.
329 * gdbserver/regcache.h: New file.
331 * gdbserver/low-linux.c: Removed obsolete file.
333 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
335 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
336 * config/i386/linux.mt: Likewise.
337 * config/ia64/linux.mt: Likewise.
338 * config/m68k/linux.mh: Likewise.
339 * config/powerpc/linux.mh: Likewise.
340 * config/mips/linux.mt: Likewise.
342 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
344 * config/i386/i386lynx.mh: Mark gdbserver variables
345 as (currently) obsolete for this target.
346 * config/i386/nbsd.mt: Likewise.
347 * config/i386/nbsdelf.mt: Likewise.
348 * config/m32r/m32r.mt: Likewise.
349 * config/m68k/m68klynx.mh: Likewise.
350 * config/m68k/nbsd.mt: Likewise.
351 * config/m68k/sun3os4.mh: Likewise.
352 * config/mips/vr5000.mt: Likewise.
353 * config/ns32k/nbsd.mt: Likewise.
354 * config/pa/hppabsd.mh: Likewise.
355 * config/pa/hppaosf.mh: Likewise.
356 * config/powerpc/nbsd.mt: Likewise.
357 * config/rs6000/rs6000lynx.mh: Likewise.
358 * config/s390/s390.mt: Likewise.
359 * config/s390/s390x.mt: Likewise.
360 * config/sparc/sparclynx.mh: Likewise.
361 * config/sparc/sun4os4.mh: Likewise.
362 * config/i386/x86-64linux.mt: Likewise.
363 * config/sparc/linux.mh: Likewise.
365 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
367 * configure.tgt: Configure gdbserver only for known working
368 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
369 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
370 SUBDIRS if it is configured. Update comment for ${nativefile}.
371 * configure: Regenerated.
373 2002-02-13 Michael Snyder <msnyder@redhat.com>
375 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
376 (default_gcore_mach): Just return 0, work around a problem in bfd.
377 (default_gcore_target): OK to return NULL if exec_bfd is null.
378 (make_mem_sec): Use a cast, avoid a warning.
380 * procfs.c (find_memory_regions_callback): Use a cast instead of
381 calling host_pointer_to_address (which complains if
382 sizeof (host pointer) != sizeof (target pointer)).
383 (procfs_make_note_section): Avoid overflow in psargs string.
385 * procfs.c (procfs_make_note_section): Make the default
386 implementation return an error.
388 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
390 * procfs.c (procfs_make_note_section): Provide a default definition
391 (for alpha-dec-osf4.0f). Fix typos.
393 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
395 * linux-proc.c: Add include of regcache.h.
396 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
398 2002-02-13 Andrew Cagney <ac131313@redhat.com>
400 From 2002-01-18 Greg McGary <greg@mcgary.org>:
401 * memattr.c (create_mem_region): Disallow useless empty region.
402 Regions are half-open intervals, so allow [A..B) [B..C) as
405 2002-02-13 Michael Chastain <mec@shout.net>
407 * defs.h: Kill CONST_PTR.
408 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
409 * c-lang.c (c_builtin_types): Likewise.
410 * ch-lang.c (ch_builtin_types): Likewise.
411 * f-lang.c (f_builtin_types): Likewise.
412 * language.c (unknown_builtin_types): Likewise.
413 * m2-lang.c (m2_builtin_types): Likewise.
414 * p-lang.c (pascal_builtin_types): Likewise.
415 * scm-lang.c (c_builtin_types): Likewise.
417 2002-02-13 Keith Seitz <keiths@redhat.com>
419 * arm-tdep.h (arm_get_next_pc): Add declaration.
421 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
423 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
424 with other related struct-returning functions.
425 (arm_extract_struct_value_address): New function.
426 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
427 initialize float_format, double_format and long_double_format as
428 appropriate to the endianness of the target.
429 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
430 (arm_use_struct_convention): Delete declaration.
431 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
433 2002-02-13 Keith Seitz <keiths@redhat.com>
435 * defs.h (core_addr_to_string_nz): New function.
437 2002-02-13 Mark Kettenis <kettenis@gnu.org>
439 Apply missing bits of 2002-01-15 patch.
440 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
441 (fill_fpregset): Use i387_fill_fsave.
443 2002-02-12 Keith Seitz <keiths@redhat.com>
445 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
446 (core_addr_to_string_nz): New function.
448 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
450 * arm-linux-nat.c: Really include arm-tdep.h.
451 * config/arm/tm-linux.h (struct type, struct value): Declare.
453 2002-02-11 Michael Snyder <msnyder@redhat.com>
455 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
456 (gcore section): Ifdef for Solaris and Unixware only.
457 (procfs_do_thread_registers): Unixware needs one lwpstatus
458 per thread (not one prstatus or pstatus).
459 (procfs_make_note_section): Iterate only over kernel threads (lwps),
460 not over all gdb threads. For unixware, call elfcore_write_pstatus
461 once before iterating over threads.
463 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
465 * arm-tdep.h: New file.
466 * arm-tdep.c: Include arm-tdep.h.
467 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
468 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
469 (arm_print_float_info, arm_register_type, convert_to_extended)
470 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
471 (arm_extract_return_value, arm_register_name): Make static.
472 (arm_software_single_step): Similarly. Fix types in declaration.
473 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
474 (arm_store_return_value, arm_store_struct_return): New functions.
475 (arm_gdbarch_init): Register the above functions. Also register
476 call_dummy_start_offset, sizeof_call_dummy_words,
477 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
478 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
479 max_register_virtual_size, register_size. Set up
480 prologue_cache.saved_regs here, rather than ...
481 (_initialize_arm_tdep): ... here.
482 * config/arm/tm-arm.h (struct type, struct value): Delete forward
484 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
485 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
486 (arm_print_float_info, arm_register_type, convert_to_extended)
487 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
488 (arm_extract_return_value, arm_register_name): Delete declarations.
489 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
490 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
491 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
492 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
493 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
494 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
495 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
496 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
497 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
498 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
499 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
500 (arm_get_next_pc): No-longer static -- these are needed by the RDI
502 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
503 * remote-rdi.c remote-rdp.c: Likewise.
504 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
505 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
506 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
509 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
510 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
511 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
512 from non-ARM_ prefixed definitions.
513 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
515 * remote-rdi.c remote-rdp.c: Likewise.
516 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
518 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
520 * arm-tdep.c (arm_frameless_function_invocation)
521 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
522 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
523 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
524 (arm_pop_frame, arm_get_next_pc): Make static.
525 (arm_gdbarch_init): Register above in gdbarch structure.
526 (arm_read_fp): Renamed from arm_target_read_fp.
527 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
528 * config/arm/tm-arm.h (arm_frameless_function_invocation)
529 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
530 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
531 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
532 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
533 (arm_pc_is_thumb_dummy): Delete declarations.
534 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
535 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
536 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
537 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
539 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
541 * symtab.c (compare_search_syms): New function.
542 (sort_search_symbols): New function.
543 (search_symbols): Sort symbols after searching rather than
546 2002-02-10 Andrew Cagney <ac131313@redhat.com>
548 * NEWS: Linux -> GNU/Linux.
550 2002-02-10 Andrew Cagney <ac131313@redhat.com>
552 * gdbarch.sh: For for level one methods, disallow a definition
553 when partially multi-arched. Add comments explaining rationale.
554 * gdbarch.h: Re-generate.
556 2002-02-10 Andrew Cagney <ac131313@redhat.com>
558 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
561 2002-02-10 Andrew Cagney <ac131313@redhat.com>
563 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
565 * gdbarch.c: Re-generate.
567 2002-02-10 Andrew Cagney <ac131313@redhat.com>
569 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
570 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
573 2002-02-10 Andrew Cagney <ac131313@redhat.com>
575 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
577 (PUSH_ARGUMENTS): Switch to using predefault.
578 * gdbarch.c: Regenerate.
580 2002-02-10 Andrew Cagney <ac131313@redhat.com>
582 * valops.c (PUSH_ARGUMENTS): Delete definition.
583 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
584 partial. Default to default_push_arguments.
585 * gdbarch.h, gdbarch.c: Regenerate.
587 2002-02-09 Andrew Cagney <ac131313@redhat.com>
589 * defs.h (throw_exception): Rename return_to_top_level. Update
591 * utils.c (error_stream, internal_verror, quit): Ditto.
592 * top.c (throw_exception, catcher): Ditto.
593 * sparclet-rom.c (sparclet_load): Ditto.
594 * remote.c (interrupt_query, minitelnet): Ditto.
595 * remote-sds.c (interrupt_query): Ditto.
596 * remote-mips.c (mips_error, mips_kill): Ditto.
597 * ocd.c (interrupt_query): Ditto.
598 * monitor.c (monitor_interrupt_query): Ditto.
599 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
600 * target.h: Update comment.
602 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
604 2002-02-09 Andrew Cagney <ac131313@redhat.com>
606 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
607 default_double_format.
608 * gdbarch.h, gdbarch.c: Re-generate.
609 * findvar.c (floatformat_unknown): Delete variable definition.
610 * doublest.h (floatformat_unknown): Delete variable declaration.
612 2002-02-09 Jim Blandy <jimb@redhat.com>
614 * stabsread.c (read_type): Add code to parse Sun's syntax for
615 prototyped function types.
617 2002-02-09 Andrew Cagney <ac131313@redhat.com>
619 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
620 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
622 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
624 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
625 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
626 now _initialize_xcoffsolib gets called again and overrides the
627 commands from solib.c in a native configuration.
629 2002-02-09 Mark Kettenis <kettenis@gnu.org>
631 * doublest.c (store_typed_floating): Don't try to return a value.
634 2002-02-08 Jim Blandy <jimb@redhat.com>
636 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
637 is prototyped and has no arguments, print its argument list as
640 2002-02-08 Chris Demetriou <cgd@broadcom.com>
642 * MAINTAINERS (write-after-approval): Add myself.
643 (paper-trail): I've escaped!
645 2002-02-08 Christopher Faylor <cgf@redhat.com>
647 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
649 (_initialize_check_for_gdb_ini): Ditto.
651 2002-02-08 Martin M. Hunt <hunt@redhat.com>
653 * win32-nat.c (cygwin_pid_to_str): Fix typo.
654 xaprintf -> xasprintf.
656 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
658 * win32-nat.c: Remove use of printf and sprintf functions.
660 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
662 * arm-tdep.c (arm_frame_chain_valid): Make static.
663 (arm_push_arguments): Likewise.
664 (arm_gdbarch_init): New function.
665 (_initialize_arm_tdep): Call it.
666 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
667 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
668 (FRAME_CHAIN_VALID): Delete.
669 (arm_frame_chain_valid): Delete declaration.
670 (PUSH_ARGUMENTS): Delete.
671 (arm_push_arguments): Delete declaration.
672 (CALL_DUMMY_P): Delete.
674 2002-02-08 Andrew Cagney <ac131313@redhat.com>
675 Corinna Vinschen <vinschen@redhat.com>
677 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
678 on builtin float types.
680 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
682 * utils.c: Include <curses.h> before "bfd.h".
683 * tui/tui-hooks.c: Likewise.
684 * tui/tui.c: Likewise.
685 * tui/tuiCommand.c: Likewise.
686 * tui/tuiData.c: Likewise.
687 * tui/tuiDataWin.c: Likewise.
688 * tui/tuiDisassem.c: Likewise.
689 * tui/tuiGeneralWin.c: Likewise.
690 * tui/tuiIO.c: Likewise.
691 * tui/tuiLayout.c: Likewise.
692 * tui/tuiRegs.c: Likewise.
693 * tui/tuiSource.c: Likewise.
694 * tui/tuiSourceWin.c: Likewise.
695 * tui/tuiStack.c: Likewise.
696 * tui/tuiWin.c: Likewise.
698 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
700 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
701 to include space for pseudoregs as well. Update loops accordingly.
702 (sh_fp_frame_init_saved_regs): Ditto.
703 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
705 2002-02-07 Andrew Cagney <ac131313@redhat.com>
707 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
708 Add Richard Earnshaw to Arm maintainers.
710 2002-02-07 Andrew Cagney <ac131313@redhat.com>
712 * defs.h (warning_begin): Delete declaration.
714 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
717 2002-02-07 Michael Snyder <msnyder@redhat.com>
719 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
720 Logic bug, remove misplaced else.
722 2002-02-07 Klee Dienes <klee@apple.com>
724 * fork-inferior.c (fork_inferior): Add '!' to the list of
725 characters that need to be quoted when building a string for the
726 shell. Quote '!' specifically with a backslash, since CSH chokes
727 when trying to evaluate "str!str".
729 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
731 * rdi-share/host.h: Only provide a typedef for bool if it is not
734 2002-02-04 Michael Snyder <msnyder@redhat.com>
736 * breakpoint.h (enum bptype): Add new overlay event bp type.
737 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
739 * breakpoint.c (create_internal_breakpoint): New function.
740 (internal_breakpoint_number): Moved into create_internal_breakpoint.
741 (create_longjmp_breakpoint): Use create_internal_breakpoint.
742 (create_thread_event_breakpoint): Ditto.
743 (create_solib_event_breakpoint): Ditto.
744 (create_overlay_event_breakpoint): New function.
745 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
746 (update_breakpoints_after_exec): Delete and re-initialize
747 overlay event breakpoints after an exec. Add FIXME comment
748 about longjmp breakpoint.
749 (print_it_typical): Ignore overlay event breakpoints.
750 (print_one_breakpoint): Ditto.
752 (bpstat_what): Do not stop for overlay event breakpoints.
753 (delete_breakpoint): Don't delete overlay event breakpoints.
754 (breakpoint_re_set_one): Delete the overlay event breakpoint.
755 (breakpoint_re_set): Re-create overlay event breakpoint.
757 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
758 (overlay_manual_command): Disable overlay breakpoints.
759 (overlay_off_command): Disable overlay breakpoints.
761 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
763 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
764 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
765 to here from config/tm-arm.h.
766 (coff_sym_is_thumb): Make static.
767 (arm_elf_make_msymbol_special): New function.
768 (arm_coff_make_msymbol_special): New function.
769 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
770 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
771 (coff_sym_is_thumb): Delete declaration.
772 (arm_elf_make_msymbol_special): Declare.
773 (arm_coff_make_msymbol_special): Declare.
774 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
775 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
777 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
779 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
781 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
783 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
784 * gdbarch.c gdbarch.h: Regenerate.
785 * arch-utils.c (default_print_float_info): New function.
786 * arch-utils.h (default_print_float_info): Prototype it.
787 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
788 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
789 (PRINT_FLOAT_INFO): Document it.
791 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
792 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
793 (PRINT_FLOAT_INFO): Define.
795 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
797 * win32-nat.c (_initialize_check_for_gdb_ini):
798 Add typecast to sprintf argument to suppress a warning.
800 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
802 * win32-nat.c (last_sig): Changed type of variable to target_signal,
803 to allow easier handling of pass state.
804 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
805 that gives exception name and address.
806 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
807 and set last_sig value to ourstatus->value.sig. Some missing
809 (child_continue): Correctly report continue_status.
810 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
811 TARGET_SIGNAL_0 (new default value).
812 (child_resume): consider sig argument passed to decide if
813 the exception should be passed to debuggee or not.
815 2002-02-05 Michael Snyder <msnyder@redhat.com>
817 * regcache.c (fetch_register): Call target_fetch_register
818 only if we don't call FETCH_PSEUDO_REGISTER.
819 (store_register): Call target_store_register only if we
820 don't call STORE_PSEUDO_REGISTER.
822 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
824 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
825 ELF_MAKE_MSYMBOL_SPECIAL.
826 * gdbarch.c, gdbarch.h: Regenerate.
827 * arch-utils.c (default_make_msymbol_special): New function.
828 * arch-utils.h (default_make_msymbol_special): Export.
829 * elfread.c (elf_symtab_read): Compile use of
830 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
832 * coffread.c (coff_symtab_read): Ditto, for
833 COFF_MAKE_MSYMBOL_SPECIAL.
835 2002-02-05 Jim Blandy <jimb@redhat.com>
837 * solib-svr4.c (svr4_truncate_ptr): New function.
838 (svr4_relocate_section_addresses): Do the address arithmetic with
839 the appropriate truncation for target addresses, even when
840 CORE_ADDR is larger than a target address.
842 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
844 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
847 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
849 * gdbserver/linux-low.c (kill_inferior): Remove commented out
852 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
854 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
856 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
858 * gdbserver/linux-low.c: Remove unused include files.
860 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
862 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
863 (read_inferior_memory): Use it.
864 (write_inferior_memory): Likewise.
866 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
868 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
869 grubbing through sys_errlist.
871 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
873 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
875 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
876 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
878 2002-02-04 Andrew Cagney <ac131313@redhat.com>
880 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
881 (do_sfunc, set_cmd_sfunc): New functions.
883 * command.h (struct cmd_list_element): Add field func.
884 * cli/cli-decode.h (struct cmd_list_element): Ditto.
885 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
886 * cli/cli-decode.h: Ditto.
888 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
889 (help_all, help_cmd_list): Ditto.
890 (find_cmd, complete_on_cmdlist): Ditto.
891 * top.c (execute_command): Ditto.
893 * cli/cli-setshow.c (do_setshow_command): Call func instead of
896 * infcmd.c (notice_args_read): Fix function signature.
898 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
899 * cli/cli-decode.c (add_set_cmd): Ditto.
900 * utils.c (initialize_utils): Ditto.
901 * maint.c (_initialize_maint_cmds): Ditto.
902 * infrun.c (_initialize_infrun): Ditto.
903 * demangle.c (_initialize_demangler): Ditto.
904 * remote.c (add_packet_config_cmd): Ditto.
905 * mips-tdep.c (_initialize_mips_tdep): Ditto.
906 * cris-tdep.c (_initialize_cris_tdep): Ditto.
907 * proc-api.c (_initialize_proc_api): Ditto.
908 * kod.c (_initialize_kod): Ditto.
909 * valprint.c (_initialize_valprint): Ditto.
910 * top.c (init_main): Ditto.
911 * infcmd.c (_initialize_infcmd): Ditto.
912 * corefile.c (_initialize_core): Ditto.
913 * arm-tdep.c (_initialize_arm_tdep): Ditto.
914 * arch-utils.c (initialize_current_architecture): Ditto.
915 (_initialize_gdbarch_utils): Ditto.
916 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
918 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
919 * wince.c (_initialize_inftarg): Ditto.
920 * symfile.c (_initialize_symfile): Ditto.
921 * mips-tdep.c (_initialize_mips_tdep): Ditto.
922 * language.c (_initialize_language): Ditto.
923 * arc-tdep.c (_initialize_arc_tdep): Ditto.
925 2002-02-04 Michael Snyder <msnyder@redhat.com>
927 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
929 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
931 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
932 Add rules for building the register data files.
934 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
936 * regformats/regdat.sh: Add braces to the definition of
937 expedite_regs_${arch}.
939 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
941 * regformats/regdef.h (struct reg): Add comment describing the
942 requirements for offset and size fields.
944 2002-02-04 Andreas Schwab <schwab@suse.de>
946 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
947 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
949 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
951 * gdbarch.sh (copyright): Update years in generated header.
952 (SMASH_TEXT_ADDRESS): Add rule.
953 * gdbarch.h, gdbarch.c: Re-generate.
954 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
955 * dbxread.c: Likewise.
956 * dwarfread.c: Likewise.
957 * elfread.c: Likewise.
958 * somread.c: Likewise.
960 * arm-tdep.c (arm_smash_text_address): New function.
961 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
963 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
965 Add support for hardware watchpoints on win32 native.
966 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
967 CONTEXT_DEBUG_REGISTERS.
968 (dr variable): New variable. Static array containing a local copy
970 (debug_registers_changed): New variable. Reflects when debug registers
971 are changed and need to be written to inferior.
972 (debug_registers_used): New variable. Reflects when any debug register
973 was set, used when new threads are created.
974 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
976 (thread_rec): Set dr array if id is the thread of current_event .
977 (child_continue, child_resume): Change the debug registers for all
978 threads if debug_registers_changed.
979 (child_add_thread): Change the debug registers if debug_registers_used.
980 * config/i386/cygwin.mh: Add use of i386-nat.o file.
981 Link nm.h to new nm-cygwin.h file.
982 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
983 of hardware registers.
985 2002-02-03 Andrew Cagney <ac131313@redhat.com>
987 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
988 Restore behavour broken by 2002-01-20 Andrew Cagney
989 <ac131313@redhat.com> IEEE_FLOAT removal.
991 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
993 * c-valprint.c (c_val_print): Pass a proper valaddr to
994 cp_print_class_method.
995 * valops.c (search_struct_method): If there is only one method
996 and args is NULL, return that method.
998 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1000 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
1001 accessing tag_name directly.
1003 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1005 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
1006 of accessing tag_name directly.
1008 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1011 * gdbtypes.c (replace_type): New function.
1012 * gdbtypes.h (replace_type): Add prototype.
1013 * stabsread.c (read_type): Use replace_type.
1015 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
1017 * Makefile.in (memattr.o): Add missing dependencies rule.
1019 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1021 * breakpoint.c (break_at_finish_command): Really export.
1022 (break_at_finish_at_depth_command): Ditto.
1023 (tbreak_at_finish_command): Ditto.
1024 * hppa-tdep.c: Include completer.h.
1025 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
1026 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
1028 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1030 * utils.c (do_write): New function.
1031 (error_stream): Rewrite combining the code from error_begin and
1033 (verror): Rewrite using error_stream.
1034 (error_begin): Delete function.
1036 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1038 * utils.c (error_begin): Make static.
1039 * defs.h (error_begin): Delete declaration.
1041 * linespec.c (cplusplus_error): Replace cplusplus_hint.
1042 (decode_line_1): Use cplusplus_error instead of error_begin,
1043 cplusplus_hint and return_to_top_level.
1044 * coffread.c (coff_symfile_read): Use error instead of error_begin
1045 and return_to_top_level.
1046 * infrun.c (default_skip_permanent_breakpoint): Ditto.
1048 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1050 * language.h (type_error, range_error): Make string parameter
1052 * language.c (warning_pre_print): Delete extern declaration.
1053 * dwarfread.c (warning_pre_print): Ditto.
1054 * language.c (type_error, range_error): Rewrite to use verror and
1055 vwarning instead of warning_begin.
1057 2002-02-01 Michael Snyder <msnyder@redhat.com>
1059 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
1060 (set_ignore_count): Move misplaced comment back where it belongs.
1062 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1064 * command.h (NO_FUNCTION): Delete macro.
1065 * cli/cli-decode.h (NO_FUNCTION): Ditto.
1066 * top.c (execute_command): Replace NO_FUNCTION with NULL.
1067 * tracepoint.c (_initialize_tracepoint): Ditto.
1068 * cli/cli-decode.c (add_set_cmd): Ditto.
1069 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1071 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
1073 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
1074 Update ``this'' pointer when calling virtual functions.
1076 2002-02-01 Michael Snyder <msnyder@redhat.com>
1078 * breakpoint.c (create_temp_exception_breakpoint): Delete.
1079 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
1081 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
1083 * regformats/reg-arm.dat: New file.
1084 * regformats/reg-i386.dat: New file.
1085 * regformats/reg-ia64.dat: New file.
1086 * regformats/reg-m68k.dat: New file.
1087 * regformats/reg-mips.dat: New file.
1088 * regformats/reg-ppc.dat: New file.
1089 * regformats/reg-sh.dat: New file.
1090 * regformats/regdef.h: New file.
1091 * regformats/regdat.sh: New file.
1093 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
1095 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
1096 (arm_frame_args_address, arm_frame_locals_address): New functions.
1097 (arm_frame_num_args): New function.
1098 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
1099 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
1100 (FRMA_NUM_ARGS): Call arm_frame_num_args.
1102 2002-01-31 Michael Snyder <msnyder@redhat.com>
1104 * breakpoint.c (break_at_finish_command): Export.
1105 (break_at_finish_at_depth_command): Export.
1106 (tbreak_at_finish_command): Export.
1107 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
1108 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
1109 "tbreak" commands, which are HPPA specific.
1111 * printcmd.c (disassemble_command): Remove an ancient
1112 artifact of an old merge.
1114 * symfile.h (enum overlay_debugging_state):
1115 Define enum constant values for overlay mode.
1116 * symfile.c (overlay_debugging): Use enums instead of literals.
1117 (overlay_is_mapped, overlay_auto_command,
1118 overlay_manual_command): Ditto.
1120 * breakpoint.c (insert_breakpoints, remove_breakpoint,
1121 breakpoint_here_p, breakpoint_inserted_here_p,
1122 breakpoint_thread_match, bpstat_stop_status,
1123 describe_other_breakpoints, check_duplicates, clear_command):
1124 Coding standard fixes.
1126 * target.c (target_xfer_memory): Add spaces, coding standard.
1127 (do_xfer_memory): Add missing line to trust-readonly
1128 code: check bfd SEC_READONLY flag for section.
1130 2002-01-31 Andrew Cagney <ac131313@redhat.com>
1132 * PROBLEMS: Fix typo, 5.1->5.1.1.
1134 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
1136 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
1137 data symbols, since we search based on textlow and texthigh.
1138 (find_pc_sect_symtab): Likewise.
1140 2002-01-30 Andrew Cagney <ac131313@redhat.com>
1142 * defs.h (vwarning): Declare.
1143 * utils.c (vwarning): New function.
1144 (warning): Call vwarning.
1145 (warning_begin): Delete function.
1147 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
1148 the warning message.
1149 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
1152 2002-01-30 Michael Snyder <msnyder@redhat.com>
1154 * NEWS: Mention "set trust-readonly-sections" command.
1155 Mention generate-core-file command.
1157 2002-01-15 Michael Snyder <msnyder@redhat.com>
1159 * target.c: New command, "set trust-readonly-sections on".
1160 (do_xfer_memory): Honor the suggestion to trust readonly sections
1161 by reading them from the object file instead of from the target.
1162 (initialize_targets): Register command "set trust-readonly-sections".
1164 2002-01-29 Andrew Cagney <ac131313@redhat.com>
1166 * parse.c (target_map_name_to_register): Simplify, search regs and
1167 pseudo-regs using a single loop.
1169 2002-01-30 Andrew Cagney <ac131313@redhat.com>
1171 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
1173 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
1175 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
1176 * config/i386/i386v42mp.mh: Add i387-nat.o .
1177 * i386v4-nat.c: Include i387-nat.h.
1178 (supply_fpregset): Use i387_supply_fsave.
1179 (fill_fpregset): Use i387_fill_fsave.
1181 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
1183 * arm-tdep.c (arm_call_dummy_words): Define.
1184 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
1185 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
1186 (CALL_DUMMY_WORDS): Define.
1187 (arm_call_dummy_words): Declare.
1188 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
1189 (arm_linux_call_dummy_words): Declare.
1191 2002-01-30 Andreas Schwab <schwab@suse.de>
1193 * m68klinux-nat.c: Fix last change to use regcache_collect
1194 instead of referencing registers[] directly.
1196 2002-01-29 Andrew Cagney <ac131313@redhat.com>
1198 * parse.c (target_map_name_to_register): Delete code wrapped in
1199 #ifdef REGISTER_NAME_ALIAS_HOOK.
1201 2002-01-28 Michael Snyder <msnyder@redhat.com>
1203 * regcache.c (legacy_read_register_gen): Need to be able to
1204 read pseudo-register as well as real register.
1205 (legacy_write_register_gen): Ditto.
1207 2002-01-28 Andrew Cagney <ac131313@redhat.com>
1209 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
1210 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
1211 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
1212 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
1213 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
1214 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
1215 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
1216 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
1217 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
1218 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
1219 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
1220 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
1221 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
1222 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
1223 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
1224 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
1225 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
1226 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
1227 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
1228 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
1230 2002-01-28 Andrew Cagney <ac131313@redhat.com>
1232 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
1233 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
1234 (initialize_current_architecture): Update target_byte_order using
1235 information from BFD.
1236 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
1237 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
1239 2002-01-28 Andrew Cagney <ac131313@redhat.com>
1241 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
1242 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
1244 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
1245 #ifdef INVALID_FLOAT.
1246 * infcmd.c (do_registers_info): Ditto.
1247 * values.c (unpack_double): Ditto. Add comment.
1249 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
1250 already commented out.
1252 2002-01-26 Andreas Schwab <schwab@suse.de>
1254 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
1255 * m68klinux-nat.c: Update ptrace interface for fetching/storing
1256 registers and add support for PTRACE_GETREGS.
1258 2002-01-24 Andrew Cagney <ac131313@redhat.com>
1260 GDB 5.1.1 released from 5.1 branch.
1261 * NEWS: Add 5.1.1 news.
1262 * README: Sync with 5.1 branch.
1264 2002-01-23 Fred Fish <fnf@redhat.com>
1266 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
1267 stabstring on initial malloc. Reallocing will copy it for us,
1270 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
1272 * Makefile.in (hpread_h): Delete.
1273 (HFILES_NO_SRCDIR): Remove hpread.h.
1274 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
1275 (hpread.o): Update dependencies.
1276 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
1278 * hp-psymtab-read.c: Remove file.
1279 * hp-symtab-read.c: Remove file.
1280 * hpread.h: Remove file.
1282 * hpread.c: Merge all contents of hp-psymtab-read.c,
1283 hp-symtab-read.c and hpread.h into this file, as it was prior to
1286 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
1287 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
1288 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
1289 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
1291 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
1293 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
1294 fill_gregset): Call gdbarch_tdep() just once, assign result to
1295 variable and use that, instead of calling the function several
1298 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1300 * configure.host: Accept sparcv9 as alias for sparc64.
1301 * configure.tgt: Likewise.
1303 2002-01-22 Kevin Buettner <kevinb@redhat.com>
1305 * solib-aix5.c (build_so_list_from_mapfile)
1306 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
1307 arguments is not reversed.
1308 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
1309 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
1311 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
1313 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
1314 modified version of obsolete sh_fetch_pseudo_register.
1315 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
1316 (sh4_register_read): New function.
1317 (sh_pseudo_register_write): New function. Renamed and modified
1318 version of obsolete sh_store_pseudo_register.
1319 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
1320 (sh4_register_write): New function.
1321 (sh_gdbarch_init): Remove setting of gdbarch function
1322 fetch_pseudo_register and store_pseudo_register. Remove setting of
1323 register_convert_to_raw, register_convert_to_virtual,
1324 register_convertible.
1325 (sh_sh4_register_convertible): Delete. No longer needed. All is
1326 taken care by architecture specific functions
1327 register_read/register_write.
1328 (sh_sh4_register_convert_to_virtual): Make static.
1329 (sh_sh4_register_convert_to_raw): Ditto.
1331 2002-01-22 Andrew Cagney <ac131313@redhat.com>
1333 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
1334 (floatformat_is_nan, floatformat_mantissa): Ditto.
1336 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
1337 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
1338 builtin_type_ieee_double_little,
1339 builtin_type_ieee_double_littlebyte_bigword,
1340 builtin_type_m68881_ext, builtin_type_i960_ext,
1341 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
1342 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
1343 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
1344 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
1346 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
1348 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
1349 parameter. Set frameless flag if it exists and depended of
1350 whether the scanned function is frameless or not.
1351 (xstormy16_skip_prologue): If function is frameless, return
1352 result of xstormy16_scan_prologue().
1353 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
1356 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
1358 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
1359 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
1360 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
1361 sh_sh4_register_byte, sh_sh4_register_raw_size,
1362 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
1363 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
1364 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
1365 sh_store_pseudo_register, sh_do_pseudo_register): Call
1366 gdbarch_tdep() just once, assign result to variable and use that,
1367 instead of calling the function several times.
1369 2002-01-20 Mark Kettenis <kettenis@gnu.org>
1371 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
1372 macros instead of LAST_FPU_CTRL_REGNUM.
1373 (store_register): Likewise.
1375 2002-01-21 Jim Blandy <jimb@redhat.com>
1377 * infcmd.c (run_command): Check that the `exec' target layer's BFD
1378 is up-to-date before running the program, not just when a program
1381 2002-01-21 Fred Fish <fnf@redhat.com>
1383 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
1384 when we have found all instructions we are looking for.
1386 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
1388 * arm-tdep.c (arm_register_name): New function.
1389 (arm_registers_names): Make static.
1390 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
1391 (arm_register_name): Declare.
1392 (REGISTER_NAME): Use it.
1394 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
1395 Kevin Buettner <kevinb@redhat.com>
1397 Convert arm targets to new FRAME interface.
1398 * arm-tdep.c (struct frame_extra_info): Remove fsr.
1399 (arm_frame_find_save_regs): Delete.
1400 (arm_frame_init_saved_regs): New.
1401 (arm_init_extra_frame_info): Alloacte saved_regs as required.
1402 Allocate extra_info as required. Convert all uses of fsr.regs
1403 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
1405 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
1406 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
1407 (check_prologue_cache, save_prologue_cache): Likewise.
1408 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
1409 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
1410 (FRAME_FIND_SAVED_REGS): Delete.
1411 (arm_frame_find_saved_regs): Delete prototype.
1412 (arm_frame_init_saved_regs): New prototype.
1413 (FRAME_INIT_SAVED_REGS): Define.
1415 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1417 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
1419 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1421 From Jeff Law <law@redhat.com>:
1422 * infttrace.c: Include <sys/pstat.h>.
1423 (child_pid_to_exec_file): Revamp. Use pstat call to get the
1424 exec file if the ttrace equivalent fails.
1426 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1428 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
1429 (closeLogFile): Ditto.
1431 2002-01-20 Michael Chastain <mec@shout.net>
1433 * top.c (print_gdb_version): Bump copyright year to 2002.
1435 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1437 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
1438 Zannoni and Eli Zaretskii.
1440 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
1442 * buildsym.c: Update copyright years.
1443 * c-typeprint.c: Likewise.
1444 * dwarf2read.c: Likewise.
1445 * f-typeprint.c: Likewise.
1446 * gdbtypes.c: Likewise.
1447 * gdbtypes.h: Likewise.
1448 * hp-symtab-read.c: Likewise.
1449 * hpread.c: Likewise.
1450 * mdebugread.c: Likewise.
1451 * p-typeprint.c: Likewise.
1453 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1455 * remote-sim.c (gdbsim_open): Simplify code testing the macro
1456 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
1457 byte-order selectable.
1458 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
1459 * arch-utils.c: Ditto.
1460 (set_endian): Ditto.
1461 (set_endian_from_file): Ditto.
1462 * gdbserver/low-sim.c (create_inferior): Ditto.
1463 * gdbarch.sh: Ditto.
1464 * gdbarch.h: Re-generate.
1465 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
1466 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
1467 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
1468 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
1469 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
1470 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
1471 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
1472 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
1474 * config/mips/tm-wince.h: Remove #undef of macro
1475 TARGET_BYTE_ORDER_SELECTABLE.
1476 * config/sh/tm-wince.h: Ditto.
1478 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
1480 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
1481 member function fields. Add accessor macro
1482 TYPE_FN_FIELD_ARTIFICIAL.
1483 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
1484 * c-typeprint.c (c_type_print_base): Skip artificial member
1487 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
1489 * f-typeprint.c: Delete unused function f_type_print_args.
1490 * p-typeprint.c: Delete unused function pascal_type_print_args.
1492 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
1494 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
1495 comment. Add ``artificial'' to ``union field_location''.
1497 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
1499 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
1500 * mdebugread.c (parse_symbol): Likewise.
1501 * stabsread.c (define_symbol): Likewise.
1502 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
1503 initializing TYPE_FIELD_BITPOS to n (obsolete).
1504 (hpread_doc_function_type): Likewise.
1505 * hpread.c (hpread_function_type): Likewise.
1507 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1509 * configure.in (host_makefile_frag): Only require a host makefile
1510 fragment when a native build.
1511 * configure: Re-generate.
1513 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1515 * doublest.h (floatformat_from_type): Declare.
1516 * doublest.c (floatformat_from_type): New function.
1517 (convert_typed_floating): Use.
1519 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
1520 call to function floatformat_from_type.
1522 * gdbarch.sh (IEEE_FLOAT): Delete.
1523 * gdbarch.h, gdbarch.c: Re-generate.
1524 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
1525 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
1526 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
1527 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
1528 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
1529 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
1530 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
1531 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
1532 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
1533 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
1534 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
1535 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
1537 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
1538 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
1539 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1540 * sh-tdep.c (sh_gdbarch_init): Ditto.
1541 * mips-tdep.c (mips_gdbarch_init): Ditto.
1542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1543 * cris-tdep.c (cris_gdbarch_init): Ditto.
1545 2002-01-20 Jiri Smid <smid@suse.cz>
1547 * configure.host, configure.tgt: Support x86-64.
1548 * NEWS: Note new target x86-64.
1550 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
1551 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
1552 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
1553 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
1554 x86-64-linux-nat.o): Fix dependencies.
1556 2002-01-19 Andrew Cagney <ac131313@redhat.com>
1558 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
1559 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
1560 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
1561 * config/sparc/xm-sun4os4.h: Delete file.
1562 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
1564 2002-01-19 Andrew Cagney <ac131313@redhat.com>
1566 * config/sparc/sparclynx.mh (XM_FILE): Delete.
1567 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
1568 * config/m68k/m68klynx.mh (XM_FILE): Delete.
1569 * config/i386/i386lynx.mh (XM_FILE): Delete.
1570 * config/rs6000/xm-rs6000ly.h: Delete file.
1571 * config/sparc/xm-sparclynx.h: Delete file.
1572 * config/m68k/xm-m68klynx.h: Delete file.
1573 * config/i386/xm-i386lynx.h: Delete file.
1574 * config/xm-lynx.h: Delete file.
1575 * config/djgpp/fnchange.lst: Update.
1577 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
1579 * alpha-tdep.c (alpha_register_byte): New function.
1580 (alpha_register_raw_size): Ditto.
1581 (alpha_register_virtual_size): Ditto.
1582 (alpha_skip_prologue_internal): Renamed from
1583 alpha_skip_prologue.
1584 (alpha_skip_prologue): New version that calls
1585 alpha_skip_prologue_internal.
1586 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
1587 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
1588 second argument from alpha_skip_prologue.
1589 (REGISTER_BYTE): Use alpha_register_byte.
1590 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
1591 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
1592 (FRAMELESS_FUNCTION_INVOCATION): Use
1593 generic_frameless_function_invocation_not.
1594 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
1595 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
1597 2002-01-19 Andrew Cagney <ac131313@redhat.com>
1599 * config/mips/xm-news-mips.h: Delete file.
1600 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
1602 * config/m88k/xm-m88k.h: Delete file.
1603 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
1604 * config/m88k/xm-delta88v4.h: Ditto.
1605 * config/m88k/xm-delta88.h: Ditto.
1607 * config/alpha/xm-fbsd.h: Delete file.
1608 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
1610 * config/sparc/xm-sparc.h: Delete file.
1611 * Makefile.in (xm-sun4os4.h): Delete dependency.
1612 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
1613 * config/sparc/xm-sun4os4.h: Ditto.
1614 * config/sparc/xm-linux.h: Ditto.
1616 * config/i386/xm-windows.h: Delete file.
1618 2002-01-19 Andrew Cagney <ac131313@redhat.com>
1620 * utils.c: Include <sys/param.h> for MAXPATHLEN.
1621 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
1623 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
1625 * alpha-tdep.c (alpha_call_dummy_words): New.
1626 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
1627 (CALL_DUMMY_P): Define.
1628 (CALL_DUMMY_WORDS): Define.
1629 (SIZEOF_CALL_DUMMY_WORDS): Define.
1631 2002-01-19 Per Bothner <per@bothner.com>
1633 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
1634 isn't NULL, which can happen with some gcj-3.x-produced code.
1636 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
1638 * alpha-tdep.c (alpha_register_virtual_type): New function.
1639 (alpha_init_frame_pc_first): Ditto.
1640 (alpha_fix_call_dummy): Ditto.
1641 (alpha_store_struct_return): Ditto.
1642 (alpha_extract_struct_value_address): Ditto.
1643 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
1644 alpha_register_virtual_type.
1645 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
1646 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
1647 alpha_extract_struct_value_address.
1648 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
1649 (INIT_FRAME_PC): Use init_frame_pc_noop.
1650 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
1652 2002-01-19 Mark Kettenis <kettenis@gnu.org>
1654 * i386gnu-nat.c: Include "i386-tdep.h".
1655 (fetch_fpregs): Simplify code dealing with uninitialized floating
1656 point states such that it doesn't require FP7_REGNUM.
1658 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1660 * alpha-tdep.c (frame_extra_info): New.
1661 (alpha_find_saved_regs): Make static. Use
1663 (alpha_frame_init_saved_regs): New function.
1664 (alpha_frame_saved_pc): Use frame->extra_info.
1665 (temp_saved_regs): Don't declare as struct frame_saved_regs.
1666 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
1667 (init_extra_frame_info): Rename to...
1668 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
1669 (alpha_print_extra_frame_info): New function.
1670 (alpha_frame_locals_address): Ditto.
1671 (alpha_frame_args_address): Ditto.
1672 (alpha_pop_frame): Use frame->extra_info.
1673 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
1674 alpha_frame_args_address.
1675 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
1676 (alpha_find_saved_regs): Remove prototype.
1677 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
1678 (EXTRA_FRAME_INFO): Remove.
1679 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
1680 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
1682 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1684 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
1685 (alpha_cannot_fetch_register): Ditto.
1686 (alpha_cannot_store_register): Ditto.
1687 (alpha_register_convertible): Ditto.
1688 (alpha_use_struct_convention): Ditto.
1689 * config/alpha/tm-alpha.h: Update copyright years.
1690 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
1691 (INNER_THAN): Use core_addr_lessthan.
1692 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
1693 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
1694 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
1695 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
1696 (FRAME_CHAIN): Remove unnecessary cast.
1698 2002-01-18 Andrew Cagney <ac131313@redhat.com>
1700 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
1703 2002-01-18 Andrew Cagney <ac131313@redhat.com>
1705 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
1706 * monitor.c, remote-array.c, remote-bug.c: Ditto.
1707 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
1708 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
1709 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
1710 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
1711 * x86-64-linux-nat.c: Ditto.
1713 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1715 * alpha-tdep.c (alpha_register_name): New function.
1716 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
1717 (REGISTER_NAME): Define.
1719 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1721 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
1723 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1725 * alpha-tdep.c: Update copyright years.
1726 (alpha_next_pc): New function.
1727 (alpha_software_single_step): Ditto.
1728 * config/alpha/tm-alpha.h: Add prototype for
1729 alpha_software_single_step.
1731 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1733 * alphabsd-nat.c: Update copyright years.
1734 (fill_gregset): Use regcache_collect.
1735 (fill_fpregset): Likewise.
1736 (fetch_inferior_registers): Only fetch integer registers
1737 if requested to do so.
1738 (store_inferior_registers): Only store integer registers
1739 if requested to do so.
1741 2002-01-17 Andrew Cagney <ac131313@redhat.com>
1743 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
1744 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
1745 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
1746 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
1747 * config/alpha/fbsd.mh (XDEPFILES): Delete.
1748 * config/arm/linux.mh (XDEPFILES): Delete.
1749 * config/arm/nbsd.mh (XDEPFILES): Delete.
1750 * config/i386/i386dgux.mh (XDEPFILES): Delete.
1751 * config/i386/i386sol2.mh (XDEPFILES): Delete.
1752 * config/i386/i386m3.mh (XDEPFILES): Delete.
1753 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
1754 * config/i386/i386gnu.mh (XDEPFILES): Delete.
1755 * config/i386/fbsd.mh (XDEPFILES): Delete.
1756 * config/i386/i386bsd.mh (XDEPFILES): Delete.
1757 * config/i386/i386sco5.mh (XDEPFILES): Delete.
1758 * config/i386/i386v4.mh (XDEPFILES): Delete.
1759 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
1760 * config/i386/i386sco4.mh (XDEPFILES): Delete.
1761 * config/i386/i386aix.mh (XDEPFILES): Delete.
1762 * config/i386/go32.mh (XDEPFILES): Delete.
1763 * config/i386/cygwin.mh (XDEPFILES): Delete.
1764 * config/i386/i386lynx.mh (XDEPFILES): Delete.
1765 * config/i386/i386mach.mh (XDEPFILES): Delete.
1766 * config/i386/i386v32.mh (XDEPFILES): Delete.
1767 * config/i386/linux.mh (XDEPFILES): Delete.
1768 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
1769 * config/i386/ncr3000.mh (XDEPFILES): Delete.
1770 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
1771 * config/i386/i386sco.mh (XDEPFILES): Delete.
1772 * config/i386/i386v.mh (XDEPFILES): Delete.
1773 * config/i386/nbsd.mh (XDEPFILES): Delete.
1774 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
1775 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
1776 * config/i386/symmetry.mh (XDEPFILES): Delete.
1777 * config/i386/obsd.mh (XDEPFILES): Delete.
1778 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
1779 * config/ia64/linux.mh (XDEPFILES): Delete.
1780 * config/ia64/aix.mh (XDEPFILES): Delete.
1781 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
1782 * config/m68k/dpx2.mh (XDEPFILES): Delete.
1783 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
1784 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
1785 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
1786 * config/m68k/linux.mh (XDEPFILES): Delete.
1787 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
1788 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
1789 * config/m68k/nbsd.mh (XDEPFILES): Delete.
1790 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
1791 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
1792 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
1793 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
1794 * config/m88k/delta88.mh (XDEPFILES): Delete.
1795 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
1796 * config/m88k/m88k.mh (XDEPFILES): Delete.
1797 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
1798 * config/mips/linux.mh (XDEPFILES): Delete.
1799 * config/mips/irix6.mh (XDEPFILES): Delete.
1800 * config/mips/irix5.mh (XDEPFILES): Delete.
1801 * config/mips/irix4.mh (XDEPFILES): Delete.
1802 * config/mips/irix3.mh (XDEPFILES): Delete.
1803 * config/mips/decstation.mh (XDEPFILES): Delete.
1804 * config/mips/mipsm3.mh (XDEPFILES): Delete.
1805 (NATDEPFILES): Move core-aout.o to here.
1806 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
1807 * config/pa/hpux1020.mh (XDEPFILES): Delete.
1808 * config/pa/hppabsd.mh (XDEPFILES): Delete.
1809 * config/pa/hppahpux.mh (XDEPFILES): Delete.
1810 * config/pa/hpux11w.mh (XDEPFILES): Delete.
1811 * config/pa/hppaosf.mh (XDEPFILES): Delete.
1812 * config/pa/hpux11.mh (XDEPFILES): Delete.
1813 * config/powerpc/aix.mh (XDEPFILES): Delete.
1814 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
1815 * config/powerpc/linux.mh (XDEPFILES): Delete.
1816 * config/romp/rtbsd.mh: Rename XDEPFILES.
1817 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
1818 * config/rs6000/aix4.mh (XDEPFILES): Delete.
1819 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
1820 * config/s390/s390.mh (XDEPFILES): Delete.
1821 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
1822 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
1823 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
1824 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
1825 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
1826 * config/sparc/nbsd.mh (XDEPFILES): Delete.
1827 * config/sparc/linux.mh (XDEPFILES): Delete.
1828 * config/vax/vaxult.mh (XDEPFILES): Delete.
1829 * config/vax/vaxult2.mh (XDEPFILES): Delete.
1830 * Makefile.in (DEPFILES): Remove XDEPFILES.
1832 2002-01-17 Andrew Cagney <ac131313@redhat.com>
1834 * utils.c (internal_verror): Fix comments, default is yes not no.
1835 Update queries to match. Default to quit and dump core.
1837 2002-01-17 Andrew Cagney <ac131313@redhat.com>
1839 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
1841 * defs.h, event-top.c, gdbcmd.h: Ditto.
1842 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
1843 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
1844 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
1845 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
1846 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
1847 * mi/mi-main.c:Ditto.
1849 * stack.c, symfile.c: Update copyright.
1851 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
1853 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
1854 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
1855 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
1856 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
1858 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
1860 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
1861 * gdbserver/low-lynx.c (myattach): Likewise.
1862 * gdbserver/low-nbsd.c (myattach): Likewise.
1863 * gdbserver/low-sim.c (myattach): Likewise.
1864 * gdbserver/low-sparc.c (myattach): Likewise.
1865 * gdbserver/low-sun3.c (myattach): Likewise.
1867 * gdbserver/low-linux.c (myattach): New function.
1869 * gdbserver/server.c (attach_inferior): New function.
1870 (main): Handle "--attach".
1872 2002-01-16 Andrew Cagney <ac131313@redhat.com>
1874 * MAINTAINERS (language support): Daniel Jacobwitz is C++
1877 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
1879 * c-typeprint.c (is_type_conversion_operator): Add additional
1880 check for non-conversion operators.
1882 2002-01-15 Michael Snyder <msnyder@redhat.com>
1884 * linux-proc.c: Add "info proc" command, a la procfs.c.
1885 (read_mapping): New function, abstract and re-use code.
1886 (linux_find_memory_regions): Use new func read_mapping.
1887 (linux_info_proc_cmd): New function, implement "info proc".
1888 (_initialize_linux_proc): Add new command "info proc".
1890 2002-01-15 Michael Snyder <msnyder@redhat.com>
1892 * symfile.c (generic_load): Use bfd_map_over_sections method
1893 instead of manipulating bfd structure members directly.
1894 (add_section_size_callback): New function, bfd sections callback
1895 used by generic_load.
1896 (load_sections_callback): New function, bfd sections callback
1897 used by generic_load.
1899 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
1901 [Based on work by Jim Blandy]
1902 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
1903 (builtin_type_vec128): Export.
1904 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
1906 (builtin_type_vec128): New builtin type for 128 bit vector
1908 (build_gdbtypes): Initialize builtin_type_v16qi and
1909 builtin_type_v8hi. Create the vec128 register builtin type
1911 (build_builtin_type_vec128): New function.
1912 (_initialize_gdbtypes): Register builtin_type_v16qi and
1913 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
1914 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
1915 AltiVec register to new builtin type.
1917 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
1919 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
1922 2002-01-14 Andrew Cagney <ac131313@redhat.com>
1924 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
1925 CLEAN_UP_REGISTER_VALUE.
1926 * regcache.c (supply_register): Update only call.
1928 2002-01-14 Andrew Cagney <ac131313@redhat.com>
1930 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
1931 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
1932 a29k-*-vxworks* targets as obsolete.
1934 2002-01-14 Michael Snyder <msnyder@redhat.com>
1936 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
1937 until we can resolve portability issues.
1938 * gregset.h: Remove references to fpxregs.
1939 * gcore.c (gcore_command): Initialize note_sec to NULL.
1941 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1943 * signals.c (target_signal_to_name): Rewrite. Only use
1944 signals[].name when in bounds and non-NULL.
1946 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1948 From Petr Ledvina <ledvinap@kae.zcu.cz>:
1949 * signals.c (target_signal_to_name): Verify that SIG is within the
1950 bounds of the signals array.
1952 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1954 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
1956 2002-01-13 Keith Seitz <keiths@redhat.com>
1958 * stack.c (print_frame_info_base): Print the frame's pc
1959 only if when print_frame_info_listing_hook is not defined.
1961 2002-01-13 Keith Seitz <keiths@redhat.com>
1963 * varobj.c (varobj_set_value): Make sure that there were no
1964 errors evaluating the object before attempting to set its
1966 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
1967 so this offset adjustment is no longer necessary.
1968 (create_child): Don't set the error flag if the child is
1970 (value_of_child): If value_fetch_lazy fails, return NULL
1971 so that callers will be notified that an error occurred.
1972 (c_value_of_variable): Delay check of variable's validity
1973 until later. We actually want all structs and unions to have
1975 Do not return "???" for variables which could not be evaluated.
1976 This error condition must be returned to the caller so that it
1977 can get the error condition from gdb.
1978 (cplus_name_of_child): Adjust index for vptr before figuring
1979 out the name of the child.
1980 (cplus_value_of_child): If a child's (real) parent is not valid,
1981 don't even bother trying to give a value for it. Just return
1982 an error. Change all instances in this function.
1983 (cplus_type_of_child): If our parent is one of the "fake"
1984 parents, we need to get at the type of the real parent, and
1985 derive the child's true type using this information.
1987 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1989 From 2002-01-09 John Marshall <johnm@falch.net>:
1990 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
1991 sources.redhat.com, and tweak some related URLs which had
1992 suffered from linkrot.
1994 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1997 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
1998 structures passed in registers.
2000 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
2002 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
2003 white space which prevented compilation. Reported by DSK
2004 <dsk@student.unsw.edu.au>.
2006 2002-01-11 Michael Snyder <msnyder@redhat.com>
2008 * symfile.c (build_section_addr_info_from_section_tab):
2009 Use bfd access method instead of manipulating bfd directly.
2010 (syms_from_objfile): Ditto.
2011 (simple_overlay_update_1): Ditto.
2012 (simple_overlay_update): Ditto.
2013 (generic_load): Ditto.
2014 (overlay_unmapped_address): FIXME comment, bfd access methods.
2015 (sections_overlap): FIXME comment, bfd access methods.
2016 (pc_in_mapped_range): FIXME comment, bfd access methods.
2017 (pc_in_unmapped_range): FIXME comment, bfd access methods.
2018 (section_is_mapped): FIXME comment, bfd access methods.
2019 (section_is_overlay): FIXME comment, bfd access methods.
2021 * symfile.c (generic_load): Whitespace and long line cleanups.
2022 Remove duplicate variable, change several local variables to
2023 more appropriate data types.
2024 (print_transfer_performance): Use %lu instead of %ld for ulongs.
2026 2002-01-12 Andrew Cagney <ac131313@redhat.com>
2029 * language.c (longest_local_hex_string_custom): Use phex_nz to
2030 convert NUM to a hex string.
2032 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
2034 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
2036 Update Copyright year.
2038 2002-01-12 Andrew Cagney <ac131313@redhat.com>
2040 * language.c (longest_raw_hex_string): Delete unused function.
2042 2002-01-11 Petr Sorfa <petrs@caldera.com>
2044 * MAINTAINERS (write-after-approval): Add myself.
2045 * dwarf2read.c (read_tag_string_type): Handling of
2047 (read_tag_string_type): FORTRAN fix to prevent propagation of
2049 (set_cu_language): Handling of DW_LANG_Fortran95
2051 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
2053 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
2054 GETPID(inferior_ptid).
2055 (store_inferior_registers): Likewise.
2057 2002-01-10 Jason Merrill <jason@redhat.com>
2059 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
2062 2002-01-10 Andrew Cagney <ac131313@redhat.com>
2064 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
2065 and bfd/elf32-sh-nbsd.c.
2067 2002-01-10 Michael Snyder <msnyder@redhat.com>
2069 * NEWS: Mention --pid and corefile/proc-id behavior change.
2071 * Makefile.in: Add rules for gcore.o and linux-proc.o.
2072 * gcore.c: Include cli/cli-decode.h instead of command.h.
2074 * main.c (captured_main): Add new command line option "--pid".
2075 If the second command line argument (following the symbol-file)
2076 begins with a digit, try to attach to it before trying to open
2078 (print_gdb_help): Document the "--pid" argument.
2080 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
2082 * completer.c (command_completer): New function.
2084 * completer.h <command_completer>: Add prototype.
2086 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
2087 completer for the "help" command.
2089 2002-01-09 Jason Merrill <jason@redhat.com>
2091 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
2093 2002-01-09 Michael Snyder <msnyder@redhat.com>
2095 * i386-linux-nat.c (fill_fpxregset): Make global.
2096 (store_fpxregset): Ditto.
2098 * gregset.h (gdb_fpxregset_t): Define.
2099 (supply_fpxregset): Prototype.
2100 (fill_fpxregset): Prototype.
2102 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
2104 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
2106 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
2107 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
2108 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
2110 2002-01-09 Andrew Cagney <ac131313@redhat.com>
2112 * MAINTAINERS: Update target maintainer rules so that any
2113 Maintainer can approve a tested patch for a maintenance-only
2116 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
2118 * MAINTAINERS (write-after-approval): Add myself.
2120 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
2123 2002-01-08 Michael Snyder <msnyder@redhat.com>
2125 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
2126 real name of the executable, rather than the /proc name.
2128 2002-01-03 Michael Snyder <msnyder@redhat.com>
2130 Implement a "generate-core-file" command in gdb, save target state.
2131 * gcore.c: New file. Implement new command 'generate-core-file'.
2132 Save a corefile image of the current state of the inferior.
2133 * linux-proc.c: Add linux-specific code for saving corefiles.
2134 * target.h (struct target_ops): Add new target vectors for saving
2135 corefiles; to_find_memory_regions and to_make_corefile_notes.
2136 (target_find_memory_regions): New macro.
2137 (target_make_corefile_notes): New macro.
2138 * target.c (update_current_target): Inherit new target methods.
2139 (dummy_find_memory_regions): New place-holder method.
2140 (dummy_make_corefile_notes): New place-holder method.
2141 (init_dummy_target): Initialize new dummy target vectors.
2142 * exec.c (exec_set_find_memory_regions): New function.
2143 Allow the exec_ops vector for memory regions to be taken over.
2144 (exec_make_note_section): New function, target vector method.
2145 * defs.h (exec_set_find_memory_regions): Export prototype.
2146 * procfs.c (proc_find_memory_regions): New function, corefile method.
2147 (procfs_make_note_section): New function, corefile method.
2148 (init_procfs_ops): Set new target vector pointers.
2149 (find_memory_regions_callback): New function.
2150 (procfs_do_thread_registers): New function.
2151 (procfs_corefile_thread_callback): New function.
2152 * sol-thread.c (sol_find_memory_regions): New function.
2153 (sol_make_note_section): New function.
2154 (init_sol_thread_ops): Initialize new target vectors.
2155 * inftarg.c (inftarg_set_find_memory_regions): New function.
2156 Allow to_find_memory_regions vector to be taken over.
2157 (inftarg_set_make_corefile_notes): New function.
2158 Allow to_make_corefile_notes vector to be taken over.
2159 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
2160 interface layer if not target_has_execution (may be a corefile).
2161 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
2162 * config/sparc/sun4sol2.mh: Ditto.
2163 * config/alpha/alpha-linux.mh: Ditto.
2164 * config/arm/linux.mh: Ditto.
2165 * config/i386/x86-64linux.mh: Ditto.
2166 * config/ia64/linux.mh: Ditto.
2167 * config/m68k/linux.mh: Ditto.
2168 * config/mips/linux.mh: Ditto.
2169 * config/powerpc/linux.mh: Ditto.
2170 * config/sparc/linux.mh: Ditto.
2172 2002-01-07 Michael Snyder <msnyder@redhat.com>
2174 * arm-linux-nat.c: Remove references to regcache.c internal data
2175 (registers[] and register_valid[]).
2177 2002-01-07 Michael Snyder <msnyder@redhat.com>
2179 * linux-proc.c: New file. Implement child_pid_to_exec_file,
2180 so that attaching to a pid will automatically read the process's
2181 symbol file and shlibs.
2182 * Makefile.in: Add rule for linux-proc.o.
2183 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
2184 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
2185 * config/arm/linux.mh: Ditto.
2186 * config/i386/linux.mh: Ditto.
2187 * config/i386/x86-64linux.mh: Ditto.
2188 * config/ia64/linux.mh: Ditto.
2189 * config/m68k/linux.mh: Ditto.
2190 * config/mips/linux.mh: Ditto.
2191 * config/powerpc/linux.mh: Ditto.
2192 * config/sparc/linux.mh: Ditto.
2194 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
2196 * win32-nat.c: Add i386-tdep.h dependency.
2198 2002-01-07 Michael Snyder <msnyder@redhat.com>
2200 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
2201 instead of bfd_get_arch_size. Don't bail out just because
2202 there's no exec_bfd.
2204 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
2205 * p-valprint.c (pascal_object_print_value): Ditto.
2206 * somread.c (som_symtab_read): Ditto.
2207 * symfile.c (simple_free_overlay_region_table): Ditto.
2208 * valops.c (value_assign): Ditto.
2210 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
2211 use tilde_expand and strerror for opening save-tracepoints file.
2213 * thread-db.c (thread_db_new_objfile): Indendation fix.
2215 * infptrace.c (GDB_MAX_ALLOCA): New define.
2216 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
2217 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
2218 can be overridden with whatever value is appropriate to the host).
2219 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
2220 alloca to allocate potentially large buffer.
2221 * rs6000-nat.c (child_xfer_memory): Ditto.
2222 * symm-nat.c (child_xfer_memory): Ditto.
2223 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
2225 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
2227 From Nick Clifton <nickc@redhat.com>
2228 * d10v-tdep.c: Set STACK_START to 0x200bffe.
2230 2002-01-07 Michael Snyder <msnyder@redhat.com>
2232 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
2233 Don't use exec_bfd if it's NULL.
2235 2002-01-06 Mark Kettenis <kettenis@gnu.org>
2237 * valops.c (value_arg_coerce): Fix formatting.
2239 2002-01-06 Andrew Cagney <ac131313@redhat.com>
2241 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
2244 2002-01-06 Andrew Cagney <ac131313@redhat.com>
2246 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
2247 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
2248 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
2249 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
2250 z8k-coff have not been multi-arched. Update z8k-coff build
2253 2002-01-06 Andrew Cagney <ac131313@redhat.com>
2255 * MAINTAINERS: Mark a29k target as obsolete.
2256 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
2257 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
2259 * NEWS: Note that a29k targets are obsolete.
2260 * a29k-tdep.c: Mark as obsolete.
2261 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
2262 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
2263 a29k-*-vxworks* targets as obsolete.
2264 * remote-adapt.c: Obsolete.
2265 * remote-eb.c: Obsolete.
2266 * remote-mm.c: Obsolete.
2267 * remote-udi.c: Obsolete.
2268 * config/a29k/a29k-udi.mt: Obsolete.
2269 * config/a29k/a29k.mt: Obsolete.
2270 * config/a29k/tm-a29k.h: Obsolete.
2271 * config/a29k/tm-vx29k.h: Obsolete.
2272 * config/a29k/vx29k.mt: Obsolete.
2274 2002-01-05 Andrew Cagney <ac131313@redhat.com>
2276 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
2277 with BFD_ENDIAN_BIG.
2279 2002-01-05 Andrew Cagney <ac131313@redhat.com>
2281 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
2282 * configure, config.in: Re-generate.
2283 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
2284 * defs.h: Do not include <endian.h>.
2286 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
2288 * acconfig.h (HAVE_PT_GETXMMREGS): New.
2289 * config.in: Regenerate.
2290 * configure.in: Update copyright years.
2291 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
2292 * configure: Regenerate.
2293 * i386bsd-nat.c: Update copyright years.
2294 (fill_gregset): Use regcache_collect.
2295 (fetch_inferior_registers): Only fetch integer registers
2296 if requested to do so. Add support for XMM registers
2297 using PT_GETXMMREGS.
2298 (store_inferior_registers): Only store integer registers
2299 if requested to do so. Add support for XMM registers
2300 using PT_SETXMMREGS.
2301 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
2302 (store_inferior_registers): Remove.
2303 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
2304 (fetch_elfcore_registers): New function.
2305 (i386nbsd_elfcore_fns): New.
2306 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
2307 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
2309 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2310 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
2311 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2312 * config/i386/tm-nbsd.h: Update copyright years.
2313 (HAVE_SSE_REGS): Define.
2314 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
2315 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
2316 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
2317 (SIGCONTEXT_PC_OFFSET): Remove.
2318 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
2320 2002-01-05 Andrew Cagney <ac131313@redhat.com>
2322 * configure.tgt: Remove powerpc-*-macos* target.
2323 * config/m68k/xm-mpw.h: Delete file.
2324 * config/xm-mpw.h: Delete file.
2325 * ser-mac.c: Delete file.
2326 * mpw-make.sed: Delete file.
2327 * mpw-config.in: Delete file.
2328 * mac-xdep.c: Delete file.
2329 * mac-gdb.r: Delete file.
2330 * mac-defs.h: Delete file.
2331 * mac-nat.c: Delete file.
2332 * config/powerpc/macos.mh: Delete file.
2333 * config/powerpc/macos.mt: Delete file.
2334 * config/powerpc/nm-macos.h: Delete file.
2335 * config/powerpc/tm-macos.h: Delete file.
2336 * source.c (openp, open_source_file): Remove obsolete code.
2337 * top.c (gdb_readline): Ditto.
2338 * utils.c (query): Ditto.
2339 * event-top.c (display_gdb_prompt): Ditto.
2340 * Makefile.in (ser-mac.o): Delete obsolete target.
2343 2002-01-04 Andrew Cagney <ac131313@redhat.com>
2345 * defs.h (BIG_ENDIAN): Delete macro definition.
2346 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
2347 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
2348 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
2349 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
2350 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
2351 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
2352 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
2353 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
2354 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
2355 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
2356 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
2357 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
2358 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
2359 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
2360 * gdbarch.c: Re-generate.
2362 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2364 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
2367 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2369 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
2371 2002-01-04 Andrew Cagney <ac131313@redhat.com>
2373 * value.h (value_ptr): Delete typedef.
2375 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2377 * i386nbsd-nat.c: Update copyright years.
2378 Include i386-tdep.h.
2380 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
2382 * stabsread.c: Update copyright years.
2384 From Debashis Mahata <debashis.mahata@wipro.com>:
2385 (read_struct_fields): Deal with Sun C compiler erroneous stab
2386 output for structs and unions.
2389 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2391 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
2394 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2396 * cp-abi.c: Fix whitespace.
2397 (baseclass_offset): New wrapper function.
2398 * cp-abi.h (baseclass_offset): Add prototype.
2399 (struct cp_abi_ops): Add baseclass_offset pointer.
2401 * valops.c (vb_match): Move to...
2402 * gnu-v2-abi.c (vb_match): here.
2403 * valops.c (baseclass_offset): Move to...
2404 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
2406 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
2408 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
2409 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
2410 * hpacc-abi.c (init_hpacc_ops): Likewise.
2412 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2414 * valops.c (find_overload_match): Accept obj as a
2415 reference parameter. Update it before returning.
2416 * value.h (find_overload_match): Update prototype.
2417 * eval.c (evaluate_subexp_standard): Pass object to
2418 find_overload_match by reference.
2420 2002-01-03 Andrew Cagney <ac131313@redhat.com>
2422 * valarith.c: Replace value_ptr with struct value pointer. Remove
2423 register attribute from value declarations.
2426 * scm-lang.c (scm_lookup_name): Ditto.
2428 2002-01-03 Michael Snyder <msnyder@redhat.com>
2430 Abstract the functionality of iterating over mapped memory
2431 regions into a general purpose iterator function.
2432 * procfs.c (iterate_over_mappings): New function, general purpose
2433 iterator for memory sections.
2434 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
2435 (solib_mappings_callback): New function, callback for above.
2436 (info_proc_mappings): Reimpliment using iterate_over_mappings.
2437 (info_mappings_callback): New function, callback for above.
2439 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
2441 2002-01-01 Mark Kettenis <kettenis@gnu.org>
2443 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
2444 * i386-tdep.c: Include "elf-bfd.h".
2445 (process_note_abi_tag_sections): New function.
2446 (i386_gdbarch_init): Add code to recognize various OS/ABI
2449 * maint.c (_initialize_maint_cmds): Add missing \ in
2452 For older changes see ChangeLog-2001
2458 version-control: never