12002-12-31 Mark Kettenis <kettenis@gnu.org> 2 3 * gdb_dirent.h: Cleanup and update code to match the example in 4 the Autoconf manual. 5 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h, 6 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS. 7 * configure: Regenerated. 8 92002-12-30 Adam Fedor <fedor@gnu.org> 10 11 * objc-exp.y (parse_number): Cast sscanf arguments to proper type. 12 (yylex): Initialize c to avoid uninitialized warning. 13 142002-12-29 Mark Kettenis <kettenis@gnu.org> 15 16 * tracepoint.c (ISATTY): Removed. 17 182002-12-26 J. Brobecker <brobecker@gnat.com> 19 20 Continuing work to convert the hppa targets to multiarch partil. 21 22 * hppa-tdep.c: Add some missing forward declarations. 23 (frameless_function_invocation): Prefix the function name 24 by "hppa_" to avoid polluting the namespace. Update all calls 25 to use the new function name. 26 (saved_pc_after_call): Ditto. 27 (init_extra_frame_info): Ditto. 28 (frame_chain): Ditto. 29 (push_dummy_frame): Ditto. 30 (target_read_pc): Ditto. 31 (target_write_pc): Ditto. 32 (in_solib_call_trampoline): Ditto. 33 (in_solib_return_trampoline): Ditto. 34 (skip_trampoline_code): Ditto. 35 (hppa_read_fp): New function, renamed from target_read_fp. 36 (hppa_target_read_fp): New function, using hppa_read_fp. 37 This function conforms to the function profile for the 38 READ_FP gdbarch method. 39 (hppa_extract_struct_value_address): New function, extracted 40 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS 41 macro. 42 (hppa_frame_num_args): New function. 43 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target. 44 45 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros 46 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation 47 for the switch to multiarch partial. 48 Update some of the macros definitions to match some changes 49 described above in the name of the function they are calling. 50 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will 51 not be straightforward to convert. Do now wrap it inside 52 "#if !... #endif" to remember that this macro has still not 53 been taken care of. 54 (FIX_CALL_DUMMY): Likewise. 55 562002-12-26 J. Brobecker <brobecker@gnat.com> 57 58 Continuing work to convert the hppa targets to multiarch partial. 59 60 * hppa-tdep.c (hppa_register_raw_size): New function replacing 61 the body of macro REGISTER_RAW_SIZE. 62 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from 63 config/pa/tm-hppah.h. These functions will be used to initialize 64 the gdbarch structure. 65 (hppa_hpux_pc_in_sigtramp): New function. 66 (hppa_hpux_frame_saved_pc_in_sigtramp): New function. 67 (hppa_hpux_frame_base_before_sigtramp): New function. 68 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function. 69 Add gdbcore.h #include. 70 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition 71 of this gdbarch-eligible macro to a call to the new associated 72 function. 73 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise. 74 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro 75 into a call to the new associated function. 76 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise. 77 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise. 78 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h. 79 802002-12-24 David Carlton <carlton@math.stanford.edu> 81 82 * config/sparc/tm-sparc.h: Delete duplicate definition of 83 DEPRECATED_PC_IN_CALL_DUMMY. 84 852002-12-24 Kevin Buettner <kevinb@redhat.com> 86 87 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and 88 $(gdb_assert_h). 89 * configure.tgt: Recognize mips64*-*-linux*. 90 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include. 91 (supply_32_bit_reg): New function. 92 (supply_gregset): Call supply_32bit_reg() instead of supply_register(). 93 (fill_gregset): Use regcache_collect() instead of 94 deprecated_registers[]. 95 (register_addr): Change name to mips_linux_register_addr(). 96 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC) 97 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO) 98 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31) 99 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR) 100 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE) 101 (MIPS64_LINUX_JB_PC): New defines. 102 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t) 103 (mips64_elf_fpregset_t): New typedefs. 104 (mips64_linux_get_longhmp_target, mips64_supply_gregset) 105 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset) 106 (mips64_linux_register_addr, set_mips_linux_register_addr) 107 (register_addr, mips64_linux_svr4_fetch_link_map_offsets): 108 (init_register_addr_data) 109 New functions. 110 (fetch_core_registers): Add support for core file formats with 64-bit 111 registers. 112 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs. 113 (register_addr_data): New static global variable. 114 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke 115 gdbarch_register_osabi() for each MIPS machine. 116 * config/mips/linux64.mt: New file. 117 * config/mips/tm-linux64.h: New file. 118 1192002-12-23 Adam Fedor <fedor@gnu.org> 120 121 * maint.c (maintenance_demangle): Add switch to demangle 122 ObjC language symbols as well. 123 1242002-12-23 Adam Fedor <fedor@gnu.org> 125 126 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 127 last argument from complaint function call. 128 1292002-12-23 Kevin Buettner <kevinb@redhat.com> 130 131 * exec.c (print_section_info): Add FIXME comments regarding format 132 string choices. 133 1342002-12-23 Daniel Jacobowitz <drow@mvista.com> 135 136 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl. 137 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl. 138 1392002-12-23 Rodney Brown <rbrown64@csc.com.au> 140 141 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl. 142 1432002-12-23 David Carlton <carlton@math.stanford.edu> 144 145 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable. 146 (lookup_symbol_aux_minsyms): Delete 'force_return' argument. 147 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging 148 information associated to a minsym, not lookup_symbol. 149 1502002-12-21 Mark Kettenis <kettenis@gnu.org> 151 152 * x86-64-tdep.h (x86_64_init_abi): New prototype. 153 * x86-64-tdep.c (i386_fp_regnum_p): Remove function. 154 (x86_64_init_abi): Make non-static. Set number of pseudo 155 registers to 0. 156 (x86_64_gdbarch_init): Remove function. 157 (_initialize_x86_64_tdep): Renove register_gdbarch_init call. 158 Remove code dealing with dissambly. 159 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function. 160 (_initialize_x86_64_linux_tdep): New function. 161 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and 162 i386-tdep.o. 163 1642002-12-14 Mark Kettenis <kettenis@gnu.org> 165 166 * osabi.c: Include "gdb_assert.h" and "gdb_string.h". 167 (struct gdb_osabi_handler): Remove member `arch'. Add member 168 `arch_info'. 169 (gdbarch_register_osabi): Add new argument `machine'. Use ot to 170 construct a `struct bfd_arch_info' and store it in the `struct 171 gdb_osabi_handler' that is created. 172 (gdbarch_init_osabi): Check for compatibility based on machine 173 type and architecture. 174 * osabi.h (gdbarch_register_osabi): Adjust prototype and update 175 comment. 176 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as 177 second argument in call to gdbarch_register_osabi. 178 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise. 179 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise. 180 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise. 181 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise. 182 * arm-tdep.c (_initialize_arm_tdep): Likewise. 183 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise. 184 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise. 185 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise. 186 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise. 187 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise. 188 * i386-tdep.c (_initialize_i386_tdep): Likewise. 189 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise. 190 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise. 191 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from 192 _initialize_i386bsd_tdep and updated likewise. 193 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise. 194 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise. 195 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise. 196 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise. 197 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise. 198 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise. 199 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise. 200 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise. 201 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise. 202 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise. 203 2042002-12-20 Kevin Buettner <kevinb@redhat.com> 205 206 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add 207 DT_MIPS_RLD_MAP case for 64-bit targets. 208 2092002-12-20 Kevin Buettner <kevinb@redhat.com> 210 211 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with 212 ``temp_saved_regs'', not the pointer or other storage contiguous 213 to this pointer. 214 2152002-12-20 Kevin Buettner <kevinb@redhat.com> 216 217 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h). 218 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets) 219 (mips_linux_get_longjmp_target): Delete declarations. 220 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET) 221 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions. 222 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include. 223 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define. 224 (mips_linux_get_longjmp_target) 225 (mips_linux_svr4_fetch_link_map_offsets): Make static. 226 (mips_linux_init_abi): New function. 227 (_initialize_mips_linux_tdep): Register mips_linux_init_abi(). 228 2292002-12-19 Keith Seitz <keiths@redhat.com> 230 231 patch committed by Elena Zannoni <ezannoni@redhat.com> 232 * thread.c (do_captured_list_thread_ids): Call prune_threads and 233 target_find_new_threads. Fix for PR mi/669. 234 2352002-12-19 David Carlton <carlton@math.stanford.edu> 236 237 * linespec.c (decode_line_1): Move code into decode_all_digits. 238 (decode_all_digits): New function. 239 2402002-12-19 Kevin Buettner <kevinb@redhat.com> 241 242 * exec.c (print_section_info): Select a format string to use with 243 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT. 244 2452002-12-18 Andrew Cagney <ac131313@redhat.com> 246 247 * frame.c (deprecated_update_current_frame_pc_hack): Replace 248 deprecated_update_current_frame_pc_hack. 249 (deprecated_update_frame_base_hack): New function. 250 * frame.h (deprecated_update_frame_pc_hack): Replace 251 (deprecated_update_frame_base_hack): Declare. 252 * infrun.c (normal_stop): Update. 253 2542002-12-18 Andrew Cagney <ac131313@redhat.com> 255 256 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use 257 frame_extra_info_zalloc. 258 (rs6000_frame_args_address): Use get_frame_extra_info. 259 (frame_get_saved_regs): Use get_frame_saved_regs. 260 (frame_initial_stack_address): Use get_frame_saved_regs and 261 get_frame_extra_info. 262 (frame_initial_stack_address): Use get_frame_extra_info. 263 2642002-12-17 Kevin Buettner <kevinb@redhat.com> 265 266 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine 267 array size. 268 (fetch_bitmapped_register, store_bitmapped_register): Add bounds 269 checks for r3900_regnames[]. 270 2712002-12-17 Richard Earnshaw <rearnsha@arm.com> 272 273 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC. 274 All uses changed 275 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly. 276 2772002-12-17 David Carlton <carlton@math.stanford.edu> 278 279 * symtab.c (lookup_partial_symbol): Don't search past the end of 280 the partial symbols. 281 2822002-12-17 Andrew Cagney <ac131313@redhat.com> 283 284 * stack.c (frame_info): Use get_frame_saved_regs. 285 * breakpoint.c (until_break_command): Use get_frame_pc. 286 2872002-12-16 Kevin Buettner <kevinb@redhat.com> 288 289 * buildsym.c (block_end_complaint, anon_block_end_complaint) 290 (innerblock_complaint, innerblock_anon_complaint) 291 (blockvector_complaint): Delete deprecated complaint structs. 292 (finish_block, make_blockvector, end_symtab): Replace calls 293 to complain() with calls to complaint(). 294 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint) 295 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint) 296 (unexpected_type_complaint, bad_sclass_complaint) 297 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint): 298 Delete deprecated complaint structs. 299 (coff_symtab_read, enter_linenos, decode_type, decode_base_type): 300 Replace calls to complain() with calls to complaint(). 301 * dbxread.c (lbrac_complaint, string_table_offset_complaint) 302 (unknown_symtype_complaint, unknown_symchar_complaint) 303 (lbrac_rbrac_complaint, lbrac_unmatched_complaint) 304 (lbrac_mismatch_complaint, repeated_header_complaint) 305 (unclaimed_bincl_complaint, discarding_local_symbols_complaint): 306 Delete deprecated complaint structs. 307 (unknown_symtype_complaint, lbrac_mismatch_complaint) 308 (repeated_header_complaint) 309 (function_outside_compiliation_unit_complaint): New functions. 310 (add_old_header_file, find_corresponding_bincl_psymtab) 311 (set_namestring, find_stab_function_addr, read_dbx_symtab) 312 (process_one_symbol): Replace calls to complain() with, possibly 313 indirect, calls to complaint(). 314 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref) 315 (unknown_attribute_form, unknown_attribute_length) 316 (unexpected_fund_type, unknown_type_modifier, volatile_ignored) 317 (const_ignored, botched_modified_type, op_deref2, op_deref4) 318 (basereg_not_handled, dup_user_type_allocation) 319 (dup_user_type_definition, missing_tag, bad_array_element_type) 320 (subscript_data_items, unhandled_array_subscript_format) 321 (unknown_array_subscript_format, not_row_major) 322 (missing_at_name): Delete deprecated complaint structs. 323 (bad_die_ref_complaint, unknown_attribute_form_complaint) 324 (dup_user_type_definition_complaint) 325 (bad_array_element_type_complaint): New functions. 326 (lookup_utype, alloc_utype, struct_type, decode_array_element_type) 327 (decode_subscript_data_item, dwarf_read_array_type) 328 (read_tag_string_type, read_subroutine_type, read_func_scope) 329 (locval, scan_partial_symbols, decode_modified_type) 330 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host) 331 (attribute_size): Replace calls to complain() with, possibly 332 indirect, calls to complaint(). 333 * elfread.c (section_info_complaint, section_info_dup_complaint) 334 (stab_info_mismatch_complaint, stab_info_questionable_complaint): 335 Delete deprecated complaint structs. 336 (elf_symtab_read, elfstab_offset_sections): Replace calls to 337 complain() with calls to complaint(). 338 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint 339 struct. 340 (stub_noname_complaint): New function. 341 (check_typedef, add_mangled_type): Replace calls to complain() 342 with calls to complaint(). 343 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint) 344 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint) 345 (hpread_unhandled_type_complaint, hpread_struct_complaint) 346 (hpread_array_complaint, hpread_type_lookup_complaint) 347 (hpread_unexpected_end_complaint, hpread_tagdef_complaint) 348 (hpread_unhandled_common_complaint) 349 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint 350 struct definitions and declarations. 351 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions. 352 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol): 353 Replace calls to complain() with, possibly indirect, calls to 354 complaint(). 355 * macrotab.c (macro_include, check_for_redefinition, macro_undef): 356 Likewise. 357 * mdebugread.c (bad_file_number_complaint, index_complaint) 358 (aux_index_complaint, block_index_complaint) 359 (unknown_ext_complaint, unknown_sym_complaint) 360 (unknown_st_complaint, block_overflow_complaint) 361 (basic_type_complaint, unknown_type_qual_complaint) 362 (array_index_type_complaint, bad_tag_guess_complaint) 363 (block_member_complaint, stEnd_complaint) 364 (unknown_mdebug_symtype_complaint, stab_unknown_complaint) 365 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint) 366 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint) 367 (bad_continued_complaint, bad_rfd_entry_complaint) 368 (unexpected_type_code_complaint, unable_to_cross_ref_complaint) 369 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint) 370 (illegal_forward_bt_complaint, bad_linetable_guess_complaint) 371 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated 372 complaint structs. 373 (index_complaint, unknown_ext_complaint, basic_type_complaint) 374 (bad_tag_guess_complaint, bad_rfd_entry_complaint) 375 (unexpected_type_code_complaint) 376 (function_outside_compilation_unit_complaint): New functions. 377 (parse_symbol, parse_type, upgrade_type, parse_procedure) 378 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol): 379 Replace calls to complain() with, possibly indirect calls to 380 complaint(). 381 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint): 382 Delete deprecated complaint structs. 383 (lookup__objc_class, lookup_child_selector): Replace complain() 384 with complaint(). 385 * remote-vx.c (cant_contact_target): Delete deprecated complaint 386 struct. 387 (vx_lookup_symbol): Replace complain() with complaint(). 388 * stabsread.c (invalid_cpp_abbrev_complaint) 389 (invalid_cpp_type_complaint, member_fn_complaint) 390 (const_vol_complaint, error_type_complaint) 391 (invalid_member_complaint, range_type_base_complaint) 392 (reg_value_complaint, vtbl_notfound_complaint) 393 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint) 394 (unresolved_sym_chain_complaint, stabs_general_complaint) 395 (lrs_general_complaint, multiply_defined_struct): Delete 396 deprecated complaint structs. 397 (invalid_cpp_abbrev_complaint, ref_value_complaint) 398 (stabs_general_complaint, lrs_general_complaint) 399 (msg_unknown_complaint): New functions. 400 (dbx_lookup_type, read_cfront_baseclasses) 401 (read_cfront_member_functions, resolve_symbol_reference) 402 (define_symbol, resolve_live_range, add_live_range, read_type) 403 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev) 404 (read_one_struct_field, read_baseclasses, read_tilde_fields) 405 (read_cfront_static_fields, attach_fields_to_type) 406 (complain_about_struct_wipeout, read_range_type) 407 (common_block_start, common_block_end, cleanup_undefined_types) 408 (scan_file_globals): Replace complain() with complaint(). 409 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint): 410 Delete deprecated complaint struct declarations. 411 * xcoffread.c (storclass_complaint, bf_notfound_complaint) 412 (ef_complaint, eb_complaint): Delete deprecated complaint structs. 413 (bf_not_found_complaint, ef_complaint, eb_complaint) 414 (function_outside_compilation_unit_complaint): New functions. 415 (record_include_begin, record_include_end, enter_line_range) 416 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol) 417 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace 418 complain() with complaint(). 419 4202002-12-16 Andrew Cagney <ac131313@redhat.com> 421 422 * config/arc/arc.mt, config/arc/tm-arc.h: Delete. 423 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete. 424 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete. 425 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete. 426 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete. 427 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete. 428 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete. 429 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete. 430 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete. 431 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete. 432 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete. 433 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete. 434 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete. 435 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete. 436 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete. 437 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete. 438 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete. 439 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete. 440 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete. 441 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete. 442 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete. 443 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete. 444 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete. 445 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete. 446 * config/m88k/xm-dgux.h: Delete. 447 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete. 448 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete. 449 * os9kread.c, remote-bug.c, remote-nindy.c: Delete. 450 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete. 451 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete. 452 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete. 453 * ch-valprint.c: Delete. 454 4552002-12-15 Daniel Jacobowitz <drow@mvista.com> 456 457 * infrun.c (handle_inferior_event): Rearrange code to resume if 458 no catchpoint triggers for an event. 459 4602002-12-15 Daniel Jacobowitz <drow@mvista.com> 461 462 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED 463 and TARGET_WAITKIND_VFORKED cases. 464 4652002-12-15 Daniel Jacobowitz <drow@mvista.com> 466 467 * infrun.c (handle_inferior_event): Assume that catchpoints 468 are not affected by DECR_PC_AFTER_BREAK. 469 4702002-12-15 Daniel Jacobowitz <drow@mvista.com> 471 472 * target.c (update_current_target): Don't inherit DONT_USE. 473 * target.h (struct target_ops): Remove DONT_USE. 474 (target_next): Remove macro. 475 4762002-12-15 Mark Kettenis <kettenis@gnu.org> 477 478 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654. 479 4802002-12-14 Richard Earnshaw <rearnsha@arm.com> 481 482 * arm-tdep.c (convert_from_extended): New argument to hold the 483 type of floating point result we want to convert to. Make input 484 argument const. Fix all callers. 485 (convert_to_extended): Similarly. 486 (arm_extract_return_value): Now takes a regcache argument. Change 487 code to use regcache accessor functions. Correctly extract 488 smaller-than-word results on big-endian machines. 489 (arm_store_return_value): Now takes a regcache argument. Change 490 code to use regcache accessor functions. Correctly zero/sign extend 491 smaller than word results before storing into r0. 492 (arm_gdbarch_init): Register new-style extract_return_value and 493 store_return_value functions. 494 4952002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com> 496 497 * thread-db.c (thread_from_lwp): Uniquify error msg. 498 (lwp_from_thread): Ditto. 499 (check_event): Ditto. 500 (find_new_threads_callback): Ditto. 501 (thread_db_pid_to_str): Ditto. 502 5032002-12-13 Andrew Cagney <ac131313@redhat.com> 504 505 * frame.h (get_frame_saved_regs): Declare. 506 (frame_saved_regs_zalloc): Change return type to CORE_ADDR 507 pointer. 508 * frame.c (get_frame_saved_regs): New function. 509 (frame_saved_regs_zalloc): Return the allocated saved_regs. 510 5112002-12-13 Andrew Cagney <ac131313@redhat.com> 512 513 * frame.c (deprecated_update_current_frame_pc_hack): New 514 function. 515 * frame.h (deprecated_update_current_frame_pc_hack): Declare. 516 * infrun.c (normal_stop): Use said function instead of directly 517 modifying the frame's PC. 518 5192002-12-13 Alexandre Oliva <aoliva@redhat.com> 520 521 * frame.h (frame_id_unwind_ftype): Fix typo in return type. 522 5232002-12-13 Kevin Buettner <kevinb@redhat.com> 524 525 * config/mips/tm-mips.h, config/mips/tm-irix3.h, 526 config/mips/tm-irix6.h (NUM_REGS): Delete. 527 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs(). 528 (temp_saved_regs): Declare as a pointer rather than an array. 529 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure 530 that ``temp_saved_regs'' has storage allocated to it and that 531 it's the correct size. 532 5332002-12-13 Jeff Johnston <jjohnstn@redhat.com> 534 535 * defs.h (init_last_source_visited): New prototype. 536 (add_path): Ditto. 537 * source.c (add_path): New function that adds to a specified path. 538 (mod_path): Change to call add_path. 539 (init_last_source_visited): New function to allow interfaces to 540 initialize static variable: last_source_visited. Part of fix 541 for PR gdb/741. 542 * Makefile.in: Add support for mi/mi-cmd-env.c. 543 5442002-12-13 Andrew Cagney <ac131313@redhat.com> 545 546 * frame.h (frame_id_unwind): Declare. 547 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and 548 id_unwind_cache. 549 (frame_id_unwind_ftype): Declare. 550 * frame.c (frame_id_unwind): New function. 551 (set_unwind_by_pc): Add unwind_id parameter. Initialized. 552 (create_new_frame, get_prev_frame): Pass id_unwind to 553 set_unwind_by_pc. 554 (frame_saved_regs_id_unwind): New function. 555 (frame_saved_regs_id_unwind): New function. 556 * dummy-frame.c (dummy_frame_id_unwind): New function. 557 (struct dummy_frame): Add field id. 558 (generic_push_dummy_frame): Initialize `id'. 559 * dummy-frame.h (dummy_frame_id_unwind): Declare. 560 5612002-12-13 Andrew Cagney <ac131313@redhat.com> 562 563 * infcmd.c (run_stack_dummy): Create a frame ID directly and then 564 pass that to set_momentary_breakpoint. Move comments to where they 565 belong. 566 * frame.h (set_current_frame): Delete declaration. 567 * frame.c (set_current_frame): Delete function. 568 5692002-12-13 Andrew Cagney <ac131313@redhat.com> 570 571 * frame.c (frame_extra_info_zalloc): New function. 572 * frame.h (frame_extra_info_zalloc): Declare. 573 5742002-12-13 Joel Brobecker <brobecker@gnat.com> 575 576 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced 577 in the previous prototype change to set_momentary_breakpoint. 578 5792002-12-12 Daniel Jacobowitz <drow@mvista.com> 580 581 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork, 582 and saw_child_exec. 583 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove 584 references to saw_parent_fork, saw_child_fork, and saw_child_exec. 585 (stop_stepping): Remove outdated check for child vfork events. 586 5872002-12-12 Andrew Cagney <ac131313@redhat.com> 588 589 * GDB 5.3 released from gdb_5_3-branch. 590 5912002-12-11 Daniel Jacobowitz <drow@mvista.com> 592 593 * corelow.c (init_core_ops): Delete references to to_require_attach 594 and to_require_detach. 595 * exec.c (init_exec_ops): Likewise. 596 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and 597 hppa_require_detach directly. 598 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete. 599 * inftarg.c (child_detach): Remove. 600 (child_detach_from_process): Rename to child_detach, remove 601 after_fork argument. 602 (child_attach): Remove. 603 (child_attach_to_process): Rename to child_attach, remove after_fork 604 argument. 605 (init_child_ops): Delete references to to_require_attach 606 and to_require_detach. 607 * infttrace.c (hppa_require_attach): Update comment. 608 * target.c (cleanup_target, update_current_target) 609 (init_dummy_target, setup_target_debug): Delete references to 610 to_require_attach and to_require_detach. 611 (find_default_require_detach, find_default_require_attach) 612 (debug_to_require_attach, debug_to_require_detach): Remove 613 functions. 614 * target.h (struct target_ops): Remove to_require_attach 615 and to_require_detach. 616 (target_require_attach, target_require_detach): Delete macros. 617 (find_default_require_detach, find_default_require_attach): Delete 618 prototypes. 619 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete. 620 6212002-12-11 Andrew Cagney <ac131313@redhat.com> 622 623 * frame.c (get_frame_extra_info): New function. 624 * frame.h (get_frame_extra_info): Declare. 625 6262002-12-11 Andrew Cagney <ac131313@redhat.com> 627 628 * breakpoint.h (struct breakpoint): Replace frame with frame_id. 629 (set_momentary_breaokpoint): Replace `struct frame_info' parameter 630 with `struct frame_id'. 631 (set_longjmp_resume_breakpoint): Ditto. 632 * infrun.c (handle_inferior_event): Update. 633 * breakpoint.c (watch_command_1, until_break_command): Update. 634 * infrun.c (handle_inferior_event, check_sigtramp2): Update. 635 (handle_inferior_event, step_over_function): Update. 636 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update. 637 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update. 638 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update. 639 * infcmd.c (finish_command, run_stack_dummy): Update. 640 6412002-12-11 Kevin Buettner <kevinb@redhat.com> 642 643 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored) 644 (dwarf2_non_const_array_bound_ignored) 645 (dwarf2_missing_line_number_section) 646 (dwarf2_statement_list_fits_in_line_number_section) 647 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr) 648 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr) 649 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding) 650 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag) 651 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name) 652 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint) 653 (dwarf2_missing_member_fn_type_complaint) 654 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint) 655 (dwarf2_const_value_length_mismatch) 656 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number) 657 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section) 658 (dwarf2_macros_too_long, dwarf2_macros_not_terminated) 659 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file) 660 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition) 661 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete 662 complaints using deprecated struct.. 663 (dwarf2_non_const_array_bound_ignored_complaint) 664 (dwarf2_complex_location_expr_complaint) 665 (dwarf2_unsupported_at_frame_base_complaint) 666 (dwarf2_const_value_length_mismatch_complaint) 667 (dwarf2_macros_too_long_complaint) 668 (dwarf2_macro_malformed_definition_complaint) 669 (dwarf2_invalid_attrib_class_complaint): New functions. 670 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn) 671 (read_structure_scope, read_array_type, read_common_block) 672 (read_tag_pointer_type, read_base_type, read_partial_die) 673 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines) 674 (new_symbol, dwarf2_const_value, read_type_die) 675 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces) 676 (parse_macro_definition, dwarf_decode_macros): Replace calls to 677 complain() with, possibly indirect, calls to complaint(). 678 6792002-12-11 Andrew Cagney <cagney@redhat.com> 680 681 * frame.c (deprecated_get_frame_saved_regs): Rename 682 get_frame_saved_regs. 683 * frame.h (deprecated_get_frame_saved_regs): Update declaration. 684 * sparc-tdep.c: Update. 685 * hppa-tdep.c: Update. 686 * h8500-tdep.c: Update. 687 6882002-12-11 Kevin Buettner <kevinb@redhat.com> 689 690 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME) 691 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of 692 ``char *'' for return and parameter types. 693 * gdbarch.h, gdbarch.c: Regenerate. 694 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change 695 return type from ``char *'' to ``const char *''. 696 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id'' 697 const. 698 6992002-12-11 Mark Kettenis <kettenis@gnu.org> 700 701 * i386-tdep.c: Include "dummy-frame.h". 702 (i386_frame_chain, i386_frame_saved_pc): Replace 703 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame. 704 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy. 705 7062002-12-10 Andrew Cagney <cagney@redhat.com> 707 708 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC. 709 Change to a function with predicate. 710 * gdbarch.h, gdbarch.c: Re-generate. 711 * frame.c (get_prev_frame): Update. Test 712 DEPRECATED_INIT_FRAME_PC_P. 713 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update. 714 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update. 715 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update. 716 * alpha-tdep.c (alpha_gdbarch_init): Update. 717 * mn10300-tdep.c (mn10300_gdbarch_init): Update. 718 * mips-tdep.c (mips_gdbarch_init): Update. 719 * i386-interix-tdep.c (i386_interix_init_abi): Update. 720 * arm-tdep.c: Update comments. 721 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc. 722 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto. 723 * frv-tdep.c (frv_gdbarch_init): Ditto. 724 * x86-64-tdep.c (x86_64_init_abi): Ditto. 725 * ia64-tdep.c (ia64_gdbarch_init): Ditto. 726 * s390-tdep.c (s390_gdbarch_init): Ditto. 727 * v850-tdep.c (v850_gdbarch_init): Ditto. 728 * vax-tdep.c (vax_gdbarch_init): Ditto. 729 * sh-tdep.c (sh_gdbarch_init): Ditto. 730 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto. 731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto. 732 * mcore-tdep.c (mcore_gdbarch_init): Ditto. 733 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto. 734 * i386-tdep.c (i386_gdbarch_init): Ditto. 735 * d10v-tdep.c (d10v_gdbarch_init): Ditto. 736 * cris-tdep.c (cris_gdbarch_init): Ditto. 737 * avr-tdep.c (avr_gdbarch_init): Ditto. 738 * arm-tdep.c (arm_gdbarch_init): Ditto. 739 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro. 740 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC. 741 7422002-12-10 Daniel Jacobowitz <drow@mvista.com> 743 744 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to 745 CHILD_FOLLOW_FORK. 746 * hppah-nat.c (saved_vfork_pid): Add. 747 (child_post_follow_vfork): Remove. 748 (child_follow_fork): New function. 749 (child_wait): Call detach_breakpoints after receiving the child vfork. 750 Call child_resume directly instead of going through resume (). 751 Make sure we have the exec before reporting the vfork. 752 * inferior.h (follow_inferior_reset_breakpoints): Add prototype. 753 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove. 754 (follow_fork): New function. Call target_follow_fork. 755 (follow_inferior_reset_breakpoints): New function broken out from 756 old follow_inferior_fork. 757 (resume): Remove hack to follow exec after vfork. 758 * inftarg.c (child_post_follow_vfork): Remove. 759 (child_follow_fork): New function. 760 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork. 761 * target.c (cleanup_target): Replace to_post_follow_vfork with 762 to_follow_fork. 763 (update_current_target): Likewise. 764 (setup_target_debug): Likewise. 765 (debug_to_post_follow_vfork): Remove. 766 (debug_to_follow_fork): New function. 767 * target.h (struct target_ops): Replace to_post_folow_vfork with 768 to_follow_fork. 769 (child_post_follow_vfork): Remove prototype. 770 (child_follow_fork): Add prototype. 771 (target_post_follow_vfork): Remove macro. 772 (target_follow_fork): Add macro. 773 7742002-12-10 Daniel Jacobowitz <drow@mvista.com> 775 776 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New. 777 (child_post_follow_vfork): Cancel pending exec event if we follow 778 the parent. 779 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary 780 events have been processed. Return a fake TARGET_WAITKIND_EXECD 781 event at the following wait call if necessary. 782 * infrun.c (follow_vfork): Don't follow_exec here. 783 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD 784 case about HP/UX 10.20. Remove code pushed down to 785 hppah-nat.c:child_wait. 786 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if 787 vfork_in_flight is set. 788 7892002-12-10 Daniel Jacobowitz <drow@mvista.com> 790 791 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE 792 for the parent's fork event. 793 * infrun.c (handle_inferior_event): Only expect one fork event. 794 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment. 795 * target.h: Update comment for TARGET_WAITKIND_IGNORE. 796 7972002-12-10 Andrew Cagney <ac131313@redhat.com> 798 799 * PROBLEMS: Delete reference to PR gdb/725. 800 801 * MAINTAINERS (gdb.c++): Add David Carlton. 802 8032002-12-09 David Carlton <carlton@math.stanford.edu> 804 805 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h. 806 * cli/cli-cmds.c: Ditto. 807 8082002-12-09 Andrew Cagney <cagney@redhat.com> 809 810 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap 811 function address in <>. 812 * gdbarch.c: Re-generate. 813 8142002-12-09 David Carlton <carlton@math.stanford.edu> 815 816 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD. 817 8182002-12-09 David Carlton <carlton@math.stanford.edu> 819 820 * linespec.c (symtab_from_filename): New function. 821 (decode_line_1): Move code into symtab_from_filename. 822 8232002-12-09 Kevin Buettner <kevinb@redhat.com> 824 825 * lin-lwp.c (strsignal): Make extern declaration match that of glibc. 826 8272002-12-07 Andrew Cagney <ac131313@redhat.com> 828 829 * f-valprint.c (info_common_command): Use get_frame_pc. 830 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto. 831 * ax-gdb.c (agent_command): Ditto. 832 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto. 833 (rs6000_pop_frame): Ditto. 834 (rs6000_frameless_function_invocation): Ditto. 835 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto. 836 (frame_initial_stack_address, rs6000_frame_chain): Ditto. 837 * macroscope.c (default_macro_scope): Ditto. 838 * stack.c (print_frame_info_base): Ditto. 839 (print_frame, frame_info, print_frame_label_vars): Ditto. 840 (return_command, func_command, get_frame_language): Ditto. 841 * infcmd.c (finish_command): Ditto. 842 * dummy-frame.c (cached_find_dummy_frame): Ditto. 843 * breakpoint.c (deprecated_frame_in_dummy): Ditto. 844 (break_at_finish_at_depth_command_1): Ditto. 845 (break_at_finish_command_1): Ditto. 846 (until_break_command, get_catch_sals): Ditto. 847 * blockframe.c (func_frame_chain_valid): Ditto. 848 (frameless_look_for_prologue): Ditto. 849 (frame_address_in_block, generic_func_frame_chain_valid): Ditto. 850 8512002-12-08 Andrew Cagney <ac131313@redhat.com> 852 853 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration. 854 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer. 855 8562002-12-08 Andrew Cagney <ac131313@redhat.com> 857 858 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert 859 to pure functions. 860 * gdbarch.h, gdbarch.c: Re-generate. 861 * frame.c (get_prev_frame): Explictly assign prev's pc with value 862 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO. 863 864 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change 865 declaration to a function returning a CORE_ADDR. 866 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto. 867 * arch-utils.c (init_frame_pc_noop): Return the PC value. 868 (init_frame_pc_default): Ditto. 869 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto. 870 * s390-tdep.c (s390_init_frame_pc_first): Ditto. 871 * mips-tdep.c (mips_init_frame_pc_first): Ditto. 872 * dwarf2cfi.h (cfi_init_frame_pc): Ditto. 873 * dwarf2cfi.c (cfi_init_frame_pc): Ditto. 874 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto. 875 876 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc 877 to init_frame_pc_noop. 878 (i386_interix_init_frame_pc): Delete function. 879 * z8k-tdep.c (init_frame_pc): Delete function. 880 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop. 881 (INIT_FRAME_PC_FIRST): Ditto. 882 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto. 883 (INIT_FRAME_PC_FIRST): Ditto. 884 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto. 885 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as 886 init_frame_pc_noop. 887 (INIT_FRAME_PC_FIRST): Convert to an expression. 888 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto. 889 8902002-12-08 Andrew Cagney <ac131313@redhat.com> 891 892 * blockframe.c: Use get_frame_base instead of directly accessing 893 the `struct frame_info' member frame. 894 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto. 895 * stack.c, dummy-frame.c, breakpoint.c: Ditto. 896 8972002-12-08 Elena Zannoni <ezannoni@redhat.com> 898 899 * Makefile.in (readline_h): Define. 900 (completer.o): Depend on readline_h. 901 (corelow.o): Ditto. 902 (event-top.o): Ditto. 903 (exec.o): Ditto. 904 (solib.o): Ditto. 905 (source.o): Ditto. 906 (symfile.o): Ditto. 907 (symmisc.o): Ditto. 908 (top.o): Ditto. 909 (tracepoint.o): Ditto. 910 (utils.o): Ditto. 911 (cli-dump.o): Ditto. 912 (tui-hooks.o): Ditto. 913 (tuiWin.o): Ditto. 914 9152002-12-08 Elena Zannoni <ezannoni@redhat.com> 916 917 More cleanup from import of readline 4.3. 918 * completer.h (complete_line, readline_line_completion_function): 919 Update prototypes. 920 (line_completion_function): Removed, not used outside of completer.c. 921 * completer.c (readline_line_completion_function, 922 complete_function, line_completion_function): Use const for first 923 parameter. 924 (line_completion_function): Make static. 925 (filename_completer): filename_completion_function is now called 926 rl_filename_completion_function 927 * corelow.c: Include <readline/readline.h>. 928 * exec.c: Ditto. 929 * solib.c: Ditto. 930 * source.c: Ditto. 931 * symfile.c: Ditto. 932 * symmisc.c: Ditto. 933 * top.c (init_main): No need to coerce 934 readline_line_completion_function anymore. 935 * cli/cli-dump.c: Include <readline/readline.h>. 936 9372002-12-08 Andrew Cagney <ac131313@redhat.com> 938 939 * stack.c (frame_info): Use get_prev_frame. 940 * blockframe.c (frame_address_in_block): Ditto. 941 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto. 942 (rs6000_frameless_function_invocation): Ditto. 943 (rs6000_frame_saved_pc): Ditto. 944 (rs6000_frame_chain): Ditto. 945 * arch-utils.c (init_frame_pc_default): Ditto. 946 9472002-12-08 Andrew Cagney <ac131313@redhat.com> 948 949 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY): 950 Delete redundant definition. 951 9522002-12-08 Elena Zannoni <ezannoni@redhat.com> 953 954 Import of readline 4.3: 955 * cli/cli-cmds.c: Include readline/tilde.h. 956 * cli/cli-setshow.c: Ditto. 957 * defs.h: Don't declare tilde_expand anymore, since readline 958 exports it. 959 9602002-12-08 Elena Zannoni <ezannoni@redhat.com> 961 962 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of 963 -Werror on this file. 964 9652002-12-07 Andrew Cagney <ac131313@redhat.com> 966 967 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing 968 the format name. 969 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto. 970 * gdbarch.c: Regenerate. 971 9722002-12-06 Andrew Cagney <ac131313@redhat.com> 973 974 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename 975 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not 976 provide a default value. 977 * gdbarch.h, gdbarch.c: Regenerate. 978 * frame.c (get_prev_frame): Update. Check 979 DEPRECATED_INIT_FRAME_PC_FIRST_P. 980 * s390-tdep.c (s390_gdbarch_init): Update. 981 * mips-tdep.c (mips_gdbarch_init): Update. 982 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update. 983 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update. 984 * alpha-tdep.c (alpha_gdbarch_init): Update. 985 9862002-12-06 Elena Zannoni <ezannoni@redhat.com> 987 988 * ia64-linux-nat.c: Include gdb_string.h. 989 * alpha-nat.c: Ditto. 990 * ppc-linux-nat.c: Ditto. 991 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o): 992 Update dependencies. 993 9942002-12-05 Andrew Cagney <ac131313@redhat.com> 995 996 * gdbthread.h: Include "frame.h". 997 (struct thread_info): Replace step_frame_address with 998 step_frame_id. 999 * inferior.h: Include "frame.h". 1000 (step_frame_id): Replace external variable step_frame_address. 1001 * gdbthread.h (save_infrun_state): Replace step_frame_address 1002 parameter with step_frame_id parameter. 1003 (load_infrun_state): Ditto. 1004 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h). 1005 * infcmd.c (step_frame_id, step_1, step_once): Update. 1006 * thread.c (load_infrun_state, save_infrun_state): Update. 1007 * infrun.c (clear_proceed_status, save_inferior_status): Update. 1008 (handle_inferior_event, step_over_function): Update. 1009 (normal_stop, context_switch, restore_inferior_status): Update. 1010 (struct inferior_status): Replace step_frame_address with 1011 step_frame_id. 1012 10132002-12-05 David Carlton <carlton@math.stanford.edu> 1014 1015 * dwarf2read.c (dwarf2_add_field): Treat a field that is a 1016 DW_TAG_member as well as a declaration as being a C++ static data 1017 member. 1018 (read_structure_scope): Combine tests for DW_TAG_member and 1019 DW_TAG_variable. 1020 10212002-12-05 David Carlton <carlton@math.stanford.edu> 1022 1023 * linespec.c (decode_compound): New function. 1024 (decode_line_1): Move code into decode_compound. 1025 10262002-12-05 David Carlton <carlton@math.stanford.edu> 1027 1028 * symtab.c (lookup_symbol_aux_local): Add 'static_block' 1029 argument. 1030 (lookup_symbol_aux): Do the 'field_of_this' check before checking 1031 the static block. See PR gdb/804. 1032 10332002-12-05 David Carlton <carlton@math.stanford.edu> 1034 1035 * symtab.c (lookup_symbol_aux_block): New function. 1036 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block. 1037 10382002-12-05 Andrew Cagney <ac131313@redhat.com> 1039 1040 * gdbarch.sh: Dump the predicate function and macro values. 1041 (read): Print error on standard error. 1042 * gdbarch.c: Regenerate. 1043 10442002-12-04 Kevin Buettner <kevinb@redhat.com> 1045 1046 * Makefile.in (mips_tdep_h): Define. 1047 (mips-tdep.o): Add mips_tdep_h to dependency list. 1048 * mips-tdep.h: New file. 1049 * mips-tdep.c (mips-tdep.h): Include. 1050 (enum mips_abi): Move to mips-tdep.h. 1051 (mips_abi): New function. 1052 10532002-12-04 David Carlton <carlton@math.stanford.edu> 1054 1055 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c. 1056 10572002-12-04 David Carlton <carlton@math.stanford.edu> 1058 1059 * symtab.c (lookup_symbol_aux): Move minsym code into a separate 1060 function. 1061 (lookup_symbol_aux_minsyms): New function. 1062 10632002-12-04 J. Brobecker <brobecker@gnat.com> 1064 1065 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux. 1066 10672002-12-04 J. Brobecker <brobecker@gnat.com> 1068 1069 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP, 1070 which is an obsolete macro name. 1071 10722002-12-04 Daniel Jacobowitz <drow@mvista.com> 1073 1074 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int. 1075 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee. 1076 10772002-12-03 H.J. Lu (hjl@gnu.org) 1078 1079 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf. 1080 (create_breakpoints): Make sure the addr_string field is not 1081 NULL. 1082 10832002-12-03 Andrew Cagney <ac131313@redhat.com> 1084 1085 * sparc-nat.c (fetch_inferior_registers) 1086 (store_inferior_registers): Add comment on problem of LWP vs 1087 threads. 1088 1089 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com> 1090 * lin-lwp.c (lin_lwp_fetch_registers): Remove. 1091 (lin_lwp_store_registers): Remove. 1092 (init_lin_lwp_ops): Use fetch_inferior_registers 1093 and store_inferior_registers directly. 1094 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID. 1095 (store_inferior_registers): Likewise. 1096 Fix PR gdb/725. 1097 10982002-12-03 Andrew Cagney <ac131313@redhat.com> 1099 1100 * frame.h (get_frame_id): Convert to a function. 1101 (null_frame_id, frame_id_p): Declare. 1102 (frame_id_eq, frame_id_inner): Declare. 1103 (frame_id_build): New function. 1104 * frame.c (get_frame_id): Update. Use null_frame_id. 1105 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and 1106 frame_id_inner. 1107 (null_frame_id, frame_id_p): Define. 1108 (frame_id_eq, frame_id_inner): Define. 1109 (frame_id_build): New function. 1110 * varobj.c (varobj_create): Update. 1111 (varobj_update): Update. 1112 * valops.c (value_assign): Update. 1113 (new_root_variable): Update. 1114 * infrun.c (save_inferior_status): Update. 1115 * breakpoint.c (watch_command_1): Update. 1116 11172002-12-03 J. Brobecker <brobecker@gnat.com> 1118 1119 * config/pa/tm-hppah.h (SNAP1): Remove unused macro. 1120 (SNAP2): Likewise. 1121 11222002-12-03 Andrew Cagney <cagney@redhat.com> 1123 1124 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library 1125 patch. 1126 1127 * PROBLEMS: Mention PR gdb/725. 1128 11292002-12-03 Andreas Schwab <schwab@suse.de> 1130 1131 * infcmd.c (construct_inferior_arguments): Handle empty arguments. 1132 11332002-12-02 Adam Fedor <fedor@gnu.org> 1134 Klee Dienes <kdienes@apple.com> 1135 1136 * objc-lang.c (objc_printstr): Add width arg to match 1137 printstr prototype. 1138 (compare_selectors): Add 'const' to arg types. 1139 (compare_classes): Likewise. 1140 (find_imps): Cast msym pointer to avoid compiler warning. 1141 (print_object_command): Validate the address before 1142 passing it to the print routine. 1143 (find_objc_msgcall_submethod): Change function argument to 1144 return an int. 1145 * objc-lang.h: Add 'extern' to all function declarations. 1146 (value_nsstring): Add declaration. 1147 11482002-12-02 J. Brobecker <brobecker@gnat.com> 1149 1150 * somsolib.c (dld_cache): Replace boolean by int for field is_valid. 1151 Fixes a build failure on HP/UX. 1152 1153 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build 1154 failure on HP/UX. 1155 (hpread_has_name): Advance declaration to avoid a compilation warning. 1156 (pst_syms_count): Add missing variable type. By change, the compiler 1157 was defaulting to int, which seems a good choice. Fixes a compilation 1158 warning. 1159 (pst_syms_size): Likewise. 1160 11612002-12-02 J. Brobecker <brobecker@gnat.com> 1162 1163 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init). 1164 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed 1165 later to set the proper gdbarch methods depending on the osabi. 1166 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h. 1167 11682002-12-02 J. Brobecker <brobecker@gnat.com> 1169 1170 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM. 1171 * osabi.c (gdb_osabi_name): Add strings images for the two new 1172 enum values. 1173 (generic_elf_osabi_sniffer): Handle HPUX objfiles. 1174 11752002-12-02 Andrew Cagney <ac131313@redhat.com> 1176 1177 * MAINTAINERS (Java): Global maintainers are responible for Java. 1178 (Past Maintainers): Mention both Anthony Green and Per Bothner as 1179 part Java maintainers. 1180 11812002-12-02 J. Brobecker <brobecker@gnat.com> 1182 1183 * xcoffread.c (read_symbol_lineno): Replace boolean by int. 1184 Fixes a compilation failure on AiX. 1185 11862002-12-02 J. Brobecker <brobecker@gnat.com> 1187 1188 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining 1189 why aix-thread.o is not listed. 1190 11912002-12-01 Andrew Cagney <ac131313@redhat.com> 1192 1193 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename 1194 PC_IN_CALL_DUMMY. Change to predicate. Always allow call. 1195 * gdbarch.h, gdbarch.c: Re-generate. 1196 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update. 1197 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update. 1198 * config/pa/tm-hppa.h, frame.h: Update. 1199 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update. 1200 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update. 1201 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update. 1202 * cris-tdep.c, alpha-tdep.c: Update. 1203 * frame.c (set_unwind_by_pc, create_new_frame): Use either 1204 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame. 1205 (get_prev_frame): Ditto. 1206 12072002-11-30 Andrew Cagney <cagney@redhat.com> 1208 1209 * exec.c (xfer_memory): Replace boolean with int. 1210 * p-exp.y: Use 0 instead of false. 1211 * corelow.c (gdb_check_format): Change return type to int from 1212 boolean. 1213 * utils.c: Don't include <curses.h> or <term.h> first. 1214 12152002-11-29 Stephane Carrez <stcarrez@nerim.fr> 1216 1217 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove. 1218 (m68hc11_register_byte): Remove. 1219 (m68hc11_gdbarch_init): Don't set the above. 1220 12212002-11-29 Andrew Cagney <cagney@redhat.com> 1222 1223 * remote-mips.c (mips_initialize): Force a selected frame rebuild 1224 by calling get_selected_frame. 1225 * ocd.c (ocd_start_remote): Use get_selected frame instead of 1226 set_current_frame, create_new_frame, select_frame and 1227 get_current_frame. 1228 * remote-e7000.c (e7000_start_remote): Ditto. 1229 * remote-mips.c (common_open): Ditto 1230 * remote-rdp.c (remote_rdp_open): Ditto. 1231 12322002-11-29 Andreas Schwab <schwab@suse.de> 1233 1234 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc) 1235 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args) 1236 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue) 1237 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use 1238 read_memory_unsigned_integer instead of read_memory_integer when 1239 dealing with addresses and instruction opcodes. 1240 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 1241 (m68k_linux_frame_saved_pc): Likewise. 1242 12432002-11-29 Andrew Cagney <ac131313@redhat.com> 1244 1245 * stack.c (selected_frame, select_frame): Move from here ... 1246 * frame.c (selected_frame, select_frame): ... to here. Include 1247 "language.h". 1248 * Makefile.in (frame.o): Update dependencies. 1249 * frame.c (get_selected_frame): New function. 1250 * frame.h (get_selected_frame): Declare. 1251 (deprecated_selected_frame): Rename selected_frame. 1252 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update. 1253 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update. 1254 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update. 1255 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update. 1256 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update. 1257 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update. 1258 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update. 1259 * z8k-tdep.c, cli/cli-cmds.c: Update. 1260 12612002-11-29 Andrew Cagney <ac131313@redhat.com> 1262 1263 * frame.h (get_selected_block): Add comments. 1264 12652002-11-28 Andrew Cagney <ac131313@redhat.com> 1266 1267 * frame.c (pc_notcurrent): New function. 1268 (find_frame_sal): New function. 1269 * frame.h (find_frame_sal): Declare. 1270 (struct symtab_and_line): Add opaque declaration. 1271 * stack.c (print_frame_info_base): Use find_frame_sal instead of 1272 find_pc_line. 1273 (frame_info): Ditto. 1274 * ada-lang.c (find_printable_frame): Ditto. 1275 12762002-11-28 J. Brobecker <brobecker@gnat.com> 1277 1278 * configure.in: Check that the pthdebug library is recent enough 1279 before enabling thread support on native AiX. 1280 * configure: Regenerate. 1281 1282 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o 1283 from the list of object files as it is now appended by configure 1284 if thread support is enabled. 1285 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure 1286 if thread support is enabled. 1287 12882002-11-28 Andrew Cagney <cagney@redhat.com> 1289 1290 * stack.c (get_selected_block): In-line get_current_block. 1291 * frame.h (get_current_block): Delete declaration. 1292 * blockframe.c (get_current_block): Delete function. 1293 12942002-11-28 Andrew Cagney <ac131313@redhat.com> 1295 1296 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename 1297 USE_GENERIC_DUMMY_FRAMES. 1298 * gdbarch.h, gdbarch.c: Regenerate. 1299 * valops.c, frame.c: Update. 1300 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update. 1301 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update. 1302 * config/pa/tm-hppa.h, blockframe.c: Update. 1303 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto. 1304 * m68k-tdep.c, alpha-tdep.c: Ditto. 1305 1306 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1. 1307 * mips-tdep.c: Ditto. 1308 13092002-11-27 Andrew Cagney <ac131313@redhat.com> 1310 1311 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT. 1312 (USE_GENERIC_DUMMY_FRAMES): Default to true. 1313 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy. 1314 * gdbarch.c, gdbarch.h: Re-generate. 1315 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition. 1316 (CALL_DUMMY_LOCATION): Delete macro definition. 1317 (PC_IN_CALL_DUMMY): Delete macro definitions. 1318 1319 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy, 1320 default is already generic_pc_in_call_dummy. 1321 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto. 1322 * v850-tdep.c (v850_gdbarch_init): Ditto. 1323 * sh-tdep.c (sh_gdbarch_init): Ditto. 1324 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto. 1325 * mips-tdep.c (mips_gdbarch_init): Ditto. 1326 * mcore-tdep.c (mcore_gdbarch_init): Ditto. 1327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto. 1328 * ia64-tdep.c (ia64_gdbarch_init): Ditto. 1329 * h8300-tdep.c (h8300_gdbarch_init): Ditto. 1330 * d10v-tdep.c (d10v_gdbarch_init): Ditto. 1331 * avr-tdep.c (avr_gdbarch_init): Ditto. 1332 1333 * arm-tdep.c (arm_gdbarch_init): Do not set 1334 use_generic_dummy_frames, default is already 1. 1335 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto. 1336 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto. 1337 * v850-tdep.c (v850_gdbarch_init): Ditto. 1338 * sh-tdep.c (sh_gdbarch_init): Ditto. 1339 * s390-tdep.c (s390_gdbarch_init): Ditto. 1340 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto. 1341 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. 1342 * mips-tdep.c (mips_gdbarch_init): Ditto. 1343 * mcore-tdep.c (mcore_gdbarch_init): Ditto. 1344 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto. 1345 * ia64-tdep.c (ia64_gdbarch_init): Ditto. 1346 * i386-tdep.c (i386_gdbarch_init): Ditto. 1347 * h8300-tdep.c (h8300_gdbarch_init): Ditto. 1348 * frv-tdep.c (frv_gdbarch_init): Ditto. 1349 * d10v-tdep.c (d10v_gdbarch_init): Ditto. 1350 * cris-tdep.c (cris_gdbarch_init): Ditto. 1351 * avr-tdep.c (avr_gdbarch_init): Ditto. 1352 1353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set 1354 call_dummy_location, default is already AT_ENTRY_POINT. 1355 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto. 1356 * v850-tdep.c (v850_gdbarch_init): Ditto. 1357 * sparc-tdep.c (sparc_gdbarch_init): Ditto. 1358 * sh-tdep.c (sh_gdbarch_init): Ditto. 1359 * s390-tdep.c (s390_gdbarch_init): Ditto. 1360 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto. 1361 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. 1362 * mips-tdep.c (mips_gdbarch_init): Ditto. 1363 * mcore-tdep.c (mcore_gdbarch_init): Ditto. 1364 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto. 1365 * ia64-tdep.c (ia64_gdbarch_init): Ditto. 1366 * i386-tdep.c (i386_gdbarch_init): Ditto. 1367 * h8300-tdep.c (h8300_gdbarch_init): Ditto. 1368 * frv-tdep.c (frv_gdbarch_init): Ditto. 1369 * d10v-tdep.c (d10v_gdbarch_init): Ditto. 1370 * cris-tdep.c (cris_gdbarch_init): Ditto. 1371 * avr-tdep.c (avr_gdbarch_init): Ditto. 1372 * arm-tdep.c (arm_gdbarch_init): Ditto. 1373 * alpha-tdep.c (alpha_gdbarch_init): Ditto. 1374 13752002-11-28 Andrew Cagney <cagney@redhat.com> 1376 1377 * frame.h: Update comments on set_current_frame, create_new_frame, 1378 flush_cached_frames, reinit_frame_cache, select_frame and 1379 selected_frame. 1380 13812002-11-27 Andrew Cagney <cagney@redhat.com> 1382 1383 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use 1384 deprecated pc_in_call_dummy function. 1385 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto. 1386 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto. 1387 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto. 1388 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto. 1389 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto. 1390 13912002-11-26 Martin M. Hunt <hunt@redhat.com> 1392 1393 * Makefile.in: Remove Tix dependencies. 1394 * acinclude.m4: Ditto. 1395 * aclocal.m4: Ditto. 1396 * configure.in: Ditto. 1397 * configure: Regenerated. 1398 13992002-11-26 Andrew Cagney <ac131313@redhat.com> 1400 1401 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name. 1402 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto. 1403 * gdbarch.c: Re-generate. 1404 14052002-11-26 Andrew Cagney <ac131313@redhat.com> 1406 1407 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK. 1408 (USE_GENERIC_DUMMY_FRAMES): Define as zero. 1409 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack. 1410 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as 1411 pc_in_call_dummy_at_entry_point. 1412 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK. 1413 (USE_GENERIC_DUMMY_FRAMES): Define as zero. 1414 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack. 1415 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine. 1416 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as 1417 pc_in_call_dummy_on_stack. 1418 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as 1419 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack. 1420 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK. 1421 (USE_GENERIC_DUMMY_FRAMES): Define as zero. 1422 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack. 1423 14242002-11-26 Andrew Cagney <ac131313@redhat.com> 1425 1426 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename 1427 pc_in_call_dummy_before_text_end 1428 (deprecated_pc_in_call_dummy_after_text_end): Rename 1429 pc_in_call_dummy_after_text_end. 1430 (deprecated_pc_in_call_dummy_on_stack): Rename 1431 pc_in_call_dummy_on_stack. 1432 (deprecated_pc_in_call_dummy_at_entry_point): Rename 1433 pc_in_call_dummy_at_entry_point. 1434 * m68k-tdep.c (m68k_gdbarch_init): Update. 1435 * s390-tdep.c (s390_gdbarch_init): Update. 1436 * x86-64-tdep.c (x86_64_gdbarch_init): Update. 1437 * vax-tdep.c (vax_gdbarch_init): Update. 1438 * sparc-tdep.c (sparc_gdbarch_init): Update. 1439 * ns32k-tdep.c (ns32k_gdbarch_init): Update. 1440 * mn10300-tdep.c (mn10300_gdbarch_init): Update. 1441 * i386-tdep.c (i386_gdbarch_init): Update. 1442 * frv-tdep.c (frv_gdbarch_init): Update. 1443 * cris-tdep.c (cris_gdbarch_init): Update. 1444 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update. 1445 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end) 1446 (deprecated_pc_in_call_dummy_after_text_end) 1447 (deprecated_pc_in_call_dummy_on_stack) 1448 (deprecated_pc_in_call_dummy_at_entry_point): Update. 1449 * alpha-tdep.c (alpha_gdbarch_init): Update. 1450 14512002-11-25 Daniel Jacobowitz <drow@mvista.com> 1452 1453 * acconfig.h (HAVE_PREAD64): Add. 1454 * configure.in: Check for pread64. 1455 * config.in: Regenerated. 1456 * configure: Regenerated. 1457 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory. 1458 * linux-proc.c (linux_proc_xfer_memory): New function. 1459 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype. 1460 14612002-11-25 David Carlton <carlton@math.stanford.edu> 1462 1463 * dwarf2read.c (scan_partial_symbols): Descend into namespace 1464 pdi's with no name. 1465 14662002-11-25 Andrew Cagney <ac131313@redhat.com> 1467 1468 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5 1469 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>. 1470 14712002-11-25 Jim Blandy <jimb@redhat.com> 1472 1473 * symfile.c (init_objfile_sect_indices): New function. 1474 (default_symfile_offsets): Move the section-index-initializing 1475 stuff into init_objfile_sect_indices, and call that. 1476 1477 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro. 1478 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS. 1479 1480 * symfile.c (syms_from_objfile): Adjust indentation. 1481 1482 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty 1483 || info_verbose isn't true. 1484 14852002-11-24 Andrew Cagney <ac131313@redhat.com> 1486 1487 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change 1488 default to get_frame_base. 1489 * gdbarch.h, gdbarch.c: Regenerate. 1490 * arch-utils.c (default_frame_address): Delete function. 1491 * arch-utils.h (default_frame_address): Delete declaration 1492 14932002-11-24 Pierre Muller <muller@ics.u-strasbg.fr> 1494 1495 * varobj.c (find_frame_addr_in_frame_chain): 1496 Use get_frame_base instead of FRAME_FP, 1497 obvious fix. 1498 14992002-11-19 Andrew Cagney <ac131313@redhat.com> 1500 1501 * frame.h (FRAME_FP): Delete macro. 1502 (get_frame_base): New function declaration. 1503 * frame.c (get_frame_base): New function. 1504 (get_frame_id): Use ->frame. 1505 (frame_find_by_id): Rewrite to use get_frame_id. 1506 * blockframe.c: Use get_frame_base instead of FRAME_FP. 1507 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto. 1508 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto. 1509 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto. 1510 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto. 1511 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto. 1512 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto. 1513 15142002-11-24 Andrew Cagney <ac131313@redhat.com> 1515 1516 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register. 1517 15182002-11-24 Andrew Cagney <ac131313@redhat.com> 1519 1520 * frame.c (set_unwind_by_pc): Revert change below, use 1521 PC_IN_CALL_DUMMY. 1522 (get_prev_frame): Ditto. 1523 15242002-11-24 Andrew Cagney <ac131313@redhat.com> 1525 1526 * dummy-frame.c (pc_in_dummy_frame): New function. 1527 (generic_pc_in_call_dummy): Call pc_in_dummy_frame. 1528 (find_dummy_frame): Update comment. 1529 (generic_pop_current_frame): Use get_frame_type. 1530 * dummy-frame.h (pc_in_dummy_frame): Declare. 1531 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame. 1532 (create_new_frame): Use pc_in_dummy_frame. 1533 (get_prev_frame): Use pc_in_dummy_frame. 1534 (frame_saved_regs_register_unwind): Use get_prev_frame. 1535 (deprecated_generic_get_saved_register): Use get_prev_frame. 1536 15372002-11-23 Andrew Cagney <ac131313@redhat.com> 1538 1539 * blockframe.c (find_frame_addr_in_frame_chain): Move function 1540 from here ... 1541 * varobj.c (find_frame_addr_in_frame_chain): ... to here. 1542 (varobj_create): Note that frame ID should be used. 1543 * frame.h (find_frame_addr_in_frame_chain): Delete declaration. 1544 15452002-11-23 Andrew Cagney <ac131313@redhat.com> 1546 1547 * breakpoint.c: Include "gdb_assert.h". 1548 (deprecated_frame_in_dummy): Assert that generic dummy frames are 1549 not being used. 1550 * Makefile.in (breakpoint.o): Update dependencies. 1551 * ada-lang.c (find_printable_frame): Use get_frame_type instead of 1552 deprecated_frame_in_dummy. 1553 * stack.c (print_frame_info_base): Ditto. 1554 (frame_info): Ditto. 1555 (print_frame_info_base): Ditto. Delete dead code. 1556 15572002-11-23 Andreas Schwab <schwab@suse.de> 1558 1559 * Makefile.in (m68k_tdep_h): Define. 1560 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o) 1561 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h). 1562 * m68k-tdep.c: Move register number enum ... 1563 * m68k-tdep.h: ... to this new file and rename the constants from 1564 E_* to M68K_*. All uses changed. 1565 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions. 1566 * abug-rom.c: Include "m68k-tdep.h". Use 1567 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM. 1568 * cpu32bug-rom.c: Likewise. 1569 * dbug-rom.c: Likewise. 1570 * m68k-tdep.c: Likewise. 1571 * m68klinux-nat.c: Likewise. 1572 * remote-est.c: Likewise. 1573 * rom68k-rom.c: Likewise. 1574 * config/m68k/tm-linux.h: Likewise. 1575 15762002-11-23 Andrew Cagney <ac131313@redhat.com> 1577 1578 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic 1579 dummy frame initialization code. 1580 * mips-tdep.c (mips_gdbarch_init): Ditto. 1581 15822002-11-22 Christopher Faylor <cgf@redhat.com> 1583 1584 * win32-nat.c (child_attach): Reset saw_create counter or subsequent 1585 attach will hang. 1586 15872002-11-22 Andrew Cagney <ac131313@redhat.com> 1588 1589 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default 1590 to default_frame_address. 1591 * gdbarch.h, gdbarch.c: Re-generate. 1592 1593 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address 1594 or frame_locals_address to default_frame_address. 1595 * m68k-tdep.c (m68k_gdbarch_init): Update. 1596 * i386-tdep.c (i386_gdbarch_init): Update. 1597 * frv-tdep.c (frv_gdbarch_init): Update. 1598 * sh-tdep.c (sh_gdbarch_init): Update. 1599 * v850-tdep.c (v850_gdbarch_init): Update. 1600 * sparc-tdep.c (sparc_gdbarch_init): Update. 1601 * mips-tdep.c (mips_gdbarch_init): Update. 1602 * mn10300-tdep.c (mn10300_gdbarch_init): Update. 1603 * x86-64-tdep.c (x86_64_gdbarch_init): Update. 1604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. 1605 1606 * cris-tdep.c (cris_frame_args_address): Delete function. 1607 (cris_frame_locals_address): Delete function. 1608 (cris_gdbarch_init): Do not set frame_args_address or 1609 frame_locals_address. 1610 16112002-11-22 Michael Snyder <msnyder@redhat.com> 1612 1613 * thread-db.c (thread_db_load): Tell the user what's going on 1614 if dlopen fails on libthread_db. 1615 16162002-11-23 Andreas Schwab <schwab@suse.de> 1617 1618 * m68k-tdep.c (m68k_register_virtual_type): Use architecture 1619 invariant return values. 1620 16212002-11-22 Andreas Schwab <schwab@suse.de> 1622 1623 * valops.c (value_slice): Move declaration of `offset' to avoid 1624 warning. 1625 16262002-11-22 Christopher Faylor <cgf@redhat.com> 1627 1628 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning. 1629 (struct so_stuff): Add end_addr field. 1630 (register_loaded_dll): Calculate and store end address of loaded dll. 1631 (solib_address): New function. 1632 (child_solib_loaded_library_pathname): Pass carefully constructed 1633 section info to safe_symbol_file_add rather than ignoring it. 1634 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a 1635 DLL is loaded. 1636 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs. 1637 (child_create_inferior): Fix a compiler warning. 1638 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro. 1639 (solib_address): Declare new function. 1640 16412002-11-22 Andreas Schwab <schwab@suse.de> 1642 1643 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC 1644 and FPS registers. 1645 16462002-11-21 Daniel Jacobowitz <drow@mvista.com> 1647 1648 * maint.c (_initialize_maint_cmds): Fix typo. From 1649 Francesco Potorti` <pot@gnu.org>. 1650 16512002-11-21 Andrew Cagney <cagney@redhat.com> 1652 1653 * mips-tdep.c (mips_dump_tdep): Delete references to 1654 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC. 1655 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro. 1656 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro. 1657 * printcmd.c (build_address_symbolic): Delete calls to 1658 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC. 1659 (address_info): Ditto. 1660 Fix PR gdb/773. 1661 16622002-11-19 Klee Dienes <kdienes@apple.com> 1663 Adam Fedor <fedor@gnu.org> 1664 1665 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add 1666 the ability to explicitly specify the quote characters and word 1667 break characters; if NULL is specified for either, use the old 1668 behavior of using the characters used by the completer. 1669 (skip_chars): New function. Convenience wrapper around 1670 skip_quoted_chars to provide the original skip_chars behavior. 1671 * completer.h (skip_quoted_chars): Add prototype. 1672 16732002-11-19 Andrew Cagney <ac131313@redhat.com> 1674 1675 Problems reported by Paul Eggert. 1676 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527. 1677 16782002-11-19 Andreas Schwab <schwab@suse.de> 1679 1680 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 1681 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 1682 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 1683 (m68k_linux_frame_saved_pc): Move to ... 1684 * m68klinux-tdep.c: ... here. New file. 1685 * Makefile.in (m68klinux-tdep.o): Add dependencies. 1686 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o. 1687 16882002-11-19 Adam Fedor <fedor@gnu.org> 1689 1690 * objc-exp.y: Revert to old skip_quoted usage. 1691 16922002-11-19 Adam Fedor <fedor@gnu.org> 1693 1694 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c. 1695 (objc_lang_h): Define. 1696 (YYFILES): Add objc-exp.tab.c. 1697 (local-maintainer-clean): Remove objc-exp.tab.c. 1698 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target. 1699 17002002-11-19 Pierre Muller <muller@ics.u-strasbg.fr> 1701 1702 * p-exp.y (typecast rule): Add automatic dereference of 1703 pascal classes if needed. 1704 (THIS): Set current_type. 1705 Automatically dereference pascal classes. 1706 (typebase rule): Add ^typebase recognition. 1707 17082002-11-18 Adam Fedor <fedor@gnu.org> 1709 1710 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING, 1711 OP_OBJC_MSGCALL, and OP_OBJC_SELF. 1712 (op_name): Handle OP_OBJC_SELF. 1713 * Makefile.in (expprint.o): Add additional depends. 1714 17152002-11-18 Adam Fedor <fedor@gnu.org> 1716 1717 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL, 1718 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF. 1719 * parse.c (length_of_subexp, prefixify_subexp): Likewise. 1720 * objc-exp.y: Likewise. 1721 17222002-11-18 Adam Fedor <fedor@gnu.org> 1723 1724 * parser-defs.h: (struct objc_class_str): New structure 1725 for parsing ObjC classes. 1726 17272002-11-18 Andrew Cagney <ac131313@redhat.com> 1728 1729 * stack.c (frame_relative_level): Copy function from here ... 1730 * frame.c (frame_relative_level): ...to here. 1731 17322002-11-18 Andrew Cagney <ac131313@redhat.com> 1733 1734 * frame.h (enum frame_type): Define. 1735 (get_frame_type): Declare. 1736 (struct frame_info): Add field `type'. Delete field 1737 signal_handler_caller. 1738 (deprecated_set_frame_signal_handler_caller): Declare. 1739 * frame.c (get_frame_type): New function. 1740 (deprecated_set_frame_type): New function. 1741 (create_new_frame): Set the frame's type. 1742 (get_prev_frame): Similar. 1743 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller. 1744 * s390-tdep.c: Ditto. 1745 * m68klinux-nat.c: Ditto. 1746 * ns32k-tdep.c: Ditto. 1747 * x86-64-linux-tdep.c: Ditto. 1748 * vax-tdep.c: Ditto. 1749 * rs6000-tdep.c: Ditto. 1750 * ppc-linux-tdep.c: Ditto. 1751 * i386-interix-tdep.c: Ditto. 1752 * mips-tdep.c: Ditto. 1753 * m68k-tdep.c: Ditto. 1754 * hppa-tdep.c: Ditto. 1755 * ia64-tdep.c: Ditto. 1756 * cris-tdep.c: Ditto. 1757 * arm-tdep.c: Ditto. 1758 * alpha-tdep.c: Ditto. 1759 * i386-tdep.c: Ditto. 1760 * stack.c: Ditto. 1761 * ada-lang.c: Ditto. 1762 * blockframe.c: Update. 1763 * i386-interix-tdep.c (i386_interix_back_one_frame): Use 1764 deprecated_set_frame_type instead of signal_handler_caller. 1765 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto. 1766 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto. 1767 * breakpoint.h: Delete FIXME suggesting get_frame_type. 1768 17692002-11-18 Klee Dienes <kdienes@apple.com> 1770 1771 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h. 1772 17732002-11-18 Klee Dienes <kdienes@apple.com> 1774 1775 * buildsym.c (pop_context): Add comment. 1776 17772002-11-18 Klee Dienes <kdienes@apple.com> 1778 1779 * buildsym.h (pop_context): Convert to function, defined in 1780 buildsym.c. 1781 * buildsym.c: Include gdb_assert.h. 1782 (pop_context): Implement as C function. Add check for stack 1783 underflow. 1784 * dbxread.c (process_one_symbol): Complain and stop processing 1785 that symbol if we are already at the top of the context stack for 1786 a function-end N_FUN (this would imply an umatched RBRAC). Ditto 1787 when processing N_RBRAC. 1788 17892002-11-16 Daniel Jacobowitz <drow@mvista.com> 1790 1791 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't 1792 define. 1793 (struct target_waitstatus): Add opaque definition. 1794 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior. 1795 * exec.c (init_exec_ops): Likewise. 1796 * fork-child.c (clone_and_follow_inferior): Remove. 1797 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove. 1798 * inferior.h (clone_and_follow_inferior): Remove prototype. 1799 * infrun.c (follow_fork_mode_both): Remove. 1800 (follow_fork_mode_kind_names): Remove commented out "both". 1801 (follow_inferior_fork): Remove follow_fork_mode_both support. 1802 * inftarg.c (child_clone_and_follow_inferior): Remove. 1803 (child_post_follow_inferior_by_clone): Remove. 1804 (init_child_ops): Don't set to_clone_and_follow_inferior 1805 or to_post_follow_inferior_by_clone. 1806 * target.c (default_clone_and_follow_inferior): Remove. 1807 (cleanup_target): Don't set to_clone_and_follow_inferior 1808 or to_post_follow_inferior_by_clone. 1809 (find_default_clone_and_follow_inferior): Remove. 1810 (init_dummy_target): Don't set to_clone_and_follow_inferior. 1811 (debug_to_clone_and_follow_inferior): Remove. 1812 (debug_to_post_follow_inferior_by_clone): Remove. 1813 (setup_target_debug): Don't set to_clone_and_follow_inferior 1814 or to_post_follow_inferior_by_clone. 1815 * target.h (struct target_ops): Remove to_clone_and_follow_inferior 1816 and to_post_follow_inferior_by_clone. 1817 (child_clone_and_follow_inferior): Remove prototype. 1818 (child_post_follow_inferior_by_clone): Remove prototype. 1819 (target_clone_and_follow_inferior): Remove macro. 1820 (target_post_follow_inferior_by_clone): Remove macro. 1821 (find_default_clone_and_follow_inferior): Remove prototype. 1822 18232002-11-16 Daniel Jacobowitz <drow@mvista.com> 1824 1825 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked, 1826 inferior_has_vforked, and inferior_has_execd instead of 1827 target_has_forked, target_has_vforked, and target_has_execd. 1828 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED) 1829 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define. 1830 (CHILD_WAIT): Define. 1831 (child_wait): Add prototype. 1832 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked. 1833 Add prototype. 1834 (hpux_has_vforked): Likewise, from child_has_vforked. 1835 (hpux_has_execd): Likewise, from child_has_execd. 1836 (hpux_has_syscall_event): Likewise, from child_has_syscall_event. 1837 (not_same_real_pid, child_wait): New, copied from inftarg.c. 1838 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd, 1839 and hpux_has_syscall_event instead of the target hooks. 1840 * infrun.c (inferior_has_forked, inferior_has_vforked) 1841 (inferior_has_execd): New functions. 1842 * inftarg.c (not_same_real_pid): Remove. 1843 (child_wait): Remove references to not_same_real_pid, 1844 target_has_forked, target_has_vforked, target_has_execd, 1845 and target_has_syscall_event. 1846 (child_has_forked, child_has_vforked, child_has_execd) 1847 (child_has_syscall_event): Remove. 1848 (init_child_ops): Remove references to child_has_forked, 1849 child_has_vforked, child_has_execd, and child_has_syscall_event. 1850 * infttrace.c (hpux_has_forked): Rename from child_has_forked. 1851 (hpux_has_vforked): Likewise, from child_has_vforked. 1852 (hpux_has_execd): Likewise, from child_has_execd. 1853 (hpux_has_syscall_event): Likewise, from child_has_syscall_event. 1854 * target.c (cleanup_target): Remove references to 1855 to_has_forked, to_has_vforked, to_has_execd, and 1856 to_has_syscall_event. 1857 (update_current_target): Likewise. 1858 (setup_target_debug): Likewise. 1859 (debug_to_has_forked): Remove. 1860 (debug_to_has_vforked): Remove. 1861 (debug_to_has_execd): Remove. 1862 (debug_to_has_syscall_event): Remove. 1863 * target.h (struct target_ops): Remove to_has_forked. 1864 to_has_vforked, to_has_execd, and to_has_syscall_event. 1865 (child_has_forked, child_has_vforked, child_has_execd) 1866 (child_has_syscall_event): Remove prototypes. 1867 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add 1868 prototypes. 1869 (target_has_forked, target_has_vforked, target_has_execd) 1870 (target_has_syscall_event): Remove macros. 1871 18722002-11-16 Daniel Jacobowitz <drow@mvista.com> 1873 1874 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove. 1875 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove. 1876 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec. 1877 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove. 1878 * target.c (cleanup_target): Remove reference to 1879 to_can_follow_vfork_prior_to_exec. 1880 (update_current_target): Likewise. 1881 (debug_to_can_follow_vfork_prior_to_exec): Remove. 1882 (setup_target_debug): Remove reference to 1883 to_can_follow_vfork_prior_to_exec. 1884 * target.h (struct target_ops): Remove 1885 to_can_follow_vfork_prior_to_exec. 1886 (child_can_follow_vfork_prior_to_exec): Remove prototype. 1887 (target_can_follow_vfork_prior_to_exec): Remove definition. 1888 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't 1889 define. 1890 * infrun.c (follow_vfork_when_exec): Remove. 1891 (follow_inferior_fork): Remove references to follow_vfork_when_exec. 1892 (follow_exec): Likewise. 1893 (handle_inferior_event): Likewise. 1894 (keep_going): Likewise. 1895 18962002-11-15 Andrew Cagney <cagney@redhat.com> 1897 1898 * frame.c (generic_unwind_get_saved_register): Make static. 1899 * frame.h (generic_unwind_get_saved_register): Delete declaration. 1900 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register, 1901 defaults to generic_unwind_get_saved_register. 1902 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. 1903 * h8300-tdep.c (h8300_gdbarch_init): Ditto. 1904 * frv-tdep.c (frv_gdbarch_init): Ditto. 1905 * i386-tdep.c (i386_gdbarch_init): Ditto. 1906 * s390-tdep.c (s390_gdbarch_init): Ditto. 1907 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto. 1908 * v850-tdep.c (v850_gdbarch_init): Ditto. 1909 * mcore-tdep.c (mcore_gdbarch_init): Ditto. 1910 * d10v-tdep.c (d10v_gdbarch_init): Ditto. 1911 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro. 1912 19132002-11-15 Andrew Cagney <cagney@redhat.com> 1914 1915 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from 1916 i386-tdep.c. 1917 19182002-11-15 Andrew Cagney <cagney@redhat.com> 1919 1920 * frame.h (sigtramp_saved_pc): Delete declaration. 1921 * blockframe.c (sigtramp_saved_pc): Delete function. 1922 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function. 1923 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc. 1924 * vax-tdep.c (vax_sigtramp_saved_pc): New function. 1925 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc. 1926 19272002-11-15 Andrew Cagney <ac131313@redhat.com> 1928 1929 * frame.c (frame_pc_unwind): New function. 1930 (frame_saved_regs_pc_unwind): New function. 1931 (frame_register_unwind): Pass unwind_cache instead of 1932 register_unwind_cache. 1933 (set_unwind_by_pc): Add unwind_pc parameter, set. 1934 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc. 1935 (get_prev_frame): Ditto. 1936 * frame.h (frame_pc_unwind_ftype): Declare. 1937 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and 1938 pc_unwind_cache. Rename register_unwind_cache to unwind_cache. 1939 (frame_pc_unwind): Declare. 1940 * dummy-frame.c (dummy_frame_pc_unwind): New function. 1941 (struct dummy_frame): Add comment mentioning that values are for 1942 previous frame. 1943 * dummy-frame.h (dummy_frame_pc_unwind): Declare. 1944 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind. 1945 (generic_file_frame_chain_valid): Ditto. 1946 * stack.c (frame_info): Ditto. 1947 19482002-11-15 David Carlton <carlton@math.stanford.edu> 1949 1950 * linespec.c (locate_first_half): New function. 1951 (decode_line_1): Move code into locate_first_half. 1952 19532002-11-15 Andrew Cagney <ac131313@redhat.com> 1954 1955 * complaints.h: Add comment explaining how to eliminate a 1956 deprecated_complain call. 1957 * complaints.h: Fix spelling errors. 1958 19592002-11-15 David Carlton <carlton@math.stanford.edu> 1960 1961 * printcmd.c: Remove #include "disasm.h". 1962 19632002-11-14 Andrew Cagney <ac131313@redhat.com> 1964 1965 * frame.h: Move the most relevant interface functions to the start 1966 of the file. 1967 19682002-11-14 Andrew Cagney <ac131313@redhat.com> 1969 1970 * regcache.h (deprecated_registers): Rename registers. 1971 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update. 1972 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update. 1973 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update. 1974 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update. 1975 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update. 1976 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update. 1977 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update. 1978 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update. 1979 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update. 1980 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update. 1981 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update. 1982 * v850ice.c: Update. 1983 1984Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com> 1985 1986 * utils.c (gdb_realpath): Add comment mentioning realpath with a 1987 NULL buffer. 1988 19892002-11-13 Andrew Cagney <cagney@redhat.com> 1990 1991 * regcache.h (deprecated_read_register_bytes): Rename 1992 read_register_bytes. 1993 (deprecated_write_register_bytes): Rename write_register_bytes. 1994 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update. 1995 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update. 1996 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update. 1997 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update. 1998 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update. 1999 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update. 2000 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update. 2001 * config/nm-m3.h, config/h8500/tm-h8500.h: Update. 2002 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update. 2003 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update. 2004 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update. 2005 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update. 2006 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update. 2007 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update. 2008 20092002-11-13 Jim Blandy <jimb@redhat.com> 2010 2011 * findvar.c (read_var_value): Doc fix. 2012 20132002-11-13 Andrew Cagney <cagney@redhat.com> 2014 2015 * regcache.c (struct regcache): Replace passthough_p with 2016 readonly_p. 2017 (regcache_xmalloc): Initialize readonly_p. 2018 (build_regcache): Initialize readonly_p. 2019 (regcache_save): New function. 2020 (regcache_restore): New function. 2021 (regcache_cpy): Re-implement using regcache_save and 2022 regcache_restore. 2023 (regcache_raw_read): Update. 2024 (regcache_cooked_read): When a read-only cache, checked for cached 2025 pseudo register values. 2026 (regcache_raw_write): Assert that the cache is not read-only. 2027 Remove code handling a non-passthrough cache. 2028 * regcache.h (regcache_save): Declare. 2029 (regcache_restore): Declare. 2030 20312002-11-13 Andrew Cagney <cagney@redhat.com> 2032 2033 * regcache.c (struct regcache_descr): Add fields 2034 sizeof_cooked_registers and sizeof_cooked_register_valid_p. 2035 (init_legacy_regcache_descr): Compute the size of a cooked 2036 register cache and then assign that to sizeof_raw_registers. Set 2037 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p 2038 (init_legacy_regcache_descr): Ditto. 2039 20402002-11-13 Andrew Cagney <cagney@redhat.com> 2041 2042 * regcache.c (register_buffer): Move to near start of file, update 2043 description. 2044 (regcache_raw_read): Use. 2045 (regcache_raw_write): Use. 2046 (struct regcache): Rename raw_registers to registers and 2047 raw_register_valid_p to register_valid_p. 2048 (regcache_xmalloc): Update. 2049 (regcache_xfree): Update. 2050 (register_buffer): Update. 2051 (regcache_cpy): Update. 2052 (regcache_cpy_no_passthrough): Update. 2053 (regcache_valid_p): Update. 2054 (deprecated_grub_regcache_for_registers): Update. 2055 (deprecated_grub_regcache_for_register_valid): Update. 2056 (set_register_cached): Update. 2057 (regcache_raw_write): Update. 2058 20592002-11-13 Pierre Muller <muller@ics.u-strasbg.fr> 2060 2061 * p-exp.y (name_not_typename): Use copy_name to 2062 set current_type variable for fields of THIS. 2063 20642002-11-12 Daniel Jacobowitz <drow@mvista.com> 2065 2066 * gnu-nat.c (init_gnu_ops): Remove NULL initializations. 2067 * monitor.c (init_base_monitor_ops): Likewise. 2068 * ppc-bdm.c (init_bdm_ppc_ops): Likewise. 2069 * remote-array.c (init_array_ops): Likewise. 2070 * remote-e7000.c (init_e7000_ops): Likewise. 2071 * remote-es.c (init_es1800_ops): Likewise. 2072 (init_es1800_child_ops): Likewise. 2073 * remote-rdp.c (init_remote_rdp_ops): Likewise. 2074 * remote-sim.c (init_gdbsim_ops): Likewise. 2075 * remote-st.c (init_st2000_ops): Likewise. 2076 * sol-thread.c (init_sol_core_ops): Likewise. 2077 (init_sol_thread_ops): Likewise. 2078 * v850ice.c (init_850ice_ops): Likewise. 2079 * win32-nat.c (init_child_ops): Likewise. 2080 * wince.c (init_child_ops): Likewise. 2081 20822002-11-12 Andrew Cagney <ac131313@redhat.com> 2083 2084 * utils.c (gdb_realpath): Make rp a constant pointer. 2085 20862002-11-12 Andrew Cagney <ac131313@redhat.com> 2087 2088 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with 2089 a constant buffer; cannonicalize_file_name(); realpath() with a 2090 pathconf() defined buffer, xstrdup(). 2091 20922002-11-12 Andrew Cagney <ac131313@redhat.com> 2093 2094 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c 2095 to hang2.C; hang3.c to hang3.C. 2096 20972002-11-11 Elena Zannoni <ezannoni@redhat.com> 2098 2099 * findvar.c (read_var_value): Reenable TLS code. 2100 21012002-11-11 Elena Zannoni <ezannoni@redhat.com> 2102 Jim Blandy <jimb@redhat.com> 2103 2104 * gdb_thread_db.h (enum): Add TD_NOTALLOC. 2105 * target.c (update_current_target): Add 2106 to_get_thread_local_address. 2107 * target.h (to_get_thread_local_address): Export. 2108 (target_get_thread_local_address): Define. 2109 (target_get_thread_local_address_p): Define. 2110 * thread-db.c: Include solib-svr4.h. 2111 (td_thr_tls_get_addr_p): Define. 2112 (thread_db_load): Get a pointer to td_thr_tls_get_addr. 2113 (thread_db_get_thread_local_address): New function. 2114 (init_thread_db_ops): Initialize to_get_thread_local_address. 2115 * configure.in: Add test for TD_NOTALLOC in thread_db.h. 2116 * configure: Regenerate. 2117 * config.in: Regenerate. 2118 21192002-11-11 David Carlton <carlton@math.stanford.edu> 2120 2121 * linespec.c (set_flags): New function. 2122 (decode_line_1): Move code into set_flags. 2123 21242002-11-11 David Carlton <carlton@math.stanford.edu> 2125 2126 * linespec.c (decode_line_1): Move chunks of code to separate 2127 functions. 2128 (initialize_defaults): New function. 2129 (decode_indirect): New function. 2130 21312002-11-11 Andrew Cagney <ac131313@redhat.com> 2132 2133 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr 2134 instead of void_code_ptr. 2135 (sigtramp_saved_pc): Ditto. 2136 2137 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's 2138 i386_fp_regnum_p. 2139 21402002-11-10 Daniel Jacobowitz <drow@mvista.com> 2141 2142 * gdbtypes.h (struct main_type): Move artificial flag out of 2143 loc. New member of ``struct field'' named static_kind. Reduce 2144 overloaded meaning of bitsize. 2145 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR) 2146 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise. 2147 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros. 2148 2149 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for 2150 new fields. 2151 (template_to_fixed_record_type, template_to_static_fixed_type) 2152 (to_record_with_fixed_variant_part): Likewise. 2153 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise. 2154 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise. 2155 * dwarfread.c (struct_type, enum_type): Likewise. 2156 * hpread.c (hpread_read_enum_type) 2157 (hpread_read_function_type, hpread_read_doc_function_type) 2158 (hpread_read_struct_type): Likewise. 2159 * mdebugread.c (parse_symbol): Likewise. 2160 21612002-11-10 Andrew Cagney <ac131313@redhat.com> 2162 2163 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy. 2164 * stack.c (print_frame_info_base): Update. 2165 (print_frame_info_base, frame_info): Update. 2166 * sparc-tdep.c (sparc_init_extra_frame_info): Update. 2167 (sparc_frame_saved_pc): Update. 2168 * ada-lang.c (find_printable_frame): Update. 2169 * breakpoint.c (deprecated_frame_in_dummy): Update. 2170 21712002-11-09 Mark Kettenis <kettenis@gnu.org> 2172 2173 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already 2174 defined. 2175 (regmap): Extend to cover all registers. 2176 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE, 2177 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove 2178 definitions. 2179 (fetch_register, sore_register): Simplify. 2180 (old_fetch_inferior_registers, old_store_inferior_registers): 2181 Remove functions. 2182 (cannot_fetch_register, cannot_store_register): Change 2183 implementation to use regmap array to decide which registers 2184 cannot be fetched/stored. This removes $orig_eax from the 2185 registers that cannot be fetched/stored. 2186 (fetch_inferior_registers): Call fetch_register directly instead 2187 of calling old_fetch_inferior_registers. 2188 (store_inferior_registers): Call store_register directly instead 2189 of calling old_store_inferior_registers. 2190 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER. 2191 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER. 2192 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition. 2193 21942002-11-09 Klee Dienes <kdienes@apple.com> 2195 2196 * i387-tdep.c (i387_supply_register): When called with NULL as a 2197 buffer, mark the register as not provided (to mirror the behavior 2198 of supply_register). 2199 (i387_supply_fxsave): Ditto. 2200 (i387_supply_fsave): Ditto (inherits the behavior from 2201 i387_supply_register). 2202 22032002-11-09 Klee Dienes <kdienes@apple.com> 2204 2205 * blockframe.c (sigtramp_saved_pc): Use 2206 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are 2207 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr) 2208 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT). 2209 22102002-11-09 Andrew Cagney <ac131313@redhat.com> 2211 2212 * frame.c (get_prev_frame): Test prev_p to identify a previously 2213 unwound frame. Initialize prev_p. 2214 * frame.h (struct frame_info): Add field prev_p. Expand prev/next 2215 comment. 2216 22172002-11-09 Andrew Cagney <ac131313@redhat.com> 2218 2219 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests 2220 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add 2221 more comments. Zap dead code. 2222 22232002-11-09 Mark Kettenis <kettenis@gnu.org> 2224 2225 * infcmd.c (print_vector_info, print_float_info): Move code that 2226 checks whether the target has any registers and whether there is a 2227 selected frame up, such that it is also used if a target provides 2228 multi-arch definitions of these functions. 2229 22302002-11-08 Andrew Cagney <ac131313@redhat.com> 2231 2232 * Makefile.in (DESTDIR): Define. 2233 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR) 2234 prefix. 2235 2236 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and 2237 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++". 2238 22392002-11-08 Andrew Cagney <ac131313@redhat.com> 2240 2241 * i386-linux-tdep.c: Include "reggroups.h". 2242 (i386_linux_register_reggroup_p): New function. 2243 (i386_linux_init_abi): Set register_reggroup_p to 2244 i386_linux_register_reggroup_p. 2245 * i386-tdep.h (i386_register_reggroup_p): Declare. 2246 * i386-tdep.c: Include "reggroups.h". 2247 (i386_init_reggroups): New function. 2248 (i386_add_reggroups): New function. 2249 (i386_register_reggroup_p): New function. 2250 (i386_sse_reggroup, i386_mmx_reggroup): New variables. 2251 (_initialize_i386_tdep): Call i386_init_reggroups. 2252 (i386_gdbarch_init): Set register_reggroup_p and add in the i386 2253 specific reggroups. 2254 22552002-11-09 Mark Kettenis <kettenis@gnu.org> 2256 2257 * infptrace.c (child_xfer_memory): Make use of the new PT_IO 2258 request that's available in *BSD. 2259 2260 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove. 2261 2262 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of 2263 FDOFF_REGNUM. 2264 22652002-11-08 Andrew Cagney <ac131313@redhat.com> 2266 2267 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind. 2268 * dummy-frame.c (find_dummy_frame): Rename 2269 generic_find_dummy_frame, make static. Return the dummy frame 2270 instead of the regcache. 2271 (generic_find_dummy_frame): Re-implement using find_dummy_frame, 2272 (cached_find_dummy_frame): New function. Use find_dummy_frame. 2273 (dummy_frame_register_unwind): Rename 2274 generic_call_dummy_register_unwind. Use cached_find_dummy_frame. 2275 * dummy-frame.h (dummy_frame_register_unwind): Rename 2276 generic_call_dummy_register_unwind. 2277 22782002-11-08 Mark Kettenis <kettenis@gnu.org> 2279 2280 * config/i386/tm-i386v42mp.h: Remove file. Move its contents, 2281 except the inclusion of "i386/tm-i386.h", to... 2282 * config/i386/nm-i386v42mp.h: ...here. 2283 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h. 2284 22852002-11-08 Andrew Cagney <ac131313@redhat.com> 2286 2287 * Makefile.in (frame.o): Update dependencies. 2288 * blockframe.c (current_frame, frame_obstack_alloc) 2289 (frame_saved_regs_zalloc, get_current_frame) 2290 (set_current_frame, create_new_frame) 2291 (set_unwind_by_pc, get_next_frame) 2292 (flush_cached_frames, reinit_frame_cache) 2293 (frame_saved_regs_register_unwind) 2294 (deprecated_generic_get_saved_register) 2295 (get_prev_frame, get_frame_pc, get_frame_saved_regs) 2296 (_initialize_blockframe): Move frame code from here... 2297 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h", 2298 "annotate.h" and "dummy-frame.h". 2299 (_initialize_frame): New function. 2300 23012002-11-08 Jim Blandy <jimb@redhat.com> 2302 2303 * dwarf2read.c (read_func_scope): Restore list_in_scope properly 2304 when we finish a function a context. 2305 * buildsym.h (outermost_context_p): New macro. 2306 (Bug analyzed by David Edelsohn.) 2307 23082002-11-08 Andrew Cagney <ac131313@redhat.com> 2309 2310 * blockframe.c: Include "dummy-frame.h". 2311 (struct dummy_frame, dummy_frame_stack) 2312 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame) 2313 (generic_pc_in_call_dummy, deprecated_read_register_dummy) 2314 (generic_push_dummy_frame, generic_save_dummy_frame_tos) 2315 (generic_save_call_dummy_addr, generic_pop_current_frame) 2316 (generic_pop_dummy_frame, generic_fix_call_dummy) 2317 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move 2318 dummy frame code from here... 2319 * dummy-frame.c: ...to here. New file. 2320 * dummy-frame.h: New file. 2321 (generic_call_dummy_register_unwind): Declare. 2322 (generic_find_dummy_frame): Declare. 2323 * Makefile.in (SFILES): Add dummy-frame.c. 2324 (dummy-frame.o): Specify dependencies. 2325 (dummy_frame_h): Define. 2326 (COMMON_OBS): Add dummy-frame.o. 2327 (blockframe.o): Update dependencies. 2328 23292002-11-08 Jim Blandy <jimb@redhat.com> 2330 2331 * dwarf2read.c (read_func_scope): Restore local_symbols and 2332 param_symbols after we finish the function context. (Based on a 2333 patch from David Edelsohn.) 2334 23352002-11-08 David Carlton <carlton@math.stanford.edu> 2336 2337 * linespec.c (symbol_found): New function. 2338 (minsym_found): New function. 2339 (decode_line_1): Separate out some code into separate functions. 2340 23412002-11-08 Joel Brobecker <brobecker@gnat.com> 2342 2343 * i386-tdep.c (i386_frameless_signal_p): Make non static for 2344 the benefit of the interix target. 2345 * i386-tdep.h (i386_frameless_signal_p): Declare. 2346 23472002-11-08 Andrew Cagney <ac131313@redhat.com> 2348 2349 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray 2350 declaration that snuck in from change below. 2351 23522002-11-06 Andrew Cagney <cagney@redhat.com> 2353 2354 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update 2355 all callers. 2356 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P. 2357 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P. 2358 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P. 2359 (i386_mxcsr_regnum_p): new function. Use instead of 2360 MXCSR_REGNUM_P. 2361 * i386-tdep.h (SSE_REGNUM_P): Delete macro. 2362 (i386_sse_regnum_p): Declare. 2363 (i386_mxcsr_regnum_p): Declare. 2364 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros. 2365 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare. 2366 (IS_FP_REGNUM): Update definition. 2367 (IS_FPU_CTRL_REGNUM): Update definition.. 2368 (IS_SSE_REGNUM): Update definition.. 2369 * i386v-nat.c (register_u_addr): Update. 2370 * go32-nat.c (fetch_register): Update. 2371 (store_register): Update. 2372 23732002-11-07 Joel Brobecker <brobecker@gnat.com> 2374 2375 Preparation work to convert the hppa targets to multiarch partial. 2376 2377 * hppa-tdep.c: Add new functions replacing macro bodies from 2378 config/pa/tm-hppa.h. These function will be used to initialize 2379 the gdbarch structure. Import some comments from tm-hppa.h, 2380 and place them where appropriate, to avoid loosing them when 2381 we cleanup this file. 2382 (hppa_reg_struct_has_addr): New function. 2383 (hppa_inner_than): New function. 2384 (hppa_stack_align): New function. 2385 (hppa_pc_requires_run_before_use): New function. 2386 (hppa_instruction_nullified): New function. 2387 (hppa_register_byte): New function. 2388 (hppa_register_virtual_type): New function. 2389 (hppa_store_struct_return): New function. 2390 (hppa_cannot_store_register): New function. 2391 (hppa_frame_args_address): New function. 2392 (hppa_frame_locals_address): New function. 2393 (hppa_smash_text_address): New function. 2394 (hppa_coerce_float_to_double): New function. Requires the inclusion 2395 of "language.h". 2396 2397 * Makefile.in (hppa-tdep.o): Add dependency on language.h. 2398 2399 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this 2400 gdbarch-eligible macro to a call to the new associated function 2401 created in hppa-tdep.c. 2402 (INNER_THAN): Likewise. 2403 (STACK_ALIGN): Likewise. 2404 (PC_REQUIRES_RUN_BEFORE_USE): Likewise. 2405 (INSTRUCTION_NULLIFIED): Likewise. 2406 (REGISTER_BYTE): Likewise. 2407 (REGISTER_VIRTUAL_TYPE): Likewise. 2408 (STORE_STRUCT_RETURN): Likewise. 2409 (CANNOT_STORE_REGISTER): Likewise. 2410 (FRAME_ARGS_ADDRESS): Likewise. 2411 (FRAME_LOCALS_ADDRESS): Likewise. 2412 (SMASH_TEXT_ADDRESS): Likewise. 2413 (COERCE_FLOAT_TO_DOUBLE): Likewise. 2414 (ABOUT_TO_RETURN): Delete, as no longer used. 2415 24162002-11-07 Fernando Nasser <fnasser@redhat.com> 2417 2418 * printcmd.c (disassemble_command): Remove obsolete function. 2419 (_initialize_printcmd): Do not create disassemble command here. 2420 * cli/cli-cmds.c (disassemble_command): New function. Implements 2421 disassemble command. 2422 (init_cli_cmds): Create disassemble command here instead. 2423 24242002-11-07 Andrew Cagney <ac131313@redhat.com> 2425 2426 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list. 2427 24282002-11-07 Andrew Cagney <ac131313@redhat.com> 2429 2430 * regcache.h (regcache_cooked_read_using_offset_hack) 2431 (regcache_cooked_write_using_offset_hack): Delete declarations. 2432 (register_changed): Delete declaration. 2433 * regcache.c (regcache_cooked_read_using_offset_hack) 2434 (regcache_cooked_write_using_offset_hack): Delete functions. 2435 (cooked_xfer_using_offset_hack): Delete function. 2436 (register_changed): Delete function. 2437 24382002-11-07 Jim Blandy <jimb@redhat.com> 2439 2440 * macroscope.c: #include "complaints.h". 2441 (sal_macro_scope): Cope with filenames that appear in the symtabs, 2442 but not in the macro table. 2443 * Makefile.in (macroscope.o): Record dependency. 2444 24452002-11-07 Joel Brobecker <brobecker@gnat.com> 2446 2447 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf). 2448 24492002-11-07 Andrew Cagney <ac131313@redhat.com> 2450 2451 * regcache.c (deprecated_registers_fetched): Update. 2452 * regcache.h (deprecated_registers_fetched): Rename 2453 registers_fetched. 2454 * remote-vxsparc.c (vx_read_register): Update. 2455 * remote-vxmips.c (vx_read_register): Update. 2456 * remote-vx68.c (vx_read_register): Update. 2457 * irix5-nat.c (fetch_core_registers): Update. 2458 * mipsm3-nat.c (fetch_inferior_registers): Update. 2459 * sun3-nat.c (fetch_inferior_registers): Update. 2460 * symm-nat.c (fetch_inferior_registers): Update. 2461 * ns32knbsd-nat.c (fetch_inferior_registers): Update. 2462 (fetch_core_registers): Update. 2463 (fetch_kcore_registers): Update. 2464 * mips-nat.c (fetch_inferior_registers): Update. 2465 * corelow.c (get_core_registers): Update. 2466 * a68v-nat.c (fetch_inferior_registers): Update. 2467 24682002-11-06 Joel Brobecker <brobecker@gnat.com> 2469 2470 Put in place the framework necessary for multiarching the hppa targets. 2471 * hppa-tdep.c (hppa_gdbarch_init): New function. 2472 (hppa_dump_tdep): New function. 2473 (_initialize_hppa_tdep): Register the hppa gdbarch init function and 2474 tdep structure dumper. 2475 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0 2476 until the multi-arching conversion has partially been completed. 2477 24782002-11-06 Andrew Cagney <ac131313@redhat.com> 2479 2480 * valops.c (value_assign): Merge lval_register case into 2481 lval_reg_frame_relative. Use frame_register and 2482 regcache_cooked_write instead of get_saved_register and 2483 write_register_bytes. After flushing the register cache, try to 2484 re-select the selected frame. 2485 24862002-11-06 Andrew Cagney <ac131313@redhat.com> 2487 2488 * regcache.h (deprecated_register_valid): Rename register_valid. 2489 * regcache.c: Update. 2490 * ia64-aix-nat.c: Update. 2491 * i386gnu-nat.c: Update. 2492 * alpha-nat.c: Update. 2493 * sparc-nat.c: Update. 2494 * lynx-nat.c: Update. 2495 * remote-mips.c: Update. 2496 24972002-11-06 Joel Brobecker <brobecker@gnat.com> 2498 2499 * hppa-tdep.c (_initialize_hppa_tdep): Move function body 2500 to end of file, to be more consistent with the pratice followed 2501 by other targets. 2502 25032002-11-06 Andrew Cagney <ac131313@redhat.com> 2504 2505 * infcmd.c: Include "reggroups.h" and <ctype.h>. 2506 (print_float_info): Print registers in float_reggroup. 2507 (print_vector_info): Print registers in vector_reggroup. 2508 (default_print_registers_info): When all, print registers in 2509 all_reggroup. Otherwize, print registers in general_reggroup. 2510 (registers_info): Rewrite. Add support for register groups. 2511 Eliminate a goto. 2512 25132002-11-06 Elena Zannoni <ezannoni@redhat.com> 2514 2515 * symtab.c (methods_info): Delete. It has been ifdeffed out for 2516 ages. 2517 (symtab_symbol_info): Remove eons old ifdeffed out code. 2518 (_initialize_symtab): Remove prehistoric disabled 'info methods' 2519 command. 2520 25212002-11-06 Theodore A. Roth <troth@openavr.org> 2522 2523 * c-exp.y: Add missing semi-colons. 2524 * f-exp.y: Add missing semi-colons. 2525 * m2-exp.y: Add missing semi-colons. 2526 * p-exp.y: Add missing semi-colons. 2527 Add empty action to start rule to avoid a type clash error when 2528 building with bison >= 1.50. 2529 25302002-11-06 Jim Blandy <jimb@redhat.com> 2531 2532 * macrotab.h (struct macro_source_file): Doc fix. 2533 25342002-11-05 Jeff Johnston <jjohnstn@redhat.com> 2535 2536 * varobj.c (child_exists, cplus_number_of_children): Change 2537 STREQ macro references to strcmp. 2538 (cplus_name_of_child): Change code to handle the fact that 2539 fields are not necessarily contiguous with regards to their 2540 access control. This is a fix for PR gdb/792. 2541 25422002-11-05 Andrew Cagney <ac131313@redhat.com> 2543 2544 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function. 2545 * gdbarch.h, gdbarch.c: Regnerate. 2546 * frame.h (frame_register): Declare. 2547 * frame.c (frame_register): New function. 2548 (get_saved_register): Test GET_SAVED_REGISTER_P before calling 2549 GET_SAVED_REGISTER, otherwize call 2550 generic_unwind_get_saved_register. 2551 (frame_register_read): Use frame_register instead of 2552 get_saved_register. 2553 25542002-11-05 Elena Zannoni <ezannoni@redhat.com> 2555 2556 From Jim Ingham <jingham@apple.com>: 2557 * event-top.c (gdb_disable_readline): New function. 2558 (_initialize_event_loop): Move comment. 2559 25602002-11-05 Elena Zannoni <ezannoni@redhat.com> 2561 2562 * event-loop.c (start_event_loop): Add comment. 2563 Update copyright. 2564 25652002-11-05 Andrew Cagney <ac131313@redhat.com> 2566 2567 * infcmd.c (default_print_registers_info): Do not call 2568 PRINT_REGISTER_HOOK. 2569 25702002-11-05 Andrew Cagney <ac131313@redhat.com> 2571 2572 * sparc-tdep.c (sparc_print_register_hook): Make static. 2573 (sparc_print_registers_info): New function. 2574 (sparc_do_registers_info): New function. 2575 (sparclet_print_registers_info): New function. 2576 (sparclet_do_registers_info): New function. 2577 (do_sparc_print_registers_info): New function. 2578 (sparc_print_registers): New static function, clone of infcmd.c's 2579 default_print_registers_info. 2580 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro. 2581 (sparclet_do_registers_info): Declare. 2582 (DEPRECATED_DO_REGISTERS_INFO): Re-define. 2583 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO): 2584 Re-define. 2585 (sparc_do_registers_info): Declare. 2586 (PRINT_REGISTER_HOOK): Delete macro. 2587 (sparc_print_register_hook): Delete declaration. 2588 25892002-11-05 David Carlton <carlton@math.stanford.edu> 2590 2591 * symtab.c (lookup_symbol_aux): Move chunks of code into separate 2592 functions. 2593 (lookup_symbol_aux_local): New function. 2594 (lookup_symbol_aux_symtabs): New function. 2595 (lookup_symbol_aux_psymtabs): New function. 2596 25972002-11-05 David Carlton <carlton@math.stanford.edu> 2598 2599 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the 2600 previous values of 'objfile' and 'block'. 2601 26022002-11-05 Pierre Muller <muller@ics.u-strasbg.fr> 2603 2604 * values.c (value_change_enclosing_type): Set 2605 enclosing_type field correctly also for the case where 2606 more memory needs to be allocated. 2607 26082002-11-03 Mark Kettenis <kettenis@gnu.org> 2609 2610 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead 2611 of puts_filtered. 2612 2613 * i387-tdep.c (i387_print_float_info): Replace calls to 2614 register_read and deprecated_read_register_gen with calls to 2615 frame_register_read, and make the necessary adjustments to the 2616 surrounding code. 2617 26182002-11-02 Andrew Cagney <ac131313@redhat.com> 2619 2620 * gdbarch.sh (register_reggroup_p): Allow default value. 2621 * gdbarch.h, gdbarch.c: Regenerate. 2622 26232002-11-02 Andrew Cagney <ac131313@redhat.com> 2624 2625 * regcache.h: Add coment indicating replacements for deprecated 2626 functions. 2627 26282002-11-02 Andrew Cagney <cagney@redhat.com> 2629 2630 * reggroups.h, reggroups.c: New files. 2631 * regcache.c: Include "reggroups.h". 2632 (enum regcache_dump_what): Add `regcache_dump_groups'. 2633 (regcache_dump): Contract size of the "Type" column. When 2634 specified, dump the register's groups. 2635 (maintenance_print_register_groups): New function. 2636 (_initialize_regcache): Add command `maint print register-groups'. 2637 * Makefile.in (COMMON_OBS): Add reggroups.o 2638 (SFILES): Add reggroups.c. 2639 (reggroups_h): Define. 2640 (regcache.o, gdbarch.o): Update dependencies. 2641 (reggroups.o): Specify dependencies. 2642 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method. 2643 Add opaque declaration for `struct reggroup' in generated .h file. 2644 Include "reggroups.h" in generated .c file. 2645 gdbarch.h, gdbarch.c: Re-generate. 2646 26472002-11-02 Andrew Cagney <cagney@redhat.com> 2648 2649 * regcache.h (deprecated_read_register_gen): Rename 2650 read_register_gen. 2651 (deprecated_write_register_gen): Rename write_register_gen. 2652 * i387-tdep.c: Update. 2653 * x86-64-linux-nat.c: Update 2654 * wince.c: Update. 2655 * thread-db.c: Update. 2656 * win32-nat.c: Update. 2657 * mips-tdep.c: Update. 2658 * d10v-tdep.c: Update. 2659 * cris-tdep.c: Update. 2660 * remote-sim.c: Update. 2661 * remote-rdi.c: Update. 2662 * remote-rdp.c: Update. 2663 * frame.c: Update. 2664 * target.c: Update. 2665 * blockframe.c: Update. 2666 * x86-64-tdep.c: Update. 2667 * xstormy16-tdep.c: Update. 2668 * sh-tdep.c: Update. 2669 * s390-tdep.c: Update. 2670 * rs6000-tdep.c: Update. 2671 * sparc-tdep.c: Update. 2672 * i386-tdep.c: Update. 2673 * dwarf2cfi.c: Update. 2674 * regcache.c: Update. 2675 26762002-11-01 Joel Brobecker <brobecker@gnat.com> 2677 2678 New interix-specific files: 2679 * config/i386/nm-interix.h: New file. 2680 * config/i386/interix.mh: New file. 2681 * config/i386/interix.mt: New file. 2682 * i386-interix-nat.c: New file. 2683 * i386-interix-tdep.c: New file. 2684 26852002-11-01 Andrew Cagney <cagney@redhat.com> 2686 2687 * frame.h (deprecated_generic_get_saved_register): Rename 2688 generic_get_saved_register. 2689 * blockframe.c (deprecated_generic_get_saved_register): Update. 2690 * xstormy16-tdep.c (xstormy16_get_saved_register): Update. 2691 (xstormy16_frame_saved_register): Update. 2692 * sh-tdep.c (sh_gdbarch_init): Update. 2693 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update. 2694 * ia64-tdep.c (ia64_get_saved_register): Update. 2695 * cris-tdep.c (cris_gdbarch_init): Update. 2696 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update. 2697 * arm-tdep.c (arm_gdbarch_init): Update. 2698 26992002-10-31 Daniel Jacobowitz <drow@mvista.com> 2700 2701 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step. 2702 27032002-10-31 Daniel Jacobowitz <drow@mvista.com> 2704 2705 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for 2706 trampolines in sigaction. 2707 27082002-10-31 Andrew Cagney <cagney@redhat.com> 2709 2710 * h8300-tdep.c: Include "gdb_assert.h". 2711 (h8300_print_register): Add gdbarch, file and frame parameters. 2712 Use frame_read_unsigned_register to read the register's value. 2713 Use fprintf_filtered to display output. 2714 (h8300_print_registers_info): Replace h8300_do_registers_info. 2715 (h8300_gdbarch_init): Set print_registers_info. 2716 27172002-10-31 Andrew Cagney <cagney@redhat.com> 2718 2719 * frame.c (frame_read_unsigned_register): New function. 2720 (frame_read_signed_register): New function. 2721 * frame.h (frame_read_unsigned_register): Declare. 2722 (frame_read_signed_register): Declare. 2723 27242002-10-31 Andrew Cagney <cagney@redhat.com> 2725 2726 * h8500-tdep.c (h8500_print_registers_info): New static function, 2727 clone of infcmd.c's default_print_registers_info. 2728 (h8500_do_registers_info): New funtion. 2729 (h8500_print_register_hook): Rename print_register_hook, make 2730 static. 2731 2732 * config/h8500/tm-h8500.h: Update copyright. 2733 (DEPRECATED_DO_REGISTERS_INFO): Define. 2734 (h8500_do_registers_info: Declare. 2735 (PRINT_REGISTER_HOOK): Delete macro. 2736 (print_register_hook): Delete function. 2737 27382002-10-31 Andrew Cagney <cagney@redhat.com> 2739 2740 * z8k-tdep.c (z8k_print_register_hook): Make static. 2741 (z8k_print_registers_info): New static function, clone of 2742 infcmd.c's default_print_registers_info. 2743 (z8k_do_registers_info): New function. Wrap 2744 z8k_print_registers_info. 2745 * config/z8k/tm-z8k.h: Update copyright. 2746 (PRINT_REGISTER_HOOK): Delete macro. 2747 (z8k_print_register_hook): Delete declaration. 2748 (DEPRECATED_DO_REGISTERS_INFO): Define. 2749 (z8k_do_registers_info): Declare. 2750 27512002-10-30 Joel Brobecker <brobecker@gnat.com> 2752 2753 * hppa-tdep.c (find_function_in_inferior): Remove this extern, 2754 as this is already provided by value.h, and was actually causing 2755 a compilation error because of a conflict in parameter type 2756 declaration due to a missing const keyword. 2757 (low_text_segment_addres): Fix a compilation warning. 2758 27592002-10-29 Daniel Jacobowitz <drow@mvista.com> 2760 2761 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch 2762 registers without a name. 2763 (mips_linux_cannot_store_register): Don't store registers without 2764 a name. 2765 27662002-10-28 David Carlton <carlton@math.stanford.edu> 2767 2768 * symtab.c (find_addr_symbol): Delete. (It was already commented 2769 out.) 2770 * symtab.h: Delete prototype for find_addr_symbol. 2771 27722002-10-26 Andrew Cagney <cagney@redhat.com> 2773 2774 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename 2775 DO_REGISTERS_INFO. 2776 gdbarch.h, gdbarch.c: Re-generate. 2777 * infcmd.c (default_print_registers_info): Update reference. 2778 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info. 2779 (mips_dump_tdep): Do not print DO_REGISTERS_INFO. 2780 * sh-tdep.c (sh_gdbarch_init): Ditto. 2781 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. 2782 * h8300-tdep.c (h8300_gdbarch_init): Ditto. 2783 27842002-10-26 Mark Kettenis <kettenis@gnu.org> 2785 2786 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to 2787 cfi_init_extra_frame_info. 2788 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype. 2789 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function. 2790 2791 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386 2792 target where necessary. Add more comments and remove the ones 2793 that don't provide any useful information. 2794 2795 * i386-tdep.c (i386_frame_saved_pc): Replace call to 2796 deprecated_read_register_dummy with 2797 frame_unwind_unsigned_register. 2798 2799 * i386-tdep.c (i386_extract_struct_value_address): Use 2800 regcache_raw_read_unsigned instead of 2801 regcache_cooked_read_unsigned since we know that the register 2802 we're reading isn't a pseudo register. Rename variable 'val' into 2803 the more descriptive 'addr'. 2804 2805 * x86-64-tdep.c: Fix some formatting problems, mostly in comments. 2806 (x86_64_push_return_address): Add comment. 2807 (x86_64_pop_frame): Make static. 2808 (examine_argument): Clarify comment. 2809 (x86_64_skip_prologue): Make prolog_expact variable static. 2810 2811 * dwarf2cfi.c: Fix some formatting problems. 2812 (context_cpy, read_encoded_pointer): Clarify comments. 2813 2814 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify. 2815 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the 2816 i386 target back into x86_64_gdbarch_init. Add some comments and 2817 remove meaningless ones. 2818 28192002-10-25 Andrew Cagney <cagney@redhat.com> 2820 2821 * complaints.h (struct deprecated_complaint): Rename `struct 2822 complaint'. 2823 * complaints.c (complain): Update. 2824 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete 2825 incorrect comment indicating that "symfile.h" was being included 2826 for the `struct complaint' definition. 2827 * remote-vx.c: Update. 2828 * objc-lang.c: Update. 2829 * xcoffread.c: Update. 2830 * hpread.c: Update. 2831 * mdebugread.c: Update. 2832 * stabsread.c: Update. 2833 * dwarf2read.c: Update. 2834 * dwarfread.c: Update. 2835 * elfread.c: Update. 2836 * coffread.c: Update. 2837 * stabsread.h: Update. 2838 * dbxread.c: Update. 2839 * buildsym.c: Update. 2840 * gdbtypes.c: Update. 2841 * macrotab.c: Update. 2842 28432002-10-25 Mark Kettenis <kettenis@gnu.org> 2844 2845 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to 2846 the version in i386-tdep.c. Move set_gdbarch_* calls out into... 2847 (x86_64_init_abi): ...new function. 2848 2849 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h). 2850 * i386v-nat.c: Include "i386-tdep.h". 2851 28522002-10-25 Andrew Cagney <cagney@redhat.com> 2853 2854 * gdbtypes.c (address_space_name_to_int): Update. 2855 (address_space_int_to_name): Update. 2856 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure 2857 multi-arch predicate. 2858 (address_class_name_to_type_flags): Ditto. 2859 * gdbarch.h, gdbarch.c: Re-generate. 2860 2861 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf. 2862 28632002-10-24 Martin M. Hunt <hunt@redhat.com> 2864 2865 * utils.c (string_to_core_addr): Revert patch from 11 Oct. 2866 28672002-10-24 Elena Zannoni <ezannoni@redhat.com> 2868 2869 * symtab.h (INIT_SAL): Delete macro. 2870 (init_sal): Export. 2871 * symtab.c (init_sal): New function. 2872 2873 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro 2874 to init_sal function call. 2875 (find_sal_from_funcs_and_line): Ditto. 2876 (all_sals_for_line): Ditto. 2877 * breakpoint.c (create_internal_breakpoint): Ditto. 2878 (create_fork_vfork_event_catchpoint): Ditto. 2879 (create_exec_event_catchpoint): Ditto. 2880 (parse_breakpoint_sals): Ditto. 2881 (watch_command_1): Ditto. 2882 (handle_gnu_4_16_catch_command): Ditto. 2883 (clear_command): Ditto. 2884 * hppa-tdep.c (child_enable_exception_callback): Ditto. 2885 * infcmd.c (run_stack_dummy): Ditto. 2886 * infrun.c (process_event_stop_test): Ditto. 2887 (check_sigtramp2): Ditto. 2888 (step_over_function): Ditto. 2889 * linespec.c (decode_line_2): Ditto. 2890 (decode_line_1): Ditto. 2891 * source.c (line_info): Ditto. 2892 * symtab.c (find_pc_sect_line): Ditto. 2893 28942002-10-24 Michal Ludvig <mludvig@suse.cz> 2895 2896 * dwarf2cfi.c (struct context) 2897 (struct context_reg): Moved to dwarf2cfi.h 2898 (context_alloc, frame_state_alloc, context_cpy): 2899 Made extern instead of static, removed prototypes. 2900 * dwarf2cfi.h (struct context) 2901 (struct context_reg): New, moved from dwarf2cfi.c 2902 (context_alloc, frame_state_alloc, context_cpy): 2903 New prototypes. 2904 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc): 2905 Changed from static to extern. 2906 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET) 2907 (LINUX_SIGCONTEXT_FP_OFFSET) 2908 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted. 2909 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain) 2910 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New. 2911 * x86-64-tdep.c (x86_64_gdbarch_init): Several 2912 set_gdbarch_*() calls now use x86-64 specific functions 2913 instead of DWARF2 CFI ones. 2914 * x86-64-tdep.h (x86_64_linux_in_sigtramp) 2915 (x86_64_linux_frame_chain, x86_64_init_frame_pc) 2916 (x86_64_init_extra_frame_info): New prototypes. 2917 29182002-10-23 David Carlton <carlton@math.stanford.edu> 2919 2920 * linespec.c: #include "parser-defs.h". 2921 Delete prototype for find_template_name_end. 2922 * Makefile.in (linespec.o): Depend on $(parser_defs_h). 2923 29242002-10-23 Jeff Johnston <jjohnstn@redhat.com> 2925 2926 * NEWS: add recent mi fixes. 2927 * varobj.c (struct varobj): Add new "updated" flag. 2928 (new_variable): Default "updated" flag to 0. 2929 (varobj_set_value): Set "updated" flag to 1 if value 2930 changes. 2931 (varobj_update): Check varobj "updated" flag before 2932 comparing old and refreshed values. Fix for 2933 PR gdb/702. 2934 29352002-10-23 David Carlton <carlton@math.stanford.edu> 2936 2937 * parse.c (parse_exp_1): Use BLOCK_START. 2938 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END, 2939 SYMBOL_BLOCK_VALUE. 2940 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END. 2941 29422002-10-23 David Carlton <carlton@math.stanford.edu> 2943 2944 * symtab.c: Delete cplusplus_hint. 2945 Delete prototype for find_template_name_end. 2946 29472002-10-23 Elena Zannoni <ezannoni@redhat.com> 2948 2949 * symtab.h: Update comment. 2950 29512002-10-23 Michael Snyder <msnyder@redhat.com> 2952 2953 * printcmd.c (address_info): Restore quotes in output. 2954 * valops.c (value_of_local): Restore quotes in error message. 2955 29562002-10-23 Elena Zannoni <ezannoni@redhat.com> 2957 2958 * symtab.c (symbol_demangled_name): New function. 2959 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by 2960 turning most of it into a function. 2961 (symbol_demangled_name): Export. 2962 29632002-10-23 Michael Snyder <msnyder@redhat.com> 2964 2965 * valops.c (value_of_local): Restore quotes in error message. 2966 29672002-10-23 Elena Zannoni <ezannoni@redhat.com> 2968 2969 * symtab.c (symbol_init_language_specific): New function. 2970 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by 2971 turning most of it into a function. 2972 (symbol_init_language_specific): Export. 2973 29742002-10-23 David Carlton <carlton@math.stanford.edu> 2975 2976 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names. 2977 (dwarf_attr_name): Ditto. 2978 (dwarf_type_encoding_name): Ditto. 2979 (scan_partial_symbols): Descend into DW_TAG_namespace entries. 2980 (process_die): Handle DW_TAG_namespace, 2981 DW_TAG_imported_declaration, DW_TAG_imported_module. 2982 (read_namespace): New function. 2983 29842002-10-22 Joel Brobecker <brobecker@gnat.com> 2985 2986 * configure.in: Define NEW_PROC_API on Interix too. 2987 * configure: Regenerate. 2988 29892002-10-21 Joel Brobecker <brobecker@gnat.com> 2990 2991 * configure: Regenerate using the proper version of autoconf. 2992 29932002-10-21 Elena Zannoni <ezannoni@redhat.com> 2994 2995 * findvar.c (read_var_value): Temporarily disable TLS code, until 2996 complete TLS support is added. 2997 29982002-10-21 Jim Blandy <jimb@redhat.com> 2999 Elena Zannoni <ezannoni@redhat.com> 3000 3001 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC 3002 for thread local storage locations. 3003 (struct symbol): Add objfile field. 3004 (SYMBOL_OBJFILE): Define. 3005 * dwarf2read.c (is_thread_local): New static variable. 3006 (new_symbol): If variable is in thread local fill in address class 3007 and objfile appropriately. 3008 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address 3009 stack operation. 3010 * printcmd.c (address_info): Print the information for thread 3011 local storage variable. 3012 * findvar.c (read_var_value): In case of thread local variable, 3013 defer to the target vector code to compute address. 3014 30152002-10-21 Elena Zannoni <ezannoni@redhat.com> 3016 3017 * solib-svr4.c (svr4_fetch_objfile_link_map): New function. 3018 * solib-svr4.h (svr4_fetch_objfile_link_map): Export. 3019 30202002-10-21 Elena Zannoni <ezannoni@redhat.com> 3021 3022 * symtab.h (address_class): Rename 3023 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC. 3024 * hpread.c (hpread_process_one_debug_symbol): Ditto. 3025 * printcmd.c (address_info): Ditto. 3026 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto. 3027 30282002-10-20 Mark Kettenis <kettenis@gnu.org> 3029 3030 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use 3031 DBREG_DRX macro to acces debug registers. 3032 3033 * Makefile.in (i386obsd-tdep.o): New target. 3034 3035 * solib-sunos.c: Include "bcache.h" and "regcache.h". 3036 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h). 3037 3038 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds. 3039 * config/i386/obsd.mt: New file. 3040 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce 3041 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset; 3042 * i386obsd-nat.c (_initialize_i386obsd_nat): Set 3043 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of 3044 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end. 3045 * i386obsd-tdep.c: New file. 3046 30472002-10-19 Adam Fedor <fedor@gnu.org> 3048 3049 * objc-exp.y (name_not_typename): Fix invalid comment. 3050 30512002-10-20 Mark Kettenis <kettenis@gnu.org> 3052 3053 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc 3054 to allocate partial syms and macro byte caches. 3055 30562002-10-18 David Carlton <carlton@math.stanford.edu> 3057 3058 * symtab.h: Delete 'struct source' and 'struct sourcevector'. 3059 30602002-10-18 Adam Fedor <fedor@gnu.org> 3061 3062 * stabsread.c (find_name_end): New function. 3063 (define_symbol): Use it. 3064 30652002-10-18 Daniel Jacobowitz <drow@mvista.com> 3066 3067 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1. 3068 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1. 3069 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1. 3070 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1. 3071 30722002-10-17 David Carlton <carlton@math.stanford.edu> 3073 3074 * symfile.h: Add opaque declaration for struct obstack. 3075 Declare obsavestring to take a const char *. 3076 * symfile.c (obsavestring): Make first argument a const char *. 3077 30782002-10-16 Adam Fedor <fedor@gnu.org> 3079 3080 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method 3081 names when matching breakpoints in current file. 3082 30832002-10-16 Kevin Buettner <kevinb@redhat.com> 3084 3085 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint. 3086 (read_tag_pointer_type): Add address class support. 3087 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS) 3088 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): 3089 New methods. 3090 * gdbarch.h, gdbarch.c: Regenerate. 3091 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name) 3092 (make_type_with_address_space, recursive_type_dump): Add address 3093 class support. 3094 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2) 3095 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1) 3096 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines 3097 30982002-10-16 Klee Dienes <kdienes@apple.com> 3099 3100 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2] 3101 to get the last character of a char[] buffer, not 3102 name[sizeof(vptr_name)-1]. 3103 31042002-10-14 Adam Fedor <fedor@gnu.org> 3105 3106 * symtab.h: New objc_specific struct. 3107 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC. 3108 (SYMBOL_DEMANGLED_NAME): Likewise. 3109 31102002-10-14 Adam Fedor <fedor@gnu.org> 3111 3112 * symfile.c (init_filename_language_table): Add ObjC file extension. 3113 31142002-10-14 Adam Fedor <fedor@gnu.org> 3115 3116 * utils.c (puts_filtered_tabular): New function. 3117 (fprintf_symbol_filtered): Get ObjC demangled name. 3118 * defs.h (puts_filtered_tabular): Declared. 3119 31202002-10-14 Kevin Buettner <kevinb@redhat.com> 3121 3122 * c-lang.h (c_type_print_varspec_prefix): Delete. 3123 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add 3124 ``need_post_space'' parameter. Adjust all callers. 3125 31262002-10-14 Daniel Jacobowitz <drow@mvista.com> 3127 3128 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1. 3129 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise. 3130 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise. 3131 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise. 3132 31332002-10-13 Adam Fedor <fedor@gnu.org> 3134 3135 * source.c (print_source_lines): Update comments. 3136 31372002-10-13 Adam Fedor <fedor@gnu.org> 3138 3139 * valops.c (value_of_local): New function. 3140 (value_of_this): Use it. 3141 * value.h (value_of_local): Declared. 3142 31432002-10-13 Adam Fedor <fedor@gnu.org> 3144 3145 * parse.c: (length_of_subexp, prefixify_subexp): Handle 3146 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF. 3147 31482002-10-12 Adam Fedor <fedor@gnu.org> 3149 3150 * language.c (binop_result_type): Add language_objc to case. 3151 (integral_type): Likewise. 3152 (character_type): Likewise. 3153 (string_type): Likewise. 3154 (boolean_type): Likewise. 3155 (structured_type): Likewise. 3156 (binop_type_check): Likewise. 3157 31582002-10-11 Adam Fedor <fedor@gnu.org> 3159 3160 * printcmd.c (address_info): Print 'self' for ObjC. 3161 31622002-10-11 Adam Fedor <fedor@gnu.org> 3163 3164 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and 3165 OP_SELF. 3166 31672002-10-11 Adam Fedor <fedor@gnu.org> 3168 3169 * language.h (CAST_IS_CONVERSION): Add language_objc. 3170 31712002-10-11 Adam Fedor <fedor@gnu.org> 3172 3173 * defs.h (enum language): Add language_objc. 3174 31752002-10-11 Klee Dienes <kdienes@apple.com> 3176 3177 * corefile.c (read_memory_typed_address): New function. 3178 * gdbcore.h (read_memory_typed_address): Add prototype. 3179 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address 3180 to read a value destined for a CORE_ADDR, not read_memory_integer. 3181 * f-valprint.c (f77_get_dynamic_upperbound): Ditto. 3182 (f77_get_dynamic_lowerbound): Ditto. 3183 31842002-10-11 Martin M. Hunt <hunt@redhat.com> 3185 3186 * utils.c (string_to_core_addr): After turning string into 3187 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS 3188 which will do necessary sign-extension, etc. 3189 31902002-10-11 Daniel Jacobowitz <drow@mvista.com> 3191 3192 * c-exp.y (THIS): Delete token and grammar rule. 3193 (yylex): Don't return THIS. 3194 * cp-valprint.c (vtbl_ptr_name_old): Delete. 3195 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old. 3196 * demangle.c (cplus_markers): Update comment. Put '$' 3197 first. Remove CPLUS_MARKER. 3198 (_initialize_demangler): Don't call set_cplus_marker_for_demangling. 3199 * jv-exp.y (THIS): Delete token and grammar rule. 3200 (yylex): Don't return THIS. 3201 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER. 3202 * objc-exp.y (THIS): Delete token and grammar rule. 3203 (yylex): Don't return THIS. 3204 * p-exp.y (yylex): Remove reference to CPLUS_MARKER. 3205 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'. 3206 (read_member_functions): Likewise for opname. 3207 (read_tilde_fields): Use is_cplus_marker. 3208 3209 * defs.h (CPLUS_MARKER): Don't define. 3210 * config/tm-sysv4.h (CPLUS_MARKER): Likewise. 3211 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise. 3212 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise. 3213 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise. 3214 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise. 3215 3216 * config/i386/tm-i386v4.h: Delete file. 3217 * config/djgpp/fnchange.lst: Delete tm-i386v4.h. 3218 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead. 3219 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead. 3220 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead. 3221 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h. 3222 * config/i386/i386sco5.mt (TM_FILE): Likewise. 3223 * config/i386/i386v4.mt (TM_FILE): Likewise. 3224 * config/i386/ncr3000.mt (TM_FILE): Likewise. 3225 32262002-10-10 Marko Mlinar <markom@opencores.org> 3227 3228 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C, 3229 accidentially not commited 2002-10-09 3230 * gdbarch.h, gdbarch.c: Re-generate. 3231 32322002-10-09 Marko Mlinar <markom@opencores.org> 3233 3234 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C. 3235 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add. 3236 * gdbarch.h, gdbarch.c: Re-generate. 3237 32382002-10-08 Petr Sorfa <petrs@caldera.com> 3239 3240 Revised and re-submitted by John Wolfe <jlw@caldera.com> 3241 3242 Move the Dwarf 2 abbrev table to a per-compilation-unit structure, 3243 so we can work on more than one compilation unit at a time. This 3244 helps prepare GDB to handle inter-CU die references. 3245 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in 3246 the code to be defined before struct comp_unit_head. 3247 (comp_unit_head): Added new members - offset, cu_head, 3248 begin_die, next and dwarf2_abbrevs. 3249 (dwarf2_abbrevs): Removed single static var; now member of 3250 struct comp_unit_head. 3251 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head 3252 members. 3253 (psymtab_to_symtab_1): Changed to work with the new 3254 struct comp_unit_head. 3255 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and 3256 constructs the dwarf2_abbrevs[] inside the cu_header. 3257 (dwarf2_empty_abbrev_table): Now expects a ptr to a 3258 dwarf2_abbrev table to clean up. 3259 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and 3260 handling of dwarf2_abbrevs inside the cu_header. 3261 (read_partial_die): Now supports the call to the new 3262 dwarf2_lookup_abbrev. 3263 (read_full_die): Now supports the call to the new 3264 dwarf2_lookup_abbrev. 3265 32662002-10-06 Christopher Faylor <cgf@redhat.com> 3267 3268 * Makefile.in (install-gdbtk): Add missing continuation backslash to 3269 insure that shell variables, such as "transformed_name" are propagated 3270 to later shell statements in rule. 3271 32722002-10-06 Mark Kettenis <kettenis@gnu.org> 3273 3274 * config/i386/nm-i386sco.h: Add protection against 3275 multiple-inclusion. Include "i386/nm-i386v.h". 3276 (REGISTER_U_ADDR): Remove define. 3277 (i386_register_u_addr): Remove prototype. 3278 32792002-10-04 Michael Snyder <msnyder@redhat.com> 3280 3281 * m32r-stub.c (handle_exception): Make sure exception is "trap" 3282 before treating it as a single-step event. 3283 32842002-10-03 Adam Fedor <fedor@gnu.org> 3285 3286 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h. 3287 (objc_demangle): Remove assignment in if statements, Replace 3288 free with xfree. 3289 (add_msglist): Likewise. 3290 (end_msglist): Likewise. 3291 (complare_selectors): Likewise. 3292 (selectors_info): Likewise. 3293 (compare_classes): Likewise. 3294 (classes_info): Likewise. 3295 (print_object_command): Likewise. 3296 (find_objc_msgcall_submethod): Replace PTR with void *. 3297 * objc-lang.h: Remove check for __STDC__. 3298 32992002-10-03 Jeff Johnston <jjohnstn@redhat.com> 3300 3301 * ui-out.h (ui_out_field_fmt_int): New prototype. 3302 * ui-out.c (ui_out_field_fmt_int): New function allowing specification 3303 of field width and alignment. 3304 * stack.c (print_frame_info_base): When printing frame level, use 3305 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for 3306 PR gdb/192 3307 33082002-10-03 Jeff Johnston <jjohnstn@redhat.com> 3309 3310 * MAINTAINERS: Add self to Write After Approval list. 3311 33122002-10-02 Elena Zannoni <ezannoni@redhat.com> 3313 3314 * infcmd.c (interrupt_target_command_wrapper): Delete. 3315 (interrupt_target_command): Make non static. 3316 (nofp_registers_info): Make static. 3317 * stack.c (return_command_wrapper): Delete. 3318 (return_command): Make non static. 3319 33202002-10-02 Elena Zannoni <ezannoni@redhat.com> 3321 3322 * event-top.c (gdb_setup_readline): New function. Code moved from 3323 _initialize_event_loop(). 3324 (_initialize_event_loop): Call gdb_setup_readline(). 3325 33262002-10-02 Andrew Cagney <ac131313@redhat.com> 3327 3328 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C. 3329 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add. 3330 * gdbarch.h, gdbarch.c: Re-generate. 3331 33322002-10-02 Daniel Jacobowitz <drow@mvista.com> 3333 3334 Fix PR gdb/778 3335 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef 3336 before recursing. 3337 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value 3338 of fill_in_vptr_fieldno. 3339 33402002-10-02 Elena Zannoni <ezannoni@redhat.com> 3341 3342 * inferior.h (registers_info, stepi_command, nexti_command, 3343 continue_command, interrupt_target_command): Export from infcmd.c. 3344 * frame.h (args_info, selected_frame_level_changed_hook, 3345 return_command): Export from stack.c. 3346 * v850ice.c (stepi_command, nexti_command, continue_command): use 3347 prototypes from inferior.h. 3348 * tracepoint.c (registers_info, args_info, locals_info): Use 3349 prototypes from frame.h and inferior.h. 3350 * Makefile.in (mi-main.o): Add dependency on frame.h. 3351 33522002-10-02 Andrew Cagney <ac131313@redhat.com> 3353 3354 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return 3355 value in register 3 adjusted by ppc_gp0_regnum. 3356 3357 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum. 3358 33592002-10-02 Marko Mlinar <markom@opencores.org> 3360 3361 * MAINTAINERS: Add myself to the Write After Approval list. 3362 33632002-10-01 Alexandre Oliva <aoliva@redhat.com> 3364 3365 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name 3366 of the section for the N64 ABI, fixed. 3367 3368 * config/mips/tm-irix6.h: Include solib.h. 3369 33702002-10-01 Elena Zannoni <ezannoni@redhat.com> 3371 3372 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and 3373 GNU operators. 3374 33752002-10-01 Andrew Cagney <ac131313@redhat.com> 3376 3377 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2" 3378 and that "mi0" syntax has been removed. 3379 33802002-09-30 David Carlton <carlton@math.stanford.edu> 3381 3382 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h. 3383 * ppc-sysv-tdep.c: #include "gdb_string.h". 3384 * remote-sds.c (getmessage): Add semicolon after 'retry' label to 3385 pacify GCC. 3386 33872002-10-01 Andrew Cagney <ac131313@redhat.com> 3388 3389 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix 3390 "vrsave"'s register number. 3391 33922002-09-30 Andrew Cagney <ac131313@redhat.com> 3393 3394 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame, 3395 use frame_unwind_signed_register to obtain the PC. 3396 (mips_frame_chain): Handle a generic dummy frame. 3397 (mips_init_extra_frame_info): When a generic dummy frame, don't 3398 re-compute the frame base. 3399 (mips_pop_frame): Handle generic dummy frames. 3400 (mips_gdbarch_init): When generic dummy frames, set 3401 use_generic_dummy_frames, push_dummy_frame to 3402 generic_push_dummy_frame, pc_in_call_dummy to 3403 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to 3404 generic_save_dummy_frame_tos. 3405 34062002-09-30 Andrew Cagney <ac131313@redhat.com> 3407 3408 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test 3409 against TOP when TOP was explictly set. 3410 (generic_push_dummy_frame): Set TOP to zero. 3411 34122002-09-30 Elena Zannoni <ezannoni@redhat.com> 3413 3414 * event-loop.c (start_event_loop): Rename variable 'result' to 3415 'gdb_result', to avoid conflicts with upcoming intepreters changes. 3416 34172002-09-30 Keith Seitz <keiths@redhat.com> 3418 3419 * gdb-events.sh (selected_thread_changed): New event. 3420 * gdb-events.c: Regenerated. 3421 * gdb-events.h: Regenerated. 3422 34232002-09-30 Hans-Peter Nilsson <hp@bitrange.com> 3424 3425 * MAINTAINERS: Add self to Write After Approval list. 3426 34272002-09-30 Fernando Nasser <fnasser@redhat.com> 3428 3429 * disasm.c: New file. 3430 * disasm.h: New file. 3431 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c. 3432 (compare_lines): Ditto. 3433 (dump_insns): Ditto. 3434 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout 3435 argument. 3436 (do_assembly_only): Ditto. 3437 (do_disassembly): Renamed to gdb_disassembly and moved to 3438 disasm.c. Sdded uiout argument. 3439 * Makefile.in: Add new files. Reorder SFILES list. Update 3440 dependencies. Include libgdb.a later in the insight executable. 3441 34422002-09-29 Andrew Cagney <ac131313@redhat.com> 3443 3444 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and 3445 bfd/elf64-alpha-fbsd.c. 3446 34472002-09-29 Andrew Cagney <ac131313@redhat.com> 3448 3449 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and 3450 i386gnu-tdep.c. 3451 34522002-09-29 Andrew Cagney <ac131313@redhat.com> 3453 3454 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of 3455 __FUNCTION__. 3456 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with 3457 function name. 3458 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto. 3459 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto. 3460 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto. 3461 (S_msg_sig_post_reply): Ditto. 3462 34632002-09-28 Corinna Vinschen <vinschen@redhat.com> 3464 3465 * sh-tdep.c (sh_use_struct_convention): Use definition according 3466 to ABI. 3467 (sh_push_arguments): Store in register with correct endianess. 3468 (sh_default_store_return_value): Ditto. 3469 (sh_gdbarch_init): Set sizeof long double to 8. 3470 34712002-09-27 Mark Kettenis <kettenis@gnu.org> 3472 3473 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h". 3474 Fix some whitespace problems. 3475 34762002-09-27 David Carlton <carlton@math.stanford.edu> 3477 3478 * Makefile.in (cris-tdep.o): Depend on gdb_string_h. 3479 (mcore-tdep.o): Ditto. 3480 (ns32k-tdep.o): Ditto. 3481 (ns32knbsd-tdep.o): Ditto. 3482 (sh3-rom.o): Ditto. 3483 (vax-tdep.o): Ditto. 3484 * cris-tdep.c: #include "gdb_string.h" 3485 * mcore-tdep.c: Ditto. 3486 * ns32k-tdep.c: Ditto. 3487 * ns32knbsd-tdep.c: Ditto. 3488 * sh3-rom.c: Ditto. 3489 * vax-tdep.c: Ditto. 3490 34912002-09-27 David Carlton <carlton@math.stanford.edu> 3492 3493 * config/djgpp/fnchange.lst: Add entries for 3494 gdb/testsuite/gdb.c++/m-static files. 3495 34962002-09-27 Jim Wilson <wilson@redhat.com> 3497 3498 * MAINTAINERS: Add myself to the Write After Approval list. 3499 35002002-09-26 Martin M. Hunt <hunt@redhat.com> 3501 3502 * mips-tdep.c (find_proc_desc): Initialize startaddr. 3503 3504 35052002-09-26 Andrew Cagney <ac131313@redhat.com> 3506 3507 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy 3508 frame. 3509 35102002-09-26 Andrew Cagney <ac131313@redhat.com> 3511 3512 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0. 3513 (rs6000_struct_return_address): Delete variable. 3514 (rs6000_store_struct_return): Update. 3515 (rs6000_gdbarch_init): Set extract_struct_value_address instead of 3516 deprecated_extract_struct_value_address. 3517 (rs6000_frame_align): New function. 3518 (rs6000_gdbarch_init): Set frame_align. 3519 35202002-09-26 Andrew Cagney <ac131313@redhat.com> 3521 3522 From Grace Sainsbury <graces@redhat.com>: 3523 * Makefile.in (gdbtk-main.o): New target. 3524 (gdb.o): New target. 3525 (main_h): Define. 3526 (main.o): Update dependencies. 3527 (gdb$(EXEEXT)): Add gdb.o. 3528 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c. 3529 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set. 3530 (SUBDIR_GDBTK_CLEAN): Set. 3531 (install-gdbtk): Install the insight binary. 3532 (uninstall-gdbtk): New target. 3533 (all-gdbtk, clean-gdbtk): New rule. 3534 * top.c (use_windows): Default to zero. 3535 * main.c: Include "main.h". 3536 (main): Delete. 3537 (struct captured_main_args): Delete. 3538 (gdb_main): New function. 3539 * main.h: New file. 3540 * gdb.c: New File. 3541 35422002-09-25 Andrew Cagney <cagney@redhat.com> 3543 3544 * frame.c: Include "gdb_string.h" and "builtin-regs.h". 3545 (frame_map_regnum_to_name): New function. 3546 (frame_map_name_to_regnum): New function. 3547 * frame.h (frame_map_name_to_regnum): Declare. 3548 (frame_map_regnum_to_name): Declare. 3549 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function. 3550 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare. 3551 * parse.c: Do not include "builtin-regs.h". 3552 (target_map_name_to_register): Delete function. 3553 (write_dollar_variable): Use frame_map_name_to_regnum. 3554 * parser-defs.h (target_map_name_to_register): Delete declaration. 3555 * expprint.c: Include "frame.h". 3556 (print_subexp): Use frame_map_regnum_to_name. 3557 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name. 3558 * infcmd.c (registers_info): Use frame_map_name_to_regnum. 3559 35602002-09-25 Andrew Cagney <ac131313@redhat.com> 3561 3562 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register 3563 wasn't saved, and the next innermost frame is a dummy, return the 3564 dummy frame's link register. 3565 35662002-09-24 Jim Blandy <jimb@redhat.com> 3567 3568 Fix from Paul Breed: 3569 * main.c (captured_main): Add a `break' after the case for 'b'. 3570 35712002-09-24 Keith Seitz <keiths@redhat.com> 3572 3573 * varobj.c (c_type_of_child): Use get_target_type instead 3574 of TYPE_TARGET_TYPE. 3575 35762002-09-22 Fernando Nasser <fnasser@redhat.com> 3577 3578 * source.c (get_current_or_default_source_symtab_and_line): Remove 3579 function. 3580 (set_default_source_symtab_and_line): New function. Attempts to 3581 determine a source file to list lines from if one is not currently 3582 defined. 3583 (get_current_source_symtab_and_line): Initialize sal.pc and 3584 sal.end fields. 3585 (set_current_source_symtab_and_line): Mark argument as const. 3586 * source.h: Update declarations and comments. 3587 * linespec.c (decode_line_1): Replace call to removed routine above. 3588 * stack.c (print_frame_info_base): Ditto. 3589 * cli/cli-cmds.c (edit_command): Ditto. 3590 (list_command): Ditto. 3591 35922002-09-22 Fernando Nasser <fnasser@redhat.com> 3593 3594 * source.c (get_current_or_default_source_symtab_and_line): Initialize 3595 sal.pc and sal.end fields. 3596 (get_current_or_default_source_symtab_and_line): Ditto. 3597 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function 3598 so we do not cause a new source symtab to be searched for (reverting an 3599 unintentional change from the 2002-09-20 patch). 3600 * scm-lang.c (scm_unpac): Ditto. 3601 36022002-09-21 Andrew Cagney <cagney@redhat.com> 3603 3604 * complaints.c (symfile_explanations): Remove new-line from 3605 ``isolated_message''. 3606 (vcomplaint): When ISOLATED_MESSAGE, force a line break. 3607 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break. 3608 36092002-09-20 Nick Clifton <nickc@redhat.com> 3610 3611 * NEWS: Announce that V850EA ISA is no longer supported. 3612 * v850-tdep.c: Remove reference to bfd_mach_v850ea. 3613 36142002-09-20 David Carlton <carlton@math.stanford.edu> 3615 3616 * Makefile.in (c-lang.o): Correct dependencies. 3617 (utils.o): Gather dependencies. 3618 (charset.o): Move. 3619 * c-lang.c: #include "gdb_string.h" 3620 36212002-09-20 George Helffrich <george@gly.bris.ac.uk> 3622 3623 * cli/cli-cmds.c (list_command): New function. Implements the new 3624 cli edit command. 3625 (_init_cli_cmds): Add new command definition. 3626 * gdb.1: Document edit command. 3627 36282002-09-20 Fernando Nasser <fnasser@redhat.com> 3629 3630 * source.c: Make global variables current_source_symtab and 3631 current_source_line static. 3632 (list_command): Moved to cli/cli-cmds.c. 3633 (ambiguous_line_spec): Moved to cli/cli-cmds.c. 3634 (get_first_line_listed): New accessor function. 3635 (get_lines_to_list): New accessor function. 3636 (get_current_source_symtab_and_line): New function. Retrieves the 3637 position in the source code that we consider current. 3638 (get_current_or_default_source_symtab_and_line): New function. 3639 Like the above but attempts to determine a default position if one 3640 is not currently defined. 3641 (set_current_source_symtab_and_line): New function. Sets the source 3642 code position considered current and returns the previously set one. 3643 (clear_current_source_symtab_and_line): Reset stored information about 3644 a current source line. 3645 (_initialize_source): Remove registration for the "list" command and 3646 its alias. 3647 * source.h: Add declarations for the new functions above. 3648 * symtab.h: Remove declarations for the global variables mentioned 3649 above. 3650 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to 3651 obtain current source line. 3652 * linespec.c (decode_line_1): Ditto. 3653 * macroscope.c (default_macro_scope): Ditto. 3654 * scm-lang.c (scm_unpac): Ditto. 3655 * stack.c (print_frame_info_base): Ditto. 3656 * symfile.c (clear_symtab_users): Ditto. 3657 * symtab.c (decode_line_spec): Ditto. 3658 * cli/cli-cmds.c (list_command): Moved here from source.c. 3659 (ambiguous_line_spec): Moved here from source.c. 3660 (_init_cli_cmds): Add definition for "list" and its alias. 3661 * Makefile.in: Update dependencies. 3662 36632002-09-20 Corinna Vinschen <vinschen@redhat.com> 3664 3665 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location 3666 with what gcc thinks is correct. 3667 36682002-09-20 Corinna Vinschen <vinschen@redhat.com> 3669 3670 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in 3671 multiple register push instruction. 3672 36732002-09-19 Jim Blandy <jimb@redhat.com> 3674 3675 Add support for distinct host and target character sets. 3676 * charset.c, charset.h: New files. 3677 * c-exp.y: #include "charset.h". 3678 (yylex): Convert character and string literals to the target 3679 character set, before returning them as the semantic value of the 3680 token. 3681 * c-lang.c: #include "charset.h". 3682 (c_emit_char): Use charset-specific methods to recognize 3683 characters with backslash escape forms, to decide which characters 3684 to print literally and which to print using numeric escape 3685 sequences, and to convert target characters to host characters 3686 before printing. 3687 * utils.c: #include "charset.h". 3688 (no_control_char_error): New function. 3689 (parse_escape): Use charset-specific methods to recognize 3690 backslash escapes, parse `control character' notation, and convert 3691 characters from the host character set to the target character set. 3692 * configure.in: Set the default host character set. 3693 Check where to find iconv, and what its argument types might be. 3694 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC. 3695 * Makefile.in (SFILES): List charset.c. 3696 (COMMON_OBS): List charset.o. 3697 (charset.o): New rule. 3698 (charset_h): New header dependency variable. 3699 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h). 3700 (LIBICONV): New variable, set by configure. 3701 (CLIBS): Include $(LIBICONV) here. 3702 * aclocal.m4, config.in, configure: Regenerated. 3703 37042002-09-19 Joel Brobecker <brobecker@gnat.com> 3705 3706 * ada-exp.y: Add missing semicolons to end rules. Fixes a 3707 bison 1.35 warning. 3708 37092002-09-19 Richard Earnshaw <rearnsha@arm.com> 3710 3711 * gdb_mbuild.sh: New file. 3712 37132002-09-19 Andrew Cagney <ac131313@redhat.com> 3714 3715 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice. 3716 37172002-09-18 Andrew Cagney <ac131313@redhat.com> 3718 3719 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h, 3720 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h, 3721 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c, 3722 valops.c, value.h: Revert previous change. 3723 37242002-09-18 Michael Snyder <msnyder@redhat.com> 3725 3726 Preliminary support for Objective-C: 3727 * defs.h (language_objc): New enum value. 3728 (puts_filtered_tabular): Declaration only, exported from utils.c. 3729 (skip_quoted): Delete, declared in completer.h. 3730 * c-exp.y: Include completer.h. 3731 * p-exp.y: Ditto. 3732 * jv-exp.y: Ditto. 3733 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 3734 New operator enum values. 3735 * language.h (CAST_IS_CONVERSION): Test for language_objc. 3736 * language.c (binop_result_type): Handle language_objc case. 3737 (integral_type, character_type, string_type, boolean_type, 3738 structured_type, binop_type_check): Ditto. 3739 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define. 3740 (struct objc_specific): Add to general_symbol_info. 3741 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization. 3742 (SYMBOL_DEMANGLED_NAME): Handle objc case. 3743 * parser-defs.h (struct objc_class_str): New struct type. 3744 (start_msglist, end_msglist, add_msglist): Declaration only, 3745 exported from objc-lang.c. 3746 * value.h (value_of_local, value_nsstring, 3747 call_function_by_hand_expecting_type): Exported from valops.c. 3748 * valops.c (find_function_addr): Export. 3749 (call_function_by_hand_expecting_type): New function. 3750 (value_of_local): New function. 3751 * symfile.c (init_filename_language_table): Add ".m" extension 3752 for Objective-C. 3753 * utils.c (puts_filtered_tabular): New function. 3754 (fprintf_symbol_filtered): Add objc demangling support (disabled). 3755 (set/show demangle): Extend help-string to refer to ObjC. 3756 * elfread.c (elf_symtab_read): Skip Objective-C special symbols. 3757 * stabsread.c (symbol_reference_defined): Objective-C symbols 3758 may contain colons: make allowances when scanning stabs strings 3759 for colons. 3760 (objc_find_colon): New function. 3761 * printcmd.c (address_info): If language == objc then print 3762 "self" instead of "this". 3763 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL, 3764 OP_NSSTRING, and OP_SELF. 3765 (prefixify_subexp): Ditto. 3766 * source.c (print_source_lines): Mention objc in comment. 3767 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C 3768 method names. 3769 37702002-09-18 Andrew Cagney <ac131313@redhat.com> 3771 3772 * complaints.h: Update copyright. 3773 (struct complaints): Declare. 3774 (struct complaint): Make `message' constant. 3775 (internal_complaint): Declare. 3776 (complaint): Declare. 3777 (complaint_root): Delete declaration. 3778 (symfile_complaints): Delete declaration. 3779 (struct complaints): Add opaque declaration. 3780 (clear_complaints): Add a complaints parameter. 3781 * complaints.c: Update copyright. 3782 (enum complaint_series): Define. 3783 (complaint_root): Delete. 3784 (struct complaints): Define. 3785 (complaint_sentinel, symfile_complaint_book): New variables. 3786 (symfile_explanations, symfile_complaints): New variables. 3787 New variables. 3788 (get_complaints): New function. 3789 (vcomplaint): New function. 3790 (complaint): New function. 3791 (internal_complaint): New function. 3792 (complain): Call vcomplain with symfile_complaint. 3793 (clear_complaints): Rewrite. 3794 (_initialize_complaints): Use add_setshow_command. 3795 * Makefile.in (complaints.o): Update dependencies. 3796 * symfile.c (syms_from_objfile): Add symfile_complaints parameter 3797 to call to clear_complaints. 3798 (new_symfile_objfile, reread_symbols): Ditto. 3799 (oldsyms_complaint): Delete. 3800 (empty_symtab_complaint, unknown_option_complaint): Delete. 3801 (free_named_symtabs): Use complaint instead of complain. 3802 38032002-09-18 Michael Snyder <msnyder@redhat.com> 3804 3805 Contributed by Apple Computer, Inc. Merged with current sources 3806 by Adam Fedor <fedor@doc.com> [cagney]. 3807 3808 * objc-lang.c: First clean-up round: comments, indentation. 3809 * objc-lang.h: Ditto. 3810 * objc-lang.y: Ditto. 3811 38122002-09-18 Andrew Cagney <ac131313@redhat.com> 3813 3814 * maint.c (maintenance_internal_error): Print the parameter as the 3815 error message. 3816 (maintenance_internal_warning): New function. 3817 (_initialize_maint_cmds): Add command `maint internal-warning'. 3818 3819 * defs.h (internal_warning, internal_vwarning): Declare. 3820 * utils.c (struct internal_problem): Define. 3821 (internal_vproblem): New function. 3822 (internal_warning): New function. 3823 (internal_vwarning): New function. 3824 (internal_warning_problem, internal_error_problem): New variables. 3825 (internal_verror): Just call internal_vproblem. 3826 38272002-09-18 Michael Snyder <msnyder@redhat.com> 3828 3829 * objc-lang.c: New file, support for Objective-C. 3830 Preliminary check-in, not yet integrated into gdb. 3831 * objc-lang.h: New file. 3832 * objc-exp.y: New file. 3833 38342002-09-18 Andrew Cagney <ac131313@redhat.com> 3835 3836 * infrun.c (signal_stop_update): Convert definition to ISO C. 3837 (signal_print_update): Ditto. 3838 (signal_pass_update): Ditto. 3839 * inflow.c (terminal_save_ours): Ditto. 3840 3841 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++ 3842 comments. 3843 3844 * config/djgpp/fnchange.lst: Handle name clashes between 3845 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and 3846 bfd/coff-tic80.c. 3847 3848 * i386-linux-tdep.h: Fix tipo. 3849 38502002-09-18 Adam Fedor <fedor@gnu.org> 3851 3852 * MAINTAINERS: Add myself to the Write After Approval list. 3853 38542002-09-18 Jim Blandy <jimb@redhat.com> 3855 3856 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving 3857 texthigh and textlow to reader-specific structs caused 3858 objfile_relocate to miss them. This is fixable, but the work that 3859 the change was supposed to prepare GDB for never got done anyway. 3860 38612002-09-18 David Carlton <carlton@math.stanford.edu> 3862 3863 * MAINTAINERS: Alphabetize Write After Approval list. 3864 38652002-09-18 Daniel Jacobowitz <drow@mvista.com> 3866 3867 Fix PR gdb/709 3868 * values.c (value_static_field): Call read_var_value. 3869 38702002-09-18 Andrew Cagney <ac131313@redhat.com> 3871 3872 * valops.c (hand_function_call): Align the initial stack pointer 3873 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and 3874 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's 3875 return value. 3876 * mips-tdep.c (mips_frame_align): New function. 3877 (mips_gdbarch_init): Set frame_align. 3878 * gdbarch.sh (FRAME_ALIGN): New method. 3879 * gdbarch.h, gdbarch.c: Re-generate. 3880 38812002-09-18 Michal Ludvig <mludvig@suse.cz> 3882 3883 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS 3884 registers. 3885 38862002-09-17 Andrew Cagney <ac131313@redhat.com> 3887 3888 * NEWS: Mention that MIPS $fp behavior changed. 3889 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete 3890 reference to FP_REGNUM. 3891 (mipsnbsd_cannot_store_register): Ditto. 3892 * mips-linux-nat.c: Update copyright. 3893 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM. 3894 (mips_linux_cannot_store_register): Ditto. 3895 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright. 3896 * config/mips/tm-mips.h: Update copyright. 3897 (FP_REGNUM): Delete macro. 3898 (MIPS_REGISTER_NAMES): Replace "fp" with "". 3899 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro. 3900 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp. 3901 (mips_r3041_reg_names, mips_r3051_reg_names) 3902 (mips_r3081_reg_names): Replace "fp" with "". 3903 Fix PR gdb/480. 3904 39052002-09-17 Theodore A. Roth <troth@verinet.com> 3906 3907 * avr-tdep.c(avr_scan_prologue): Fix bad call to 3908 generic_read_register_dummy() (PR gdb/703). 3909 (avr_push_return_address): #if 0 out unused vars. 3910 (avr_gdbarch_init): Enable use of avr_push_return_address(). 3911 39122002-09-17 Michael Snyder <msnyder@redhat.com> 3913 3914 * m32r-stub.c (restore_and_return): Postpone restoring of PSW. 3915 RTE will take care of it. 3916 39172002-09-17 Andrew Cagney <ac131313@redhat.com> 3918 3919 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is 3920 invalid, return SP_REGNUM. 3921 39222002-09-17 Michael Snyder <msnyder@redhat.com> 3923 3924 * mips-tdep.c (mips_pop_frame): Read saved values of floating 3925 point registers without sign extension. 3926 39272002-09-17 Andrew Cagney <cagney@redhat.com> 3928 3929 * blockframe.c (deprecated_read_register_dummy): Rename 3930 generic_read_register_dummy. 3931 * frame.c (frame_unwind_signed_register): New function. 3932 (frame_unwind_unsigned_register): New function. 3933 * frame.h (frame_unwind_signed_register): Declare. 3934 (frame_unwind_unsigned_register): Declare. 3935 (deprecated_read_register_dummy): Rename 3936 generic_read_register_dummy. 3937 3938 * h8300-tdep.c (h8300_frame_chain): Update. 3939 (h8300_frame_saved_pc): Update. 3940 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update. 3941 * rs6000-tdep.c (rs6000_frame_saved_pc): Update. 3942 * s390-tdep.c (s390_frame_saved_pc_nofix): Update. 3943 (s390_frame_chain): Update. 3944 * v850-tdep.c (v850_find_callers_reg): Update. 3945 (v850_frame_saved_pc): Update. 3946 * m32r-tdep.c (m32r_init_extra_frame_info): Update. 3947 (m32r_find_callers_reg): Update. 3948 (m32r_frame_saved_pc): Update. 3949 * sh-tdep.c (sh_find_callers_reg): Update. 3950 (sh64_get_saved_pr): Update. 3951 (sh_init_extra_frame_info): Update. 3952 (sh_init_extra_frame_info): Update. 3953 (sh64_init_extra_frame_info): Update. 3954 (sh64_init_extra_frame_info): Update. 3955 * mcore-tdep.c (mcore_find_callers_reg): Update. 3956 (mcore_frame_saved_pc): Update. 3957 (mcore_init_extra_frame_info): Update. 3958 * i386-tdep.c (i386_frame_saved_pc): Update. 3959 * ia64-tdep.c (ia64_frame_saved_pc): Update. 3960 (ia64_init_extra_frame_info): Update. 3961 (ia64_init_extra_frame_info): Update. 3962 * d10v-tdep.c (d10v_frame_saved_pc): Update. 3963 * cris-tdep.c (cris_init_extra_frame_info): Update. 3964 * avr-tdep.c (avr_frame_chain): Update. 3965 (avr_init_extra_frame_info): Update. 3966 (avr_frame_saved_pc): Update. 3967 * arm-tdep.c (arm_find_callers_reg): Update. 3968 (arm_init_extra_frame_info): Update. 3969 (arm_frame_saved_pc): Update. 3970 39712002-09-17 Tom Tromey <tromey@redhat.com> 3972 3973 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter 3974 is "'". 3975 39762002-09-17 Corinna Vinschen <vinschen@redhat.com> 3977 3978 * MAINTAINERS: Remove "non multi-arched" text from h8300. 3979 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from 3980 NEXT_PROLOGUE_INSN. 3981 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of 3982 NEXT_PROLOGUE_INSN. 3983 39842002-09-16 Joel Brobecker <brobecker@gnat.com> 3985 3986 * osfsolib.c: Remove file, replaced by solib-osf.c. 3987 * Makefile.in: Remove compilation rules for osfsolib.c. 3988 39892002-09-16 David Carlton <carlton@math.stanford.edu> 3990 3991 * cp-valprint.c (cp_print_class_method): Correct args to 3992 check_stub_method_group. 3993 39942002-09-16 Corinna Vinschen <vinschen@redhat.com> 3995 3996 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of 3997 `set architecture'. Unify naming convention of functions. 3998 (h8300_skip_prologue): Improve prologue analysis. 3999 (h8300_push_arguments): Rewritten to more closely match GCC's 4000 bizarre argument-passing behavior, along with the comment describing 4001 said behavior. 4002 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition. 4003 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by 4004 sim, remote-e7000.c, remote-hms.c and remote.c 4005 40062002-09-15 Mark Kettenis <kettenis@gnu.org> 4007 4008 * i386-tdep.c (gdb_print_insn_i386): Removed. 4009 (i386_print_insn): New function. 4010 (i386_gdbarch_init): Set print_insn to i386_print_insns. 4011 (_initialize_i386_tdep): Don't initialize tm_print_insn and 4012 tm_print_insn_info. 4013 40142002-09-14 Mark Kettenis <kettenis@gnu.org> 4015 4016 * gdbtypes.c (check_stub_method_group): Initialize found_stub to 4017 zero. 4018 40192002-09-14 Corinna Vinschen <vinschen@redhat.com> 4020 4021 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression 4022 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined. 4023 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P. 4024 40252002-09-13 Christopher Faylor <cgf@redhat.com> 4026 4027 * win32-nat.c (child_create_inferior): Honor 'tty' command. 4028 40292002-09-13 Daniel Jacobowitz <drow@mvista.com> 4030 4031 * gdbtypes.c (check_stub_method): Make static. 4032 (check_stub_method_group): New function. 4033 * gdbtypes.h: Update prototypes. 4034 * cp-support.c: New file. 4035 * cp-support.h: New file. 4036 4037 * stabsread.c: Include "cp-abi.h" and "cp-support.h". 4038 (update_method_name_from_physname): New function. 4039 (read_member_functions): Correct method names for operators 4040 and v3 constructors/destructors. Separate v2 constructors and 4041 destructors. 4042 * Makefile.in (stabsread.o): Update dependencies. 4043 (SFILES): Add cp-support.c. 4044 (COMMON_OBS): Add cp-support.o. 4045 (cp_support_h, cp-support.o): Add. 4046 4047 * cp-valprint.c (cp_print_class_method): Call 4048 check_stub_method_group instead of check_stub_method. Remove 4049 extraneous QUITs. 4050 * p-valprint.c (pascal_object_print_class_method): Likewise. 4051 * valops.c (search_struct_method): Likewise. 4052 (find_method_list, value_struct_elt_for_reference): Likewise. 4053 40542002-09-13 Andrew Cagney <cagney@redhat.com> 4055 4056 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function. 4057 * gdbarch.h, gdbarch.c: Regenerate. 4058 40592002-09-13 Andrew Cagney <ac131313@redhat.com> 4060 4061 * frame.c (find_saved_register): Delete function. 4062 * frame.h (find_saved_register): Delete declaration. 4063 Fix PR gdb/631. 4064 4065Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com> 4066 4067 * mips-tdep.c (read_next_frame_reg): Re-hack using 4068 frame_register_unwind. 4069 4070Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com> 4071 4072 * mips-tdep.c (mips_get_saved_register): Re-hack using 4073 frame_register_unwind. 4074 40752002-09-12 Joel Brobecker <brobecker@gnat.com> 4076 4077 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture 4078 vector. Will be useful for Interix. 4079 * gdbarch.h, gdbarch.c: Regenerate. 4080 4081 * valops.c (value_allocate_space_in_inferior): Replace hard-coded 4082 name of the malloc function by NAME_OF_MALLOC. 4083 40842002-09-12 Joel Brobecker <brobecker@gnat.com> 4085 4086 * value.h (find_function_in_inferior): Add const keyword to 4087 one of the parameters. Allows us to invoke this function with 4088 a const char *. 4089 * valops.c (find_function_in_inferior): Likewise. 4090 40912002-09-12 Joel Brobecker <brobecker@gnat.com> 4092 4093 * exec.c (xfer_memory): Fix compilation warning with old versions 4094 of GCC. 4095 * tracepoint.c (trace_find_tracepoint_command): Likewise. 4096 40972002-09-12 David Carlton <carlton@math.stanford.edu> 4098 4099 * symtab.h: Run through gdb_indent.h. 4100 Add 2002 to Copyright year list. 4101 41022002-09-12 Alan Modra <amodra@bigpond.net.au> 4103 4104 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded 4105 mach constants. 4106 * MAINTAINERS: Add myself to write after approval list. 4107 41082002-09-11 J. Brobecker <brobecker@gnat.com> 4109 4110 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX. 4111 41122002-09-11 J. Brobecker <brobecker@gnat.com> 4113 4114 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for 4115 Interix. 4116 41172002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com> 4118 4119 * procfs.c (do_detach): Clear current signal, not just fault. 4120 Corrects problem with breakpoint trap signal leaking to detached 4121 process on Tru64. 4122 41232002-09-10 Michael Snyder <msnyder@redhat.com> 4124 4125 * buildsym.c (finish_block): Protect against null pointer. 4126 41272002-09-10 Andrew Cagney <cagney@redhat.com> 4128 4129 * infcmd.c (default_print_registers_info): Send all output to 4130 ``file'' instead of ``gdb_stdout''. 4131 41322002-09-10 Michael Snyder <msnyder@redhat.com> 4133 4134 * mips-tdep.c (mips_extract_struct_value_address): Make val a 4135 LONGEST, and use signed register read (addresses are sign- 4136 extended for mips). 4137 41382002-09-10 Stephane Carrez <stcarrez@nerim.fr> 4139 4140 * event-loop.c (gdb_do_one_event): Make public. 4141 * event-loop.h (gdb_do_one_event): Declare. 4142 41432002-09-10 Jeff Law <law@redhat.com> 4144 4145 * infttrace.c (child_resume): Simplify and rework to avoid 4146 TT_PROC_CONTINUE. 4147 41482002-09-09 Fred Fish <fnf@intrinsity.com> 4149 4150 * printcmd.c (print_scalar_formatted): "len" is the number of 4151 target bytes, NOT the number of target bits. 4152 41532002-09-09 Elena Zannoni <ezannoni@redhat.com> 4154 4155 From: Emmanuel Thome' <thome@lix.polytechnique.fr> 4156 * top.c (init_main): Set rl_terminal_name. 4157 41582002-09-08 Aidan Skinner <aidan@velvet.net> 4159 4160 * ada-lang.c (ada_array_bound, ada_type_match, 4161 _initialize_ada_language): Fix K&R definitions. 4162 * ada-tasks.c (get_current_task): Fix K&R definitions. 4163 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions. 4164 41652002-09-07 Christopher Faylor <cgf@redhat.com> 4166 4167 * MAINTAINERS: Remove CE from list of maintainership responsibilities. 4168 Add XP. 4169 41702002-09-06 Mark Kettenis <kettenis@gnu.org> 4171 4172 * i386-tdep.c (i386_register_virtual_type, 4173 i386_register_convertible, i386_register_convert_to_virtual, 4174 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P 4175 instead of IS_FP_REGNUM and IS_SSE_REGNUM. 4176 (i386_gdbarch_init): Fix comment. Add comments on calls that set 4177 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum. 4178 Don't set push_arguments twice. 4179 4180 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and 4181 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end. 4182 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and 4183 sigtramp_end to NULL. 4184 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove 4185 defines. 4186 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes. 4187 4188 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious 4189 whitespace. 4190 4191 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods. 4192 * gdbarch.h, gdbarch.c: Re-generate. 4193 * blockframe.c (find_pc_sect_partial_function): Convert to use 4194 SIGTRAMP_START_P predicate. 4195 41962002-09-05 Michael Snyder <msnyder@redhat.com> 4197 4198 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between 4199 generic_dummy_frame method and old method. Also distinguish 4200 between ARM_FP_REGNUM and THUMB_FP_REGNUM. 4201 (arm_extract_return_value): Use new regcache method. 4202 4203 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment 4204 adjustment that doesn't conform to the ABI. 4205 (mips_extract_struct_value_address): Retrieve V0_REGNUM from 4206 saved regcache, not from current regcache. 4207 42082002-09-05 Andrew Cagney <ac131313@redhat.com> 4209 4210 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''. 4211 * README: Update. 4212 42132002-09-04 Jason Thorpe <thorpej@wasabisystems.com> 4214 4215 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode 4216 if arm_apcs_32 is false. 4217 42182002-09-04 Andrew Cagney <ac131313@redhat.com> 4219 4220 GDB 5.3 branch created. 4221 42222002-09-03 Theodore A. Roth <troth@verinet.com> 4223 4224 * avr-tdep.c (avr_gdbarch_init): Use 4225 generic_unwind_get_saved_register. 4226 42272002-09-03 David Carlton <carlton@math.stanford.edu> 4228 4229 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type' 4230 argument (PR gdb/653). Update call to smash_to_method_type. 4231 (read_structure_scope): Update call to dwarf2_add_member_fn. 4232 42332002-09-03 Michal Ludvig <mludvig@suse.cz> 4234 4235 * x86-64-linux-tdep.c: Include gdb_string.h 4236 * x86-64-linux-nat.c: Ditto. 4237 42382002-09-02 Jason Thorpe <thorpej@wasabisystems.com> 4239 4240 * ada-exp.y (yyname, yyrule): Remap global variables that appear 4241 when YYDEBUG is set to 1. 4242 * c-exp.y: Likewise. 4243 * f-exp.y: Likewise. 4244 * jv-exp.y: Likewise. 4245 * m2-exp.y: Likewise. 4246 * p-exp.y: Likewise. 4247 42482002-09-02 Jason Thorpe <thorpej@wasabisystems.com> 4249 4250 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to 4251 dependency list. 4252 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set 4253 solib_svr4_fetch_link_map_offsets to 4254 nbsd_ilp32_solib_svr4_fetch_link_map_offsets. 4255 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o. 4256 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o. 4257 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o, 4258 solib-svr4.o, and solib-legacy.o. 4259 * config/i386/tm-nbsd.h: Include solib.h. 4260 42612002-09-02 Jason Thorpe <thorpej@wasabisystems.com> 4262 4263 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 4264 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd. 4265 (i[3456]86-*-openbsd*): Make this a separate entry. Add a 4266 comment noting that this needs its own target configuration. 4267 * config/i386/nbsd.mt: New file. 4268 * config/i386/nbsdaout.mt: Remove. 4269 * config/i386/nbsdelf.mt: Ditto. 4270 * config/i386/tm-nbsdaout.h: Ditto. 4271 42722002-09-02 Jason Thorpe <thorpej@wasabisystems.com> 4273 4274 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 4275 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 4276 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or 4277 tdep->sigtramp_end. 4278 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 4279 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END) 4280 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove. 4281 42822002-09-02 Jason Thorpe <thorpej@wasabisystems.com> 4283 4284 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h), 4285 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list. 4286 * i386-tdep.h (i386bsd_init_abi): New prototype. 4287 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from 4288 function declaration. 4289 (_initialize_i386bsd_tdep): Don't register OS ABI handlers 4290 for NetBSD-a.out or NetBSD-ELF. 4291 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end) 4292 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset) 4293 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to... 4294 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h, 4295 and nbsd-tdep.h. 4296 (i386nbsd_pc_in_sigtramp): New function. 4297 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to 4298 i386nbsd_pc_in_sigtramp. 4299 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi 4300 and i386nbsdelf_init_abi OS ABI handlers. 4301 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o. 4302 * config/i386/nbsdelf.mt (TDEPFILES): Likewise. 4303 43042002-09-02 Mark Kettenis <kettenis@gnu.org> 4305 4306 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE 4307 registers if the target really has them. 4308 43092002-08-31 Jason Thorpe <thorpej@wasabisystems.com> 4310 4311 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather 4312 than nbsd-tdep.h. 4313 43142002-08-31 Jason Thorpe <thorpej@wasabisystems.com> 4315 4316 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency 4317 list. 4318 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr) 4319 (alphanbsd_skip_sigtramp_frame): New functions. 4320 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to 4321 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr 4322 to alphanbsd_sigcontext_addr. 4323 43242002-08-31 Jason Thorpe <thorpej@wasabisystems.com> 4325 4326 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency 4327 list. 4328 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 4329 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use 4330 nbsd_pc_in_sigtramp. 4331 * mipsnbsd-tdep.c: Include nbsd-tdep.h. 4332 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp. 4333 * nbsd-tdep.c: Include gdb_string.h. 4334 (nbsd_pc_in_sigtramp): New function. 4335 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 4336 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function. 4337 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to 4338 ppcnbsd_pc_in_sigtramp. 4339 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function. 4340 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to 4341 shnbsd_pc_in_sigtramp. 4342 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set 4343 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 4344 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o. 4345 43462002-08-30 Pierre Muller <muller@ics.u-strasbg.fr> 4347 4348 * breakpoint.c (breakpoint_init_inferior): Reset the val field of 4349 watchpoints to NULL. 4350 (insert_breakpoints): set val field of watchpoints if NULL. 4351 4352 43532002-08-29 Jim Blandy <jimb@redhat.com> 4354 4355 * symtab.c (lookup_symbol_aux): In the cases where we find a 4356 minimal symbol of an appropriate name and use its address to 4357 select a symtab to read and search, use `name' (as passed to us) 4358 as the demangled name when searching the symtab's global and 4359 static blocks, not the minsym's name. 4360 43612002-08-29 Keith Seitz <keiths@redhat.com> 4362 4363 * stack.c (print_frame_info_base): Always set current_source_symtab 4364 and current_source_line. 4365 43662002-08-29 Donn Terry <donnte@microsoft.com> 4367 4368 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S). 4369 43702002-08-28 Keith Seitz <keiths@redhat.com> 4371 4372 * stack.c (select_frame): Add FIXME concerning selected-frame 4373 events. 4374 (select_frame_command): Send selected-frame-level-changed 4375 event notification, but only if the level actually changed. 4376 (up_silently_base): Add selected-frame-level-changed event 4377 notification. 4378 (down_silently_base): Likewise. 4379 43802002-08-28 Andrew Cagney <ac131313@redhat.com> 4381 4382 * Makefile.in: Update dependencies for all gdb/*.c files. 4383 43842002-08-27 Tom Tromey <tromey@redhat.com> 4385 4386 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o, 4387 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o): 4388 Update dependencies. 4389 * i387-tdep.c: Include gdb_string.h. 4390 * osabi.c: Likewise. 4391 * i386-linux-nat.c: Likewise. 4392 * lin-lwp.c: Likewise. 4393 * ax-gdb.c: Likewise. 4394 * signals/signals.c: Likewise. 4395 * jv-valprint.c: Likewise. 4396 * p-lang.c: Likewise. 4397 * c-valprint.c: Likewise. 4398 * cp-abi.c: Likewise. 4399 44002002-08-27 Elena Zannoni <ezannoni@redhat.com> 4401 4402 * cli/cli-script.h (copy_command_lines): Export. 4403 * breakpoint.c: Include cli/cli-script.h. 4404 * Makefile.in (breakpoint.o): Update dependencies. 4405 44062002-08-26 Michael Snyder <msnyder@redhat.com> 4407 4408 * breakpoint.c (insert_breakpoints): Protect all references 4409 to 'process_warning'. Shorten long lines. 4410 44112002-08-26 Joel Brobecker <brobecker@gnat.com> 4412 4413 * cli/cli-script.c (copy_command_lines): New function. 4414 * defs.h (copy_command_lines): Export. 4415 44162002-08-26 Michael Snyder <msnyder@redhat.com> 4417 4418 * breakpoint.c (bpstat_stop_status): Instead of copying the 4419 pointer to the breakpoint commands struct, make a new copy 4420 of the struct and point to that. 4421 (bpstat_clear): Free the commands struct. 4422 (bpstat_clear_actions): Free the commands struct. 4423 (bpstat_do_actions): Free the command actions. Also execute 4424 the local cleanups, instead of deleting them. 4425 (delete_breakpoint): Leave the commands field of the bpstat 4426 chain alone -- it will be freed later. 4427 44282002-08-26 Kevin Buettner <kevinb@redhat.com> 4429 4430 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently 4431 deleted in 2002-08-20 commit. This function is still used by 4432 ppc-linux-nat.c. 4433 44342002-08-26 Keith Seitz <keiths@redhat.com> 4435 4436 * gdb-events.sh: Add selected-frame-level-changed event. 4437 * gdb-events.c: Regenerated. 4438 * gdb-events.h: Regenerated. 4439 44402002-08-26 Stephane Carrez <stcarrez@nerim.fr> 4441 4442 Fix PR gdb/393: 4443 * inflow.c (terminal_save_ours): New function to save terminal 4444 settings. 4445 * inferior.h (terminal_save_ours): Declare. 4446 * target.c (debug_to_terminal_save_ours): New function. 4447 (cleanup_target): Defaults to_terminal_save_ours. 4448 (update_current_target): Inherit to_terminal_save_ours. 4449 (setup_target_debug): Set to_terminal_save_ours. 4450 * target.h (target_terminal_save_ours): New to save terminal settings. 4451 (target_ops): New member to_terminal_save_ours. 4452 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours. 4453 * hpux-thread.c (init_hpux_thread_ops): Likewise. 4454 * inftarg.c (init_child_ops): Likewise. 4455 * m3-nat.c (init_m3_ops): Likewise. 4456 * procfs.c (init_procfs_ops): Likewise. 4457 * wince.c (init_child_ops): Likewise. 4458 * win32-nat.c (init_child_ops): Likewise. 4459 * sol-thread.c (init_sol_thread_ops): Likewise. 4460 44612002-08-26 Mark Kettenis <kettenis@gnu.org> 4462 4463 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to 4464 use regcache_* functions. 4465 (i386_gdbarch_init): Set store_return_value instead of 4466 deprecated_store_return_value. 4467 4468 * regcache.c (regcache_raw_write_signed, 4469 regcache_raw_write_unsigned): New functions. 4470 * regcache.h (regcache_raw_write_signed, 4471 regcache_raw_write_unsigned): New prototypes. 4472 44732002-08-25 Andrew Cagney <ac131313@redhat.com> 4474 4475 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o) 4476 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the 4477 source file dependencies. Cleanup corresponding generator rules. 4478 44792002-08-25 Andrew Cagney <ac131313@redhat.com> 4480 4481 * regcache.h (register_offset_hack): Declare. 4482 (regcache_cooked_read_using_offset_hack): Declare. 4483 (regcache_cooked_write_using_offset_hack): Declare. 4484 4485 * regcache.c (register_offset_hack): New function. 4486 (regcache_cooked_read_using_offset_hack): New function. 4487 (regcache_cooked_write_using_offset_hack): New function. 4488 (regcache_dump): Check that the registers, according to their 4489 offset, are packed hard against each other. 4490 (cooked_xfer_using_offset_hack): New function. 4491 44922002-08-25 Andrew Cagney <ac131313@redhat.com> 4493 4494 * regcache.c (struct regcache_descr): Add field register_type. 4495 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr 4496 in as a parameter 4497 (init_regcache_descr): Initialize register_type. Pass the descr 4498 to init_legacy_regcache_descr. Use register_type instead of 4499 REGISTER_VIRTUAL_TYPE. 4500 (register_type): New function. 4501 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type. 4502 * regcache.h (register_type): Declare. 4503 45042002-08-25 Andrew Cagney <ac131313@redhat.com> 4505 4506 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return 4507 instead of deprecated_store_return_value. Fix fallout from 4508 2002-08-23 Andrew Cagney <cagney@redhat.com>. 4509 45102002-08-25 Andrew Cagney <ac131313@redhat.com> 4511 4512 * regcache.c (max_register_size): New function. 4513 (init_legacy_regcache_descr): Ensure that max_register_size is 4514 large enough for REGISTER_VIRTUAL_SIZE. 4515 * regcache.h (max_register_size): Declare. 4516 45172002-08-24 Andrew Cagney <ac131313@redhat.com> 4518 4519 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of 4520 store_return_value. 4521 (e500_extract_return_value): Change type of valbuf pointer to 4522 void. 4523 45242002-08-24 Mark Kettenis <kettenis@gnu.org> 4525 4526 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest 4527 workaround. 4528 4529 * valprint.c (print_longest) [CC_HAS_LONG_LONG && 4530 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned 4531 long long) to prevent compiler warning on 64-bit systems. 4532 45332002-08-23 Andrew Cagney <cagney@redhat.com> 4534 4535 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter. 4536 (DEPRECATED_STORE_RETURN_VALUE): New method. 4537 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer. 4538 * gdbarch.h, gdbarch.c: Re-generate. 4539 4540 * values.c (set_return_value): Pass current_regcache to 4541 STORE_RETURN_VALUE. 4542 * arch-utils.h (legacy_store_return_value): Declare. 4543 * arch-utils.c (legacy_store_return_value): New function. 4544 (legacy_extract_return_value): Update parameters. 4545 4546 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename 4547 STORE_RETURN_VALUE. 4548 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto. 4549 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto. 4550 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto. 4551 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto. 4552 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto. 4553 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto. 4554 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto. 4555 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto. 4556 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto. 4557 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto. 4558 4559 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update. 4560 * i386-tdep.c (i386_extract_return_value): Update. 4561 * arch-utils.c (legacy_extract_return_value): Update. 4562 * frv-tdep.c (frv_gdbarch_init): Update. 4563 * cris-tdep.c (cris_gdbarch_init): Update. 4564 * d10v-tdep.c (d10v_gdbarch_init): Update. 4565 * rs6000-tdep.c (rs6000_gdbarch_init): Update. 4566 * m68k-tdep.c (m68k_gdbarch_init): Update. 4567 * mcore-tdep.c (mcore_gdbarch_init): Update. 4568 * mn10300-tdep.c (mn10300_gdbarch_init): Update. 4569 * s390-tdep.c (s390_gdbarch_init): Update. 4570 * sparc-tdep.c (sparc_gdbarch_init): Update. 4571 * sh-tdep.c (sh_gdbarch_init): Update. 4572 * x86-64-tdep.c (x86_64_gdbarch_init): Update. 4573 * v850-tdep.c (v850_gdbarch_init): Update. 4574 * avr-tdep.c (avr_gdbarch_init): Update. 4575 * ia64-tdep.c (ia64_gdbarch_init): Update. 4576 * ns32k-tdep.c (ns32k_gdbarch_init): Update. 4577 * vax-tdep.c (vax_gdbarch_init): Update. 4578 * alpha-tdep.c (alpha_gdbarch_init): Update. 4579 * arm-tdep.c (arm_gdbarch_init): Update. 4580 * mips-tdep.c (mips_gdbarch_init): Update. 4581 * i386-tdep.c (i386_gdbarch_init): Update. 4582 45832002-08-23 Andrew Cagney <ac131313@redhat.com> 4584 4585 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c, 4586 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c. 4587 45882002-08-24 Mark Kettenis <kettenis@gnu.org> 4589 4590 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD 4591 problems. 4592 45932002-08-23 Joel Brobecker <brobecker@gnat.com> 4594 4595 * infrun.c (handle_inferior_event): Move a comment outside of a 4596 function call, in order to avoid indent reformatting this part 4597 of the code in an unreadable way. 4598 45992002-08-23 Grace Sainsbury <graces@redhat.com> 4600 4601 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg 4602 when breakpoints fail. Move general breakpoint error messages to 4603 insert_breakpoints. 4604 * breakpoint.c (insert_breakpoints): Change warnings when 4605 breakpoints are nto inserted to specify the type. Remove call to 4606 memory_error when hardware breakpoints can't be inserted. Remove 4607 multiple calls to warning so all messages are sent to the user at 4608 once. 4609 (delete_breakpoints): Make insert error messsages more explicit. 4610 46112002-08-23 Daniel Jacobowitz <drow@mvista.com> 4612 4613 * ChangeLog: Move gdbserver entries after GDB 5.2 to 4614 gdbserver/ChangeLog. 4615 46162002-08-23 Mark Kettenis <kettenis@gnu.org> 4617 4618 * i386-tdep.c: Include "objfiles.h". 4619 (i386_svr4_init_abi): Set in_solib_call_trampoline and 4620 skip_trampoline_code. 4621 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h". 4622 (CPLUS_MARKER): Define to '.'. 4623 4624 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes 4625 member. 4626 (linux_corefile_thread_callback): Increase args->num_notes. 4627 (linux_make_note_section): Initialize thread_args.num_notes, and 4628 use it to determine whether notes for any threads were created. 4629 46302002-08-23 Donn Terry <donnte@microsoft.com> 4631 4632 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the 4633 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD 4634 and PCUNKILL. 4635 (write_with_trace): Conditionalize out the switch branch handling 4636 PCSHOLD if the corresponding macro is not defined. Likewise for 4637 PRSABORT and PRSTOP. 4638 This change will be needed by the Interix port. 4639 46402002-08-22 Elena Zannoni <ezannoni@redhat.com> 4641 4642 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use 4643 write_register wherever possible instead of manipulating the 4644 register bytes directly. 4645 Assign VALUE_CONTENTS to a variable and use that. 4646 The GPR numbers are now dependent on the architecture. 4647 46482002-08-22 Elena Zannoni <ezannoni@redhat.com> 4649 4650 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and 4651 ev_offset fields. 4652 (skip_prologue): Add support for BookE/e500 instructions. 4653 (e500_extract_return_value): New function. 4654 (frame_get_saved_regs): Add support for saving ev registers and 4655 pseudo gpr's. 4656 (e500_store_return_value): New function. 4657 (rs6000_gdbarch_init): Move up default intializations of 4658 deprecated_extract_return_value and store_return_value. Overwrite 4659 init of store_return_value with e500 specific version. 4660 Set extract_return_value for e500. 4661 46622002-08-22 Elena Zannoni <ezannoni@redhat.com> 4663 4664 * blockframe.c (generic_call_dummy_register_unwind): Use 4665 regcache_cooked_read to catch cases in which the variable is 4666 stored in a pseudo register. 4667 46682002-08-22 Andrew Cagney <cagney@redhat.com> 4669 4670 * NEWS: Mention that the i960 has been made obsolete. 4671 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and 4672 i960-tdep.c 4673 (remote-nrom.o): Obsolete target. 4674 (remote-nindy.o, i960-tdep.o): Ditto. 4675 * remote-nrom.c: Make file obsolete. 4676 * remote-nindy.c, remote-vx960.c: Ditto. 4677 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto. 4678 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto. 4679 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto. 4680 * config/i960/tm-mon960.h, i960-tdep.c: Ditto. 4681 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*, 4682 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and 4683 i960-*-vxworks* obsolete. 4684 * MAINTAINERS: Note that the i960 is obsolete. 4685 46862002-08-21 Corinna Vinschen <vinschen@redhat.com 4687 4688 * aix-thread.c (aix_thread_detach): Disable thread debugging on 4689 detach to allow reinitialization. 4690 46912002-08-22 Andrew Cagney <ac131313@redhat.com> 4692 4693 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second 4694 attempt). 4695 46962002-08-22 Jim Blandy <jimb@redhat.com> 4697 4698 * coffread.c (coff_symfile_read): Don't try to read the line 4699 number table from disk if the image file doesn't have a symbol 4700 table; we'll never actually look at the info anyway, and Windows 4701 ships DLL's with bogus file offsets for the line number data. 4702 47032002-08-21 Elena Zannoni <ezannoni@redhat.com> 4704 4705 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have 4706 an e500 executable. 4707 47082002-08-21 Michael Snyder <msnyder@redhat.com> 4709 4710 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function. 4711 (MSYMBOL_SIZE): Replace macro with function. 4712 (DEFAULT_MIPS_TYPE): Delete unused macro. 4713 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro. 4714 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro. 4715 47162002-08-21 Jim Blandy <jimb@redhat.com> 4717 4718 * valops.c (value_cast): Simplify and correct logic for doing a 4719 static cast from a pointer to a base class to a pointer to a 4720 derived class. 4721 47222002-08-21 Andrew Cagney <ac131313@redhat.com> 4723 4724 * infcmd.c (default_print_registers_info): Replace 4725 do_registers_info. 4726 (registers_info): Use gdbarch_print_registers_info instead of 4727 DO_REGISTERS_INFO. 4728 * inferior.h (default_print_registers_info): Replace 4729 do_registers_info. 4730 * gdbarch.sh (PRINT_REGISTERS_INFO): New method. 4731 (DO_REGISTERS_INFO): Change to a predicate function. 4732 * gdbarch.h, gdbarch.c: Regenerate. 4733 47342002-08-21 Keith Seitz <keiths@redhat.com> 4735 4736 * gdb-events.sh: Add target-changed event. 4737 * gdb-events.c: Regenerated. 4738 * gdb-events.c: Regenerated. 4739 * valops.c (value_assign): Add target-changed event notification 4740 to inlval_register, lval_memory, and lval_reg_frame_relative. 4741 47422002-08-21 Joel Brobecker <brobecker@gnat.com> 4743 4744 * NEWS: Add an entry regarding the improvement of the next/step 4745 operation on Alpha Tru64 multi-processor machines. 4746 47472002-08-21 Andrew Cagney <ac131313@redhat.com> 4748 4749 * Makefile.in: Update dependencies for mi/ cli/ and tui/ 4750 directores. 4751 * Makefile.in: Update all _h macro definitions. 4752 * Makefile.in (install-gdbtk): Move to install section. 4753 (rdi-share/libangsd.a): Move to end of file. 4754 47552002-08-19 Andrew Cagney <ac131313@redhat.com> 4756 4757 * frame.c (frame_register_unwind): When a register, set addrp to 4758 the register's byte. 4759 47602002-08-20 Michael Snyder <msnyder@redhat.com> 4761 4762 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only 4763 used locally, so move them from the target machine header to here. 4764 (mips_set_processor_type, mips_register_name, mips32_next_pc, 4765 mips16_next_pc, cached_proc_desc, mips_set_processor_type): 4766 Make static. 4767 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete. 4768 47692002-08-20 Andrew Cagney <cagney@redhat.com> 4770 4771 * NEWS: Mention that the Apollo line was made obsolete. 4772 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and 4773 m68*-hp-hpux* obsolete. 4774 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*, 4775 m68*-hp-bsd* and m68*-hp-hpux* obsolete. 4776 * buildsym.c (make_blockvector): Make static. 4777 * buildsym.h (make_blockvector): Make extern declaration obsolete. 4778 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h 4779 (ALLDEPFILES): Remove dstread.c. 4780 (dstread.o): Obsolete make rule. 4781 * dstread.c: Makefile obsolete. 4782 * dst.h: Ditto. 4783 * config/m68k/hp300hpux.mt: Ditto. 4784 * config/m68k/hp300hpux.mh: Ditto. 4785 * config/m68k/hp300bsd.mt: Ditto. 4786 * config/m68k/hp300bsd.mh: Ditto. 4787 * config/m68k/apollo68b.mt: Ditto. 4788 * config/m68k/apollo68v.mh: Ditto. 4789 * config/m68k/apollo68b.mh: Ditto. 4790 47912002-08-20 Michael Snyder <msnyder@redhat.com> 4792 4793 * mips-tdep.c (mips_in_return_stub): Make static. 4794 (mips_gdbarch_init): Set in_solib_return_trampoline. 4795 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete. 4796 47972002-08-20 Michael Snyder <msnyder@redhat.com> 4798 4799 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add. 4800 * gdbarch.c, gdbarch.h: Regenerate. 4801 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline): 4802 Add. 4803 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition. 4804 48052002-08-20 Michael Snyder <msnyder@redhat.com> 4806 4807 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static. 4808 (mips_gdbarch_init): Set skip_trampoline_code, 4809 in_solib_call_trampoline. 4810 * config/mips/tm-mips.h (REGISTER_NAME): Delete. 4811 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete. 4812 48132002-08-20 Elena Zannoni <ezannoni@redhat.com> 4814 4815 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers. 4816 4817 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit 4818 vector type for ev registers. 4819 (e500_pseudo_register_read): New function. 4820 (e500_pseudo_register_write): New function. 4821 (e500_dwarf2_reg_to_regnum): New function. 4822 (PPC_UISA_NOFP_SPRS): New macro. 4823 (PPC_EV_REGS): New macro. 4824 (PPC_GPRS_PSEUDO_REGS): New macro. 4825 (registers_e500): New register set for e500. 4826 (variants): Add e500 variant. 4827 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to 4828 before setting architectural dependent variations. Initialize ev 4829 registers numbers. Add case for e500 architecture. Set the 4830 number of pseudo registers. 4831 48322002-08-20 Elena Zannoni <ezannoni@redhat.com> 4833 4834 * rs6000-tdep.c: Clean up comments. 4835 48362002-08-20 Andrew Cagney <cagney@redhat.com> 4837 4838 * h8300-tdep.c: Re-indent file. 4839 48402002-08-20 Jim Blandy <jimb@redhat.com> 4841 4842 * Makefile.in (LDFLAGS): Allow the configure script to establish a 4843 default for this. 4844 48452002-08-20 Keith Seitz <keiths@redhat.com> 4846 4847 * breakpoints.c (watch_command_1): Use internal breakpoint 4848 when setting a watchpoint_scope breakpoint. 4849 48502002-08-20 Elena Zannoni <ezannoni@redhat.com> 4851 4852 * gdbtypes.c (build_builtin_type_vec64): Add name to type. 4853 (build_builtin_type_vec64i): Ditto. 4854 (build_builtin_type_vec128): Ditto. 4855 (build_builtin_type_vec128i): Ditto. 4856 48572002-08-19 Michael Snyder <msnyder@redhat.com> 4858 4859 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete. 4860 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions. 4861 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, 4862 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete. 4863 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, 4864 CALL_DUMMY_ADDRESS): Delete. 4865 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size, 4866 mips_msymbol_is_special, mips_fix_call_dummy): New functions. 4867 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 4868 push_dummy_frame, fix_call_dummy, init_extra_frame_info, 4869 push_return_address. 4870 (mips_register_raw_size, mips_eabi_use_struct_convention, 4871 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention, 4872 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain, 4873 mips_init_extra_frame_info, mips_eabi_push_arguments, 4874 mips_n32n64_push_arguments, mips_push_return_address, 4875 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue, 4876 mips_breakpoint_from_pc, mips_call_dummy_address): Make static. 4877 48782002-08-19 Michael Snyder <msnyder@redhat.com> 4879 4880 * mips-tdep.c (mips_frame_num_args): New function. 4881 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation, 4882 frame_saved_pc, frame_args_address, frame_locals_address, 4883 frame_num_args, and frame_args_skip. 4884 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, 4885 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 4886 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete. 4887 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete. 4888 48892002-08-20 Michael Snyder <msnyder@redhat.com> 4890 4891 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete. 4892 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete. 4893 * mips-tdep.c (mips_store_struct_return): New function. 4894 (mips_extract_struct_value_address): New function. 4895 (mips_gdbarch_init): Set store_struct_return and 4896 extract_struct_value_address. 4897 48982002-08-20 David Carlton <carlton@math.stanford.edu> 4899 4900 * dwarf2read.c (dwarf2_build_psymtabs): Check that 4901 dwarf_line_offset is nonzero before creating dwarf_line_buffer. 4902 (read_file_scope): Check that line_header is nonzero before 4903 decoding macro information. 4904 49052002-08-20 Mark Kettenis <kettenis@gnu.org> 4906 4907 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly 4908 flag the general-purpose registers as floating-point on targets 4909 that don't support the floating-point registers. 4910 49112002-08-20 Elena Zannoni <ezannoni@redhat.com> 4912 4913 * rs6000-tdep.c (altivec_register_p): Delete. 4914 (rs6000_do_altivec_registers): Delete. 4915 (rs6000_altivec_registers_info): Delete. 4916 (rs6000_do_registers_info): Delete. 4917 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'. 4918 (rs6000_gdbarch_init): Remove setting of do_registers_info. 4919 49202002-08-20 Elena Zannoni <ezannoni@redhat.com> 4921 4922 * infcmd.c (do_registers_info): Print vector registers in hex 4923 format only. 4924 (print_vector_info): Check that printing registers 4925 makes sense. 4926 (print_float_info): Ditto. 4927 49282002-08-20 Andrew Cagney <ac131313@redhat.com> 4929 4930 * mips-tdep.c (mips_gdbarch_init): Update. 4931 (mips_o32_extract_return_value): Rewrite. 4932 (mips_o32_store_return_value): Rewrite. 4933 (mips_o32_xfer_return_value): New function. 4934 (mips_xfer_register): Tweak debug print message. Allow for 4935 buf_offset when dumping the value transfered. 4936 49372002-08-20 Andrew Cagney <ac131313@redhat.com> 4938 4939 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete. 4940 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete. 4941 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete. 4942 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete. 4943 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code. 4944 49452002-08-14 Michael Snyder <msnyder@redhat.com> 4946 4947 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames. 4948 49492002-08-19 Elena Zannoni <ezannoni@redhat.com> 4950 4951 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo 4952 register. 4953 (P): New macro to define a register as a pseudo register. 4954 (R, R4, R8, R16, FR32, R64, R0): Updated. 4955 (struct variant): Add new fields for number of pseudo registers 4956 and number of total registers. 4957 (tot_num_registers): New macro replacing.... 4958 (num_registers): ...deleted macro. 4959 (num_registers): New function. 4960 (num_pseudo_registers): New function. 4961 (variants): Update all variants to intialize new fields correctly. 4962 Postpone initialization of number of pseudo regs and real regs. 4963 (init_variants): New function. 4964 (rs6000_gdbarch_init): Initialize variants. Update calculation of 4965 registers offsets. 4966 49672002-08-19 David Carlton <carlton@math.stanford.edu> 4968 4969 * valops.c (search_struct_field): Change error message to treat 4970 return value of 0 from value_static_field as meaning that field is 4971 optimized out. 4972 (value_struct_elt_for_reference): Ditto. 4973 * values.c (value_static_field): Treat an unresolved location the 4974 same as a nonexistent symbol. Fix PR gdb/635. 4975 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being 4976 enclosed. Fix PR gdb/574. 4977 * MAINTAINERS: Add self to Write After Approval list. 4978 49792002-08-19 Andrew Cagney <ac131313@redhat.com> 4980 4981 * mips-tdep.c (mips_xfer_register): New function. 4982 (mips_n32n64_extract_return_value): Rewrite. 4983 (mips_gdbarch_init): For N32 and N64, set extract_return_value 4984 instead of deprecated_extract_return_value. 4985 49862002-08-19 Elena Zannoni <ezannoni@redhat.com> 4987 4988 * rs6000-tdep.c (TDEP): Delete macro. 4989 (branch_dest): Replace use of TDEP macro with its body. 4990 (rs6000_pop_frame): Ditto. 4991 (rs6000_push_arguments): Ditto. 4992 (rs6000_skip_trampoline_code): Ditto. 4993 (rs6000_frame_saved_pc): Ditto. 4994 (rs6000_frame_chain): Ditto. 4995 (rs6000_register_name): Ditto. 4996 (rs6000_register_byte): Ditto. 4997 (rs6000_register_raw_size): Ditto. 4998 (rs6000_register_virtual_type): Ditto. 4999 (rs6000_register_convertible): Ditto. 5000 (rs6000_convert_from_func_ptr_addr): Ditto. 5001 50022002-08-19 Daniel Jacobowitz <drow@mvista.com> 5003 5004 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define 5005 conditionally. 5006 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and 5007 MIPS_LINUX_JB_ELEMENT_SIZE. 5008 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca 5009 for MAX_REGISTER_RAW_SIZE arrays. 5010 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and 5011 MIPS_LINUX_JB_ELEMENT_SIZE. 5012 50132002-08-19 Pierre Muller <muller@ics.u-strasbg.fr> 5014 5015 * i387-tdep.c (i387_print_float_info): Fix typo in comment. 5016 50172002-08-19 Aidan Skinner <aidan@velvet.net> 5018 5019 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c 5020 ada-valprint.c ada-tasks.c. 5021 (YYFILES): Add ada-exp.y. 5022 (ada-exp.tab.c ada-lex.c ada-lang.o): New target. 5023 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target. 5024 (ada-exp.tab.o): New target. 5025 50262002-08-18 Andrew Cagney <ac131313@redhat.com> 5027 5028 * regcache.c (regcache_xfer_part): New function. 5029 (regcache_raw_read_part): New function. 5030 (regcache_raw_write_part): New function. 5031 (regcache_cooked_read_part): New function. 5032 (regcache_cooked_write_part): New function. 5033 * regcache.h (regcache_raw_read_part): Declare. 5034 (regcache_raw_write_part): Declare. 5035 (regcache_cooked_read_part): Declare. 5036 (regcache_cooked_write_part): Declare. 5037 50382002-08-18 Daniel Jacobowitz <drow@mvista.com> 5039 5040 * remote.c (remote_open_1): Add async_p. 5041 (remote_async_open_1): Delete. 5042 (open_remote_target): Delete. 5043 (remote_open, extended_remote_open): Update calls to remote_open_1. 5044 (remote_async_open, extended_remote_async_open): Call 5045 remote_open_1 instead of remote_async_open_1. 5046 50472002-08-19 Mark Kettenis <kettenis@gnu.org> 5048 5049 * blockframe.c: Fix a few coding standard violations. 5050 50512002-08-19 Mark Kettenis <kettenis@gnu.org> 5052 5053 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved 5054 here from ... 5055 * config/i386/tm-i386sco5.h: ... here. File removed. 5056 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h. 5057 5058 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define. 5059 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o 5060 (TM_FILE): Set to tm-i386.h. 5061 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h. 5062 * config/i386/tm-i386v.h: Remove file. 5063 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h" 5064 instead of "i386/tm-i386v.h". 5065 (START_INFERIOR_TRAPS_EXPECTED): Remove define. 5066 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of 5067 "i386/tm-i386v.h". 5068 (START_INFERIOR_TRAPS_EXPECTED): Remove define. 5069 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of 5070 "i386/tm-i386.h". 5071 50722002-08-18 Mark Kettenis <kettenis@gnu.org> 5073 5074 * config/i386/nm-i386v.h: Add protection against 5075 multiple-inclusion. 5076 (i386_register_u_addr): Remove prototype. 5077 (register_u_addr): New prototype. 5078 (REGISTER_U_ADDR): Redefine accordingly. 5079 * i386v-nat.c: Improve several comments. 5080 (i386_register_u_addr): Change signature and rename to 5081 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of 5082 ubase variable. 5083 50842002-08-18 Andrew Cagney <ac131313@redhat.com> 5085 5086 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro. 5087 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro. 5088 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and 5089 deprecated_extract_return_value. 5090 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and 5091 rename mips_o32o64_push_arguments. 5092 (mips_gdbarch_init): Update. 5093 (mips_extract_return_value): Delete. 5094 (mips_o32_extract_return_value): Clone mips_extract_return_value. 5095 (mips_o64_extract_return_value): Clone mips_extract_return_value. 5096 (mips_eabi_extract_return_value): Clone mips_extract_return_value. 5097 (mips_n32n64_extract_return_value): Clone 5098 mips_extract_return_value. 5099 (mips_store_return_value): Delete. 5100 (mips_o32_store_return_value): Clone mips_store_return_value. 5101 (mips_o64_store_return_value): Clone mips_store_return_value. 5102 (mips_eabi_store_return_value): Clone mips_store_return_value. 5103 (mips_n32n64_store_return_value): Clone mips_store_return_value. 5104 51052002-08-18 Aidan Skinner <aidan@velvet.net> 5106 5107 * ada-lang.c: Use gdb_string.h instead of <string.h>. 5108 * ada-typeprint.c: Use gdb_string.h instead of <string.h>. 5109 51102002-08-18 Aidan Skinner <aidan@velvet.net> 5111 5112 * ada-lang.c: Run through gdb_indent.sh. 5113 * ada-lang.h: Run through gdb_indent.sh. 5114 * ada-tasks.c: Run through gdb_indent.sh. 5115 * ada-typeprint.c: Run through gdb_indent.sh. 5116 * ada-valprint.c: Run through gdb_indent.sh. 5117 51182002-08-18 Andrew Cagney <ac131313@redhat.com> 5119 5120 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown 5121 ABI. 5122 51232002-08-18 Mark Kettenis <kettenis@gnu.org> 5124 5125 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code. 5126 5127 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef. 5128 * i386b-nat.c [FLOAT_INFO]: Remove dead code. 5129 5130 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call 5131 write_register_gen instead of write_register_bytes. 5132 5133 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and 5134 i[3456]-*-osf1mk* configurations have been made obsolete. 5135 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and 5136 i[3456]86-*-osf1mk* hosts obsolete. 5137 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk* 5138 targets obsolete. 5139 * config/i386/i386mach.mh, config/i386/nm-i386mach.h, 5140 config/i386/xm-i386mach.h, config/i386/i386m3.mh, 5141 config/i386/i386m3.mt, config/i386/nm-m3.h, 5142 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h, 5143 config/i386/i386mk.mh, config/i386/i386mk.mt, 5144 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files 5145 obsolete. 5146 * i386mach-nat.c, i386m3-nat.c: Make files obsolete. 5147 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c 5148 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete. 5149 51502002-08-18 Andrew Cagney <ac131313@redhat.com> 5151 5152 * config/pa/tm-hppa.h (hppa_store_return_value): Declare. 5153 (hppa_value_returned_from_stack): Declare. 5154 (hppa_extract_return_value): Declare. 5155 * config/pa/hppa.mt: New file. 5156 * configure.tgt: Recognize hppa*-*-*. 5157 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken. 5158 51592002-08-18 Mark Kettenis <kettenis@gnu.org> 5160 5161 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in 5162 comment. 5163 51642002-08-17 Mark Kettenis <kettenis@gnu.org> 5165 5166 * top.c (gdb_rl_operate_and_get_next): Make sure 5167 operate-and-get-next functions correctly even when the history 5168 list is completely filled. 5169 51702002-08-18 Andrew Cagney <ac131313@redhat.com> 5171 5172 * MAINTAINERS (Target Instruction Set Architectures): Rename 5173 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd. 5174 Replace s390-linux with s390-linux-gnu. Remove i386-aout, 5175 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp, 5176 already listed under Host/Native. 5177 5178 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*, 5179 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add 5180 mips*-*-*. 5181 51822002-08-17 Andrew Cagney <ac131313@redhat.com> 5183 5184 * config/ia64/ia64.mt: New file. 5185 * config/alpha/alpha.mt: New file. 5186 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to 5187 ia64-linux-gnu. Mention that ia64-elf is broken. 5188 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns. 5189 51902002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org> 5191 5192 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use 5193 generic_func_frame_valid instead of func_frame_valid. 5194 51952002-08-16 Joel Brobecker <brobecker@gnat.com> 5196 5197 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately, 5198 procfs appears to be broken when debugging on multi-processor 5199 machines. So enable software single stepping in order to avoid 5200 using the procfs interface to do next/step operations, using 5201 internal breakpoints instead. 5202 5203 * infrun.c (handle_inferior_event): Readjust the stop_pc by 5204 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to 5205 make this pc address equal to the value it would have if the 5206 system stepping capability was used. Also set a new flag used 5207 to ensure that we don't readjust the PC one more time later. 5208 5209 * breakpoint.c (bpstat_stop_status): Do not adjust the PC 5210 address by DECR_PC_AFTER_BREAK when software single step is 5211 in use for this architecture, as this has already been taken 5212 care of in handle_inferior_event(). 5213 52142002-08-16 Joel Brobecker <brobecker@gnat.com> 5215 5216 * infrun.c (handle_inferior_event): Minor reformatting, to make 5217 a rather long condition expression easier to read. 5218 52192002-08-16 Andrew Cagney <ac131313@redhat.com> 5220 5221 * Makefile.in (gdbtk.o): Move to end of file. 5222 (gdbtk-bp.o, gdbtk-cmds.o): Ditto. 5223 (gdbtk-hooks.o, gdbtk-register.o): Ditto. 5224 (gdbtk-stack.o, gdbtk-varobj.o): Ditto. 5225 (gdbtk-wrapper.o, gdbres.o): Ditto. 5226 52272002-08-16 Andrew Cagney <ac131313@redhat.com> 5228 5229 * Makefile.in (copying.o): Separate out compile rule. 5230 (hpux-thread.o, procfs.o, signals.o): Ditto. 5231 (v850ice.o, z8k-tdep.o): Ditto. 5232 (tui-file.o): Move to TUI section. 5233 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section. 5234 (nindy.o, Onindy.o, ttyflush.o): Move to separate section. 5235 52362002-08-16 Joel Brobecker <brobecker@gnat.com> 5237 5238 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from 5239 skip_trampoline_code, for better namespace-proofing. 5240 5241 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration. 5242 52432002-08-16 Joel Brobecker <brobecker@gnat.com> 5244 5245 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros. 5246 52472002-08-16 Joel Brobecker <brobecker@gnat.com> 5248 5249 * infrun.c (handle_inferior_event): When receiving a SIGTRAP 5250 signal, check whether we hit a breakpoint before checking for a 5251 single step breakpoint. Otherwise, GDB fails to notice that a 5252 breakpoint has been hit when stepping onto a breakpoint. 5253 52542002-08-16 Keith Seitz <keiths@redhat.com> 5255 5256 * gdb-events.sh (clear_gdb_event_hooks): New function. 5257 * gdb-events.c: Regenerate. 5258 * gdb-events.h: Regenerate. 5259 52602002-08-16 Andrew Cagney <ac131313@redhat.com> 5261 5262 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to 5263 not_a_sw_breakpoint. 5264 * breakpoint.h (bpstat_stop_status): Add parameter names. 5265 52662002-08-16 Grace Sainsbury <graces@redhat.com> 5267 5268 * remote.c (remote_insert_hw_breakpoint) 5269 (remote_remove_hw_breakpoint): Fix calculation of length field 5270 for Z-packet. 5271 52722002-08-15 Michael Snyder <msnyder@redhat.com> 5273 5274 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer 5275 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE. 5276 (supply_fpregset): Ditto. 5277 5278 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 5279 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 5280 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete. 5281 (TARGET_READ_SP): Delete. 5282 (DO_REGISTERS_INFO): Delete. 5283 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE): 5284 Delete. 5285 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert 5286 from macros to functions. 5287 5288 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch. 5289 (mips_register_convertible, mips_register_convert_to_virtual, 5290 mips_register_convert_to_raw): Make static. 5291 (mips_read_sp): New function. 5292 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp. 5293 (mips_do_registers_info): Make static. 5294 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch. 5295 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp. 5296 (mips_register_convert_from_type, mips_register_convert_to_type): 5297 New functions. 5298 (mips_gdbarch_init): Set up function_start_offset, 5299 register_virtual_size, pc_in_sigtramp. 5300 53012002-08-15 Andrew Cagney <ac131313@redhat.com> 5302 5303 * infcmd.c (vector_info): New function. 5304 (_initialize_infcmd): Add command "info vector". 5305 (print_vector_info): New function. 5306 5307 * gdbarch.sh (PRINT_VECTOR_INFO): New method 5308 * gdbarch.h, gdbarch.c: Regenerate. 5309 53102002-08-15 Andrew Cagney <ac131313@redhat.com> 5311 5312 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to 5313 ``print_all''. Only print vector registers when ``print_all''. 5314 53152002-08-15 Andrew Cagney <ac131313@redhat.com> 5316 5317 * i387-tdep.h (i387_print_float_info): Add `args' parameter. 5318 * i387-tdep.c (i387_print_float_info): Add `args' parameter. 5319 5320 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method. 5321 Add `args' parameter. 5322 * gdbarch.h, gdbarch.c: Regenerate. 5323 5324 * arm-tdep.c (arm_print_float_info): Add the parameter `args'. 5325 5326 * infcmd.c (float_info): Call print_float_info. 5327 (print_float_info): New function. By default, print the 5328 floating-point registers. 5329 5330 * arch-utils.h (default_print_float_info): Delete declaration. 5331 * arch-utils.c (default_print_float_info): Delete function. 5332 53332002-08-16 Mark Kettenis <kettenis@gnu.org> 5334 5335 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented 5336 out define. 5337 5338 * i387-tdep.c (i387_print_float_info): Add comment about ignoring 5339 FRAME. 5340 5341 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete. 5342 * configure.host: Make i[3456]86-*-aix host obsolete. 5343 * configure.tgt: Make i[3456]86-*-aix target obsolete. 5344 * config/i386/i386aix.mh, config/i386/i386aix.mt, 5345 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h, 5346 config/i386/xm-i386aix.h: Make files obsolete. 5347 * i386aix-nat.c: Make file obsolete. 5348 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c. 5349 (i386aix-nat.o): Make target obsolete. 5350 5351 * config/i386/nm-gnu.h: Removed. 5352 * config/i386/nm-i386gnu.h: New file. 5353 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE, 5354 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH): 5355 Moved here from ... 5356 * config/i386/tm-i386gnu.h: ... here. Removed. 5357 * config/i386/xm-i386gnu.h: Removed. 5358 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h. 5359 (NAT_FILE): Set to nm-i386gnu.h. 5360 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o. 5361 * i386-tdep.c: New file. 5362 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c. 5363 (i386gnu-tdep.o): Specify dependencies. 5364 53652002-08-15 Mark Kettenis <kettenis@gnu.org> 5366 5367 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of 5368 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h". 5369 Adjust a few comments to reflect reality a bit closer. 5370 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS, 5371 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT, 5372 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT, 5373 target_insert_watchpoint, target_remove_watchpoint): 5374 Move defines to ... 5375 * config/i386/nm-i386sco5.h: ... here. 5376 (kernel_u_size): Add prototype. Improve a few comments and add 5377 protection against multiple inclusion. 5378 5379 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented 5380 out define. 5381 5382 * uw-thread.c (SP_ARG0): Define if not already defined. 5383 * config/i386/tm-i386.h (SO_ARG0): Remove define. 5384 5385 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define. 5386 5387 * config/i386/tm-i386.h: Don't include "regcache.h". 5388 5389 * i387-tdep.h (i387_print_float_info): New prototype. 5390 * i387-tdep.c (print_i387_value, print_i387_ext, 5391 print_i387_status_word, print_i387_control_word): Add `struct 5392 ui_file *' argument and use it for output. 5393 (i387_print_float_info): Renamed from i387_float_info. Add 5394 `struct gdbarch *' and `struct ui_file *' arguments and use the 5395 latter for output. 5396 * i386-tdep.c: Include "i387-tdep.h". 5397 (i386_gdbarch_init): Set print_float_info. 5398 * config/i386/tm-i386.h (i387_float_info): Remove prototype. 5399 (FLOAT_INFO): Remove define. 5400 54012002-08-13 Michael Snyder <msnyder@redhat.com> 5402 5403 * mips-tdep.c (mips_push_arguments): Rename to 5404 mips_eabi_push_arguments, and tune for EABI. 5405 (MIPS_REGS_HAVE_HOME_P): Delete. 5406 (struct gdbarch_tdep): Remove mips_regs_have_home_p field. 5407 (mips_gdbarch_init): Set gdbarch push_arguments for eabi. 5408 Delete references to mips_regs_have_home_p. 5409 54102002-08-14 Keith Seitz <keiths@redhat.com> 5411 5412 * Makefile.in (install-gdbtk): Create insight plugin directory. 5413 Install plugins.tcl file. 5414 54152002-08-14 Keith Seitz <keiths@redhat.com> 5416 5417 * configure.in: Move SUBDIRS to near top of the file so that 5418 --enable options may add things to it. 5419 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs. 5420 * configure: Regenerate. 5421 54222002-08-13 Michael Snyder <msnyder@redhat.com> 5423 5424 * mips-tdep.c (mips_o32o64_push_arguments): New function, 5425 cloned from mips_push_arguments, tuned for o32/o64 ABI. 5426 (mips_gdbarch_init): Set gdbarch_push_arguments to new func. 5427 54282002-08-13 Andrew Cagney <ac131313@redhat.com> 5429 5430 * vax-tdep.c (vax_get_saved_register): Delete function. 5431 (vax_gdbarch_init): Update. 5432 * ns32k-tdep.c (ns32k_get_saved_register): Delete function. 5433 (ns32k_gdbarch_init): Update. 5434 * alpha-tdep.c (alpha_get_saved_register): Delete function. 5435 (alpha_gdbarch_init): Update. 5436 54372002-08-13 Andrew Cagney <cagney@redhat.com> 5438 5439 * regcache.c (init_regcache_descr): Overallocate the 5440 raw_register_valid_p array including space for NUM_PSEUDO_REGS. 5441 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with 5442 nr_raw_registers. 5443 (set_register_cached): Add range checking assertions. Use 5444 current_regcache. 5445 54462002-08-13 Mark Kettenis <kettenis@gnu.org> 5447 5448 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register 5449 numbers for MMX registers. 5450 54512002-08-13 Andrew Cagney <cagney@redhat.com> 5452 5453 * i386-tdep.c (i386_gdbarch_init): Use 5454 generic_unwind_get_saved_register. 5455 54562002-08-13 Kevin Buettner <kevinb@redhat.com> 5457 5458 * procfs.c (procfs_can_use_hw_breakpoint): New function. 5459 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs 5460 target vector. 5461 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): 5462 Delete. Add comment regarding this now-deleted target method. 5463 54642002-08-13 Stephane Carrez <stcarrez@nerim.fr> 5465 5466 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define. 5467 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg). 5468 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the 5469 real PC and the page number (if it's within the memory bank window). 5470 (m68hc11_pseudo_register_write): Likewise when saving. 5471 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc. 5472 (m68hc11_register_virtual_type): Return uint32 for virtual pc. 5473 (m68hc11_register_raw_size): And use 32-bit for it. 5474 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the 5475 16K memory bank is used by the prog; also use the virtual pc. 5476 54772002-08-13 Stephane Carrez <stcarrez@nerim.fr> 5478 5479 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function. 5480 (m68hc11_gdbarch_init): Install it in gdbarch. 5481 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags. 5482 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags. 5483 (MSYMBOL_SIZE): New for documentation. 5484 (insn_return_kind): Enum to specify how a function returns. 5485 (frame_extra_info): Cleanup and record the return mode. 5486 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 5487 register in address computation. 5488 (m68hc11_get_return_insn): New to obtain the return instruction used 5489 by the function. 5490 (m68hc11_frame_init_saved_regs): Take into account the return 5491 instruction used by the function for far and interrupt functions. 5492 (m68hc11_init_extra_frame_info): Take into account page register. 5493 (m68hc11_frame_args_address): Adjust according to the return mode. 5494 (show_regs): Print page register only when it's used. 5495 54962002-08-13 Stephane Carrez <stcarrez@nerim.fr> 5497 5498 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register. 5499 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update. 5500 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit 5501 registers. 5502 (m68hc11_register_raw_size): Likewise. 5503 55042002-08-13 Andrew Cagney <cagney@redhat.com> 5505 5506 * i386-tdep.c (i386_register_name): Handle mmx registers. 5507 (mmx_regnum_p): New function. 5508 (i386_mmx_names): New array. 5509 (mmx_num_regs): New variable. 5510 (i386_pseudo_register_read): New function. 5511 (i386_pseudo_register_write): New function. 5512 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser. 5513 5514 * regcache.c (regcache_raw_read_unsigned): New function. 5515 (regcache_raw_read_signed): New function. 5516 * regcache.h (regcache_raw_read_unsigned): Declare. 5517 (regcache_raw_read_signed): Declare. 5518 55192002-08-13 Andrew Cagney <cagney@redhat.com> 5520 5521 * regcache.c (regcache_raw_read_as_address): Delete function. 5522 (regcache_cooked_read_signed): New function. 5523 (regcache_cooked_read_unsigned): New function. 5524 * regcache.h (regcache_cooked_read_signed): Declare. 5525 (regcache_cooked_read_unsigned): Declare. 5526 (regcache_raw_read_as_address): Delete declaration. 5527 5528 * blockframe.c (generic_read_register_dummy): Use 5529 regcache_cooked_read_unsigned. 5530 * i386-tdep.c (i386_extract_struct_value_address): Use 5531 regcache_cooked_read_unsigned. 5532 55332002-08-13 Stephane Carrez <stcarrez@nerim.fr> 5534 5535 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long 5536 double sizes according to ELF ABI flags. 5537 (gdbarch_tdep): Record elf_flags. 5538 55392002-08-13 Stephane Carrez <stcarrez@nerim.fr> 5540 5541 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines. 5542 (m6812_prolog): They can appear in 68HC12 function prologue. 5543 (m68hc11_frame_chain): Cleanup. 5544 55452002-08-12 Andrew Cagney <cagney@redhat.com> 5546 5547 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete 5548 declarations. 5549 * i386-linux-tdep.c (i386_linux_register_byte): Delete function. 5550 (i386_linux_register_raw_size): Delete function. 5551 (i386_linux_init_abi): Update. 5552 * i386-tdep.c (i386_register_raw_size): Delete function. 5553 (i386_register_byte): Delete function. 5554 (i386_gdbarch_init): Update. 5555 (i386_register_size): Delete array. 5556 (i386_register_offset): Delete array. 5557 5558 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro. 5559 (REGISTER_RAW_SIZE): Delete macro. 5560 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro. 5561 (REGISTER_BYTE): Delete macro. 5562 55632002-08-11 Aidan Skinner <aidan@velvet.net> 5564 5565 * ada-lang.c (ada_lookup_partial_symbol) 5566 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix 5567 prototype names so that grep ^func works properly. 5568 5569 * ada-lang.c (ada_array_element_type) 5570 (ada_lookup_partial_symbol): Fix typos in parameter list. 5571 5572 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1): 5573 Fix prototype names so that grep ^func works properly. 5574 55752002-08-10 Andrew Cagney <cagney@redhat.com> 5576 Elena Zannoni <ezannoni@redhat.com> 5577 Martin M. Hunt <hunt@redhat.com> 5578 5579 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit. 5580 (build_builtin_type_vec128i): Set the vector bit. 5581 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare. 5582 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define. 5583 (build_builtin_type_vec64): New function. 5584 (build_builtin_type_vec64i): New function. 5585 (build_gdbtypes): Initialize builtin_type_vec64 and 5586 builtin_type_vec64i. 5587 55882002-08-09 Andrew Cagney <cagney@redhat.com> 5589 5590 * regcache.c (regcache_dump): Compare the register offset 5591 with REGISTER_BYTE. 5592 * arch-utils.c (generic_register_byte): New function. 5593 * arch-utils.h (generic_register_byte): Declare. 5594 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte. 5595 * gdbarch.h, gdbarch.c: Regenerate. 5596 55972002-08-09 Andrew Cagney <cagney@redhat.com> 5598 5599 * regcache.c: Include "gdbcmd.h" 5600 (_initialize_regcache): Add commands "maintenance print 5601 registers", "maintenance print raw-registers" and "maintenance 5602 print cooked-registers". 5603 (enum regcache_dump_what): Define. 5604 (dump_endian_bytes): New function. 5605 (regcache_dump): New function. 5606 (regcache_print): New function. 5607 (maintenance_print_registers): New function. 5608 (maintenance_print_raw_registers): New function. 5609 (maintenance_print_cooked_registers): New function. 5610 * Makefile.in (regcache.o): Update dependencies. 5611 56122002-08-09 Michael Snyder <msnyder@redhat.com> 5613 5614 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope. 5615 (mips_push_arguments): Correct some comments. Use paddr_nz 5616 for printing addresses in debug output. Replace static 5617 allocation using MAX_REGISTER_RAW_SIZE with alloca. 5618 (mips_n32n64_push_arguments): New function, cloned from 5619 mips_push_arguments and tuned for the n32/n64 ABI. 5620 (mips_push_register): Buffer needs dynamic allocation. 5621 (mips_print_register): Ditto. 5622 (do_gp_register_row): Ditto. 5623 (mips_store_return_value): Ditto. 5624 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI. 5625 56262002-08-09 Don Howard <dhoward@redhat.com> 5627 5628 * memattr.c (mem_info_command): Print special case of upper bound 5629 as max CORE_ADDR + 1. 5630 56312002-08-08 Michael Snyder <msnyder@redhat.com> 5632 5633 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 5634 returns structs by ref if they're too big to fit in two registers. 5635 56362002-08-09 Kevin Buettner <kevinb@redhat.com> 5637 5638 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's 5639 saved regs value. 5640 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of 5641 mips_find_saved_regs(). 5642 (mips_pop_frame): Likewise. 5643 56442002-08-09 Kevin Buettner <kevinb@redhat.com> 5645 5646 * blockframe.c (frame_saved_regs_register_unwind): Revise 5647 PC_IN_CALL_DUMMY assertion to only apply when generic dummy 5648 frames are in use. 5649 56502002-08-09 Grace Sainsbury <graces@redhat.com> 5651 5652 * remote.c: (remote_wait, remote_async_wait): Add check for awatch 5653 T-packets; the 'a' is not taken as a register number. 5654 (remote_check_watch_resources, remote_stopped_by_watchpoint) 5655 (remote_stopped_data_address): New functions; add to target 5656 vector. 5657 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change 5658 prototypes to match other implementations of this 5659 function. replace integer argument with pointer -- the length 5660 field in the Z-packet is the length of what is pointed to or 1 if 5661 pointer is null. Add to target vector. 5662 (remote_insert_watchpoint, remote_remove_watchpoint): Add to 5663 target vector. 5664 5665 From Mark Salter: 5666 * remote.c (remote_wait): Add support to extract optional 5667 watchpoint information from T-packet. Ignore unrecognized 5668 optional info in T-packet. 5669 (remote_async_wait): Ditto. 5670 56712002-08-09 Corinna Vinschen <vinschen@redhat.com> 5672 5673 * cli/cli-dump.c: Change fopen modes to use binary open modes 5674 as defined in include/fopen-bin.h throughout. 5675 56762002-08-08 Michael Snyder <msnyder@redhat.com> 5677 5678 * mips-tdep.c: Minor whitespace and indentation clean-ups. 5679 56802002-08-08 Kevin Buettner <kevinb@redhat.com> 5681 5682 * doublest.c (store_floating): Avoid floatformat_from_doublest() 5683 assertion failure by returning early after a warning. 5684 56852002-08-08 Kevin Buettner <kevinb@redhat.com> 5686 5687 * mips-tdep.c (mips_find_saved_regs): Make static. 5688 (mips_frame_init_saved_regs): New function. 5689 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method. 5690 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro. 5691 (mips_find_saved_regs): Delete declaration. 5692 56932002-08-08 Grace Sainsbury <graces@redhat.com> 5694 5695 * remote.c (remote_wait, remote_async_wait): Change 5696 thread_num from int to ULONGEST. 5697 (unpack_varlen_hex): Change result parameter from 5698 int * to ULONGEST *. 5699 57002002-08-08 Andrew Cagney <ac131313@redhat.com> 5701 5702 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*, 5703 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with 5704 powerpc*-*-*. 5705 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target. 5706 57072002-08-08 Andrew Cagney <cagney@redhat.com> 5708 5709 * gcore.c (override_derive_stack_segment): Delete variable. 5710 (preempt_derive_stack_segment): Delete function. 5711 (derive_stack_segment): Delete function. 5712 (default_derive_stack_segment): Renamed to derive_stack_segment. 5713 (override_derive_heap_segment): Delete variable. 5714 (preempt_derive_heap_segment): Delete function. 5715 (derive_heap_segment): Delete function. 5716 (default_derive_heap_segment): Rename to derive_heap_segment. 5717 57182002-08-06 Michael Snyder <msnyder@redhat.com> 5719 5720 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION. 5721 * mips-tdep.c (mips_EABI_use_struct_convention, 5722 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention): 5723 New functions. (mips_use_struct_convention): Delete. 5724 (mips_gdbarch_init): set use_gdbarch_convention. 5725 57262002-08-06 Michael Snyder <msnyder@redhat.com> 5727 5728 * mips-tdep.c: gdbarch-ify reg_struct_has_addr. 5729 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 5730 mips_o32_reg_struct_has_addr): New functions. 5731 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr. 5732 57332002-08-07 Andrew Cagney <ac131313@redhat.com> 5734 5735 * regcache.c (pseudo_register): Delete function. 5736 (fetch_register): Delete function. 5737 (store_register): Delete function. 5738 (regcache_raw_read, legacy_read_register_gen): Use 5739 target_fetch_registers instead of fetch_register. 5740 (legacy_write_register_gen, regcache_raw_write): Use 5741 target_store_register instead of store_register. 5742 (write_register_bytes): Ditto. 5743 5744 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete. 5745 (STORE_PSEUDO_REGISTER): Delete. 5746 * gdbarch.h, gdbarch.c: Regenerate. 5747 57482002-08-06 Corinna Vinschen <vinschen@redhat.com> 5749 5750 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to 5751 write dump file binary. 5752 57532002-08-05 Michael Snyder <msnyder@redhat.com> 5754 5755 * mips-tdep.c (mips_find_saved_regs): Adjust stack according 5756 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment. 5757 (mips_gdbarch_init): Set N32 target to be mips64. 5758 57592002-08-06 Kevin Buettner <kevinb@redhat.com> 5760 5761 * frame.c (find_saved_register): Break out of loop once saved 5762 register address is found. Don't mention sparc in loop comment 5763 anymore. 5764 57652002-08-06 Kevin Buettner <kevinb@redhat.com> 5766 5767 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set 5768 mips_default_saved_regsize to 8. 5769 57702002-08-06 Andrew Cagney <ac131313@redhat.com> 5771 5772 * gcore.c: Do not include <sys/procfs.h>. 5773 * Makefile.in (gcore.o): Update dependencies. 5774 57752002-08-06 Andrew Cagney <cagney@redhat.com> 5776 5777 * configure.tgt: Make arc-*-* obsolete. 5778 * NEWS: Mention that arc-*-* has been identifed as obsolete. 5779 * MAINTAINERS: Make arc-elf obsolete. 5780 * arc-tdep.c: Make file obsolete. 5781 * config/arc/arc.mt: Ditto. 5782 * config/arc/tm-arc.h: Ditto. 5783 57842002-08-05 Theodore A. Roth <troth@verinet.com> 5785 5786 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc. 5787 57882002-08-05 Andrew Cagney <ac131313@redhat.com> 5789 5790 * mcore-tdep.c (mcore_gdbarch_init): Use 5791 generic_unwind_get_saved_register instead of 5792 generic_get_saved_register. 5793 * v850-tdep.c (v850_gdbarch_init): Ditto. 5794 * frv-tdep.c (frv_gdbarch_init): Ditto. 5795 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. 5796 * s390-tdep.c (s390_gdbarch_init): Ditto. 5797 * d10v-tdep.c (d10v_gdbarch_init): Ditto. 5798 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto. 5799 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto. 5800 58012002-08-05 Joel Brobecker <brobecker@gnat.com> 5802 5803 * objfiles.h: Add missing #include "symfile.h" 5804 5805 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents. 5806 58072002-08-04 Andrew Cagney <ac131313@redhat.com> 5808 5809 From 2002-08-01 david carlton <carlton@math.stanford.edu>: 5810 * hpread.c (hpread_read_struct_type): Deleted superfluous setting 5811 of FIELD_BITSIZE. 5812 58132002-08-04 Daniel Jacobowitz <drow@mvista.com> 5814 5815 * NEWS: Cleanup and nitpick. 5816 58172002-08-03 Andrew Cagney <ac131313@redhat.com> 5818 5819 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings. 5820 58212002-08-03 Andrew Cagney <ac131313@redhat.com> 5822 5823 * Makefile.in (gdbtk-bp.o): Update dependencies. 5824 (gdbtk-register.o): Ditto. 5825 (gdbtk-varobj.o): Ditto. 5826 58272002-08-03 Andrew Cagney <cagney@redhat.com> 5828 5829 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace 5830 m68hc11_fetch_pseudo_register. 5831 (m68hc11_pseudo_register_write): Replace 5832 m68hc11_store_pseudo_register. 5833 (m68hc11_gdbarch_init): Update. 5834 5835Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com> 5836 5837 * gdbarch.sh: Include "gdb_string.h". 5838 * gdbarch.c: Regenerate. 5839 5840 * regcache.c: Include "gdb_string.h". 5841 * ax-general.c: Ditto. 5842 * varobj.c: Ditto. 5843 * std-regs.c: Ditto. 5844 * fbsd-proc.c: Ditto. 5845 * thread.c: Ditto. 5846 5847 * Makefile.in (regcache.o): Update dependencies. 5848 (thread.o, gdbarch.o): Ditto. 5849 (ax-general.o, gdbarch.o): Ditto. 5850 (varobj.o, std-regs.o): Ditto. 5851 (fbsd-proc.o): Specify dependencies. 5852 58532002-08-02 Andrew Cagney <cagney@redhat.com> 5854 5855 * regcache.c (regcache_cooked_read): Rename rawnum parameter to 5856 regnum. 5857 (regcache_cooked_write): Ditto. 5858 58592002-08-02 Andrew Cagney <ac131313@redhat.com> 5860 5861 * regcache.c (regcache_cooked_read): New function. 5862 (regcache_cooked_write): New function. 5863 (read_register_gen): Rewrite using regcache_cooked_read. 5864 (write_register_gen): Rewrite using regcache_cooked_write. 5865 5866 * regcache.h (regcache_cooked_read, regcache_cooked_write): 5867 Declare. 5868 58692002-08-02 Andrew Cagney <cagney@redhat.com> 5870 5871 * gdbarch.sh (pseudo_register_read, pseudo_register_write): 5872 Replace the architecture methods register_read and register_write. 5873 * gdbarch.h, gdbarch.c: Regenerate. 5874 * regcache.c (init_regcache_descr): Update. 5875 (read_register_gen): Update. 5876 (write_register_gen): Update. 5877 (supply_register): Update comment. 5878 5879 * sh-tdep.c (sh_gdbarch_init): Update. 5880 (sh_pseudo_register_read, sh64_pseudo_register_read): Add 5881 `regcache' and `gdbarch' parameters. Make `buffer' a void 5882 pointer. Update code. 5883 (sh_pseudo_register_write, sh64_pseudo_register_write): Add 5884 `regcache' and `gdbarch' parameters. Make `buffer' a constant 5885 void pointer. Update code. 5886 (sh64_register_write): Delete. 5887 (sh4_register_read): Delete. 5888 (sh64_register_read): Delete. 5889 (sh4_register_write): Delete. 5890 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant 5891 void pointer, `to' parameter a void pointer. 5892 (sh_sh64_register_convert_to_raw): Ditto. 5893 58942002-08-01 Kevin Buettner <kevinb@redhat.com> 5895 5896 * mips-tdep.c (mips_register_virtual_type): Use architecture 5897 invariant return values. 5898 58992002-08-01 Andrew Cagney <cagney@redhat.com> 5900 5901 * linux-proc.c: Include "gdb_string.h". 5902 * Makefile.in (linux-proc.o): Update dependency list. 5903 59042002-08-01 Kevin Buettner <kevinb@redhat.com> 5905 5906 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in 5907 comment. 5908 59092002-08-01 Grace Sainsbury <graces@redhat.com> 5910 5911 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint, 5912 to_insert_watchpoint, to_remove_watchpoint, 5913 to_stopped_by_watchpoint, to_stopped_data_address, 5914 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to 5915 target vecctor. Define their corresponding macros so they call 5916 them. 5917 5918 * target.c: Add default and debug versions of for 5919 to_insert_hw_breakpoint, to_remove_hw_breakpoint, 5920 to_insert_watchpoint, to_remove_watchpoint, 5921 to_stopped_by_watchpoint, to_stopped_data_address, 5922 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint. 5923 59242002-08-01 Kevin Buettner <kevinb@redhat.com> 5925 5926 * mips-tdep.c (mips_register_virtual_type): New function. 5927 (mips_gdbarch_init): Register mips_register_virtual_type() 5928 with gdbarch machinery. 5929 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include 5930 this file instead of tm-bigmips.h. 5931 (MIPS_REGSIZE): Delete this macro. 5932 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that 5933 multiarch version in mips-tdep.c will be found. 5934 59352002-08-01 Andrew Cagney <cagney@redhat.com> 5936 5937 * NEWS: Menion that CHILL has been made obsolete. 5938 5939 * gdbtypes.c (chill_varying_type): Make chill references obsolete. 5940 * stabsread.c (read_range_type): Ditto. 5941 * gdbtypes.h: Ditto. 5942 * language.c (binop_type_check): Ditto. 5943 (binop_result_type): Ditto. 5944 (integral_type): Ditto. 5945 (character_type): Ditto. 5946 (string_type): Ditto. 5947 (boolean_type): Ditto. 5948 (structured_type): Ditto. 5949 (lang_bool_type): Ditto. 5950 (binop_type_check): Ditto. 5951 * language.h (_LANG_chill): Ditto. 5952 * dwarfread.c (set_cu_language): Ditto. 5953 * dwarfread.c (CHILL_PRODUCER): Ditto. 5954 * dwarfread.c (handle_producer): Ditto. 5955 * expression.h (enum exp_opcode): Ditto. 5956 * eval.c: Ditto for comments. 5957 * typeprint.c (typedef_print) [_LANG_chill]: Ditto. 5958 * expprint.c (print_subexp): Ditto. 5959 (print_subexp): Ditto. 5960 * valops.c (value_cast): Ditto. 5961 (search_struct_field): Ditto. 5962 * value.h (COERCE_VARYING_ARRAY): Ditto. 5963 * symfile.c (init_filename_language_table): Ditto. 5964 (add_psymbol_with_dem_name_to_list): Ditto. 5965 * valarith.c (value_binop): Ditto. 5966 (value_neg): Ditto. 5967 * valops.c (value_slice): Ditto. 5968 * symtab.h (union language_specific): Ditto. 5969 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto. 5970 (SYMBOL_DEMANGLED_NAME): Ditto. 5971 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto. 5972 * defs.h (enum language): Ditto. 5973 * symtab.c (got_symtab): Ditto. 5974 * utils.c (fprintf_symbol_filtered): Ditto. 5975 5976 * ch-typeprint.c: Make file obsolete. 5977 * ch-valprint.c: Make file obsolete. 5978 * ch-lang.h: Make file obsolete. 5979 * ch-exp.c: Make file obsolete. 5980 * ch-lang.c: Make file obsolete. 5981 5982 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or 5983 CHILL_LIB. 5984 (TARGET_FLAGS_TO_PASS): Ditto. 5985 (CHILLFLAGS): Obsolete. 5986 (CHILL): Obsolete. 5987 (CHILL_FOR_TARGET): Obsolete. 5988 (CHILL_LIB): Obsolete. 5989 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and 5990 ch-valprint.c. 5991 (HFILES_NO_SRCDIR): Remove ch-lang.h. 5992 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and 5993 ch-lang.o. 5994 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete 5995 targets. 5996 59972002-07-31 Joel Brobecker <brobecker@gnat.com> 5998 5999 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95. 6000 This does not change anything at the moment, but will be helpful 6001 later when full Ada support is integrated. 6002 60032002-07-31 Kevin Buettner <kevinb@redhat.com> 6004 6005 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi" 6006 help message. 6007 60082002-07-31 Kevin Buettner <kevinb@redhat.com> 6009 6010 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct 6011 and save it in a local variable. Use variable in later test. 6012 60132002-07-31 Kevin Buettner <kevinb@redhat.com> 6014 6015 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition 6016 test. (Thanks to Daniel Jacobowitz.) 6017 60182002-07-31 Kevin Buettner <kevinb@redhat.com> 6019 6020 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64. 6021 (mips_abi_strings): Add "n64". 6022 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case. 6023 60242002-07-31 Kevin Buettner <kevinb@redhat.com> 6025 6026 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8. 6027 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide. 6028 60292002-07-31 Kevin Buettner <kevinb@redhat.com> 6030 6031 * utils.c (host_pointer_to_address, address_to_host_pointer): 6032 Use gdb_assert() instead of explicit call to internal_error(). 6033 60342002-07-30 Kevin Buettner <kevinb@redhat.com> 6035 6036 * Makefile.in (rs6000-nat.o): Update dependencies. 6037 6038 From Nicholas Duffek: 6039 * Makefile.in (ALLDEPFILES): Add aix-thread.c. 6040 (aix-thread.o): New rule. 6041 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+. 6042 * config/powerpc/aix432.mh: New file. 6043 60442002-07-30 Daniel Jacobowitz <drow@mvista.com> 6045 6046 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG) 6047 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums. 6048 (fetch_core_registers, ppc_linux_supply_gregset) 6049 (ppc_linux_supply_fpregset): New functions. 6050 (ppc_linux_regset_core_fns): New. 6051 (_initialize_ppc_linux_tdep): Call add_core_fns. 6052 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset 6053 and ppc_linux_supply_gregset. 6054 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset. 6055 (supply_fpregset): Call ppc_linux_supply_fpregset. 6056 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and 6057 corelow.o. 6058 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o. 6059 60602002-07-30 Daniel Jacobowitz <drow@mvista.com> 6061 6062 * symtab.c (lookup_symbol): Demangle before lowercasing. 6063 60642002-07-30 Andrew Cagney <ac131313@redhat.com> 6065 6066 * symtab.h: Replace #include "gdb_obstack.h" with opaque 6067 declaration. 6068 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h". 6069 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto. 6070 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto. 6071 * arch-utils.c, cli/cli-setshow.c: Unconditionally include 6072 "gdb_string.h". 6073 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies. 6074 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto. 6075 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto. 6076 (avr-tdep.o, mon960-rom.o): Ditto. 6077 (aout_stabs_gnu_h): Define. 6078 (symtab_h): Remove $(gdb_obstack_h). 6079 60802002-07-30 Jim Blandy <jimb@redhat.com> 6081 6082 Patch from David Carlton <carlton@math.stanford.edu>: 6083 * gdbinit.in: Move the `dir' commands that add GDB's own source 6084 directory to the search path to the end, so that the `gdb' source 6085 directory will be searched first. 6086 60872002-07-29 Andrew Cagney <ac131313@redhat.com> 6088 6089 * gdb_obstack.h: New file. 6090 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h". 6091 (obstack_chunk_alloc, obstack_chunk_free): Delete macros. 6092 * objfiles.h: Include "gdb_obstack.h". 6093 * Makefile.in (gdb_obstack_h): Define. 6094 (symtab_h): Add $(gdb_obstack_h). 6095 (objfiles_h): Add $(gdb_obstack_h). 6096 6097 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h". 6098 * macrotab.c, cp-valprint.c, dbxread.c: Ditto. 6099 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto. 6100 * macroexp.c, p-typeprint.c, stabsread.c: Ditto. 6101 * symtab.c, f-typeprint.c, mdebugread.c: Ditto. 6102 * p-valprint.c, symmisc.c, typeprint.c: Ditto. 6103 * symfile.c, coffread.c, c-typeprint.c: Ditto. 6104 * buildsym.c, bcache.c, ada-typeprint.c: Ditto. 6105 6106 * Makefile.in (bcache.o): Update dependencies. 6107 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto. 6108 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto. 6109 (dbxread.o, dstread.o, f-typeprint.o): Ditto. 6110 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto. 6111 (stabsread.o, symfile.o, symmisc.o): Ditto. 6112 (symtab.o, typeprint.o, macroexp.o): Ditto. 6113 (macrotab.o, mdebugread.o): Ditto. 6114 (f_lang_h, coff_sym_h, coff_symconst_h): Define. 6115 (coff_ecoff_h, aout_aout64_h): Define. 6116 (aout_stabs_gnu_h, libaout_h): Define. 6117 61182002-07-29 Andrew Cagney <cagney@redhat.com> 6119 6120 * regcache.c (struct regcache_descr): Rename nr_registers to 6121 nr_cooked_registers. Revise comments describing the structure 6122 member fields. 6123 (init_regcache_descr): Update. 6124 (init_legacy_regcache_descr): Update. 6125 (read_register_gen, write_register_gen): When a cooked register in 6126 the raw register range, directly access the value from the raw 6127 register cache. 6128 61292002-07-29 Andrew Cagney <ac131313@redhat.com> 6130 6131 * z8k-tdep.c: Do not include "obstack.h". 6132 * h8300-tdep.c, h8500-tdep.c: Ditto. 6133 * m68hc11-tdep.c, sh-tdep.c: Ditto. 6134 * valprint.c, v850-tdep.c: Ditto. 6135 * d10v-tdep.c, mn10300-tdep.c: Ditto. 6136 * mn10200-tdep.c: Ditto. 6137 6138 * Makefile.in (z8k-tdep.o): Update dependencies. 6139 (m68hc11-tdep.o, valprint.o): Ditto. 6140 (v850-tdep.o, d10v-tdep.o): Ditto. 6141 (mn10300-tdep.o, sparc-tdep.o): Ditto. 6142 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto. 6143 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies. 6144 (sh_opc_h, gdb_sim_sh_h): Define. 6145 (elf_sh_h, elf_bfd_h): Define. 6146 (opcode_m68hc11_h): Define. 6147 (OPCODES_SRC, OPCODES_DIR): define. 6148 (OPCODES): Use $(OPCODES_DIR). 6149 (gdb_sim_d10v_h): Rename sim_d10v_h. 6150 (gdb_sim_arm_h): Rename sim_arm_h. 6151 61522002-07-26 Kevin Buettner <kevinb@redhat.com> 6153 6154 * utils.c (host_pointer_to_address, address_to_host_pointer): 6155 Change internal_error() message to indicate function responsible 6156 for the error. 6157 61582002-07-26 Kevin Buettner <kevinb@redhat.com> 6159 6160 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in 6161 calls to local_hex_string_custom(). 6162 61632002-07-26 Kevin Buettner <kevinb@redhat.com> 6164 6165 * irix5-nat.c: Move IRIX shared library support from here... 6166 * solib-irix.c: ...to here. Revised substantially to work with 6167 generic solib framework. 6168 6169 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX. 6170 * osabi.c (gdb_osabi_names): Add corresponding string for Irix. 6171 * mips-irix-tdep.c: New file. 6172 6173 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c. 6174 (mips-irix-tdep.o, solib-irix.o): New rules. 6175 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o, 6176 solib-irix.o. 6177 * config/mips/irix6.mt (TDEPFILES): Likewise. 6178 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o. 6179 61802002-07-26 Kevin Buettner <kevinb@redhat.com> 6181 6182 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove 6183 disabled (via ``#if 0'') includes. 6184 61852002-07-26 Kevin Buettner <kevinb@redhat.com> 6186 6187 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32) 6188 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64) 6189 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread): 6190 Add support for the fpscr register. 6191 * rs6000-nat.c (regmap, fetch_inferior_registers) 6192 (store_inferior_registers, fetch_core_registers): Likewise. 6193 61942002-07-26 Kevin Buettner <kevinb@redhat.com> 6195 6196 * rs6000-nat.c (language.h): Include. 6197 (special_regs): Delete this array. 6198 (regmap): New function. 6199 (fetch_register, store_register): Use regmap() to map gdb 6200 register numbers to ptrace register numbers. Also, use 6201 outputs from regmap() to make decisions regarding type of 6202 ptrace() call to make. In particular, don't compare against 6203 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM. 6204 (fetch_inferior_registers, store_inferior_registers): Where 6205 possible, obtain register numbers from tdep struct. Don't 6206 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM. 6207 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM) 6208 (LAST_UISA_SP_REGNUM): Delete. 6209 62102002-07-25 Kevin Buettner <kevinb@redhat.com> 6211 6212 * rs6000-nat.c (ppc-tdep.h): Include. 6213 (fetch_registers, store_register, fetch_core_registers): Don't 6214 access registers[] directly. Instead, use supply_register() or 6215 regcache_collect() as appropriate. 6216 (find_toc_address): Format hex address with local_hex_string(). 6217 62182002-07-25 Andrew Cagney <ac131313@redhat.com> 6219 6220 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and 6221 bfd/elf32-frv.c. 6222 62232002-07-24 Tom Tromey <tromey@redhat.com> 6224 6225 * jv-exp.y: Marked all strings with _(). 6226 (ClassInstanceCreationExpression, ArrayCreationExpression): Use 6227 internal_error. 6228 (MethodInvocation, CastExpression, parse_number, yyerror, 6229 java_type_from_name, push_expression_name, yylex): Typo fixes. 6230 62312002-07-24 Daniel Jacobowitz <drow@mvista.com> 6232 6233 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete) 6234 (tee_file_flush, tee_file_write, tee_file_fputs) 6235 (tee_file_isatty): New. 6236 * ui-file.h (tee_file_new): Add prototype. 6237 62382002-07-24 Aidan Skinner <aidan@velvet.net> 6239 6240 * ada-lang.c: Change k&r style function definitions to prototyped 6241 form. 6242 * ada-typeprint.c: Change k&r style function definitions to prototyped 6243 form. 6244 * ada-valprint.c: Change k&r style function definitions to prototyped 6245 form. 6246 62472002-07-24 Andrew Cagney <cagney@redhat.com> 6248 6249 * README: Remove reference to remote-bug. 6250 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and 6251 remote-bug.c. 6252 (m88k-nat.o): Delete rule. 6253 (m88k-tdep.o): Delete rule. 6254 (remote-bug.o): Delete rule. 6255 * MAINTAINERS: Mark as obsolete. 6256 * elfread.c (elf_symtab_read): Mention that m88k is obsolete. 6257 * m88k-tdep.c: Make file obsolete. 6258 * config/m88k/m88k.mh: Ditto. 6259 * config/m88k/delta88v4.mh: Ditto. 6260 * config/m88k/delta88v4.mt: Ditto. 6261 * config/m88k/delta88.mt: Ditto. 6262 * config/m88k/delta88.mh: Ditto. 6263 * remote-bug.c: Ditto. 6264 * config/m88k/tm-delta88.h: Ditto. 6265 * config/m88k/nm-delta88v4.h: Ditto. 6266 * config/m88k/xm-delta88.h: Ditto. 6267 * config/m88k/xm-dgux.h: Ditto. 6268 * config/m88k/tm-m88k.h: Ditto. 6269 * config/m88k/nm-m88k.h: Ditto. 6270 * config/m88k/tm-delta88v4.h: Ditto. 6271 * m88k-nat.c: Ditto. 6272 * cxux-nat.c: Ditto. 6273 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv* 6274 and m88*-*-* obsolete. 6275 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and 6276 m88*-*-* obsolete. 6277 62782002-07-24 Andrew Cagney <cagney@redhat.com> 6279 6280 * findvar.c (extract_unsigned_integer): Make `addr' parameter 6281 constant. Same for local pointer variables. 6282 (extract_signed_integer): Ditto. 6283 * defs.h (extract_unsigned_integer): Update. 6284 (extract_signed_integer): Update. 6285 62862002-07-24 Andrew Cagney <cagney@redhat.com> 6287 6288 * regcache.c (regcache_raw_write): Change buf parameter to a 6289 constant void pointer. 6290 (regcache_raw_read): Change buf parameter to a void pointer. 6291 (legacy_write_register_gen): Change myaddr parameter a constant 6292 void pointer. 6293 (supply_register): Change val parameter to a const void pointer. 6294 * regcache.h (regcache_raw_write): Update declaration. 6295 (regcache_raw_read): Update declaration. 6296 (supply_register): Update declaration. 6297 62982002-07-24 Tom Tromey <tromey@redhat.com> 6299 6300 * defs.h (gdb_readline_wrapper): Declare. 6301 * utils.c (prompt_for_continue): Use gdb_readline_wrapper. 6302 * tracepoint.c (read_actions): Use gdb_readline_wrapper. 6303 * top.c (gdb_readline_wrapper): New function. 6304 (command_line_input): Use it. 6305 63062002-07-24 Andrew Cagney <cagney@redhat.com> 6307 6308 * regcache.h (regcache_raw_read, regcache_raw_write): Replace 6309 regcache_read and regcache_write. 6310 (regcache_raw_read_as_address): Replace regcache_read_as_address. 6311 * regcache.c: Update. 6312 * sh-tdep.c (sh64_push_arguments): Update comment. 6313 (sh_pseudo_register_read): Update. 6314 (sh_pseudo_register_write): Update. 6315 (sh4_register_read): Update. 6316 (sh4_register_write): Update. 6317 (sh64_pseudo_register_read): Update. 6318 (sh64_pseudo_register_write): Update. 6319 (sh64_register_read): Update. 6320 (sh64_register_write): Update. 6321 * i386-tdep.c (i386_extract_return_value): Update. 6322 (i386_extract_struct_value_address): Update. 6323 (i386_extract_return_value): Update. 6324 * blockframe.c (generic_read_register_dummy): Update. 6325 (generic_call_dummy_register_unwind): Update 6326 * infrun.c (write_inferior_status_register): Update. 6327 63282002-07-23 Jim Blandy <jimb@redhat.com> 6329 6330 * parser-defs.h (expression_context_pc): Make this extern. 6331 (Thanks to Michael Snyder.) 6332 63332002-07-23 Andrew Cagney <ac131313@redhat.com> 6334 6335 GDB 5.2.1 released from 5.2 branch. 6336 * NEWS: Mention changes in 5.2.1 including addition of AVR target. 6337 * README: Update to mention 5.2.1. 6338 63392002-07-23 Mark Salter <msalter@redhat.com> 6340 6341 * remote.c (remote_read_bytes): Fix check for error. 6342 63432002-07-22 Kevin Buettner <kevinb@redhat.com> 6344 6345 * aix-thread.c (language.h): Include. 6346 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs) 6347 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc): 6348 Print newlines at end of debug messages. 6349 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data) 6350 (pdc_write_data): Use local_hex_string() instead of %llx formats. 6351 63522002-07-22 Kevin Buettner <kevinb@redhat.com> 6353 6354 * aix-thread.c (ppc-tdep.h): Include. 6355 (special_register_p): New function. 6356 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32) 6357 (store_regs_user_thread): Use register number information from 6358 gdbarch_tdep struct instead of hardcoded offsets relative to 6359 FIRST_UISA_SP_REGNUM. 6360 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call 6361 special_register_p() instead of using FPLAST_REGNUM and 6362 LAST_UISA_SP_REGNUM as lower and upper bounds on the special 6363 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM 6364 will be MQ's register number. 6365 63662002-07-22 Michael Snyder <msnyder@redhat.com> 6367 6368 * aix-thread.c (ops): Rename to aix_thread_ops. 6369 (base_ops): Rename to base_target. 6370 (ops_attach): Rename to aix_thread_attach. 6371 (ops_detach): Rename to aix_thread_detach. 6372 (ops_resume): Rename to aix_thread_detach. 6373 (ops_wait): Rename to aix_thread_wait. 6374 (ops_kill): Rename to aix_thread_kill. 6375 (init_ops): Rename to init_aix_thread_ops. 6376 (ops_fetch_register): Rename to aix_thread_fetch_register. 6377 (ops_store_register): Rename to aix_thread_store_register. 6378 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior. 6379 (ops_thread_alive): Rename to aix_thread_thread_alive. 6380 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info. 6381 (ops_pid_to_str): Rename to aix_thread_pid_to_str. 6382 (ops_xfer_memory): Rename to aix_thread_xfer_memory. 6383 (fetch_regs_lib): Rename to fetch_regs_user_thread. 6384 (fetch_regs_kern): Rename to fetch_regs_kernel_thread. 6385 (store_regs_lib): Rename to store_regs_user_thread. 6386 (store_regs_kern): Rename to store_regs_kernel_thread. 6387 63882002-07-22 Michael Snyder <msnyder@redhat.com> 6389 6390 * aix-thread.c (ops_prepare_to_store): Eliminate. 6391 (init_ops): Don't initialize ops.prepare_to_store. 6392 (store_regs_kern): Pre-fetch register buffers from child, 6393 because some registers may not be in the cache. Copy 6394 regs from register cache only if they are cached. 6395 (store_regs_lib): Copy regs from register cache only 6396 if they are cached. 6397 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32, 6398 fill_gprs64): Ditto. 6399 64002002-07-22 Kevin Buettner <kevinb@redhat.com> 6401 6402 * aix-thread.c (gdb_assert.h): Include. 6403 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that 6404 register sizes (from register cache) match size of buffer holding 6405 register data. 6406 (fill_sprs32): Change parameter types to match those in the ptrace() 6407 buffer. 6408 (store_regs_lib): Likewise, but for 32-bit temporary variables. 6409 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''. 6410 64112002-07-22 Michael Snyder <msnyder@redhat.com> 6412 6413 * aix-thread.c (supply_sprs64): Cosmetic change. 6414 (supply_sprs32): Cosmetic change. 6415 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs. 6416 (fill_sprs64): Use regcache_collect instead of read_register. 6417 (store_regs_lib): Use regcache_collect instead of 6418 read_register. Use fill_sprs32 instead of fill_sprs64, 6419 if debugging a 32-bit architecture. 6420 (store_regs_kern): Use fill_gprs64 etc. to pull the values 6421 out of the register cache, instead of passing a pointer into 6422 the register cache directly to ptrace. Use regcache_collect 6423 insteaad of read_register. 6424 (ops_prepare_to_store): Use target_read_registers instead 6425 of read_register_bytes. 6426 64272002-07-20 Aidan Skinner <aidan@velvet.net> 6428 6429 * MAINTAINERS: Add self under write after approval. 6430 64312002-07-20 Aidan Skinner <aidan@velvet.net> 6432 6433 * ada-tasks.c: Change k&r style function definitions to prototyped 6434 form. 6435 64362002-07-19 Andrew Cagney <ac131313@redhat.com> 6437 6438 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h). 6439 * x86-64-tdep.c: Include "objfiles.h". 6440 (x86_64_gdbarch_init): Set in_solib_call_trampoline to 6441 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>. 6442 64432002-07-17 Michal Ludvig <michal@suse.cz> 6444 6445 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value. 6446 (update_context): Initialise cfa variable. 6447 64482002-07-17 Michael Snyder <msnyder@redhat.com> 6449 6450 * aix-thread.c: Shorten some long lines. 6451 Bring comments into line with code spec. 6452 64532002-07-18 Joel Brobecker <brobecker@gnat.com> 6454 6455 * infrun.c: Re-indent using gdb_indent.sh. 6456 64572002-07-18 Joel Brobecker <brobecker@gnat.com> 6458 6459 * infrun.c (handle_inferior_event): Remove unneeded extra brace. 6460 Leave the indentation temporarily untouched, to minimize the diffs. 6461 64622002-07-18 Elena Zannoni <ezannoni@redhat.com> 6463 6464 * stabsread.c: Make os9k sections of the code obsolete, 6465 for real this time. 6466 * stabsread.h: Make os9k sections of the code obsolete. 6467 64682002-07-18 Michal Ludvig <mludvig@suse.cz> 6469 6470 * linux-low.c (regsets_store_inferior_registers): Add free() 6471 at the end of a loop to prevent memory leak. 6472 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers. 6473 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap. 6474 * config/sparc/tm-sp64linux.h: Make the rest of #endif 6475 line a comment. 6476 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h 6477 64782002-07-17 Jim Blandy <jimb@redhat.com> 6479 6480 * macrocmd.c (info_macro_command): Remove newline from error 6481 message. 6482 64832002-07-17 J"orn Rennecke <joern.rennecke@superh.com> 6484 6485 * sh-tdep.c (sh_dsp_register_sim_regno): New function. 6486 (sh_gdbarch_init): Use it for sh-dsp. 6487 64882002-07-16 Kevin Buettner <kevinb@redhat.com> 6489 6490 * dwarf2read.c (read_initial_length): Handle older, non-standard, 6491 64-bit DWARF2 format. 6492 64932002-07-16 Joel Brobecker <brobecker@gnat.com> 6494 6495 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including 6496 <sys/proc.h> when not available. 6497 64982002-07-16 Andrew Cagney <ac131313@redhat.com> 6499 6500 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete. 6501 * stabsread.c: Make os9k sections of the code obsolete. 6502 * configure.tgt: Make i[3456]86-*-os9k target obsolete. 6503 * config/i386/i386os9k.mt: Make file obsolete. 6504 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c. 6505 (COMMON_OBS): Remove os9kread.o 6506 (SFILES): Remove os9kread.c. 6507 (os9kread.o, remote-os9k.o): Make target obsolete. 6508 * remote-os9k.c: Make file obsolete. 6509 * os9kread.c: Make file obsolete. 6510 * Makefile.in 6511 65122002-07-16 Andrew Cagney <ac131313@redhat.com> 6513 6514 * NEWS: Mention that the FR30 has been made obsolete. 6515 * fr30-tdep.c: Make file obsolete. 6516 * config/fr30/tm-fr30.h: Ditto. 6517 * config/fr30/fr30.mt: Ditto. 6518 * configure.tgt: Make fr30-*-elf obsolete. 6519 * MAINTAINERS: Make fr30-elf obsolete. 6520 65212002-07-16 Pierre Muller <muller@ics.u-strasbg.fr> 6522 6523 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol 6524 found is not inside a section. 6525 65262002-07-15 Kevin Buettner <kevinb@redhat.com> 6527 6528 * aix-thread.c (ptrace_check): Use safe_strerror() instead of 6529 strerror(). 6530 (pdc_realloc): Use xrealloc() instead of realloc(). 6531 65322002-07-15 Kevin Buettner <kevinb@redhat.com> 6533 6534 * aix-thread.c (PD_ERROR, CALL_BASE): Delete. 6535 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib) 6536 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE 6537 macros. 6538 65392002-07-15 Kevin Buettner <kevinb@redhat.com> 6540 6541 * aix-thread.c (ptrace_check): Eliminate goto. 6542 (sync_threadlists): Eliminate gotos. Also, fix array overrun 6543 problem. 6544 65452002-07-15 Kevin Buettner <kevinb@redhat.com> 6546 6547 * aix-thread.c (gdbcmd.h): Include. 6548 (DEBUG, DBG, DBG2, dbg): Eliminate. 6549 (debug_aix_thread): New static global. 6550 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs) 6551 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc) 6552 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite 6553 invocations to DBG and DBG2 macros to test against 6554 ``debug_aix_thread'' and call fprintf_unfiltered(). 6555 (_initialize_aix_thread): Add new command "set debug aix-thread". 6556 65572002-07-15 Andrew Cagney <ac131313@redhat.com> 6558 6559 From Gerhard Tonn <TON@de.ibm.com>: 6560 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect 6561 instead of supply_register. 6562 65632002-07-15 Andrew Cagney <ac131313@redhat.com> 6564 6565 * dwarf2cfi.c: Include "gdb_assert.h". 6566 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is 6567 non-NULL. 6568 (update_context): Do not use __func__. Add missing ``break''. 6569 (update_context): Do not use __func__. 6570 65712002-07-15 Elena Zannoni <ezannoni@redhat.com> 6572 6573 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn 6574 and its setting. Set gdbarch instruction printing functions 6575 directly. For non-rs6000 case use new function 6576 gdb_print_insn_powerpc. 6577 (gdb_print_insn_powerpc): New function. 6578 65792002-07-13 Andrew Cagney <ac131313@redhat.com> 6580 6581 * NEWS: Mention that the d30v has been marked obsolete. 6582 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete. 6583 * configure.tgt: Mark d30v-*-* as obsolete. 6584 * d30v-tdep.c: Mark file as obsolete. 6585 * config/d30v/d30v.mt: Ditto. 6586 * config/d30v/tm-d30v.h: Ditto. 6587 65882002-07-13 Aidan Skinner <aidan@velvet.net> 6589 6590 * ada-tasks.c (add_task_entry): replace calls to 6591 malloc() with xmalloc 6592 * ada-tasks.c (init_task_list): replace calls to free with xfree() 6593 6594 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype, 6595 ada_finish_decode_line_1, all_sals_for_line 6596 ada_breakpoint_rewrite): replace calls to free() with xfree() 6597 65982002-07-12 Kevin Buettner <kevinb@redhat.com> 6599 6600 From Nicholas Duffek (with minor changes by Martin Hunt, 6601 Louis Hamilton, and Kevin Buettner): 6602 * aix-thread.c: New file. 6603 66042002-07-12 Petr Sorfa <petrs@caldera.com> 6605 6606 * dwarf2read.c (dwarf2_invalid_attrib_class): New 6607 complaint for invalid attribute class or form. 6608 (read_func_scope): DW_AT_frame_base 6609 better handling of DW_AT_block*. 6610 (dwarf2_add_member_fn): DW_AT_vtable_elem_location 6611 better handling of DW_AT_block*. 6612 (read_common_block): DW_AT_location 6613 better handling of DW_AT_block*. 6614 (read_partial_die): DW_AT_location better handling 6615 of DW_AT_block*. 6616 (new_symbol): DW_AT_external better handling of 6617 DW_AT_block*. Proper initialization of variable 6618 "addr". 6619 (attr_form_is_block): New function that returns true 6620 if the attribute's form is of DW_FORM_block*. 6621 66222002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE> 6623 6624 * valops.c (find_method_list): Remove comment about 6625 removed STATIC_MEMFUNCP argument. 6626 (value_find_oload_method_list): Likewise. 6627 66282002-07-12 Kevin Buettner <kevinb@redhat.com> 6629 6630 From Nicholas Duffek: 6631 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call 6632 target_new_objfile_hook. 6633 66342002-07-12 Kevin Buettner <kevinb@redhat.com> 6635 6636 From Nicholas Duffek: 6637 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage 6638 csect. 6639 66402002-07-12 Andrew Cagney <cagney@redhat.com> 6641 6642 * MAINTAINERS: Mention --enable-sim-build-warnings. 6643 (m68hc11-elf): Disable sim build warnings. 6644 (m32r-elf): Mark as broken obsolete candidate. 6645 (x86_64-linux-gnu): Mark as buildable with -Werror. 6646 (arm-elf): Change -w to ``,'' which enables warnings but not 6647 -Werror. 6648 66492002-07-12 Andrew Cagney <ac131313@redhat.com> 6650 6651 * bcache.h: Update copyright. 6652 (struct bstring, struct bcache): Move definition to "bcache.c". 6653 Replaced by opaque declaration. 6654 (bcache_xfree): Replace free_bcache. 6655 (bcache_xmalloc, bcache_memory_used): Declare. 6656 6657 * bcache.c: Update copyright. 6658 (struct bstring, struct bcache): Moved to here from "bcache.h". 6659 Update comments. 6660 (bcache_xmalloc, bcache_memory_used): New functions. 6661 (bcache_xfree): Replace function free_bcache. 6662 6663 * Makefile.in (objfiles.o): Add $(bcache_h). 6664 (objfiles_h): Remove $(bcache_h). 6665 (symfile.o): Add $(bcache_h). 6666 6667 * symmisc.c: Update copyright. 6668 (print_symbol_bcache_statistics): Pass psymbol_cache by value. 6669 (print_objfile_statistics): Use bcache_memory_used. 6670 6671 * symfile.c: Include "bcache.h". 6672 (reread_symbols): Use bcache_xfree. 6673 (reread_symbols): Use bcache_xmalloc and bcache_xfree. 6674 (add_psymbol_to_list): Pass psymbol_cache by value. 6675 (add_psymbol_with_dem_name_to_list): Ditto. 6676 6677 * objfiles.h: Update copyright. 6678 (struct bcache): Declare opaque. Do not include "bcache.h". 6679 (struct objfile): Change psymbol_cache and macro_cache to ``struct 6680 bcache'' pointers. 6681 * dwarf2read.c (macro_start_file): Pass macro_cache by value. 6682 6683 * objfiles.c: Include "bcache.h". Update copyright. 6684 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and 6685 macro_cache. 6686 (free_objfile): Use bcache_xfree. 6687 66882002-07-11 Grace Sainsbury <graces@redhat.com> 6689 6690 * monitor.c (monitor_fetch_register): Make name a constant. 6691 (monitor_store_register): Same. 6692 66932002-07-11 Daniel Jacobowitz <drow@mvista.com> 6694 6695 Based on patch from Daniel Berlin <dberlin@dberlin.org>. 6696 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME. 6697 (finish_block) For non-function blocks, hash the symbol table. For 6698 function blocks, mark the symbol table as unhashed. 6699 * minsyms.c (msymbol_hash): Return hash value without taking modulus. 6700 (msymbol_hash_iw): Likewise. 6701 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return 6702 value. 6703 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw. 6704 (lookup_minimal_symbol): Likewise for both. 6705 * symtab.h (struct block): Add `hashtable' flag. Comment the 6706 hashtable. 6707 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro. 6708 (ALL_BLOCK_SYMBOLS): Update. 6709 (BLOCK_SHOULD_SORT): Do not sort hashed blocks. 6710 (struct symbol): Add `hash_next' pointer. 6711 * symtab.c (lookup_block_symbol): Search using the hash table when 6712 possible. 6713 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS. 6714 (search_symbols, find_addr_symbol): Likewise. 6715 6716 * dstread.c (process_dst_block): Clear hashtable bit for new block. 6717 (read_dst_symtab): Likewise. 6718 * jv-lang.c (get_java_class_symtab): Likewise. 6719 * mdebugread.c: Include "gdb_assert.h". 6720 (shrink_block): Assert that the block being modified is not hashed. 6721 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS. 6722 * symmisc.c (free_symtab_block): Walk the hash table when freeing 6723 symbols. 6724 (dump_symtab): Recognize hashed blocks. 6725 * printcmd.c (print_frame_args): Assert that function blocks do not 6726 have hashed symbol tables. 6727 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS. 6728 (fill_in_ada_prototype, debug_print_block): Likewise. 6729 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables. 6730 67312002-07-11 Corinna Vinschen <vinschen@redhat.com> 6732 6733 * stack.c (print_frame): Use result of frame_address_in_block() 6734 instead of fi->pc when evaluating symbols. 6735 (backtrace_command_1): Ditto. 6736 67372002-07-11 Andrew Cagney <cagney@redhat.com> 6738 6739 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type. 6740 Make static. 6741 6742 * arm-tdep.c (arm_register_name): Make return type constant. 6743 67442002-07-10 Andrew Cagney <ac131313@redhat.com> 6745 6746 * win32-nat.c (has_detach_ability): Convert to strict ISO C 6747 prototype. 6748 * top.c (gdb_rl_operate_and_get_next_completion): Ditto. 6749 * s390-tdep.c (s390_fp_regnum): Ditto. 6750 (s390_read_fp): Ditto. 6751 (s390_pop_frame): Ditto. 6752 (_initialize_s390_tdep): Ditto. 6753 * remote.c (get_remote_state): Ditto. 6754 * procfs.c (mappingflags): Ditto. 6755 * memattr.c (_initialize_mem): Ditto. 6756 * mcore-tdep.c (mcore_pop_frame): Ditto. 6757 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto. 6758 * m68k-tdep.c (m68k_register_bytes_ok): Ditto. 6759 * language.c (set_case_str): Ditto. 6760 * gnu-v3-abi.c (vtable_address_point_offset): Ditto. 6761 * frv-tdep.c (new_variant): Ditto. 6762 (frv_stopped_data_address): Ditto. 6763 * dwarf2cfi.c (fde_chunks_need_space): Ditto. 6764 (context_alloc): Ditto. 6765 (frame_state_alloc): Ditto. 6766 (unwind_tmp_obstack_init): Ditto. 6767 (unwind_tmp_obstack_free): Ditto. 6768 (cfi_read_fp): Ditto. 6769 * cris-tdep.c (cris_saved_pc_after_call): Ditto. 6770 (cris_pop_frame): Ditto. 6771 * c-lang.c (scanning_macro_expansion): Ditto. 6772 (finished_macro_expansion): Ditto. 6773 (c_preprocess_and_parse): Ditto. 6774 * gdbarch.sh: Ditto. 6775 * gdbarch.h, gdbarch.c: Regenerate. 6776 * config/mn10200/tm-mn10200.h: Adjust indentation. 6777 * target.c: Adjust indentation. 6778 * symtab.h: Adjust indentation. 6779 * stabsread.h: Adjust indentation. 6780 * remote-es.c: Adjust indentation. 6781 * os9kread.c: Adjust indentation. 6782 67832002-07-10 Andrew Cagney <ac131313@redhat.com> 6784 6785 * wince.c (_initialize_wince): Rename _initialize_inftarg. 6786 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg. 6787 67882002-07-10 Grace Sainsbury <graces@redhat.com> 6789 6790 * NEWS: Mention m68k, mcore multi-arching. 6791 * MAINTAINERS: Change status of m68k, mcore to reflect 6792 multi-arching. 6793 67942002-07-10 Daniel Jacobowitz <drow@mvista.com> 6795 6796 * valops.c (find_overload_match): Free oload_syms. 6797 67982002-07-09 Joel Brobecker <brobecker@gnat.com> 6799 6800 Define HAVE_SYS_PROC_H if sys/proc.h exists 6801 * configure.in: Add check for sys/proc.h 6802 * config.in: Regenerate. 6803 * configure: Regenerate. 6804 68052002-07-09 Grace Sainsbury <graces@redhat.com> 6806 6807 * config/m68k/tm-m68k.h: Remove macros wrapped in 6808 #if !GDB_MULTI_ARCH. 6809 68102002-07-08 Andrew Cagney <ac131313@redhat.com> 6811 6812 * config.in, configure: Regenerate. 6813 68142002-07-08 Mark Kettenis <kettenis@gnu.org> 6815 6816 * dwarf2cfi.c: Include "gcore.h". 6817 (execute_stack_op): Fix implementation of the 6818 DW_OP_deref and DW_OP_deref_size operators by letting do their 6819 lookup in the target. 6820 68212002-07-07 Mark Kettenis <kettenis@gnu.org> 6822 6823 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>: 6824 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for 6825 tdep->sc_sp_offset. 6826 68272002-07-05 Daniel Jacobowitz <drow@mvista.com> 6828 6829 Fix PR gdb/595, gdb/602 6830 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables. 6831 Don't call value_cast, just read the vtable pointer; update comments 6832 to match. 6833 68342002-07-05 Grace Sainsbury <graces@redhat.com> 6835 6836 * config/mcore/tm-mcore.h: Remove file. 6837 * config/mcore/mcore.mt: Remove definition of TM_FILE 6838 * configure.tgt: Set gdb_multi_arch to yes for the mcore target. 6839 68402002-07-05 Mark Kettenis <kettenis@gnu.org> 6841 6842 * i386bsd-tdep.c: Include "gdb_string.h". 6843 68442002-07-04 Grace Sainsbury <graces@redhat.com> 6845 6846 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2. 6847 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to 6848 mcore-tdep. 6849 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER) 6850 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove. 6851 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG) 6852 (RETVAL_REGNUM): Move macros from tm-mcore.h 6853 (mcore_reg_struct_has_addr): New function. 6854 (mcore_gdbarch_init): Added initializations for the macros removed 6855 from tm-mcore.h. 6856 68572002-07-04 Mark Kettenis <kettenis@gnu.org> 6858 6859 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's 6860 traditonal string branding within the ELF header. 6861 68622002-07-04 Daniel Jacobowitz <drow@mvista.com> 6863 6864 * symtab.c (remove_params): New function. 6865 (make_symbol_overload_list): Use it instead of cplus_demangle. 6866 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak. 6867 68682002-07-04 Mark Kettenis <kettenis@gnu.org> 6869 6870 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype. 6871 6872 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): 6873 New variables. 6874 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start 6875 and tdep->sigtramp_end. 6876 * i386obsd-nat.c: New file. 6877 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o. 6878 6879 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf. 6880 Don't call get_current_frame(). 6881 68822002-07-04 Pierre Muller <muller@ics.u-strasbg.fr> 6883 6884 * i386-nat.c (child_post_startup_inferior): New function 6885 calling i386_cleanup_dregs if 6886 I386_USE_GENERIC_WATCHPOINTS is defined. 6887 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR 6888 conditional to acknowledge that i386-nat.c has its 6889 own child_post_startup_inferior function. 6890 68912002-07-04 Mark Kettenis <kettenis@gnu.org> 6892 6893 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define. 6894 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE 6895 instead of MAX_REGISTER_RAW_SIZE. 6896 (i386_extract_return_value, i386_extract_struct_value_address): 6897 Convert to use regcache. 6898 (i386_gdbarch_init): Set max_register_raw_size and 6899 max_register_virtual_size to I386_MAX_REGISTER_SIZE. 6900 Set extract_return_value and extract_struct_value_address instead 6901 of their deprecated variants. 6902 6903 Convert i386 target to generic dummy frames. 6904 * i386-tdep.c: Include "symfile.h". 6905 (i386_frameless_signal_p): Consider a function to be frameless if 6906 the pc points at the first instruction of the function. 6907 (i386_frame_chain): Handle (generic) call dummies. 6908 (i386_frame_saved_pc): Likewise. 6909 (i386_frame_init_saved_regs): Remove code dealing with call 6910 dummies on the stack. 6911 (i386_push_dummy_frame): Removed. 6912 (i386_call_dummy_words): Removed. 6913 (i386_fix_call_dummy): Removed. 6914 (i386_push_return_address): New function. 6915 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME 6916 parameter, and don't call get_current_frame. 6917 (i386_pop_frame): New function. 6918 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set 6919 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to 6920 entry_point_address, set call_dummy_breakpoint_offset to 0, set 6921 call_dummy_length to 0, set call_dummy_words to NULL, set 6922 sizeof_call_dummy_words to 0, set fix_call_dummy to 6923 generic_fix_call_dummy, set pc_in_call_dummy to 6924 pc_in_call_dummy_at_entry_point, set push_dummy_frame to 6925 generic_push_dummy_frame, set push_return_address to 6926 i386_push_return_address and set frame_chain_valid to 6927 generic_file_frame_chain_valid. 6928 69292002-07-03 Andrew Cagney <ac131313@redhat.com> 6930 6931 * gdbarch.sh (struct regcache): Add opaque declaration. 6932 (EXTRACT_RETURN_VALUE): New architecture method. 6933 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto. 6934 * gdbarch.h, gdbarch.c: Regenerate. 6935 * arch-utils.c (legacy_extract_return_value): New function. 6936 * arch-utils.h (legacy_extract_return_value): Declare. 6937 * values.c (value_being_returned): Re-enable code handling 6938 EXTRACT_STRUCT_VALUE_ADDRESS. Move 6939 deprecated_grub_regcache_for_registers call to block handling 6940 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS. 6941 (EXTRACT_RETURN_VALUE): Do not define. 6942 69432002-07-03 Grace Sainsbury <graces@redhat.com> 6944 6945 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM) 6946 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK) 6947 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL) 6948 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC) 6949 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC) 6950 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE) 6951 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS) 6952 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS) 6953 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME) 6954 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove. 6955 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf 6956 argument so the function fits the prototype in the architecture 6957 vector. 6958 (mcore_pop_frame): Remove argument so the function fits the 6959 prototype. Use get_current_frame instead of the argument. 6960 (mcore_push_arguments): Change type of struct_return so the 6961 function can be used in the architecture vector. 6962 (mcore_store_struct_return): Add. 6963 (mcore_frame_init_saved_regs): Add. 6964 (mcore_gdbarch_init): Add function calls to replace the macros 6965 removed from tm-mcore.h 6966 69672002-07-03 Andrew Cagney <ac131313@redhat.com> 6968 6969 * infcmd.c (print_return_value): Remove compatibility code calling 6970 deprecated_grub_regcache_for_registers. 6971 6972 * values.c: Include "regcache.h". 6973 (value_being_returned): Update. Use 6974 deprecated_grub_regcache_for_registers to extract the register 6975 buffer address. 6976 * value.h (value_being_returned): Change ``retbuf'' parameter to a 6977 ``struct regcache''. 6978 * Makefile.in (values.o): Add dependency on $(regcache_h). 6979 6980 * inferior.h (run_stack_dummy): Change type of second parameter to 6981 a ``struct regcache''. 6982 * valops.c (hand_function_call): Change type of retbuf to ``struct 6983 regcache''. Allocate using regcache_xmalloc, clean using 6984 make_cleanup_regcache_xfree. 6985 * infcmd.c (run_stack_dummy): Update. Use 6986 regcache_cpu_no_passthrough instead of memcpy to copy the buffer. 6987 6988 * regcache.c (do_regcache_xfree): New function. 6989 (make_cleanup_regcache_xfree): New function. 6990 * regcache.h (make_cleanup_regcache_xfree): Declare. 6991 69922002-07-03 Martin M. Hunt <hunt@redhat.com> 6993 6994 * event-top.c (command_line_handler): Don't read past 6995 beginning of buffer. 6996 69972002-07-03 Martin M. Hunt <hunt@redhat.com> 6998 6999 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 7000 struct frame_id. 7001 (varobj_create): Store frame_id for root. 7002 (varobj_gen_name): Use xasprintf. 7003 (varobj_update): Save and restore frame using get_frame_id() and 7004 frame_find_by_id(). 7005 (create_child): Use xasprintf. 7006 (new_root_variable): Initialize frame_id. 7007 (c_name_of_child): Use xasprintf. Call find_frame_by_id(). 7008 (c_value_of_variable): Use xasprintf. Move mem_fileopen call 7009 to prevent memory leak. 7010 70112002-07-03 Andrew Cagney <ac131313@redhat.com> 7012 7013 * valops.c (hand_function_call): Move declaration of retbuf to 7014 start of function, allocate using malloc, add a cleanup but before 7015 the inf_status cleanup, cleanup the buffer. Rename local variable 7016 old_chain to inf_status_cleanup. 7017 70182002-07-03 Martin M. Hunt <hunt@redhat.com> 7019 7020 * top.c (execute_command): Use cmd_func() and cmd_func_p(). 7021 7022 * cli/cli-decode.c (cmd_func_p): New function. 7023 (cmd_func): New function. 7024 7025 * command.h: Add cmd_func() and cmd_func_p(). 7026 70272002-07-03 Grace Sainsbury <graces@redhat.com> 7028 7029 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0. 7030 (REGISTER_SIZE): Remove. 7031 (MAX_REGISTER_RAW_SIZE): Remove. 7032 (REGISTER_VIRTUAL_TYPE): Remove. 7033 (MAX_REGISTER_VIRTUAL_SIZE): Remove. 7034 (REGISTER_NAME): Remove. 7035 (USE_GENERIC_DUMMY_FRAMES): Remove. 7036 (CALL_DUMMY): Remove. 7037 (CALL_DUMMY_START_OFFSET): Remove. 7038 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove. 7039 (CALL_DUMMY_LOCATION): Remove. 7040 (FIX_CALL_DUMMY): Remove. 7041 (CALL_DUMMY_ADDRESS): Remove. 7042 (SIZEOF_CALL_DUMMY_WORDS): Remove. 7043 (SAVE_DUMMY_FRAME_TOS): Remove. 7044 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros. 7045 (mcore_register_virtual_type): New function. 7046 (mcore_register_byte): New function. 7047 (mcore_register_size): New function. 7048 (mcore_register_name): New function. 7049 (mcore_gdbarch_init): New function. Add set_gdbarch calls for 7050 macros removed from tm-mcore.h. 7051 (mcore_dump_tdep): Add. 7052 (_initialize_mcore_tdep): Add gdbarch_register call. 7053 70542002-07-03 Mark Kettenis <kettenis@gnu.org> 7055 7056 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to 7057 frameless_look_for_prologue, such that we actually call this 7058 function. 7059 70602002-07-02 Joel Brobecker <brobecker@gnat.com> 7061 7062 * frame.h (frame_address_in_block): New function. 7063 7064 * blockframe.c (frame_address_in_block): New function extracted 7065 from get_frame_block(). 7066 (get_frame_block): Use frame_address_in_block(). 7067 (block_innermost_frame): Use frame_address_in_block() to match 7068 the frame pc address against the block boundaries rather than 7069 the frame pc directly. This prevents a failure when a frame pc 7070 is actually a return-address pointing immediately after the end 7071 of the given block. 7072 70732002-07-02 Grace Sainsbury <graces@redhat.com> 7074 7075 * MAINTAINERS: Add self under write after approval. 7076 70772002-07-02 Grace Sainsbury <graces@redhat.com> 7078 7079 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not 7080 used in architecture vector. The default is 7081 m68k_local_breakpoint_from_pc. 7082 (m68k_local_breakpoint_from_pc): Add. 7083 (enum): Add register numbers from tm-m68k.h. 7084 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture 7085 vector. 7086 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to 7087 GDB_MULTI_ARCH_PARTIAL. 7088 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP) 7089 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to 7090 m68k-tdep.c. 7091 (BREAKPOINT, REMOTE_BREAKPOINT): Remove. 7092 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move 7093 to enum in m68k-tdep.c 7094 70952002-07-02 Joel Brobecker <brobecker@gnat.com> 7096 7097 * solib-osf.c (open_map): Compute the list of shared libraries 7098 loaded by the inferior, rather than the list of libraries loaded 7099 by GDB itself. Otherwise, GDB ends up reading the symbols from 7100 the wrong shared libraries... 7101 71022002-07-02 Mark Kettenis <kettenis@gnu.org> 7103 7104 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static. 7105 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove 7106 macros. 7107 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp): 7108 Remove functions. 7109 (FRAMELESS_SIGNAL): Remove function. 7110 (i386_linux_frame_chain, i386_linux_frame_saved_pc, 7111 i386_linux_saved_pc_after_call): Removed. 7112 (i386_linux_init_abi): Initialize tdep->sigcontext_addr, 7113 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override 7114 frame_chain, frame_saved_pc and saved_pc_after_call any longer. 7115 7116 * i386-tdep.c (i386_frameless_signal_p): New function. 7117 (i386_frame_chain): Deal with frameless signals. 7118 (i386_sigtramp_saved_sp): New function. 7119 (i386_frame_saved_pc): Deal with frameless signals. 7120 (i386_saved_pc_after_call): Make sure the correct value is 7121 returned just after entry into a sigtramp. 7122 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset, 7123 i386fbsd4_sc_sp_offset): New variables. 7124 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use 7125 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c 7126 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset 7127 similiar to what we already did for sc_pc_offset. 7128 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize 7129 tdep->sc_sp_offset. 7130 7131 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line. 7132 71332002-07-02 Michal Ludvig <mludvig@suse.cz> 7134 7135 * config/i386/tm-x86-64linux.h: New. 7136 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE 7137 definitions. 7138 * config/i386/nm-x86-64.h: Rename to ... 7139 * config/i386/nm-x86-64linux.h: ... this one. 7140 * config/i386/x86-64linux.mh: Reflect the above change. 7141 71422002-07-01 Mark Kettenis <kettenis@gnu.org> 7143 7144 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc 7145 with sigcontext_addr. Add sc_sp_offset. 7146 (i386bsd_sigtramp_saved_pc): Remove prototype. 7147 (i386bsd_sicontext_addr): Add prototype. 7148 * i386-tdep.c (i386_sigtramp_saved_pc): New function. 7149 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc. 7150 (i386_svr4_sigtramp_saved_pc): Removed. 7151 (i386_svr4_sigcontext_addr): New function. 7152 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc. 7153 Initialize tdep->sigcontext_addr instead. Initialize 7154 tdep->sc_pc_offset and tdep->sc_sp_offset. 7155 (i386_gdbarch_init): Likewise. 7156 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static 7157 any more. 7158 (i386bsd_sigtramp_saved_pc): Remove function. 7159 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc. 7160 Initialize tdep->sigcontext_addr instead. Initialize 7161 tdep->sc_pc_offset. 7162 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization 7163 of tdep->sigtramp_saved_pc. 7164 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize 7165 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr 7166 instead. 7167 7168 * i386-tdep.c (i386_frameless_function_invocation, 7169 i386_frame_num_args, i386_frame_init_saved_regs, 7170 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy, 7171 i386_pop_frame, i386_push_arguments, i386_store_struct_return, 7172 i386_extract_return_value, i386_store_return_value, 7173 i386_extract_struct_value_address, i386_register_virtual_type, 7174 i386_register_convertible, i386_register_convert_to_virtual, 7175 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc, 7176 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make 7177 static. 7178 71792002-07-01 Mark Kettenis <kettenis@gnu.org> 7180 7181 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed. 7182 7183 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed. 7184 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of 7185 this macro. Include "value.h". 7186 71872002-06-30 Aidan Skinner <aidan@velvet.net> 7188 7189 * ada-exp.tab.c: remove as it's a generated file 7190 * ada-lex.c: remove as it's a generated file 7191 71922002-06-30 Mark Kettenis <kettenis@gnu.org> 7193 7194 * config/i386/tm-i386.h (struct frame_info, struct 7195 frame_saved_regs, struct value, struct type): Remove forward 7196 declarations. 7197 7198 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS] 7199 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define. 7200 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS] 7201 (FILL_FPXREGSET): Define. 7202 7203 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define. 7204 7205 * configure.tgt (i[3456]86-*-openbsd*): Fold into 7206 i[3456]86-*-netbsd* case. 7207 * config/i386/tm-obsd.h: Removed. 7208 * config/i386/obsd.mt: Removed. 7209 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and 7210 core-aout.o. 7211 (MH_CFLAGS): Add -DYYDEBUG=0. 7212 7213 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to 7214 i386nbsd_sc_pc_offset on OpenBSD too. 7215 7216 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS] 7217 (IN_SOLIB_CALL_TRAMPOLINE): Remove define. 7218 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove 7219 define. 7220 * i386bsd-tdep.c: Include "arch-utils.h". 7221 (i386bsd_aout_in_solib_call_trampoline): New function. 7222 (i386bsd_init_abi): Set in_solib_call_trampoline to 7223 i386bsd_aout_in_solib_call_trampoline. 7224 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set 7225 in_solib_call_trampoline to generic_in_solib_call_trampoline. 7226 72272002-06-28 Andrew Cagney <ac131313@redhat.com> 7228 7229 * macrotab.h: Do not include "obstack.h" or "bcache.h". 7230 (struct obstack, struct bcache): Add opaque declarations. 7231 * Makefile.in (macrotab_h): Update 7232 72332002-06-28 Andrew Cagney <ac131313@redhat.com> 7234 7235 * blockframe.c (generic_find_dummy_frame): Change return type to 7236 ``struct regcache''. 7237 (struct dummy_frame): Replace field ``registers'' with regcache, a 7238 struct regcache object. 7239 (generic_find_dummy_frame): Update. 7240 (generic_push_dummy_frame): Update. Use regcache_xfree, 7241 regcache_xmalloc and regcache_cpy. 7242 (generic_pop_dummy_frame): Update. Use regcache_cpy and 7243 regcache_xfree. 7244 (deprecated_generic_find_dummy_frame): Update. 7245 (generic_read_register_dummy): Update. Use 7246 regcache_read_as_address. 7247 (generic_call_dummy_register_unwind): Update. Use regcache_read. 7248 (generic_get_saved_register): Update. Use regcache_read. 7249 72502002-06-28 Andrew Cagney <ac131313@redhat.com> 7251 7252 * Makefile.in (objfiles_h): Add $(bcache_h). 7253 * objfiles.h: Include "bcache.h". 7254 7255 * Makefile.in (symtab_h): Remove $(bcache_h). 7256 * symtab.h: Do not include "bcache.h". 7257 72582002-06-28 Andrew Cagney <ac131313@redhat.com> 7259 7260 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to 7261 generic_func_frame_chain_valid. 7262 72632002-06-28 David O'Brien <obrien@FreeBSD.org> 7264 7265 * config/i386/nm-fbsd.h: Include <sys/param.h>. 7266 * config/i386/tm-fbsd.h: Likewise. 7267 72682002-06-28 Andrew Cagney <ac131313@redhat.com> 7269 7270 * rs6000-tdep.c (rs6000_gdbarch_init): Use 7271 generic_unwind_get_saved_register. 7272 72732002-06-27 Andrew Cagney <ac131313@redhat.com> 7274 7275 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>: 7276 * regcache.c (supply_register): Add missing argument to 7277 register_buffer call. 7278 72792002-06-27 Andrew Cagney <ac131313@redhat.com> 7280 7281 * Makefile.in (init.c): Drop -e option to grep. Not necessary and 7282 Solaris /bin/grep does not not like it. From Peter Schauer. 7283 72842002-06-26 Tom Tromey <tromey@redhat.com> 7285 7286 * command.h (add_setshow_cmd): Declare. 7287 (add_setshow_cmd_full): Declare. 7288 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now 7289 returns void. Use add_setshow_cmd_full. 7290 (add_setshow_cmd_full): New function. 7291 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full. 7292 (add_setshow_boolean_cmd): Likewise. 7293 72942002-06-26 Jason Thorpe <thorpej@wasabisystems.com> 7295 7296 * config/vax/tm-vax.h: Protect from multiple inclusion. 7297 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR) 7298 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to... 7299 * config/vax/tm-vaxbsd.h: ...here. New file. 7300 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h. 7301 73022002-06-26 Jason Thorpe <thorpej@wasabisystems.com> 7303 7304 * config/vax/tm-vax.h (BREAKPOINT): Remove. 7305 (BELIEVE_PCC_PROMOTION): Remove. 7306 (AP_REGNUM): Move to... 7307 * config/vax/nm-vax.h: ...here. 7308 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM. 7309 (vax_breakpoint_from_pc): New function. 7310 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc 7311 and gdbarch_believe_pcc_promotion. 7312 73132002-06-26 Jason Thorpe <thorpej@wasabisystems.com> 7314 7315 * Makefile.in (vax_tdep_h): Define. 7316 (vax-tdep.o): Use $(vax_tdep_h). 7317 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework. 7318 (vax_dump_tdep): New function. 7319 (_initialize_vax_tdep): Register vax_dump_tdep. 7320 * vax-tdep.h: Include osabi.h. 7321 (struct gdbarch_tdep): New. 7322 73232002-06-26 Andrew Cagney <cagney@redhat.com> 7324 7325 * frame.h (deprecated_generic_find_dummy_frame): Rename 7326 generic_find_dummy_frame. 7327 * blockframe.c (generic_find_dummy_frame): Make static. 7328 (deprecated_generic_find_dummy_frame): New function. 7329 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace 7330 generic_find_dummy_frame with deprecated_find_dummy_frame. 7331 (sh64_nofp_frame_init_saved_regs): Ditto. 7332 (sh_fp_frame_init_saved_regs): Ditto. 7333 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto. 7334 (s390_frame_chain): Ditto. 7335 * cris-tdep.c (cris_frame_init_saved_regs): Ditto. 7336 73372002-06-26 Grace Sainsbury <graces@redhat.com> 7338 7339 * config/m68k/tm-m68k.h: Rearrange code so macros not in the 7340 gdbarch vector are at the top. 7341 (NUM_REGS): Remove. 7342 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove. 7343 (FRAME_ARGS_ADDRESS): Remove. 7344 (FRAME_LOCALS_ADDRESS): Remove. 7345 (FRAME_NUM_ARGS): Remove. 7346 (FRAME_ARGS_SKIP): Remove. 7347 * m68k-tdep.c (enum): Add eumeration of special register numbers. 7348 (m68k_gdbarch_init): Add gdbarch initializations for macros 7349 undefined in tm-m68k.h 7350 73512002-06-26 Grace Sainsbury <graces@redhat.com> 7352 7353 * monitor.h: Add the function regname to monitor_ops 7354 structure. This way NUM_REGS does not have to be a constant. 7355 * monitor.c (monitor_fetch_register): Added support for regname 7356 function. The function is called if the array regnames is NULL. 7357 (monitor_store_register): Same. 7358 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces 7359 regnames array. 7360 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL, 7361 cpu32bug_cmds.regname to point to new function. 7362 * abug-rom.c (abug_regname): Same as above. 7363 (init_abug_cmds): Same. 7364 * dbug-rom.c (dbug_regname): Same as above. 7365 (init_dbug_cmds): Same. 7366 * remote-est.c (est_regname): Same. 7367 (init_est_cmds): Same. 7368 * rom68k-rom.c (rom68k_regname): Same. 7369 (init_rom68k_cmds): Same. 7370 73712002-06-25 Tom Tromey <tromey@redhat.com> 7372 7373 * breakpoint.c (delete_command): Don't repeat `delete' commands. 7374 73752002-06-25 Andrew Cagney <cagney@redhat.com> 7376 7377 * infrun.c (stop_registers): Change variable's type to ``struct 7378 regcache'''. 7379 (xmalloc_inferior_status): Delete function. 7380 (free_inferior_status): Delete function. 7381 (normal_stop): Use regcache_cpy. 7382 (struct inferior_status): Change type of fields ``stop_registers'' 7383 and ``registers'' to ``struct regcache''. 7384 (write_inferior_status_register): Use regcache_write. 7385 (save_inferior_status): Instead of calling 7386 xmalloc_inferior_status, allocate the inf_status buffer directly. 7387 Use regcache_dup_no_passthrough and regcache_dup to save the 7388 buffers. 7389 (restore_inferior_status): Use regcache_xfree and regcache_cpy. 7390 Replace the stop_registers regcache instead of overriding it. Use 7391 regcache_xfree. Instead of calling free_inferior_status, xfree 7392 the buffer directly. 7393 (discard_inferior_status): Use regcache_xfree. Instead of calling 7394 free_inferior_status, xfree the buffer directly. 7395 (build_infrun): Use regcache_xmalloc. 7396 (_initialize_infrun): Delete redundant call to build_infrun. 7397 7398 * Makefile.in (infcmd.o): Add $(regcache_h). 7399 7400 * infcmd.c: Include "regcache.h". 7401 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to 7402 obtain the address of `stop_registers' register buffer. 7403 (print_return_value): Ditto. 7404 7405 * inferior.h (struct regcache): Add opaque declaration. 7406 (stop_registers): Change variable's declared type to ``struct 7407 regcache''. 7408 74092002-06-24 Tom Tromey <tromey@redhat.com> 7410 7411 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment. 7412 * target.c (initialize_targets): Fixed typo in 7413 trust-readonly-sections `show' documentation. 7414 7415 * main.c: Marked all strings with _(). 7416 74172002-06-24 Don Howard <dhoward@redhat.com> 7418 7419 * memattr.c (create_mem_region): Treat hi == 0 as a special case 7420 that means max CORE_ADDR+1. 7421 (lookup_mem_region): Ditto. 7422 (mem_info_command): Ditto. 7423 74242002-06-24 Grace Sainsbury <graces@redhat.com> 7425 7426 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove. 7427 (REGISTER_BYTES_OK): Remove. 7428 (REGISTER_BYTES): Remove. 7429 (STORE_STRUCT_RETURN): Remove. 7430 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove. 7431 (STORE_RETURN_VALUE): Remove. 7432 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove. 7433 (FRAME_CHAIN): Remove. 7434 (FRAMELESS_FUNCTION_INVOCATION): Remove. 7435 (FRAME_SAVED_PC): Remove. 7436 * m68k-tdep.c (m68k_register_bytes_ok):Add. 7437 (m68k_store_struct_return): Add. 7438 (m68k_deprecated_extract_return_value): Add. 7439 (m68k_deprecated_extract_struct_value_address): Add. 7440 (m68k_store_return_value): Add. 7441 (m68k_frame_chain): Add. 7442 (m68k_frameless_function_invocation): Add. 7443 (m68k_frame_saved_pc): Add. 7444 (m68k_gdbarch_init): added set_gdbarch calls for new 7445 functions and deleted macros. 7446 74472002-06-23 Tom Tromey <tromey@redhat.com> 7448 7449 * Makefile.in (HFILES_NO_SRCDIR): Remove old files. 7450 (ALLDEPFILES): Likewise. 7451 (udiheaders): Removed. 7452 (udip2soc.o): Likewise. 7453 (udi2go32.o): Likewise. 7454 (udr.o): Likewise. 7455 (HFILES_WITH_SRCDIR): Don't mention udiheaders. 7456 74572002-06-22 Andrew Cagney <ac131313@redhat.com> 7458 7459 * infrun.c (_initialize_infrun): Delete unnecessary call to 7460 build_infrun. 7461 7462 * regcache.h: Update comments describing the regcache_cpy family 7463 of functions. 7464 (regcache_save, regcache_restore): Delete declaration. 7465 (regcache_save_no_passthrough): Delete declaration. 7466 (regcache_restore_no_passthrough): Delete declaration. 7467 * regcache.c (regcache_save): Delete function. 7468 (regcache_save_no_passthrough): Delete function. 7469 (regcache_restore): Delete function. 7470 (regcache_restore_no_passthrough): Delete function. 7471 74722002-06-21 Andrew Cagney <ac131313@redhat.com> 7473 7474 * config/m68k/tm-m68k.h: Fix typo. 7475 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch. 7476 (m68k_frame_init_saved_regs): Declare. 7477 74782002-06-21 Jim Blandy <jimb@redhat.com> 7479 7480 Remove some vestiges of Harris 88k support. 7481 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k 7482 register numbering quirk. 7483 * elfread.c (elf_symtab_read): Remove `#if' block for skipping 7484 odd symbols occurring in Harris 88k ELF targets. 7485 74862002-06-21 Tom Tromey <tromey@redhat.com> 7487 7488 * gdb_locale.h: New file. 7489 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR. 7490 (defs_h): Added gdb_locale.h. 7491 * configure, config.in: Rebuilt. 7492 * configure.in (PACKAGE): Define. 7493 * defs.h: Include gdb_locale.h. 7494 * main.c (captured_main): Call setlocale, bindtextdomain, 7495 textdomain. 7496 74972002-06-21 Dave Brolley <brolley@redhat.com> 7498 7499 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner: 7500 * config/frv/frv.mt: New file. 7501 * config/frv/tm-frv.h: New file. 7502 * configure.tgt: Support frv-*-*. 7503 * Makefile.in (frv-tdep.o): New target. 7504 * frv-tdep.c: New file. 7505 * NEWS: Mention frv. 7506 75072002-06-21 Dave Brolley <brolley@redhat.com> 7508 7509 * MAINTAINERS: Add self to "Write After Approval" list. 7510 75112002-06-21 Grace Sainsbury <graces@redhat.com> 7512 7513 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE) 7514 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE) 7515 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT) 7516 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL) 7517 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros. 7518 7519 * m68k-tdep.c: Include arch-utils.h 7520 (m68k_register_raw_size): Add. 7521 (m68k_register_virtual_size): Add. 7522 (m68k_register_virtual_type): Add. 7523 (m68k_register_name): Add. 7524 (m68k_stack_align): Add. 7525 (m68k_register_byte): Add. 7526 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in 7527 tm-m68k.h. 7528 75292002-06-21 Grace Sainsbury <graces@redhat.com> 7530 7531 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace 7532 m68k_find_saved_regs. 7533 (m68k_pop_frame): Removed saved_regs structure, and replaced 7534 references to it with frame->saved_regs. 7535 (m68k_gdbarch_init): Added function calls to initialize the 7536 gdbarch structure. 7537 (m68k_fix_call_dummy): Add. 7538 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove. 7539 (CALL_DUMMY): Remove. 7540 (CALL_DUMMY_LENGTH): Remove. 7541 (CALL_DUMMY_START_OFFSET): Remove. 7542 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove. 7543 (FIX_CALL_DUMMY): Remove. 7544 (PUSH_DUMMY_FRAME): Remove. 7545 (POP_FRAME): Remove. 7546 75472002-06-19 Pierre Muller <muller@ics.u-strasbg.fr> 7548 7549 * parse.c (parse_fprintf): New function used to avoid calls to 7550 fprintf in bison parser generated debug code. 7551 * parser-defs.h: Declaration of new parse_fprintf function. 7552 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y: 7553 Set YYDEBUG to 1 by default. 7554 Set YYFPRINTF as parse_fprintf. 7555 75562002-06-21 Michal Ludvig <mludvig@suse.cz> 7557 7558 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 7559 encoding anymore. 7560 (pointer_encoding, enum ptr_encoding): New. 7561 (execute_cfa_program): Take care about pointer encoding. 7562 (dwarf2_build_frame_info): Only call parse_frame_info for 7563 .debug_frame and .eh_frame. 7564 (parse_frame_info): New, derived from former dwarf2_build_frame_info. 7565 fixed augmentation handling, added relative addressing, 7566 ignore duplicate FDEs. Added comments. 7567 * dwarf2cfi.c: Reindented. 7568 75692002-06-20 Elena Zannoni <ezannoni@redhat.com> 7570 7571 * event-top.c (command_handler): Don't use space_at_cmd_start 7572 unless there is sbrk() on the host. Assign time and space data 7573 to union fields of the appropriate length. 7574 75752002-06-20 Michal Ludvig <mludvig@suse.cz> 7576 7577 * x86-64-tdep.c (x86_64_register_nr2name): Rename to 7578 x86_64_register_name. Return type changed to 'const char *'. 7579 (x86_64_register_name2nr): Rename to x86_64_register_number. 7580 (x86_64_gdbarch_init): Update to reflect the change. 7581 * x86-64-tdep.h: Ditto. 7582 * x86-64-linux-nat.c (x86_64_fxsave_offset) 7583 (supply_fpregset): Ditto. 7584 75852002-06-19 Andrew Cagney <cagney@redhat.com> 7586 7587 * regcache.h: Update copyright. 7588 (struct regcache, struct gdbarch): Add opaque declarations. 7589 (current_regcache): Declare global variable. 7590 (regcache_read, regcache_write): Add gdbarch parameter. 7591 (regcache_save, regcache_save_no_passthrough) 7592 (regcache_restore, regcache_restore_no_passthrough) 7593 (regcache_dup, regcache_dup_no_passthrough) 7594 (regcache_cpy, regcache_cpy_no_passthrough) 7595 (deprecated_grub_regcache_for_registers) 7596 (deprecated_grub_regcache_for_register_valid) 7597 (regcache_valid_p): Add function declarations. 7598 7599 * regcache.c: Update copyright. 7600 (regcache_descr_handle): New global variable. 7601 (struct regcache_descr): Define. 7602 (init_legacy_regcache_descr, init_regcache_descr): New functions. 7603 (regcache_descr, xfree_regcache_descr): New functions. 7604 (struct regcache): Define. 7605 (regcache_xmalloc, regcache_xfree): New functions. 7606 (regcache_cpy, regcache_cpy_no_passthrough): New functions. 7607 (regcache_dup, regcache_dup_no_passthrough): New functions. 7608 (regcache_valid_p, regcache_read_as_address): New functions. 7609 (deprecated_grub_regcache_for_registers): New function. 7610 (deprecated_grub_regcache_for_register_valid): New function. 7611 (current_regcache): New global variable. 7612 (register_buffer): Add regcache parameter. Update calls. 7613 (regcache_read, regcache_write): Add regcache parameter. Rewrite. 7614 (read_register_gen, write_register_gen): Update register_buffer 7615 call. Test for legacy_p instead of gdbarch_register_read_p or 7616 gdbarch_register_write_p. 7617 (regcache_collect): Update register_buffer call. 7618 (build_regcache): Rewrite. Use deprecated grub functions. 7619 (regcache_save, regcache_save_no_passthrough): New functions. 7620 (regcache_restore, regcache_restore_no_passthrough): New 7621 functions. 7622 (_initialize_regcache): Create the regcache_data_handle. Swap 7623 current_regcache global variable. 7624 7625 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache 7626 parameter to regcache_read and regcache_write calls. 7627 (sh4_register_read): Ditto. 7628 (sh64_pseudo_register_read): Ditto. 7629 (sh64_register_read): Ditto. 7630 (sh_pseudo_register_write): Ditto. 7631 (sh4_register_write): Ditto. 7632 (sh64_pseudo_register_write): Ditto. 7633 (sh64_register_write): Ditto. 7634 7635 * defs.h (XCALLOC): Define. 7636 76372002-06-19 Grace Sainsbury <graces@redhat.com> 7638 7639 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0). 7640 * m68k-tdep.c (m68k_gdbarch_init): Added. 7641 (m68k_dump_tdep): Added. 7642 76432002-06-19 Daniel Jacobowitz <drow@mvista.com> 7644 7645 * ada-lang.c (fill_in_ada_prototype): Update comment. 7646 76472002-06-19 Daniel Jacobowitz <drow@mvista.com> 7648 7649 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add 7650 MIPS_ABI_LAST. 7651 (mips_abi_string, mips_abi_strings): New. 7652 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi. 7653 (mips_gdbarch_init): Set tdep->found_abi. Don't set 7654 tdep->mips_abi_string. Honor mips_abi_string. Default to 7655 O32 if no ABI is found. 7656 (mips_dump_tdep): Use mips_abi_strings. 7657 (mips_abi_update): New function. 7658 (_initialize_mips_tdep): Initialize mips_abi_string. Add 7659 ``set mips abi'' and ``show mips abi''. Check the size of 7660 mips_abi_strings. 7661 76622002-06-19 Andrew Cagney <cagney@redhat.com> 7663 7664 * i386-linux-tdep.c (i386_linux_register_name): Make return type 7665 constant. 7666 76672002-06-18 Joel Brobecker <brobecker@gnat.com> 7668 7669 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the 7670 current frame using only the first stack size adjustment. All 7671 subsequent size adjustments are not considered to be part of 7672 the "static" part of the current frame. 7673 Compute the address of the saved registers relative to the 7674 Frame Pointer ($fp) instead of the Stack Pointer if $fp is 7675 in use in this frame. 7676 76772002-06-18 Don Howard <dhoward@redhat.com> 7678 7679 * valops.c (value_ind): Use value_at_lazy() when dereferencing 7680 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for 7681 suggesting this solution. 7682 76832002-06-18 Andrew Cagney <ac131313@redhat.com> 7684 7685 * config/romp/xm-rtbsd.h: Delete file. 7686 * config/romp/rtbsd.mh: Delete file. 7687 76882002-06-18 Keith Seitz <keiths@redhat.com> 7689 7690 * breakpoint.c (condition_command): Post breakpoint_modify 7691 when a condition is added to an existing breakpoint. 7692 (commands_command): Likewise for commands. 7693 (set_ignore_count): Likewise for ignore counts. 7694 If no tty, do not simply return, still need to send event 7695 notification. 7696 (ignore_command): Only print a newline if the command came 7697 from a tty. 7698 Don't call breakpoints_changed, since this is now properly 7699 handled by set_ignore_count. 7700 77012002-06-18 Andrew Cagney <cagney@redhat.com> 7702 7703 * MAINTAINERS: Note that cris-elf target can be compiled with 7704 -Werror. 7705 * cris-tdep.c (cris_register_name): Make return type constant. 7706 (cris_breakpoint_from_pc): Ditto. 7707 77082002-06-18 Michal Ludvig <mludvig@suse.cz> 7709 7710 * frame.h (struct frame_info): Change type of context to 7711 'struct context'. 7712 77132002-06-17 Andrew Cagney <cagney@redhat.com> 7714 7715 * gdbarch.sh (REGISTER_NAME): Change return type a constant string 7716 pointer. 7717 * gdbarch.h, gdbarch.c: Regenerate. 7718 * config/mips/tm-mips.h (mips_register_name): Update. 7719 * i386-tdep.h (i386_register_name): Update. 7720 * mips-tdep.c (mips_register_name): Update 7721 * alpha-tdep.c (alpha_register_name): Update. 7722 * arch-utils.c (legacy_register_name): Update. 7723 * arch-utils.h (legacy_register_name): Update. 7724 * avr-tdep.c (avr_register_name): Update. 7725 * ia64-tdep.c (ia64_register_name): Update. 7726 * i386-tdep.c (i386_register_name): Update. 7727 * sparc-tdep.c (sparc32_register_name): Update. 7728 (sparc64_register_name): Update. 7729 (sparclite_register_name): Update. 7730 (sparclet_register_name): Update. 7731 * sh-tdep.c (sh_generic_register_name): Update. 7732 (sh_sh_register_name): Update. 7733 (sh_sh3_register_name): Update. 7734 (sh_sh3e_register_name): Update. 7735 (sh_sh_dsp_register_name): Update. 7736 (sh_sh3_dsp_register_name): Update. 7737 (sh_sh4_register_name): Update. 7738 (sh_sh64_register_name): Update. 7739 * s390-tdep.c (s390_register_name): Update. 7740 * rs6000-tdep.c (rs6000_register_name): Update. 7741 * ns32k-tdep.c (ns32k_register_name_32082): Update. 7742 (ns32k_register_name_32382): Update. 7743 * d10v-tdep.c (d10v_ts2_register_name): Update. 7744 (d10v_ts3_register_name): Update. 7745 * xstormy16-tdep.c (xstormy16_register_name): Update. 7746 * vax-tdep.c (vax_register_name): Update. 7747 * v850-tdep.c (v850_register_name): Update. 7748 * m68hc11-tdep.c (m68hc11_register_name): Update. 7749 * mn10300-tdep.c (mn10300_generic_register_name): Update. 7750 (am33_register_name): Update. 7751 77522002-06-17 Grace Sainsbury <graces@redhat.com> 7753 7754 * m68k-tdep.c: Reindented. 7755 77562002-06-17 Andrew Cagney <ac131313@redhat.com> 7757 7758 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the 7759 list of predefined types. 7760 77612002-06-16 Mark Kettenis <kettenis@gnu.org> 7762 7763 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE, 7764 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL, 7765 REGISTER_CONVERT_TO_RAW): Remove defines. 7766 (i386_register_virtual_type, i386_register_convertible, 7767 i386_register_convert_to_virtual, i386_register_convert_to_raw): 7768 Remove prototypes. 7769 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the 7770 macros mentioned above. 7771 7772 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define. 7773 (i386lynx_saved_pc_after_call): Remove prototype. 7774 * i386ly-tdep.c: Include "i386-tdep.h". 7775 (i386lynx_saved_pc_after_call): Make static. Use 7776 read_memory_nobpt instead of read_memory. Use 7777 read_memory_unsigned_integer instead of read_memory_integer. 7778 (i386lynx_init_abi): New function. 7779 (i386lynx_coff_osabi_sniffer): New function. 7780 (_initialize_i386bsd_tdep): New function. 7781 7782 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY, 7783 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, 7784 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines. 7785 (i386_fix_call_dummy): Remove prototype. 7786 * i386-tdep.c (i386_call_dummy_words): New variable. 7787 (i386_gdbarch_init): Adjust for removal of the 7788 macros mentioned above. 7789 77902002-06-15 Andrew Cagney <ac131313@redhat.com> 7791 7792 * command.h (add_setshow_auto_boolean_cmd): Replace 7793 add_set_auto_boolean_cmd. 7794 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace 7795 add_set_auto_boolean_cmd. 7796 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration. 7797 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips 7798 mask-address'' command. 7799 (show_mask_address): Add cmd parameter. 7800 * remote.c (add_packet_config_cmd): Update. Change type of 7801 set_func and show_func to cmd_sfunc_ftype. 7802 (_initialize_remote): Update `set remote Z-packet' 7803 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter. 7804 (show_remote_protocol_e_packet_cmd): Ditto. 7805 (show_remote_protocol_E_packet_cmd): Ditto. 7806 (show_remote_protocol_P_packet_cmd): Ditto. 7807 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto. 7808 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto. 7809 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto. 7810 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto. 7811 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto. 7812 (show_remote_protocol_Z_packet_cmd): Ditto. 7813 (show_remote_protocol_binary_download_cmd): Ditto. 7814 (show_remote_cmd): Pass NULL to all of above. 7815 78162002-06-15 Mark Kettenis <kettenis@gnu.org> 7817 7818 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN, 7819 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, 7820 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME, 7821 POP_FRAME): Remove defines. 7822 (i386_push_arguments, i386_store_struct_return, 7823 i386_extract_return_value, i386_store_return_value, 7824 i386_extract_struct_value_address, i386_push_dummy_frame, 7825 i386_pop_frame): Renove prototypes. 7826 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the 7827 macros mentioned above. 7828 78292002-06-15 Andrew Cagney <ac131313@redhat.com> 7830 7831 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace 7832 add_set_boolean_cmd. 7833 (add_setshow_cmd): New function. 7834 * command.h (add_setshow_boolean_cmd): Replace 7835 add_set_boolean_cmd. 7836 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat'' 7837 and ``set rdiromatzero''. 7838 * maint.c (_initialize_maint_cmds): Update commented out code. 7839 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration. 7840 * target.c (initialize_targets): Update `set 7841 trust-readonly-sections'. 7842 * remote.c (_initialize_remote): Update `set remotebreak'. 7843 78442002-06-15 Mark Kettenis <kettenis@gnu.org> 7845 7846 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN, 7847 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed. 7848 * i386-tdep.c (i386_skip_prologue): Adjust function signature to 7849 fit into multi-arch framework. 7850 (i386_breakpoint_from_pc): New function. 7851 (i386_gdbarch_init): Adjust for removal of the macros mentioned 7852 above. 7853 7854 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION, 7855 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, 7856 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines. 7857 (i386_frameless_function_invocation, i386_frame_num_args, 7858 i386_frame_init_saved_regs): Remove prototypes. 7859 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the 7860 macros mentioned above. 7861 78622002-06-15 Andrew Cagney <ac131313@redhat.com> 7863 7864 * cli/cli-decode.c (set_cmd_cfunc): Update. 7865 (set_cmd_sfunc): Update. 7866 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare. 7867 (set_cmd_sfunc, set_cmd_cfunc): Update. 7868 * cli/cli-decode.h: Update. 7869 78702002-06-15 Mark Kettenis <kettenis@gnu.org> 7871 7872 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function. 7873 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer. 7874 78752002-06-15 Andrew Cagney <ac131313@redhat.com> 7876 7877 * defs.h (auto_boolean): Declare enum. 7878 * command.h (cmd_auto_boolean): Delete enum. 7879 * mips-tdep.c (mask_address_var): Update. 7880 (mips_mask_address_p): Update. 7881 (show_mask_address): Update. 7882 * remote.c (struct packet_config): Update. 7883 (update_packet_config): Update. 7884 (show_packet_config_cmd): Update. 7885 (packet_ok): Update. 7886 (add_packet_config_cmd): Update. 7887 (_initialize_remote): 7888 * command.h: Update. 7889 * cli/cli-setshow.c (parse_auto_binary_operation): Update. 7890 (do_setshow_command): Update. 7891 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update. 7892 * cli/cli-decode.h: Update. 7893 78942002-06-15 Mark Kettenis <kettenis@gnu.org> 7895 7896 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h, 7897 config/i386/tm-go32.h, config/i386/tm-i386gnu.h, 7898 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h, 7899 config/i386/tm-linux.h, config/i386/tm-nbsd.h, 7900 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define. 7901 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO. 7902 7903 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the 7904 list of DJGPP COFF targets. 7905 7906 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define. 7907 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines. 7908 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines. 7909 (FP0_REGNUM): Remove define. 7910 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE, 7911 MAX_REGISTER_VIRTUAL_SIZE): Remove define. 7912 (i386_register_virtual_size): Remove protoype. 7913 * i386-tdep.c (i386_register_virtual_size): Removed. 7914 (i386_extract_return_value, i386_store_return_value): Use 7915 FP0_REGNUM instead of NUM_FREGS to determine whether the 7916 floating-point registers are available. 7917 (i386_gdbarch_init): Tweak FIXME about FPU registers. 7918 Adjust for removal of macros mentioned above. 7919 79202002-06-15 Mark Kettenis <kettenis@gnu.org> 7921 7922 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various 7923 comments. 7924 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset): 7925 Remove prototypes. 7926 (supply_gregset, fill_gregset): Remove use of register keyword and 7927 remove declaration for regmap. Use I386_NUM_GREGS instead of 7928 NUM_REGS and NUM_FREGS. 7929 (FPREGSET_FSAVE_OFFSET): Remove. 7930 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of 7931 NUM_FREGS to determine whether the floating-point registers are 7932 available. 7933 7934 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers, 7935 gnu_store_registers): Replace usage of NUM_GREGS with 7936 I386_NUM_GREGS. 7937 7938 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER, 7939 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace 7940 usage of NUM_GREGS with I386_NUM_GREGS. 7941 7942 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses. 7943 7944 * i386bsd-nat.c: Include "i386-tdep.h". 7945 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with 7946 I386_NUM_GREGS. 7947 7948 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>, 7949 and associated comment. They no longer make any sense, since we 7950 don't use this file anymore on Linux. 7951 7952 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed. 7953 * i386-tdep.c (i386_register_offset, i386_register_size): Use 7954 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of 7955 elements in these arrays. 7956 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of 7957 MAX_NUM_REGS. 7958 79592002-06-15 Mark Kettenis <kettenis@gnu.org> 7960 7961 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS. 7962 * osabi.c (gdb_osabi_names): Add entry for "LynxOS". 7963 79642002-06-14 Andrew Cagney <cagney@redhat.com> 7965 7966 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename 7967 EXTRACT_RETURN_VALUE. 7968 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename 7969 EXTRACT_STRUCT_VALUE_ADDRESS. 7970 * gdbarch.h, gdbarch.c: Regenerate. 7971 7972 * values.c (value_being_returned): Handle 7973 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS. 7974 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE. 7975 7976 * arm-linux-tdep.c (arm_linux_init_abi): Update. 7977 * arm-tdep.c (arm_gdbarch_init): Update. 7978 * avr-tdep.c (avr_gdbarch_init): Update. 7979 * cris-tdep.c (cris_gdbarch_init): Update. 7980 * d10v-tdep.c (d10v_gdbarch_init): Update. 7981 * ia64-tdep.c (ia64_gdbarch_init): Update. 7982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update. 7983 * rs6000-tdep.c (rs6000_gdbarch_init): Update. 7984 * s390-tdep.c (s390_gdbarch_init): Update. 7985 * sh-tdep.c (sh_gdbarch_init): Update. 7986 * s390-tdep.c (s390_gdbarch_init): Update. 7987 * sparc-tdep.c (sparc_gdbarch_init): Update. 7988 * ns32k-tdep.c (ns32k_gdbarch_init): Update. 7989 * v850-tdep.c (v850_gdbarch_init): Update. 7990 * vax-tdep.c (vax_gdbarch_init): Update. 7991 * x86-64-tdep.c (x86_64_gdbarch_init): Update. 7992 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. 7993 7994 * config/arc/tm-arc.h: Update. 7995 * config/d30v/tm-d30v.h: Update. 7996 * config/fr30/tm-fr30.h: Update. 7997 * config/h8300/tm-h8300.h: Update. 7998 * config/h8500/tm-h8500.h: Update. 7999 * config/i386/tm-i386.h: Update. 8000 * config/i386/tm-ptx.h: Update. 8001 * config/i386/tm-symmetry.h: Update. 8002 * config/i960/tm-i960.h: Update. 8003 * config/m32r/tm-m32r.h: Update. 8004 * config/m68k/tm-delta68.h: Update. 8005 * config/m68k/tm-linux.h: Update. 8006 * config/m68k/tm-m68k.h: Update. 8007 * config/m88k/tm-m88k.h: Update. 8008 * config/mcore/tm-mcore.h: Update. 8009 * config/mips/tm-mips.h: Update. 8010 * config/mn10200/tm-mn10200.h: Update. 8011 * config/pa/tm-hppa.h: Update. 8012 * config/pa/tm-hppa64.h: Update. 8013 * config/sparc/tm-sp64.h: Update. 8014 * config/sparc/tm-sparc.h: Update. 8015 * config/sparc/tm-sparclet.h: Update. 8016 * config/z8k/tm-z8k.h: Update. 8017 80182002-06-14 Andrew Cagney <cagney@redhat.com> 8019 8020 * Makefile.in (i386_linux_tdep_h): Define. 8021 (i386_tdep_h, i387_tdep_h): Define. 8022 (i386-linux-nat.o): Add $(i386_linux_tdep_h), 8023 $(i386_tdep_h) and $(i387_tdep_h). 8024 * i386-linux-nat.c: Include "i386-linux-tdep.h". 8025 80262002-06-14 Mark Kettenis <kettenis@gnu.org> 8027 8028 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed. 8029 Already covered by the default. 8030 8031 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT, 8032 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c 8033 (i386_gdbarch_init): Initialize long_double_format and long_double 8034 bit. 8035 8036 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and 8037 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o. 8038 Move these to ... 8039 * config/i386/i386sol2.mh: ... here. 8040 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define. 8041 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef. 8042 (SIGCONTEXT_PC_OFFSET): Remove define. 8043 (IN_SIGTRAMP): Remove define. 8044 * i386-sol2-tdep.c: New file. 8045 8046 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h. 8047 * config/i386/tm-i386nw.h: Removed. 8048 8049 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM, 8050 USE_STRUCT_CONVENTION): Remove defines. 8051 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines. 8052 (get_longjmp_target): Remove prototype. 8053 (IN_SIGTRAMP): Remove define. 8054 (i386bsd_in_sigtramp): Remove prototype. 8055 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a 8056 function. Update comment accordingly 8057 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly. 8058 (FRAME_SAVED_PC): Remove define. 8059 (i386bsd_frame_saved_pc): Remove prototype. 8060 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC, 8061 GET_LONGJMP_TARGET): Remove defines. 8062 (get_longjmp_target): Remove prototype. 8063 (IN_SIGTRAMP): Remove define. 8064 (i386bsd_in_sigtramp): Remove prototype. 8065 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a 8066 function. Update comment accordingly 8067 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly. 8068 (FRAME_SAVED_PC): Remove define. 8069 (i386bsd_frame_saved_pc): Remove prototype. 8070 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention): 8071 Remove prototype. 8072 (USE_STRUCT_CONVENTION): Remove prototype. 8073 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove 8074 declaration. 8075 (_initialize_i386bsd_nat): Revise logic to determine some 8076 constants at compile time when compiling a native GDB. Warn if 8077 things don't match up with what we expect. 8078 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end): 8079 Remove variables. 8080 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite 8081 to use date stored in `struct gdbarch_tdep'. 8082 (i386bsd_sigcontext_offset): Remove varaible. 8083 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data 8084 stored in `struct gdbarch_tdep'. 8085 (i386bsd_frame_saved_pc): Make static. 8086 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions. 8087 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset, 8088 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end, 8089 i386fbsd4_sc_pc_offset): New variables. 8090 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi, 8091 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New 8092 functions. 8093 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New 8094 functions. 8095 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment. 8096 Modify the value of i386fbsd_sigtramp_start and 8097 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and 8098 i386fbsd_sigtramp_end. 8099 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove 8100 function. 8101 8102 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move 8103 define to i386-linux-tdep.h. 8104 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME, 8105 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove 8106 defines. 8107 (i386_linux_register_name, i386_linux_register_byte, 8108 i386_linux_register_raw_size): Remove prototypes. 8109 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype. 8110 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define. 8111 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL, 8112 TARGET_WRITE_PC): Remove defines. 8113 (i386_linux_in_sigtramp, i386_linux_frame_chain, 8114 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call, 8115 i386_linux_write_pc): Remove prototypes. 8116 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines. 8117 (get_longjmp_target): Remove prototype. 8118 * i386-linux-tdep.h: New file. 8119 * i386-linux-nat.c: Include "i386-linux-tdep.h". 8120 * i386-linux-tdep.c: Include "i386-tdep.h" and 8121 "i386-linux-tdep.h". 8122 (i386_linux_register_name, i386_linux_register_byte, 8123 i386_linux_register_raw_size, i386_linux_in_sigtramp, 8124 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets): 8125 Make static. 8126 (i386_linux_init_abi): New function. 8127 (_initialize_i386_linux_tdep): New function. 8128 8129 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define. 8130 (i386_saved_pc_after_call): Remove prototype. 8131 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register". 8132 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM, 8133 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines. 8134 (i386_register_name, i386_stab_reg_to_regnum, 8135 i386_dwarf_reg_to_regnum): Remove prototypes. 8136 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS, 8137 SIZEOF_SSE_REGS): Remove defines. 8138 (REGISTER_BYTES): Remove define. 8139 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines. 8140 (i386_register_byte, i386_register_raw_size): Remove prototypes. 8141 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines. 8142 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes. 8143 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define. 8144 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP, 8145 JB_EDX, GET_LONGJMP_TARGET): Remove defines. 8146 (get_longjmp_target): Remove prototype. 8147 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines. 8148 (sigtramp_saved_pc): Remove define. 8149 (i386v4_sigtramp_saved_pc): Remove prototype. 8150 * config/i386/tm-go32.h (FRAME_CHAIN, 8151 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines. 8152 (i386go32_frame_saved_pc): Remove prototype. 8153 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines. 8154 (get_longjmp_target): Remove prototype. 8155 * i386-tdep.h: Include "osabi.h". 8156 (enum i386_abi): Removed. 8157 (enum struct_return): New enum. 8158 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset, 8159 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and 8160 sc_pc_offset members. 8161 (i386_gdbarch_register_os_abi): Remove prototype. 8162 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS, 8163 I386_SSE_NUM_REGS): New defines. 8164 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS, 8165 I386_SSE_SIZEOF_REGS): New defines. 8166 (i386_register_name, i386_register_byte, i386_register_raw_size): 8167 New prototypes. 8168 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes. 8169 (i386bsd_sigtramp_saved_pc): New prototype. 8170 * i386-tdep.c: Don't include "elf-bfd.h". 8171 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum, 8172 i386_frame_chain, i386_saved_pc_after_call): Make static. 8173 (i386_frame_saved_pc): Rewrite to call architecture dependent 8174 function to deal with signal handlers. Make static. 8175 (i386go32_frame_saved_pc): Removed. 8176 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target): 8177 Removed. 8178 (i386_get_longjmp_target): New function. 8179 (default_struct_convention, pcc_struct_convention, 8180 reg_struct_convention, valid_conventions, struct_convention): New 8181 variables. 8182 (i386_use_struct_convention): New function. 8183 (i386v4_sigtramp_saved_pc): Renamed to 8184 i386_svr4_sigtramp_saved_pc. Made static. Moved. 8185 (i386_pc_in_sigtramp): New function. 8186 (i386_abi_names): Removed. 8187 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD, 8188 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD): 8189 Removed. 8190 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi, 8191 i386_gdbarch_register_os_abi): Removed. 8192 (struct i386_abi_handler): Removed. 8193 (i386_abi_handler_list): Removed. 8194 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New 8195 functions. 8196 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi, 8197 i386_nw_init_abi): New functions. 8198 (i386_gdbarch_init): Rewritten to use generic OS ABI framework. 8199 Use set_gdbarch_xxx() calls instead of relying on macros for a 8200 number of calls. 8201 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions. 8202 (_initialize_i386_tdep): Add new 'struct-convcention' command. 8203 Register the various architecture variants defined in this file. 8204 82052002-06-14 Daniel Jacobowitz <drow@mvista.com> 8206 8207 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment. 8208 (struct main_type): Remove arg_types member. Update comments for 8209 struct field. 8210 (TYPE_ARG_TYPES): Remove. 8211 (TYPE_FN_FIELD_ARGS): Update. 8212 (smash_to_method_type): Update prototype. 8213 8214 * c-typeprint.c (cp_type_print_method_args): Take method type 8215 instead of argument list. Use new argument layout. Simplify. 8216 (c_type_print_args): Use new argument layout. Simplify. 8217 (c_type_print_base): Update call to cp_type_print_method_args. 8218 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type 8219 argument; use die->type instead. Update call to 8220 smash_to_method_type. 8221 (read_structure_scope): Update call to dwarf2_add_member_fn. 8222 * gdbtypes.c (allocate_stub_method): Update comment. 8223 (smash_to_method_type): Take new NARGS and VARARGS arguments. 8224 Use new argument layout. 8225 (check_stub_method): Use new argument layout. Don't count 8226 void as an argument. 8227 (print_arg_types): Update comments. Use new argument layout. 8228 (recursive_dump_type): Don't print arg_types member. 8229 * hpread.c (hpread_read_struct_type): Use new argument layout. 8230 (fixup_class_method_type): Likewise. 8231 (hpread_type_lookup): Likewise. 8232 * stabsread.c (read_type): Update calls to read_args and 8233 smash_to_method_type. 8234 (read_args): Use new argument layout. Simplify. 8235 * valops.c (typecmp): Use new argument layout. Update parameters 8236 and comments. Simplify. 8237 (hand_function_call): Use new argument layout. 8238 (search_struct_method): Update call to typecmp. 8239 (find_overload_match): Use new argument layout. 8240 82412002-06-13 Daniel Jacobowitz <drow@mvista.com> 8242 8243 * NEWS: Mention multithreaded debug support for gdbserver. 8244 82452002-06-13 Daniel Jacobowitz <drow@mvista.com> 8246 8247 * MAINTAINERS: Mention NEWS. 8248 82492002-06-13 Daniel Jacobowitz <drow@mvista.com> 8250 8251 * mips-tdep.c (PROC_SYMBOL): Add warning comment. 8252 (struct mips_objfile_private, compare_pdr_entries): New. 8253 (non_heuristic_proc_desc): Read the ".pdr" section if it 8254 is present. 8255 82562002-06-12 Andrew Cagney <ac131313@redhat.com> 8257 8258 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop. 8259 (arm_debug): New static variable. 8260 (_initialize_arm_tdep): Add ``set debug arm'' command. 8261 82622002-06-12 Andrew Cagney <ac131313@redhat.com> 8263 8264 * Makefile.in (sim_arm_h): Define. 8265 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h). 8266 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h". 8267 (arm_register_sim_regno): New function, map an internal REGNUM 8268 onto a simulator register number. 8269 (arm_gdbarch_init): Set register_sim_regno. 8270 82712002-06-09 Aldy Hernandez <aldyh@redhat.com> 8272 8273 * MAINTAINERS: Add self. 8274 82752002-06-11 Jim Blandy <jimb@redhat.com> 8276 8277 * source.c (source_info): Mention whether the symtab has 8278 information about preprocessor macros. 8279 8280 Call the command `info macro', not `show macro'. 8281 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'. 8282 Fix error message. 8283 (_initialize_macrocmd): Register `info_macro_command' in 8284 `infolist', not `showlist'. 8285 82862002-06-11 Daniel Jacobowitz <drow@mvista.com> 8287 8288 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI) 8289 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM) 8290 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P) 8291 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64) 8292 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define 8293 unconditionally. 8294 (set_mipsfpu_single_command, set_mipsfpu_double_command) 8295 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH). 8296 (_initialize_mips_tdep): Remove dead code. 8297 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM) 8298 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove. 8299 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM) 8300 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove. 8301 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM, 8302 MIPS_LAST_FP_ARG_REGNUM): Remove. 8303 83042002-06-11 Michal Ludvig <mludvig@suse.cz> 8305 8306 * dwarf2cfi.c (unwind_tmp_obstack_init): New. 8307 (unwind_tmp_obstack_free, parse_frame_info) 8308 (update_context, cfi_read_fp, cfi_write_fp) 8309 (cfi_frame_chain, cfi_init_extra_frame_info) 8310 (cfi_virtual_frame_pointer): Use the above function. 8311 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c'). 8312 83132002-06-11 Corinna Vinschen <vinschen@redhat.com> 8314 8315 * v850-tdep.c (v850_type_is_scalar): New function. 8316 (v850_use_struct_convention): Match current gcc implementation 8317 as close as possible. 8318 (v850_push_arguments): Fix stack_offset handling. Don't write 8319 struct_addr into register. This is done by v850_store_struct_return. 8320 (v850_extract_return_value): Care for structs. 8321 (v850_store_return_value): Ditto. 8322 (v850_store_struct_return): Actually write address. 8323 83242002-06-11 Michal Ludvig <mludvig@suse.cz> 8325 8326 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions 8327 without debug information too. 8328 83292002-06-10 Andrew Cagney <ac131313@redhat.com> 8330 8331 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters. 8332 Make multi-arch pure. 8333 * gdbarch.h, gdbarch.c: Re-generate. 8334 * arm-tdep.c (arm_print_float_info): Update. 8335 * arch-utils.h (default_print_float_info): Update. 8336 * arch-utils.c (default_print_float_info): Update. 8337 * infcmd.c (float_info): Update call. 8338 83392002-06-10 Andrew Cagney <ac131313@redhat.com> 8340 8341 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to 8342 the front of the initialize list. 8343 83442002-06-10 Andrew Cagney <ac131313@redhat.com> 8345 8346 * infrun.c (struct inferior_status): Replace fields 8347 selected_frame_address and selected_level with field 8348 selected_frame_id. 8349 (save_inferior_status): Update. Use get_frame_id. 8350 (struct restore_selected_frame_args): Delete. 8351 (restore_selected_frame): Update. Use frame_find_by_id. 8352 (restore_inferior_status): Update. 8353 8354 * breakpoint.h (struct breakpoint): Change type of 8355 watchpoint_frame to frame_id. 8356 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove 8357 call to get_current_frame. 8358 (do_enable_breakpoint): Use frame_find_by_id. Remove call to 8359 get_current_frame. 8360 (watchpoint_check): Use frame_find_by_id. 8361 8362 * frame.h (record_selected_frame): Delete declaration. 8363 * stack.c (record_selected_frame): Delete function. 8364 8365 * frame.h (struct frame_id): Define. 8366 (get_frame_id): Declare. 8367 (frame_find_by_id): Declare. 8368 * frame.c (frame_find_by_id): New function. 8369 (get_frame_id): New function. 8370 83712002-06-10 Andrey Volkov <avolkov@transas.com> 8372 8373 * ser-e7kpc.c: Fix duplicated define and call of 8374 _initialize_ser_e7000pc 8375 83762002-06-09 Daniel Jacobowitz <drow@mvista.com> 8377 8378 * signals/signals.c (target_signal_from_host): Fix #ifdef 8379 SIGRTMIN case. 8380 (do_target_signal_to_host): Likewise. 8381 83822002-06-09 Daniel Jacobowitz <drow@mvista.com> 8383 8384 * mips-tdep.c (mips_find_abi_section): New function. 8385 (mips_gdbarch_init): Call it. 8386 83872002-06-09 Mark Kettenis <kettenis@gnu.org> 8388 8389 * solib-svr4.c (init_fetch_link_map_offsets): Simply return 8390 legacy_fetch_link_map_offsets. Adjust comment to reflect reality 8391 after Andrew's 2002-06-08 gdbarch change. 8392 83932002-06-09 Mark Kettenis <kettenis@gnu.org> 8394 8395 * i386-linux-nat.c (suppy_gregset): Don't supply 8396 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's 8397 register cache. 8398 (fill_gregset): Don't fetch it under the same circumstances. 8399 84002002-06-09 Andrew Cagney <cagney@redhat.com> 8401 8402 * Makefile.in (callback_h): Define. 8403 (remote_sim_h): Update path to remote-sim.h. 8404 (remote-rdp.o): Add $(callback_h). 8405 (remote-sim.o): Use $(callback_h). 8406 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h". 8407 * remote-rdp.c: Include "gdb/callback.h". 8408 84092002-06-09 Mark Kettenis <kettenis@gnu.org> 8410 8411 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE. 8412 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare". 8413 84142002-06-08 Andrew Cagney <ac131313@redhat.com> 8415 8416 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__. 8417 * rdi-share/serpardr.c: Ditto. 8418 * rdi-share/unixcomm.c: Ditto. 8419 * rdi-share/serdrv.c: Ditto. 8420 * rdi-share/hostchan.h: Ditto. 8421 * rdi-share/hostchan.c: Ditto. 8422 * rdi-share/host.h: Ditto. 8423 * rdi-share/devsw.c: Ditto. 8424 8425 * objfiles.h: Change type of obj_private to void pointer. 8426 * pa64solib.c: Update copyright. Don't include "assert.h", use 8427 strcmp instead of STREQ, use LONGEST, do not use PTR 8428 * somsolib.c: Ditto. 8429 8430 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c, 8431 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c, 8432 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c. 8433 84342002-06-08 Andrew Cagney <ac131313@redhat.com> 8435 8436 * frame.c (GET_SAVED_REGISTER): Delete macro definition. 8437 (default_get_saved_register): Delete function. 8438 * gdbarch.sh (GET_SAVED_REGISTER): Set default to 8439 generic_unwind_get_saved_register. 8440 * gdbarch.h, gdbarch.c: Re-generate. 8441 84422002-06-08 Andrew Cagney <ac131313@redhat.com> 8443 8444 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to 8445 generic_func_frame_chain_valid. 8446 * gdbarch.h, gdbarch.c: Re-generate. 8447 * blockframe.c (generic_func_frame_chain_valid): Only check 8448 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about 8449 passing FP to PC_IN_CALL_DUMMY. 8450 Fix PR gdb/360. 8451 84522002-06-08 Andrew Cagney <ac131313@redhat.com> 8453 8454 * gdbarch.sh (struct gdbarch_data): Add field init_p. 8455 (register_gdbarch_data): Initialize init_p. 8456 (gdbarch_data): Initialize data pointer using the init function. 8457 (init_gdbarch_data): Delete function. 8458 (gdbarch_update_p): Update. 8459 (initialize_non_multiarch): Update. 8460 (struct gdbarch): Add field initialized_p. 8461 * gdbarch.h, gdbarch.c: Re-generate. 8462 84632002-06-07 Michal Ludvig <mludvig@suse.cz> 8464 8465 * x86-64-linux-nat.c (x86_64_fxsave_offset): New. 8466 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave, 8467 better do the things actually here. 8468 * x86-64-tdep.c (x86_64_register_name2nr): New. 8469 (x86_64_register_name): Renamed to x86_64_register_nr2name. 8470 (x86_64_gdbarch_init): Respect the above change. 8471 * x86-64-tdep.h (x86_64_register_name2nr) 8472 (x86_64_register_nr2name): Add prototypes. 8473 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o. 8474 84752002-06-06 Michael Snyder <msnyder@redhat.com> 8476 8477 * d10v-tdep.c (d10v_push_arguments): Handle struct_return. 8478 Delete extra braces and re-indent. 8479 (d10v_store_return_value): Char return values 8480 must be shifted over by one byte in R0. 8481 (d10v_extract_return_value): Delete extra braces, re-indent. 8482 84832002-06-06 Elena Zannoni <ezannoni@redhat.com> 8484 8485 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype. 8486 (d10v_register_virtual_type): Make $fp and $sp be pointer to data. 8487 (d10v_integer_to_address): Rewrite. 8488 (d10v_frame_init_saved_regs): When reading fp and sp registers use 8489 the d10v specific functions which take care of converting to the 8490 correct space. 8491 84922002-06-06 Elena Zannoni <ezannoni@redhat.com> 8493 8494 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c, 8495 altivec-abi.exp, altivec-regs.c, altivec-regs.exp. 8496 84972002-06-02 Andrew Cagney <ac131313@redhat.com> 8498 8499 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm 8500 includes. 8501 * config/tm-linux.h: Ditto. 8502 * config/alpha/tm-alphalinux.h: Ditto. 8503 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto. 8504 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto. 8505 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto. 8506 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto. 8507 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto. 8508 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto. 8509 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto. 8510 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto. 8511 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto. 8512 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto. 8513 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto. 8514 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto. 8515 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto. 8516 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto. 8517 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto. 8518 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto. 8519 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto. 8520 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto. 8521 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto. 8522 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto. 8523 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto. 8524 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto. 8525 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto. 8526 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto. 8527 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto. 8528 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto. 8529 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto. 8530 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto. 8531 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto. 8532 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto. 8533 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto. 8534 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto. 8535 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto. 8536 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto. 8537 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto. 8538 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto. 8539 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto. 8540 85412002-05-04 Aidan Skinner <aidan@velvet.net> 8542 8543 * ada-exp.tab.c: New file 8544 * ada-exp.y: New file 8545 * ada-lang.c: New file 8546 * ada-lang.h: New file 8547 * ada-lex.c: New file 8548 * ada-lex.l: New file 8549 * ada-tasks.c: New file 8550 * ada-typeprint.c: New file 8551 * ada-valprint.c: New file 8552 85532002-06-02 Jason Thorpe <thorpej@wasabisystems.com> 8554 8555 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set 8556 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention. 8557 85582002-06-02 Jason Thorpe <thorpej@wasabisystems.com> 8559 8560 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o 8561 insetead of ppc-linux-tdep.o. 8562 * config/rs6000/rs6000.mt (TDEPFILES): Likewise. 8563 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise. 8564 85652002-06-02 Andrew Cagney <ac131313@redhat.com> 8566 8567 2002-05-07 Christian Groessler <chris@groessler.org> 8568 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64 8569 bit register contents for little endian hosts. 8570 85712002-06-01 Andrew Cagney <ac131313@redhat.com> 8572 8573 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by 8574 any maintainer. 8575 85762002-06-01 Andrew Cagney <ac131313@redhat.com> 8577 8578 * gdbarch.h: Regenerate. 8579 85802002-06-01 Andrew Cagney <ac131313@redhat.com> 8581 8582 * MAINTAINERS: Add everyone to write-after-approval list. 8583 85842002-06-01 Andrew Cagney <ac131313@redhat.com> 8585 8586 * stack.c (frame_info): Use frame_register_unwind instead of 8587 saved_regs. Mention when the SP is on the stack or in a register. 8588 8589 * frame.h (frame_register_unwind_ftype): Define. Document. 8590 (struct frame_info): Add field register_unwind and 8591 register_unwind_cache. 8592 (frame_register_unwind): Declare. 8593 (generic_unwind_get_saved_register): Declare. 8594 8595 * frame.c (frame_register_unwind): New function. 8596 (generic_unwind_get_saved_register): New function. 8597 8598 * blockframe.c (generic_call_dummy_register_unwind): New function. 8599 (frame_saved_regs_register_unwind): New function. 8600 (set_unwind_by_pc): New function. 8601 (create_new_frame): New function. 8602 (get_prev_frame): New function. 8603 86042002-05-30 Andrew Cagney <ac131313@redhat.com> 8605 8606 * a29k-share/: Delete directory. 8607 * remote-vx29k.c: Delete file. 8608 86092002-05-30 Jason Thorpe <thorpej@wasabisystems.com> 8610 8611 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c, 8612 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c. 8613 86142002-05-30 Jason Thorpe <thorpej@wasabisystems.com> 8615 8616 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c, 8617 sparcnbsd-nat.c, and sparcnbsd-tdep.c. 8618 (sparc64nbsd-nat.o) 8619 (sparcnbsd-nat.o) 8620 (sparcnbsd-tdep.o): New dependency lists. 8621 * NEWS: Note new UltraSPARC NetBSD native configuration. 8622 * configure.host (sparc64-*-netbsd*): New host. 8623 * configure.tgt (sparc-*-netbsdelf*) 8624 (sparc-*-netbsd*): Set gdb_target to nbsd. 8625 (sparc64-*-netbsd*): New target. 8626 * sparc64nbsd-nat.c: New file. 8627 * sparcnbsd-nat.c: New file. 8628 * sparcnbsd-tdep.c: New file. 8629 * sparcnbsd-tdep.h: New file. 8630 * config/sparc/nbsd.mt: New file. 8631 * config/sparc/nbsd64.mh: New file. 8632 * config/sparc/nbsd64.mt: New file. 8633 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o, 8634 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o. 8635 (HOST_IPC): Remove. 8636 * config/sparc/nbsdaout.mt: Remove. 8637 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o, 8638 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o. 8639 (HOST_IPC): Remove. 8640 * config/sparc/nbsdelf.mt: Remove. 8641 * config/sparc/nm-nbsd.h: Update copyright years. Remove all 8642 sparc-nat.c compatiblity defines. 8643 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h. 8644 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL. 8645 * config/sparc/tm-nbsd64.h: New file. 8646 * config/sparc/tm-nbsdaout.h: Remove. 8647 * config/sparc/xm-nbsd.h: Remove. 8648 86492002-05-30 Jason Thorpe <thorpej@wasabisystems.com> 8650 8651 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list. 8652 * sparc-tdep.c: Include osabi.h. 8653 (gdbarch_tdep): Add osabi member. 8654 (_initialize_sparc_tdep): Use gdbarch_register. 8655 (sparc_gdbarch_init): Use generic OS ABI framework. 8656 (sparc_dump_tdep): New function. 8657 86582002-05-30 Kevin Buettner <kevinb@redhat.com> 8659 8660 * corefile.c (do_captured_read_memory_integer): Return non-zero 8661 result. 8662 (safe_read_memory_integer): Copy result of memory read when 8663 status is non-zero. Also, add comments. 8664 86652002-05-20 Jason Thorpe <thorpej@wasabisystems.com> 8666 8667 * Makefile.in (ppc_tdep_h): Define. 8668 (ppc-linux-nat.o) 8669 (ppc-linux-tdep.o) 8670 (rs6000-tdep.o): Use $(ppc_tdep_h). 8671 (ppc-sysv-tdep.o) 8672 (ppcnbsd-nat.o) 8673 (ppcnbsd-tdep.o): New dependency lists. 8674 * ppc-tdep.h: Use generic OS ABI framework. 8675 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep) 8676 (ppc_linux_init_abi): New functions. 8677 (ppc_sysv_abi_broken_use_struct_convention) 8678 (ppc_sysv_abi_use_struct_convention) 8679 (ppc_sysv_abi_push_arguments): Move to... 8680 * ppc-sysv-tdep.c: ...here. 8681 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h. 8682 * rs6000-tdep.c (process_note_abi_tag_sections) 8683 (get_elfosabi): Remove. 8684 (rs6000_gdbarch_init): Use generic OS ABI framework. 8685 (rs6000_dump_tdep): New function. 8686 (_initialize_rs6000_tdep): Use gdbarch_register. 8687 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o. 8688 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o. 8689 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead 8690 of ppc-linux-tdep.o. 8691 * config/powerpc/nbsd.mt (TDEPFILES): Likewise. 8692 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise. 8693 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise. 8694 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise. 8695 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise. 8696 * config/powerpc/vxworks.mt (TDEPFILES): Likewise. 8697 86982002-05-29 Jim Blandy <jimb@redhat.com> 8699 8700 * macroscope.c (default_macro_scope): Put `void' in empty argument 8701 list. 8702 87032002-05-29 Andrew Cagney <ac131313@redhat.com> 8704 8705 * Makefile.in (arch-utils.o): Add $(sim_regno_h). 8706 * arch-utils.c: Include "sim-regno.h". 8707 * gdbarch.sh: Don't include "sim-regno.h". 8708 * gdbarch.h, gdbarch.c: Regenerate. 8709 * sim-regno.h (legacy_register_sim_regno): Move declaration from 8710 here. 8711 * arch-utils.h (legacy_register_sim_regno): To here. 8712 * remote-sim.c (legacy_register_sim_regno): Move function from 8713 here. 8714 * arch-utils.c (legacy_register_sim_regno): To here. 8715 87162002-05-28 Andrew Cagney <ac131313@redhat.com> 8717 8718 * sim-regno.h: New file. 8719 * Makefile.in (sim_regno_h): Define. 8720 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h). 8721 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h". 8722 (legacy_register_sim_regno): New function. 8723 (one2one_register_sim_regno): New function. 8724 (gdbsim_fetch_register): Rewrite. 8725 (gdbsim_store_register): Only store a register when 8726 REGISTER_SIM_REGNO is valid. 8727 * d10v-tdep.c: Include "sim-regno.h". 8728 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check. 8729 (d10v_ts3_register_sim_regno): Ditto. 8730 * gdbarch.sh: Include "sim-regno.h". 8731 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno. 8732 * gdbarch.h, gdbarch.c: Regenerate. 8733 * arch-utils.h (default_register_sim_regno): Delete declaration. 8734 * arch-utils.c (default_register_sim_regno): Delete function. 8735 87362002-05-28 Jason Thorpe <thorpej@wasabisystems.com> 8737 8738 * ppcnbsd-nat.c: Rewrite. 8739 * ppcnbsd-tdep.c: New file. 8740 * ppcnbsd-tdep.h: New file. 8741 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o, 8742 solib.o, and solib-svr4.o. 8743 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o, 8744 nbsd-tdep.o, and corelow.o. 8745 87462002-05-28 Andrew Cagney <ac131313@redhat.com> 8747 8748 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use 8749 `tr' and `sed'. Mention that `broken' targets are not expected to 8750 build. 8751 87522002-05-27 Michal Ludvig <mludvig@suse.cz> 8753 8754 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note. 8755 Let PC point right after the prologue before looking up symbols. 8756 87572002-05-27 Martin M. Hunt <hunt@redhat.com> 8758 8759 * i386-tdep.c (i386_register_virtual_type): Return 8760 builtin_type_vec128i for SSE registers. 8761 8762 * gdbtypes.h (builtin_type_vec128i): Declare. 8763 8764 * gdbtypes.c (build_builtin_type_vec128i): New function. 8765 (builtin_type_v2_double, builtin_type_v4_int64): New types. 8766 (builtin_type_vec128i): New type for SSE2 128-bit registers. 8767 (build_gdbtypes): Initialize new builtin vector types. 8768 (_initialize_gdbtypes): Register new vector types with gdbarch. 8769 87702002-05-26 Jason Thorpe <thorpej@wasabisystems.com> 8771 8772 * MAINTAINERS: ns32k is not longer an obsolete candidate, 8773 since it has been multi-arch'd. 8774 * NEWS: Note that ns32k-*-* is now partial multi-arch. 8775 Move Alpha and VAX multi-arch news entries to same section 8776 as other multi-arch news. 8777 87782002-05-26 Jason Thorpe <thorpej@wasabisystems.com> 8779 8780 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h, 8781 target.s, arch-utils.h, ns32k-tdep.h. Make many functions 8782 static. Rename some register numbers to put them in ns32k-tdep 8783 private namespace. 8784 (ns32k_get_saved_register, ns32k_gdbarch_init_32082, 8785 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New 8786 functions. 8787 (_initialize_ns32k_tdep): Use gdbarch_register. 8788 * ns32k-tdep.h: New file. 8789 * ns32knbsd-tdep.c: New file. 8790 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o. 8791 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h". 8792 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS, 8793 REGISTER_BYTES, REGISTER_BYTE): Remove. 8794 * config/ns32k/tm-ns32k.h: New file. 8795 * config/ns32k/tm-umax.h: Remove. 8796 87972002-05-26 Jason Thorpe <thorpej@wasabisystems.com> 8798 8799 * ns32k-tdep.c (ns32k_saved_pc_after_call, 8800 ns32k_store_struct_return, ns32k_extract_return_value, 8801 ns32k_store_return_value, ns32k_extract_struct_value_address): New 8802 functions. 8803 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as 8804 ns32k_saved_pc_after_call. 8805 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return. 8806 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value. 8807 (STORE_RETURN_VALUE): Define as ns32k_store_return_value. 8808 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as 8809 ns32k_extract_struct_value_address. 8810 88112002-05-26 Jason Thorpe <thorpej@wasabisystems.com> 8812 8813 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words, 8814 ns32k_fix_call_dummy): New. 8815 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as 8816 ns32k_call_dummy_words. 8817 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words. 8818 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR, 8819 CALL_DUMMY_NARGS): Remove. 8820 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy. 8821 88222002-05-26 Jason Thorpe <thorpej@wasabisystems.com> 8823 8824 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain, 8825 ns32k_frame_saved_pc, ns32k_frame_args_address, 8826 ns32k_frame_locals_address, ns32k_frame_init_saved_regs, 8827 ns32k_push_dummy_frame, ns32k_pop_frame): New functions. 8828 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove. 8829 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan. 8830 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc. 8831 (BREAKPOINT): Remove.. 8832 (FRAME_CHAIN): Define as ns32k_frame_chain. 8833 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc. 8834 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address. 8835 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address. 8836 (FRAME_FIND_SAVED_REGS): Remove. 8837 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs. 8838 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame. 8839 (POP_FRAME): Define as ns32k_pop_frame. 8840 88412002-05-26 Jason Thorpe <thorpej@wasabisystems.com> 8842 8843 * ns32k-tdep.c (ns32k_register_byte_32082, 8844 ns32k_register_byte_32382, ns32k_register_raw_size, 8845 ns32k_register_virtual_size, ns32k_register_virtual_type): New 8846 functions. 8847 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as 8848 ns32k_register_byte_32382. 8849 * config/ns32k/tm-umax.h: Update copyright years. 8850 (REGISTER_BYTE): Define as ns32k_register_byte_32082. 8851 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size. 8852 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size. 8853 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type. 8854 (ns32k_get_enter_addr): Fix prototype. 8855 88562002-05-26 Jason Thorpe <thorpej@wasabisystems.com> 8857 8858 * ns32k-tdep.c: Update copyright years. 8859 (ns32k_register_name_32082): New function. 8860 (ns32k_register_name_32382): Ditto. 8861 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove. 8862 (REGISTER_NAME): Define as ns32k_register_name_32382. 8863 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove. 8864 (REGISTER_NAME): Define as ns32k_register_name_32082. 8865 88662002-05-24 Jim Blandy <jimb@redhat.com> 8867 8868 * dwarf2read.c (free_line_header): Use xfree, not free. 8869 88702002-05-24 Jason Thorpe <thorpej@wasabisystems.com> 8871 8872 * config/djgpp/fnchange.lst: Add alphabsd-nat.c, 8873 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c 8874 88752002-05-23 Andrew Cagney <ac131313@redhat.com> 8876 8877 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems. 8878 88792002-05-23 Andrew Cagney <ac131313@redhat.com> 8880 8881 From Ross Alexander at NEC Europe: 8882 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o. 8883 88842002-05-23 Michael Snyder <msnyder@redhat.com> 8885 8886 * cli/cli-dump.c (restore_command): Use parse_and_eval_long 8887 for input, rather than parse_and_eval_address. 8888 88892002-05-23 Andrew Cagney <ac131313@redhat.com> 8890 8891 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h". 8892 * Makefile.in (sim_d10v_h): Update definition. 8893 88942002-05-24 Andrew Cagney <cagney@redhat.com> 8895 8896 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in 8897 change `2002-05-22 Michael Snyder' below. 8898 (d10v_push_arguments): Ditto. 8899 (d10v_extract_return_value): Ditto. 8900 89012002-05-23 Jim Blandy <jimb@redhat.com> 8902 8903 * macrotab.c (check_for_redefinition): Don't complain if the new 8904 definition is the same as the previous one. Take more arguments 8905 to allow the comparison. 8906 (macro_define_object, macro_define_function): Pass more arguments 8907 to check_for_redefinition. 8908 89092002-05-22 Michael Snyder <msnyder@redhat.com> 8910 8911 * d10v-tdep.c: Change a few macros to enums for ease of debugging. 8912 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause. 8913 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause. 8914 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY. 8915 Don't bail if return_pc is PC_IN_CALL_DUMMY. 8916 Add a temp variable to save a call (and a memory read). 8917 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc 8918 if possible (so that PC_IN_CALL_DUMMY will work). 8919 89202002-05-22 Corinna Vinschen <vinschen@redhat.com> 8921 8922 * MAINTAINERS: Remove status `OBSOLETE' from v850. 8923 89242002-05-22 Michal Ludvig <mludvig@suse.cz> 8925 8926 * dwarf2cfi.c (frame_state_for): Added safety check for a valid 8927 fde->cie_ptr. 8928 (dwarf2_build_frame_info): Corrected handling of eh_frame. 8929 (dwarf2_build_frame_info): Add offset to fde->initial_location 8930 so that frames of shared libraries are mapped correctly. 8931 (execute_stack_op): Change type of 'result' from ULONGEST to 8932 CORE_ADDR. 8933 89342002-05-22 Jason Thorpe <thorpej@wasabisystems.com> 8935 8936 * config/alpha/tm-nbsd.h: Include solib.h. 8937 89382002-05-22 Jason Thorpe <thorpej@wasabisystems.com> 8939 8940 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make 8941 assumptions about the host's byte order. 8942 89432002-05-22 Jason Thorpe <thorpej@wasabisystems.com> 8944 8945 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h 8946 to dependency list. 8947 * alphanbsd-tdep.c: Include solib-svr4.h. 8948 * shnbsd-tdep.c: Ditto. 8949 89502002-05-22 Jason Thorpe <thorpej@wasabisystems.com> 8951 8952 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and 8953 nbsd-tdep.h to dependency list. 8954 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*, 8955 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*, 8956 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use 8957 nbsdaout.mh and nbsdelf.mh consistently. 8958 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*, 8959 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use 8960 nbsdaout.mt and nbsdelf.mh consistently. 8961 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 8962 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets 8963 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets. 8964 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move 8965 a.out shared library stuff from here... 8966 * config/nm-nbsdaout.h: ...to here. 8967 * config/tm-nbsd.h: Remove. 8968 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove. 8969 * config/arm/nbsd.mh: Remove. 8970 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add 8971 nbsd-tdep.o. 8972 * config/arm/nbsdaout.mh: New file. 8973 * config/arm/nbsdelf.mh: New file. 8974 * config/arm/nm-nbsdaout.h: New file. 8975 * config/i386/nbsd.mh: Remove. 8976 * config/i386/nbsd.mt: Remove. 8977 * config/i386/nbsdaout.mh: New file. 8978 * config/i386/nbsdaout.mt: New file. 8979 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h. 8980 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h. 8981 * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 8982 i386_register_u_addr): Remove. 8983 * config/i386/nm-nbsdaout.h: New file. 8984 * config/i386/nm-nbsdelf.h: Remove. 8985 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h. 8986 (USE_STRUCT_CONVENTION): Remove. 8987 * config/i386/tm-nbsdaout.h: New file. 8988 * config/i386/tm-nbsdelf.h: Remove. 8989 * config/m68k/nbsd.mh: Remove. 8990 * config/m68k/nbsd.mt: Remove. 8991 * config/m68k/nbsdaout.mh: New file. 8992 * config/m68k/nbsdaout.mt: New file. 8993 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h. 8994 * config/m68k/nm-nbsdaout.h: New file. 8995 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h. 8996 (IN_SOLIB_CALL_TRAMPOLINE): Define. 8997 * config/ns32k/nbsd.mh: Remove. 8998 * config/ns32k/nbsd.mt: Remove. 8999 * config/ns32k/nbsdaout.mh: New file. 9000 * config/ns32k/nbsdaout.mt: New file. 9001 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 9002 * config/ns32k/nm-nbsdaout.h: New file. 9003 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h. 9004 (IN_SOLIB_CALL_TRAMPOLINE): Define. 9005 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h. 9006 (SVR4_SHARED_LIBS): Remove. 9007 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h. 9008 * config/sparc/nbsd.mh: Remove. 9009 * config/sparc/nbsd.mt: Remove. 9010 * config/sparc/nbsdaout.mh: New file. 9011 * config/sparc/nbsdaout.mt: New file. 9012 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h. 9013 * config/sparc/nbsdelf.mt: New file. 9014 * config/sparc/nm-nbsdaout.h: New file. 9015 * config/sparc/nm-nbsdelf.h: Remove. 9016 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h. 9017 * config/sparc/tm-nbsdaout.h: New file. 9018 90192002-05-21 Jason Thorpe <thorpej@wasabisystems.com> 9020 9021 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and 9022 mipsnbsd-tdep.c 9023 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists. 9024 90252002-05-21 Jason Thorpe <thorpej@wasabisystems.com> 9026 9027 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and 9028 shnbsd-nat.c. 9029 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists. 9030 90312002-05-21 Jason Thorpe <thorpej@wasabisystems.com> 9032 9033 * NEWS: Note new MIPS NetBSD native configuration. 9034 * configure.host (mips*-*-netbsd*): New host. 9035 * configure.tgt (mips*-*-netbsd*): New target. 9036 * mipsnbsd-nat.c: New file. 9037 * mipsnbsd-tdep.c: New file. 9038 * mipsnbsd-tdep.h: New file. 9039 * config/mips/nbsd.mh: New file. 9040 * config/mips/nbsd.mt: New file. 9041 * config/mips/nm-nbsd.h: New file. 9042 * config/mips/tm-nbsd.h: New file. 9043 90442002-05-21 Jason Thorpe <thorpej@wasabisystems.com> 9045 9046 * Makefile.in (SFILES): Add osabi.c. 9047 (COMMON_OBS): Add osabi.o. 9048 (osabi.o): New dependency list. 9049 * osabi.c: New file. 9050 * osabi.h: New file. 9051 9052 * Makefile.in (alpha_tdep_h): Define and use instead of 9053 alpha-tdep.h. 9054 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections, 9055 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi): 9056 Remove. 9057 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework. 9058 * alpha-tdep.h: Include osabi.h. 9059 (alpha_abi): Remove. 9060 (gdbarch_tdep): Use generic OS ABI framework. 9061 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use 9062 gdbarch_register_osabi. 9063 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise. 9064 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise. 9065 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise. 9066 9067 * Makefile.in (sh_tdep_h): Add osabi.h. 9068 * sh-tdep.h (sh_osabi): Remove. 9069 (gdbarch_tdep): Use generic OS ABI framework. 9070 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections, 9071 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove. 9072 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework. 9073 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi. 9074 9075 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h. 9076 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use 9077 gdbarch_register_osabi. 9078 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections, 9079 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove. 9080 (get_elfosabi): Rename to... 9081 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS 9082 ABI framework support routines. 9083 (arm_gdbarch_init): Use generic OS ABI framework. 9084 (arm_dump_tdep): Likewise. 9085 (_initialize_arm_tdep): Likewise. 9086 * arm-tdep.h: Include osabi.h. 9087 (arm_abi): Remove. 9088 (gdbarch_tdep): Remove arm_abi and abi_name members. Add 9089 osabi member. 9090 (arm_gdbarch_register_os_abi): Remove prototype. 9091 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function. 9092 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi. 9093 9094 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list. 9095 * mips-tdep.c: Include osabi.h. 9096 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic 9097 OS ABI framework. 9098 90992002-05-20 Kazu Hirata <kazu@cs.umass.edu> 9100 9101 * h8300-tdep.c: Fix formatting. 9102 91032002-05-20 Elena Zannoni <ezannoni@redhat.com> 9104 9105 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for 9106 printing vector registers. 9107 91082002-05-19 Andrew Cagney <ac131313@redhat.com> 9109 9110 From Fernando Nasser: 9111 * remote.c (remote_async_open_1): Re-throw the exception when the 9112 connection fails. 9113 (remote_cisco_open): Ditto. 9114 (remote_open_1): Ditto. 9115 91162002-05-19 Andrew Cagney <ac131313@redhat.com> 9117 9118 * remote.c (remote_start_remote_dummy): Add uiout parameter. 9119 (remote_start_remote): Add uiout parameter. Pass through to 9120 remote_start_remote_dummy. 9121 (remote_open_1): Use catch_exception instead of catch_errors. 9122 (remote_async_open_1): Ditto. 9123 (remote_cisco_open): Ditto. 9124 91252002-05-19 Andrew Cagney <ac131313@redhat.com> 9126 9127 * remote.c (remote_start_remote): Replace PTR with void pointer. 9128 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make 9129 static. 9130 91312002-05-18 Andrew Cagney <ac131313@redhat.com> 9132 9133 * gdb_indent.sh: Allow the script to be run in the sim directory. 9134 91352002-05-18 Mark Kettenis <kettenis@gnu.org> 9136 9137 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define. 9138 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define. 9139 9140 * corelow.c (core_open): Only call set_gdbarch_from_file if 9141 exec_bfd is NULL. 9142 91432002-05-17 Andrey Volkov <avolkov@transas.com> 9144 9145 * h8300-tdep.c: Add support of EXR register 9146 * config/h8300/tm-h8300.h: Ditto. 9147 91482002-05-17 Andrey Volkov <avolkov@transas.com> 9149 9150 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 9151 91522002-05-17 Andrey Volkov <avolkov@transas.com> 9153 9154 * h8300-tdep.c: Change literal regnums to REGNO. 9155 91562002-05-17 Jim Blandy <jimb@redhat.com> 9157 9158 * NEWS: Note addition of macro support. 9159 9160 Expand preprocessor macros in C expressions. 9161 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype. 9162 (scan_macro_expansion, scanning_macro_expansion, 9163 finished_macro_expansion): New function declarations. 9164 (expression_macro_lookup_func, expression_macro_lookup_baton): New 9165 variable declarations. 9166 * parser-defs.h (expression_context_pc): New declaration. 9167 * parse.c (expression_context_pc): New variable. 9168 (parse_exp_1): Set expression_context_pc, as well as 9169 expression_context_block. 9170 * c-exp.y (yylex): If we're not already reading the result of a 9171 macro expansion, try to macro-expand the next token. When we're 9172 done scanning a macro expansion, switch back to the mainline text. 9173 Commas and `if's in a macro's expansion don't terminate the input. 9174 * c-lang.c: #include "macroscope.h" and "gdb_assert.h". 9175 (macro_original_text, macro_expanded_text, 9176 expression_macro_lookup_func, expression_macro_lookup_baton): New 9177 variables. 9178 (scan_macro_expansion, scanning_macro_expansion, 9179 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup, 9180 c_preprocess_and_parse): New functions. 9181 (c_language_defn, cplus_language_defn, asm_language_defn): Call 9182 c_preprocess_and_parse, instead of c_parse. 9183 * Makefile.in (c_lang_h): Note that this #includes macroexp.h. 9184 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h. 9185 9186Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com> 9187 9188 * sh-tdep.c (gdb_print_insn_sh64): Delete. 9189 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh. 9190 (sh_gdbarch_init): Always use gdb_print_insn_sh. 9191 91922002-05-17 Corinna Vinschen <vinschen@redhat.com> 9193 9194 * NEWS: Add section for multi-arched targets. Add v850 to that section. 9195 91962002-05-17 Jason Thorpe <thorpej@wasabisystems.com> 9197 9198 * Makefile.in (sh_tdep_h): Define and use. 9199 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep, 9200 register enum): Move to... 9201 * * sh-tdep.h: ...here. 9202 * sh-tdep.c: Include sh-tdep.h. 9203 * sh3-rom.c: Likewise. 9204 * shnbsd-tdep.c: Likewise. 9205 92062002-05-16 Michael Snyder <msnyder@redhat.com> 9207 9208 * arm-tdep.c: Spelling fix in comment. 9209 92102002-05-16 Jim Blandy <jimb@redhat.com> 9211 9212 Add commands for manually expanding macros and showing their 9213 definitions. 9214 * macrocmd.c, macroscope.c, macroscope.h: New files. 9215 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c. 9216 (macroscope_h): New variable. 9217 (HFILES_NO_SRCDIR): Add macroscope.h. 9218 (COMMON_OBS): Add macrocmd.o, macroscope.o. 9219 (macroscope.o, macrocmd.o): New rules. 9220 9221 Teach the Dwarf 2 reader to read macro information. 9222 * dwarf2read.c: #include "macrotab.h". 9223 (dwarf_macinfo_buffer): New variable. 9224 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and 9225 dwarf_macinfo_size. 9226 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros. 9227 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long, 9228 dwarf2_macros_not_terminated, dwarf2_macro_outside_file, 9229 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition, 9230 dwarf2_macro_spaces_in_definition): New complaints. 9231 (dwarf2_has_info): Initialize dwarf_macinfo_offset. 9232 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section. 9233 (dwarf2_build_psymtabs_hard): Record the buffer and its size in 9234 the partial symbol table. 9235 (psymtab_to_symtab_1): Set the macinfo buffer and size globals 9236 from what's recorded in the partial symbol table. 9237 (read_file_scope): If the compilation unit has a 9238 `DW_AT_macro_info' attribute, read its macro information. 9239 * Makefile.in (dwarf2read.o): Depend on macrotab.h. 9240 92412002-05-16 Daniel Jacobowitz <drow@mvista.com> 9242 9243 Fix PR gdb/546 9244 * ser-tcp.c: Don't include <netinet/udp.h>. 9245 92462002-05-16 Stephane Carrez <stcarrez@nerim.fr> 9247 9248 * MAINTAINERS: Update my email address. 9249 92502002-05-16 Richard Earnshaw <rearnsha@arm.com> 9251 9252 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic 9253 include file of the same name. 9254 92552002-05-16 Corinna Vinschen <vinschen@redhat.com> 9256 9257 * configure.tgt: Mark v850 as multi-arched. 9258 * config/v850/tm-v850.h: Remove file. 9259 * config/v850/v850.mt: Eliminate TM_FILE. 9260 92612002-05-16 Corinna Vinschen <vinschen@redhat.com> 9262 9263 * v850-tdep.c: Full multi-arch. 9264 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything. 9265 Define GDB_MULTI_ARCH to 2. 9266 92672002-05-16 Pierre Muller <muller@ics.u-strasbg.fr> 9268 9269 * p-exp.y (current_type): New static variable. 9270 Carries the type of the expression at the position that is parsed. 9271 (push_current_type, pop_current_type): Two new functions. Used 9272 to store/restore current_type in expression on specific tokens. 9273 (search_field): New static variable. Set to one after parsing a point 9274 as at that point only a FIELDNAME token should be searched. 9275 (FIELDNAME): New token. After a point only a token belonging to 9276 current_type type definition is allowed. 9277 (all over token rules): reset and change current_type according 9278 to rules. 9279 (exp '[' rule): insert implicit array index field if 9280 exp is a pascal string type. 9281 92822002-05-16 Corinna Vinschen <vinschen@redhat.com> 9283 9284 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra 9285 frame info. Use frame_info's saved_regs instead of matching member 9286 in extra_frame_info throughout. 9287 (v850_frame_init_saved_regs): New function. 9288 (v850_init_extra_frame_info): Move most functionality into 9289 v850_frame_init_saved_regs(). 9290 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition. 9291 (v850_frame_find_saved_regs): Remove declaration. 9292 (FRAME_FIND_SAVED_REGS): Remove definition. 9293 (v850_frame_init_saved_regs): Add declaration. 9294 (FRAME_INIT_SAVED_REGS): Add definition. 9295 92962002-05-16 Corinna Vinschen <vinschen@redhat.com> 9297 9298 * v850-tdep.c: Begin multi-arch'ing v850. 9299 (v850_target_architecture_hook): Remove function. 9300 (v850_gdbarch_init): New function. Add code previously in 9301 v850_target_architecture_hook(). 9302 (_initialize_v850_tdep): Don't set target_architecture_hook. 9303 Call register_gdbarch_init() instead. 9304 93052002-05-16 Daniel Jacobowitz <drow@mvista.com> 9306 9307 * gdbtypes.h (struct cplus_struct_type): Remove args field. 9308 * hpread.c (hpread_read_struct_type): Remove assignments to args. 9309 (fixup_class_method_type): Likewise. 9310 93112002-05-15 Jim Blandy <jimb@redhat.com> 9312 9313 Add macro structures to GDB's symbol tables. Nobody puts anything 9314 in them yet. 9315 * symtab.h (struct symtab): New member: `macro_table'. 9316 * buildsym.h (pending_macros): New global variable. 9317 * buildsym.c: #include "macrotab.h". 9318 (buildsym_init): Initialize `pending_macros'. 9319 (end_symtab): If we found macro information while reading a CU's 9320 debugging info, do build a symtab structure for it. Make the 9321 symtab point to the macro information, and clear the 9322 `pending_macros' pointer which held it while we were reading the 9323 debug info. 9324 (really_free_pendings): Free any pending macro table. 9325 * objfiles.h (struct objfile): New member: `macro_cache'. 9326 * objfiles.c (allocate_objfile): Set allocate and free functions 9327 for the macro cache's objstack. 9328 (free_objfile): Empty the macro cache's obstack. 9329 * symfile.c (reread_symbols): Empty the macro cache's obstack, and 9330 set new allocate and free functions for it. 9331 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and 9332 free functions for the macro cache's objstack. (Why is this 9333 function building its own objfile?) 9334 * symmisc.c (print_objfile_statistics): Print statistics on the 9335 macro bcache. 9336 * Makefile.in: Note that buildsym.o depends on macrotab.h. 9337 93382002-05-15 Richard Earnshaw <rearnsha@arm.com> 9339 9340 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h. 9341 (REGISTER_U_ADDR): Delete definition. 9342 (arm_register_u_addr): Delete declaration. 9343 93442002-05-15 Richard Earnshaw <rearnsha@arm.com> 9345 9346 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC. 9347 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise. 9348 93492002-05-14 Andrew Cagney <ac131313@redhat.com> 9350 9351 * regcache.c (register_valid): Revise comments refering to "Not 9352 available" and "unavailable". 9353 * frame.c (frame_register_read): Ditto. 9354 * findvar.c (value_of_register): Ditto. 9355 93562002-05-15 Andrew Cagney <cagney@redhat.com> 9357 9358 * Makefile.in (remote_sim_h): Replace remote-sim_h. 9359 (remote-sim.o): Update dependencies. 9360 (d10v-tdep.o): Specify dependencies. 9361 (sim_d10v_h): Define. 9362 93632002-05-14 Jim Blandy <jimb@redhat.com> 9364 9365 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0. 9366 * macrotab.c (macro_lookup_inclusion, find_definition, 9367 new_macro_table): Same. 9368 9369 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0', 9370 not `! strcmp ()'. This is a dubious improvement. 9371 * macrotab.c (macro_lookup_inclusion, find_definition): Same. 9372 9373 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth', 9374 although it's not necessary, to avoid a warning. 9375 93762002-05-14 Daniel Jacobowitz <drow@mvista.com> 9377 9378 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE. 9379 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use 9380 TYPE_INSTANCE_FLAGS. 9381 (struct main_type): New. 9382 (struct type): Move most members to struct main_type. Change 9383 cv_type and as_type to new type_chain member. Add instance_flags. 9384 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros. 9385 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove. 9386 (finish_cv_type): Remove prototype. 9387 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE. 9388 Set TYPE_CHAIN. 9389 (alloc_type_instance): New function. 9390 (smash_type): New function. 9391 (make_pointer_type, make_reference_type, make_function_type) 9392 (smash_to_member_type, smash_to_method_type): Call smash_type. 9393 (make_qualified_type): New function. 9394 (make_type_with_address_space): Call make_qualified_type. 9395 (make_cv_type): Likewise. 9396 (finish_cv_type): Remove unnecessary function. 9397 (replace_type): Update comment. Copy TYPE_MAIN_TYPE. 9398 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS; 9399 remove TYPE_CV_TYPE and TYPE_AS_TYPE. 9400 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS. 9401 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type. 9402 * hpread.c (hpread_read_struct_type): Likewise. 9403 * stabsread.c (read_struct_type): Likewise. 9404 94052002-05-14 Elena Zannoni <ezannoni@redhat.com> 9406 9407 * configure.tgt: Add a catch all sh* target, for cases like 9408 sh[2,3,4]-elf and sh-hms. 9409 94102002-05-14 Keith Seitz <keiths@redhat.com> 9411 9412 * event-loop.c (create_file_handler): Don't do anything but 9413 update data when we are given a fd which we are already 9414 monitoring. 9415 94162002-05-14 Michal Ludvig <mludvig@suse.cz> 9417 9418 * dwarf2cfi.c (context_cpy): Copy registers correctly. 9419 (update_context): Use __func__ in warnings. 9420 94212002-05-14 Daniel Jacobowitz <drow@mvista.com> 9422 9423 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open 9424 and tcp_close to net_open and net_close. 9425 (net_open): Accept "udp:" and "tcp:" specifications. Connect 9426 using UDP if requested. Don't try to disable Nagle on UDP 9427 sockets. 9428 * remote.c (remote_serial_open): New function. Warn about UDP. 9429 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it. 9430 94312002-05-13 Elena Zannoni <ezannoni@redhat.com> 9432 9433 * MAINTAINERS: List sh-elf as buildable with ,-Werror. 9434 94352002-05-13 Elena Zannoni <ezannoni@redhat.com> 9436 9437 * configure.tgt: Remove sh-hms target. 9438 * MAINTAINERS: Don't list sh-hms as a separate target. 9439 94402002-05-13 Jim Blandy <jimb@redhat.com> 9441 9442 Add first preprocessor macro-expansion files. 9443 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files. 9444 * Makefile.in (SFILES): Add macrotab.c, macroexp.c. 9445 (splay_tree_h, macroexp_h, macrotab_h): New variable. 9446 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h. 9447 (COMMON_OBS): Add macrotab.o, macroexp.o. 9448 (macroexp.o, macrotab.o): New rules. 9449 94502002-05-13 Andrew Cagney <ac131313@redhat.com> 9451 9452 * config/m88k/tm-m88k.h: Update copyright. 9453 (m88k_target_write_pc): Declare 9454 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc. 9455 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM. 9456 (SHIFT_INST_REGS): Update definition. 9457 * m88k-tdep.c (m88k_target_write_pc): New function. Implement 9458 using old definition of TARGET_WRITE_PC. 9459 * regcache.c (generic_target_write_pc): Delete code handling 9460 NNPC_REGNUM. 9461 * gdbarch.sh (NNPC_REGNUM): Delete. 9462 * gdbarch.h, gdbarch.c: Regenerate. 9463 94642002-05-13 Richard Earnshaw <rearnsha@arm.com> 9465 9466 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the 9467 builtin reg number. 9468 94692002-05-13 Daniel Jacobowitz <drow@mvista.com> 9470 9471 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary) 9472 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref) 9473 (gen_address_of, gen_struct_ref, gen_repeat): Use type 9474 access macros. 9475 * c-typeprint.c (cp_type_print_method_args): Likewise. 9476 (c_type_print_args): Likewise. 9477 * d10v-tdep.c (d10v_push_arguments): Likewise. 9478 (d10v_extract_return_value): Likewise. 9479 * expprint.c (print_subexp): Likewise. 9480 * gdbtypes.c (lookup_primitive_typename): Likewise. 9481 (lookup_template_type, add_mangled_type, print_arg_types): Likewise. 9482 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB) 9483 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE) 9484 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS) 9485 (TYPE_VECTOR): Likewise. 9486 * hpread.c (hpread_read_struct_type) 9487 (fix_static_member_physnames, fixup_class_method_type) 9488 (hpread_type_lookup): Likewise. 9489 * mdebugread.c (parse_symbol, parse_type): Likewise. 9490 * p-lang.c (is_pascal_string_type): Likewise. 9491 * valops.c (hand_function_call): Likewise. 9492 * x86-64-tdep.c (classify_argument): Likewise. 9493 9494 * hpread.c (hpread_read_function_type) 9495 (hpread_read_doc_function_type): Call replace_type. 9496 * dstread.c (create_new_type): Delete. 9497 (decode_dst_structure, process_dst_function): Call alloc_type. 9498 Use type access macros. 9499 95002002-05-12 Mark Kettenis <kettenis@gnu.org> 9501 9502 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if 9503 the're not supported by the current architecture. 9504 (i387_fill_fxsave): Likewise. 9505 95062002-05-12 Fred Fish <fnf@redhat.com> 9507 9508 * symfile.c (default_symfile_offsets): Arrange for uninitialized 9509 sect_index_xxx members to index the first slot in section_offsets 9510 if all of the section_offsets are zero. 9511 95122002-05-12 Mark Kettenis <kettenis@gnu.org> 9513 9514 * configure.tgt (sparc-*openbsd): Remove entry accidentially 9515 checked in with last change. 9516 95172002-05-12 Mark Kettenis <kettenis@gnu.org> 9518 9519 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*): 9520 Remove targets. These are canonicalized to i386-*-sysv4.2uw by 9521 config.sub. 9522 95232002-05-12 Daniel Jacobowitz <drow@mvista.com> 9524 9525 * Makefile.in: Update dependencies. 9526 95272002-05-11 Andrew Cagney <ac131313@redhat.com> 9528 9529 * language.c (local_hex_string_custom): Simplify. Do not depend 9530 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG. 9531 9532 * memattr.c (mem_info_command): Replace calls to 9533 longest_local_hex_string and longest_local_hex_string_custom. 9534 * buildsym.c (make_blockvector): Ditto. 9535 * solib.c (info_sharedlibrary_command): Ditto. 9536 * tracepoint.c (tracepoints_info): Ditto. 9537 * symtab.c (print_msymbol_info): Ditto. 9538 9539 * language.c (local_hex_string): Delete. 9540 (local_hex_string_custom): Delete. 9541 (longest_local_hex_string): Rename to local_hex_string. 9542 (longest_local_hex_string_custom): Rename to 9543 local_hex_string_custom. 9544 * language.h (local_hex_string): Change parameter type to LONGEST. 9545 (local_hex_string_custom): Ditto. 9546 (longest_local_hex_string): Delete declaration. 9547 (longest_local_hex_string_custom): Ditto. 9548 9549 * solib.c: Update copyright. 9550 * memattr.c: Update copyright. 9551 95522002-05-11 Andrew Cagney <ac131313@redhat.com> 9553 9554 * arch-utils.h (legacy_register_to_value): Declare. 9555 (legacy_value_to_register): Declare. 9556 (legacy_convert_register_p): Declare. 9557 * arch-utils.c (legacy_register_to_value): New function. 9558 (legacy_value_to_register): New function. 9559 (legacy_convert_register_p): New function. 9560 9561 * gdbarch.sh (REGISTER_TO_VALUE): Define. 9562 (VALUE_TO_REGISTER): Define. 9563 (CONVERT_REGISTER_P): Define. 9564 * gdbarch.h, gdbarch.c: Regenerate. 9565 9566 * valops.c (value_assign): Use CONVERT_REGISTER_P and 9567 VALUE_TO_REGISTER. 9568 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and 9569 CONVERT_REGISTER_P. 9570 95712005-05-11 Daniel Jacobowitz <drow@mvista.com> 9572 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 9573 9574 * Makefile.in: Update dependencies for valops.c. 9575 * valops.c: Include "gdb_assert.h". 9576 (typecmp): Skip THIS parameter to methods. 9577 (find_method_list): Remove static_memfuncp argument, 9578 update callers. Check for stub methods. 9579 (find_value_oload_method_list): Don't set *static_memfuncp. 9580 (find_overload_match): Don't check for stub methods. Assert 9581 that methods are not stubbed. Handle static methods. 9582 (value_find_oload_method_list): Remove static_memfuncp argument. 9583 * gdbtypes.c (check_stub_method): Do not add THIS pointer 9584 to the argument list for static stub methods. 9585 * value.h (value_find_oload_method_list): Update prototype. 9586 95872002-05-11 Andrew Cagney <ac131313@redhat.com> 9588 9589 * arch-utils.h (generic_register_size): Declare. 9590 (generic_register_raw_size, generic_register_virtual_size): Delete 9591 declarations. 9592 * arch-utils.c (generic_register_raw_size): Delete. 9593 (generic_register_size): New function. 9594 (generic_register_virtual_size): Delete. 9595 9596 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make 9597 default generic_register_size. 9598 * gdbarch.h, gdbarch.c: Re-generate. 9599 9600 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for 9601 register_virtual_size. 9602 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto. 9603 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto. 9604 96052002-05-11 Andrew Cagney <ac131313@redhat.com> 9606 9607 * gdbarch.sh (gdbarch_data): Add gdbarch parameter. 9608 * gdbarch.h, gdbarch.c: Regenerate. 9609 * gnu-v3-abi.c: Update copyright. 9610 (vtable_address_point_offset): Update. 9611 (gnuv3_rtti_type): Update. 9612 (gnuv3_baseclass_offset): Update. 9613 * solib-svr4.c (svr4_fetch_link_map_offsets): Update. 9614 (init_fetch_link_map_offsets): Update. 9615 * remote.c (get_remote_state): Update. 9616 96172002-05-11 Daniel Jacobowitz <drow@mvista.com> 9618 9619 * TODO: Remove value_headof/value_from_vtable_info comment. 9620 * printcmd.c (print_command_1): Don't call value_from_vtable_info. 9621 * values.c (value_headof, value_from_vtable_info): Delete. 9622 * value.h (value_from_vtable_info): Delete prototype. 9623 96242002-05-11 Andrew Cagney <ac131313@redhat.com> 9625 9626 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h), 9627 gdb_string.h with $(gdb_string_h) and gdb_regex.h with 9628 $(gdb_regex_h). 9629 (gdb_assert_h): Define. 9630 (gdb_wait_h): Define. 9631 (gdb_regex_h): Define. 9632 96332002-05-11 Daniel Jacobowitz <drow@mvista.com> 9634 9635 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>: 9636 * linespec.c (find_methods): Handle GCC 3.x template constructors. 9637 96382002-05-11 Jason Thorpe <thorpej@wasabisystems.com> 9639 9640 * nbsd-tdep.c: Fix comment. 9641 96422002-05-11 Jason Thorpe <thorpej@wasabisystems.com> 9643 9644 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c. 9645 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list. 9646 (nbsd-tdep.o): New dependency list. 9647 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include 9648 nbsd-tdep.h. 9649 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove. 9650 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets. 9651 * nbsd-tdep.c: New file. 9652 * nbsd-tdep.h: New file. 9653 * shnbsd-tdep.c: Don't include solib-svr4.h. Include 9654 nbsd-tdep.h. 9655 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove. 9656 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets. 9657 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o. 9658 * config/sh/nbsd.mt (TDEPFILES): Ditto. 9659 96602002-05-11 Jason Thorpe <thorpej@wasabisystems.com> 9661 9662 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o. 9663 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o. 9664 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o. 9665 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o. 9666 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o. 9667 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o. 9668 96692002-05-11 Jason Thorpe <thorpej@wasabisystems.com> 9670 9671 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations. 9672 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise. 9673 * config/m68k/nbsd.mh (NATDEPFILES): Likewise. 9674 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise. 9675 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise. 9676 * config/sparc/nbsd.mh (NATDEPFILES): Likewise. 9677 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise. 9678 96792002-05-11 Jason Thorpe <thorpej@wasabisystems.com> 9680 9681 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and 9682 fetch_elfcore_registers to... 9683 * i386nbsd-tdep.c: ...here. 9684 (i386nbsd_use_struct_convention): Rename to... 9685 (i386nbsd_aout_use_struct_convention): ...this. 9686 (i386nbsd_supply_reg): New function. 9687 (i386nbsd_fill_reg): New function. 9688 (fetch_core_registers): Use i386nbsd_supply_reg. 9689 (fetch_elfcore_registers): Likewise. 9690 (_initialize_i386nbsd_tdep): New function. 9691 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o. 9692 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise. 9693 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o. 9694 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to... 9695 (i386nbsd_aout_use_struct_convention): ...this. 9696 96972002-05-11 Jason Thorpe <thorpej@wasabisystems.com> 9698 9699 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg. 9700 (store_inferior_registers): Use shnbsd_fill_reg. 9701 * shnbsd-tdep.c (sh_nbsd_supply_registers, 9702 sh_nbsd_supply_register): Collapse into... 9703 (shnbsd_supply_reg): ...this. 9704 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into... 9705 (shnbsd_fill_reg): ...this. 9706 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to... 9707 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this. 9708 (fetch_core_registers): Use shnbsd_supply_reg. 9709 (fetch_elfcore_registers): Use shnbsd_supply_reg. 9710 (sh_nbsd_core_fns): Rename to... 9711 (shnbsd_core_fns): ...this. 9712 (sh_nbsd_elfcore_fns): Rename to... 9713 (shnbsd_elfcore_fns): ...this. 9714 (sh_nbsd_init_abi): Rename to... 9715 (shnbsd_init_abi): ...this. 9716 (_initialize_sh_nbsd_tdep): Rename to... 9717 (_initialize_shnbsd_tdep): ...this. 9718 * shnbsd-tdep.h (sh_nbsd_supply_registers, 9719 sh_nbsd_supply_register, sh_nbsd_fill_registers, 9720 sh_nbsd_fill_register): Remove prototypes. 9721 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes. 9722 97232002-05-11 Jason Thorpe <thorpej@wasabisystems.com> 9724 9725 * Makefile.in (ALLDEPFILES): Remove i387-nat.c. 9726 (i387-nat.o): Delete dependency list. 9727 (go32-nat.o): Change i387-nat.h to i387-tdep.h. 9728 (x86-64-linux-nat.o): Likewise. 9729 * i387-nat.c: Delete file, moving contents to... 9730 * i387-tdep.c: ...here. 9731 * i387-nat.h: Rename... 9732 * i387-tdep.h: ...to this. 9733 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h. 9734 * i386-linux-nat.c: Likewise. 9735 * i386bsd-nat.c: Likewise. 9736 * i386gnu-nat.c: Likewise. 9737 * i386nbsd-nat.c: Likewise. 9738 * i386v4-nat.c: Likewise. 9739 * x86-64-linux-nat.c: Likewise. 9740 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o. 9741 * config/i386/go32.mh (NATDEPFILES): Likewise. 9742 * config/i386/i386gnu.mh (NATDEPFILES): Likewise. 9743 * config/i386/i386sol2.mh (NATDEPFILES): Likewise. 9744 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise. 9745 * config/i386/linux.mh (NATDEPFILES): Likewise. 9746 * config/i386/nbsd.mh (NATDEPFILES): Likewise. 9747 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise. 9748 * config/i386/obsd.mh (NATDEPFILES): Likewise. 9749 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise. 9750 97512002-05-11 Jason Thorpe <thorpej@wasabisystems.com> 9752 9753 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c. 9754 (alphanbsd-nat.o): Remove dependency list. 9755 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list. 9756 * alphanbsd-nat.c: Delete. Contents moved to... 9757 * alphanbsd-tdep.c: ...here. 9758 (_initialize_alphanbsd_tdep): Register core functions. 9759 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o. 9760 97612002-05-11 Jason Thorpe <thorpej@wasabisystems.com> 9762 9763 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c. 9764 (alphabsd-nat.o): Depend on alphabsd-tdep.h. 9765 (alphanbsd-nat.o): Likewise. 9766 (alphabsd-tdep.o): New dependency list. 9767 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg. 9768 (fill_gregset): Use alphabsd_fill_reg. 9769 (supply_fpregset): Use alphabsd_supply_fpreg. 9770 (fill_fpregset): Use alphabsd_fill_fpreg. 9771 (fetch_inferior_registers): Use struct reg and struct fpreg 9772 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg 9773 and alphabsd_supply_fpreg. 9774 (store_inferior_registers): Use struct reg and struct fpreg 9775 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg 9776 and alphabsd_fill_fpreg. 9777 * alphabsd-tdep.c: New file. 9778 * alphabsd-tdep.h: New file. 9779 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg. 9780 (fetch_elfcore_registers): Use alphabsd_supply_reg and 9781 alphabsd_supply_fpreg. 9782 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o. 9783 * config/alpha/nbsd.mt (TDEPFILES): Likewise. 9784 97852002-05-11 Eric Christopher <echristo@redhat.com> 9786 9787 * mips-tdep.c (mips_double_register_type): Fix thinko. 9788 (mips_single_register_type): Ditto. 9789 * MAINTAINERS: Add self. 9790 97912002-05-11 Mark Kettenis <kettenis@gnu.org> 9792 9793 * i387-nat.c (i387_supply_register, i387_fill_fsave, 9794 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the 9795 right thing on architectures with different endianness and/or 9796 integer sizes. 9797 97982002-05-10 Jason Thorpe <thorpej@wasabisystems.com> 9799 9800 From Christian Limpach <chris@Pin.LU> 9801 * configure.in: Change sed expression which comments out 9802 NATDEPFILES to also comment out continuation lines. 9803 * configure: Regenerate. 9804 98052002-05-10 Elena Zannoni <ezannoni@redhat.com> 9806 9807 * sh-tdep.c: Clean up code erroneously reintroduced by previous 9808 big patch. 9809 98102002-05-10 Elena Zannoni <ezannoni@redhat.com> 9811 9812 * sh-tdep.c: Include correct file. 9813 98142002-05-10 Elena Zannoni <ezannoni@redhat.com> 9815 9816 New support for sh64-elf (sh5) target. 9817 9818 * configure.tgt: For sh64-elf target, default to sh-elf. 9819 9820 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's. 9821 (struct gdbarch_tdep): Add new fields for new registers and ABI 9822 info. 9823 9824 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h. 9825 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT, 9826 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR, 9827 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR, 9828 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15, 9829 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA, 9830 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA, 9831 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0, 9832 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV, 9833 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV, 9834 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros. 9835 (sh_sh64_register_name, sh64_elf_make_msymbol_special, 9836 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves, 9837 sh64_skip_prologue_hard_way, sh64_use_struct_convention, 9838 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain, 9839 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo, 9840 sh64_get_gdb_regnum, sh64_media_reg_base_num, 9841 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num, 9842 sign_extend, sh64_nofp_frame_init_saved_regs, 9843 sh64_init_extra_frame_info, sh64_get_saved_register, 9844 sh64_extract_struct_value_address, sh64_pop_frame, 9845 sh64_push_arguments, sh64_extract_return_value, 9846 sh64_store_return_value, sh64_show_media_regs, 9847 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte, 9848 sh_sh64_register_raw_size, sh_sh64_register_virtual_size, 9849 sh_sh64_register_virtual_type, 9850 sh_sh64_register_convert_to_virtual, 9851 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read, 9852 sh64_register_read, sh64_pseudo_register_write, 9853 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info, 9854 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info, 9855 sh64_do_pseudo_register, sh_compact_do_registers_info, 9856 sh64_do_registers_info, sh_gdbarch_init): New functions. 9857 98582002-05-10 Elena Zannoni <ezannoni@redhat.com> 9859 9860 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type. 9861 98622002-05-10 Daniel Jacobowitz <drow@mvista.com> 9863 9864 * linespec.c (decode_line_1): Check for a double quote after 9865 a filename correctly. 9866 98672002-05-10 Jim Blandy <jimb@redhat.com> 9868 9869 Properly track the size of the current objfile's .debug_line section. 9870 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size. 9871 (DWARF_LINE_SIZE): New macro. 9872 (dwarf2_build_psymtabs_hard): Record the line section's size in 9873 the partial symbol table. 9874 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial 9875 symbol table. 9876 98772002-05-10 Petr Sorfa <petrs@caldera.com> 9878 9879 * ia64-tdep.c: Handle breakpoints on L instruction type 9880 in MLX instruction bundle by moving the breakpoint to 9881 the third slot (X instruction type) as L holds only data. 9882 98832002-05-10 Kevin Buettner <kevinb@redhat.com> 9884 9885 * dbxread.c (discarding_local_symbols_complaint): New complaint. 9886 (process_one_symbol): Complain about discarding local symbols 9887 due to a misplaced N_LBRAC entry. 9888 98892002-05-09 Elena Zannoni <ezannoni@redhat.com> 9890 9891 From Daniel Berlin <dan@cgsoftware.com> 9892 * linespec.c (find_toplevel_char): '<' and '>' also increase and 9893 decrease the depth we are at, in the case of templates. 9894 98952002-05-09 Daniel Jacobowitz <drow@mvista.com> 9896 9897 * mips-tdep.c (mips_float_register_type): New function. 9898 (mips_double_register_type): New function. 9899 (mips_print_register): Use them. 9900 (do_fp_register_row): Likewise. 9901 99022002-05-09 Daniel Jacobowitz <drow@mvista.com> 9903 9904 * signals/signals.c (signals): Remove conditional compilation around 9905 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT. 9906 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST. 9907 99082002-05-09 Michael Snyder <msnyder@redhat.com> 9909 9910 * remote-rdp.c (remote_rdp_can_run): Remove. 9911 99122002-05-09 Tom Tromey <tromey@redhat.com> 9913 9914 * jv-valprint.c (java_val_print): Handle `char' as a special case 9915 of TYPE_CODE_INT. 9916 99172002-05-09 Michael Snyder <msnyder@redhat.com> 9918 9919 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn], 9920 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as 9921 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and 9922 str r(0123),[sp,#nn]. 9923 (arm_skip_prologue): Ditto. Also make disassembly 9924 order-independent by placing it in a loop. 9925 99262002-05-06 Michael Snyder <msnyder@redhat.com> 9927 9928 * stabsread.c (read_type): Add recognition for new attribute: 9929 "@V;" means that an array type is actually a vector. 9930 This is analogous to the vector flag that's been added to dwarf2. 9931 99322002-05-09 Mark Kettenis <kettenis@gnu.org> 9933 9934 * i386-tdep.h (i386_abi): New enum. 9935 (struct gdbarch_tdep): Replace os_ident member with abi. 9936 (i386_gdbarch_register_os_abi): New prototype. 9937 * i386-tdep.c (i386_abi_names): New array. 9938 (process_note_abi_tag_sections): Removed. 9939 (process_note_sections): New function. 9940 (i386_elf_abi_from_note, i386_elf_abi): New functions. 9941 (struct i386_abi_handler): New struct. 9942 (i386_abi_handler_list): New variable. 9943 (i386_gdbarch_register_os_abi): New function. 9944 (i386_gdbarch_init): Adapt for the changes given above. 9945 99462002-05-08 Daniel Jacobowitz <drow@mvista.com> 9947 9948 * gregset.h: Say "GNU/Linux". 9949 99502002-05-08 Elena Zannoni <ezannoni@redhat.com> 9951 9952 * gdbtypes.c : Add new builtin type for 64 bit vectors. 9953 (build_gdbtypes): Build builtin_type_v2_float. 9954 (_initialize_gdbtypes): Register new builtin type. 9955 99562002-05-08 Andrew Cagney <ac131313@redhat.com> 9957 9958 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section. 9959 (clear_gdbarch_swap): New function. 9960 (initialize_non_multiarch): Call. 9961 (gdbarch_update_p): Before calling init(), swap out and clear the 9962 existing architecture. 9963 * gdbarch.c: Regenerate. 9964 99652002-05-08 Jason Thorpe <thorpej@wasabisystems.com> 9966 9967 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and 9968 alphanbsd-tdep.c. 9969 99702002-05-08 Jason Thorpe <thorpej@wasabisystems.com> 9971 9972 * sh-nbsd-nat.c: Rename to... 9973 * shnbsd-nat.c: ...this. 9974 * sh-nbsd-tdep.c: Rename to... 9975 * shnbsd-tdep.c: ...this. 9976 * sh-nbsd-tdep.h: Rename to... 9977 * shnbsd-tdep.h: ...this. 9978 * config/sh/nbsd.mh: Use shnbsd-nat.o. 9979 * config/sh/nbsd.mt: Use shnbsd-tdep.o. 9980 99812002-05-08 Richard Earnshaw <rearnsha@arm.com> 9982 9983 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string 9984 concatenation for command help messages. 9985 99862002-05-08 Jason Thorpe <thorpej@wasabisystems.com> 9987 9988 * NEWS: Note new sh*-*-netbsdelf* configuration. 9989 * configure.host: Set gdb_host_cpu to sh for all sh*. 9990 (sh*-*-netbsdelf*): New host. 9991 * configure.tgt: Set gdb_target_cpu to sh for all sh*. 9992 (sh*-*-netbsdelf*): New target. 9993 * sh-nbsd-nat.c: New file. 9994 * sh-nbsd-tdep.c: New file. 9995 * sh-nbsd-tdep.h: New file. 9996 * config/sh/nbsd.mh: New file. 9997 * config/sh/nbsd.mt: New file. 9998 * config/sh/nm-nbsd.h: New file. 9999 * config/sh/tm-nbsd.h: New file. 10000 100012002-05-08 Jason Thorpe <thorpej@wasabisystems.com> 10002 10003 * sh-tdep.c (sh_osabi_names): Declare. 10004 (process_note_abi_tag_sections): New function. 10005 (get_elfosabi): Ditto. 10006 (sh_gdbarch_register_os_abi): Ditto. 10007 (sh_dump_tdep): Ditto. 10008 _initialize_sh_tdep): Use gdbarch_register to register 10009 sh_gdbarch_init and sh_dump_tdep. 10010 * config/sh/tm-sh.h (sh_osabi): Declare. 10011 (gdbarch_tdep): Add sh_osabi and osabi_name members. 10012 100132002-05-07 Andrew Cagney <ac131313@redhat.com> 10014 10015 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames. 10016 (thumb_scan_prologue): Ditto. 10017 (arm_find_callers_reg): Ditto. 10018 (arm_frame_chain): Ditto. 10019 (arm_init_extra_frame_info): Ditto. 10020 (arm_frame_saved_pc): Ditto. 10021 (arm_pop_frame): Ditto. 10022 (arm_push_return_address): New function. 10023 (arm_gdbarch_init): Initialize use_generic_dummy_frames, 10024 call_dummy_location, call_dummy_breakpoint_offset_p, 10025 call_dummy_breakpoint_offset, call_dummy_p, 10026 call_dummy_stack_adjust_p, call_dummy_words, 10027 sizeof_call_dummy_words, call_dummy_start_offset, 10028 call_dummy_length, fix_call_dummy, pc_in_call_dummy, 10029 call_dummy_address, push_return_address and push_dummy_frame for 10030 generic dummy frames. 10031 100322002-05-07 Jason Thorpe <thorpej@wasabisystems.com> 10033 10034 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in 10035 size computation for alloca. 10036 (sh_fp_frame_init_saved_regs): Likewise. 10037 100382002-05-07 Richard Earnshaw <rearnsha@arm.com> 10039 10040 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define. 10041 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define. 10042 * arm-tdep.c (arm_store_return_value): Use them. 10043 Use FP_REGISTER_RAW_SIZE when setting the FPA return value. 10044 * remote-rdp.c (remote_rdp_fetch_register): Use 10045 ARM_MAX_REGISTER_RAW_SIZE. 10046 (remote_rdp_store_register): Likewise. 10047 100482002-05-07 Michal Ludvig <mludvig@suse.cz> 10049 10050 * dwarf2cfi.c: Code cleanup, removed unused variables, 10051 added default labels to switch {} statements. 10052 * x86-64-tdep.c: Ditto. 10053 * x86-64-linux-nat.c: Ditto. 10054 100552002-05-07 Jason Thorpe <thorpej@wasabisystems.com> 10056 10057 * solib.h: Protect against multiple inclusion. 10058 100592002-05-06 Jim Blandy <jimb@redhat.com> 10060 10061 Add first preprocessor macro-expansion files. 10062 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files. 10063 * Makefile.in (SFILES): Add macrotab.c, macroexp.c. 10064 (splay_tree_h, macroexp_h, macrotab_h): New variable. 10065 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h. 10066 (COMMON_OBS): Add macrotab.o, macroexp.o. 10067 (macroexp.o, macrotab.o): New rules. 10068 10069 Separate the job of reading the line number info statement program 10070 header (...expialidocious) out into its own function. 10071 * dwarf2read.c (struct line_head, struct filenames, struct 10072 directories): Replace with... 10073 (struct line_header): New structure, containing the full 10074 contents of the statement program header, including the 10075 include directory and file name tables. 10076 (read_file_scope): If we have line number info, instead of just 10077 calling dwarf_decode_lines to do all the work, call 10078 dwarf_decode_line_header first to get a `struct line_header' 10079 containing the data in the statement program header, and then 10080 pass that to dwarf_decode_lines, which will pick up where that 10081 left off. Be sure to clean up the `struct line_header' object. 10082 (dwarf_decode_line_header, free_line_header, add_include_dir, 10083 add_file_name): New functions. 10084 (dwarf_decode_lines): Move all the code to read the statement 10085 program header into dwarf_decode_line_header. Take the line 10086 header it built as the first argument, instead of the offset to 10087 the compilation unit's line number info. Use the new `struct 10088 line_header' type instead of the old structures. No need to do 10089 cleanups here now, since we don't allocate anything. 10090 (dwarf2_statement_list_fits_in_line_number_section, 10091 dwarf2_line_header_too_long): New complaints. 10092 100932002-05-06 Elena Zannoni <ezannoni@redhat.com> 10094 10095 * gdbtypes.c (init_vector_type): New function. 10096 (build_builtin_type_vec128): Simplify the representation of SIMD 10097 registers. 10098 (build_gdbtypes): Initialize new builtin vector types. 10099 (_initialize_gdbtypes): Register new vector types with gdbarch. 10100 (builtin_type_v4_float, builtin_type_v4_int32, 10101 builtin_type_v8_int16, builtin_type_v16_int8, 10102 builtin_type_v2_int32, builtin_type_v4_int16, 10103 builtin_type_v8_int8): New (renamed) SIMD types. 10104 101052002-05-06 Mark Kettenis <kettenis@gnu.org> 10106 10107 * i387-nat.c (i387_fill_fsave): Use regcache_collect. 10108 (i387_fill_fxsave): Likewise. 10109 101102002-05-05 Alexandre Oliva <aoliva@redhat.com> 10111 10112 * alpha-tdep.c (alpha_extract_return_value): Don't use 10113 non-constant array size in prototype. 10114 101152002-05-04 Andrew Cagney <ac131313@redhat.com> 10116 10117 From Brian Taylor <briant at model dot com>: 10118 * ui-out.c (ui_out_field_core_addr): Use the function 10119 longest_local_hex_string_custom'to format addresses > 32 bits 10120 wide. 10121 10122 * ui-out.c (ui_out_field_core_addr): Update comment. 10123 101242002-05-04 Andrew Cagney <ac131313@redhat.com> 10125 10126 * stack.c (select_and_print_frame): Make static. Delete the 10127 parameter `level'. 10128 (func_command): Update call. 10129 (select_frame_command): Delete code computing the frame level. 10130 * frame.h (select_and_print_frame): Delete declaration. 10131 101322002-05-04 Andrew Cagney <ac131313@redhat.com> 10133 10134 * sparc-tdep.c (sparc_get_saved_register): Comment why 10135 get_prev_frame call is safe. 10136 101372002-05-04 Andrew Cagney <ac131313@redhat.com> 10138 10139 * frame.h (select_frame): Delete level parameter. 10140 * stack.c (select_frame): Update. Use frame_relative_level to 10141 obtain the frame's level. 10142 (select_and_print_frame): Update call. 10143 (select_frame_command): Ditto. 10144 (up_silently_base): Ditto. 10145 (down_silently_base): Ditto. 10146 * ocd.c (ocd_start_remote): Ditto. 10147 * remote-rdp.c (remote_rdp_open): Ditto. 10148 * remote-mips.c (mips_initialize): Ditto. 10149 (common_open): Ditto. 10150 * remote-e7000.c (e7000_start_remote): Ditto. 10151 * m3-nat.c (select_thread): Ditto. 10152 * hppa-tdep.c (child_get_current_exception_event): Ditto. 10153 (child_get_current_exception_event): Ditto. 10154 * varobj.c (varobj_create): Ditto. 10155 (varobj_update): Ditto. 10156 (c_value_of_root): Ditto. 10157 * tracepoint.c (finish_tfind_command): Ditto. 10158 * corelow.c (core_open): Ditto. 10159 * arch-utils.c (generic_prepare_to_proceed): Ditto. 10160 * thread.c (info_threads_command): Ditto. 10161 (switch_to_thread): Ditto. 10162 * infrun.c (normal_stop): Ditto. 10163 (restore_selected_frame): Ditto. 10164 (restore_inferior_status): Ditto. 10165 * breakpoint.c (insert_breakpoints): Ditto. 10166 (watchpoint_check): Ditto. 10167 (bpstat_stop_status): Ditto. 10168 (do_enable_breakpoint): Ditto. 10169 * blockframe.c (flush_cached_frames): Ditto. 10170 (reinit_frame_cache): Ditto. 10171 101722002-05-04 Andrew Cagney <ac131313@redhat.com> 10173 10174 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD 10175 maintainer. 10176 101772002-05-04 Jim Blandy <jimb@redhat.com> 10178 10179 * gdbtypes.c (replace_type): Doc fix. 10180 101812002-05-04 Andrew Cagney <ac131313@redhat.com> 10182 10183 * valprint.c (strcat_longest): Delete commented out function. 10184 Update copyright. 10185 101862002-05-04 Andrew Cagney <ac131313@redhat.com> 10187 10188 * MAINTAINERS: Mark a29k as deleted. 10189 * NEWS: Mention that a29k was removed. Add OBSOLETE section. 10190 Move new configurations to the top. 10191 * configure.tgt: Remove a29k. 10192 * config/a29k/tm-vx29k.h: Delete. 10193 * config/a29k/vx29k.mt: Delete. 10194 * config/a29k/tm-a29k.h: Delete. 10195 * config/a29k/a29k-udi.mt: Delete. 10196 * config/a29k/a29k.mt: Delete. 10197 * a29k-tdep.c: Delete. 10198 * remote-udi.c: Delete. 10199 * remote-mm.c: Delete. 10200 * remote-eb.c: Delete. 10201 * remote-adapt.c: Delete. 10202 * Makefile.in: Remove obsolete code. 10203 * config/s390/s390x.mt: Ditto. 10204 * config/s390/s390.mt: Ditto. 10205 * config/sparc/sparclynx.mh: Ditto. 10206 * config/sparc/linux.mh: Ditto. 10207 * config/pa/hppaosf.mh: Ditto. 10208 * config/pa/hppabsd.mh: Ditto. 10209 * config/ns32k/nbsd.mt: Ditto. 10210 * config/mips/vr5000.mt: Ditto. 10211 * config/m68k/sun3os4.mh: Ditto. 10212 * config/m68k/nbsd.mt: Ditto. 10213 * config/m68k/m68klynx.mh: Ditto. 10214 * config/m32r/m32r.mt: Ditto. 10215 * config/i386/x86-64linux.mt: Ditto. 10216 * config/i386/nbsdelf.mt: Ditto. 10217 * config/i386/nbsd.mt: Ditto. 10218 * config/i386/i386lynx.mh: Ditto. 10219 102202002-05-04 Andrew Cagney <ac131313@redhat.com> 10221 10222 * target.c (debug_print_register): New function. Handle oversize 10223 registers. 10224 (debug_to_fetch_registers): Call. 10225 (debug_to_store_registers): Call. 10226 102272002-05-03 Jim Blandy <jimb@redhat.com> 10228 10229 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy. 10230 (read_type): Doc fix. 10231 * gdbtypes.c (replace_type): Doc fix. 10232 10233 * stabsread.c (multiply_defined_struct): New complaint. 10234 (read_struct_type): If the type we were passed isn't empty, or 10235 incomplete, don't read the new struct type into it; complain, 10236 and return the original type unchanged. Take a new `type_code' 10237 argument, which is the type code for the new type. 10238 (read_type): Rather than storing the type's type code here, pass 10239 it as an argument to read_struct_type, and let that take care of 10240 storing it. That way, we don't overwrite the original type code, 10241 so read_struct_type can use it to decide whether we're overwriting 10242 something we shouldn't. 10243 (complain_about_struct_wipeout): New function. 10244 102452002-05-03 Andrew Cagney <ac131313@redhat.com> 10246 10247 * gdbarch.sh: Assert that gdbarch is non-NULL. 10248 * gdbarch.c: Regenerate. 10249 102502002-05-03 Jason Merrill <jason@redhat.com> 10251 10252 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn 10253 and return NULL. 10254 102552002-05-03 Michal Ludvig <mludvig@suse.cz> 10256 10257 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map), 10258 (x86_64_dwarf2gdb_regno_map_length), 10259 (x86_64_dwarf2_reg_to_regnum): Added. 10260 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum. 10261 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init. 10262 (_initialize_x86_64_tdep): Synced with the change above. 10263 (x86_64_skip_prologue): Reformulated message. 10264 102652002-05-03 Pierre Muller <muller@ics.u-strasbg.fr> 10266 10267 * f-exp.y: Also use new prev_lexptr variable 10268 to improve error reporting. Based on Michael Snyder 10269 2002-04-24 dated patch to c-exp.y. 10270 * jv-exp.y: Likewise. 10271 * m2-exp.y: Likewise. 10272 102732002-05-02 Elena Zannoni <ezannoni@redhat.com> 10274 10275 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if 10276 we are dealing with vectors. 10277 102782002-05-02 Pierre Muller <muller@ics.u-strasbg.fr> 10279 10280 * config/m68k/tm-nbsd.h: Obvious fix, 10281 correct machine name. 10282 102832002-05-02 Pierre Muller <muller@ics.u-strasbg.fr> 10284 10285 * p-typeprint.c (pascal_type_print_base): Add support 10286 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING. 10287 102882002-05-02 Pierre Muller <muller@ics.u-strasbg.fr> 10289 10290 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR 10291 for fondamental pascal 'char' type. 10292 102932002-05-02 Pierre Muller <muller@ics.u-strasbg.fr> 10294 10295 * p-lang.h (is_pascal_string_type): Declaration changed, 10296 new sixth argument of type char ** added. 10297 * p-lang.c (is_pascal_string_type): Implementation 10298 changed. Args length_pos, length_size, string_pos, char_size 10299 can now be NULL. New argument arrayname set to the field 10300 name of the char array. Return value set to char array 10301 field index plus one. 10302 * p-valprint.c (pascal_val_print): Adapt to new declaration of 10303 is_pascal_string_type function. 10304 103052002-05-02 Andrew Cagney <cagney@redhat.com> 10306 10307 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney 10308 <cagney@redhat.com> change. 10309 * gdbarch.c: Regenerate. 10310 103112002-05-02 Andrew Cagney <cagney@redhat.com> 10312 10313 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture 10314 before probing for a new one. Detect errorenous gdbarch_init 10315 functions. 10316 * gdbarch.c: Regenerate. 10317 103182002-05-01 Andrew Cagney <cagney@redhat.com> 10319 10320 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h". 10321 * config/mcore/tm-mcore.h: Ditto. Update copyright. 10322 * config/v850/tm-v850.h: Ditto. Update copyright. 10323 103242002-04-30 Andrew Cagney <ac131313@redhat.com> 10325 10326 * cris-tdep.c (cris_gdbarch_init): Use arches instead of 10327 current_gdbarch. 10328 103292002-04-30 Michael Snyder <msnyder@redhat.com> 10330 10331 * arm-tdep.c: Whitespace clean-ups. 10332 (arm_skip_prologue): Fix thinko; two lines 10333 should have been removed as part of 4/24 change. 10334 103352002-04-30 Kevin Buettner <kevinb@redhat.com> 10336 10337 * rs6000-tdep.c: Added comment describing how fpscr register 10338 numbers were chosen. 10339 103402002-04-30 Michael Snyder <msnyder@redhat.com> 10341 10342 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch. 10343 103442002-04-29 Elena Zannoni <ezannoni@redhat.com> 10345 10346 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR. 10347 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH. 10348 (hpread_symfile_init, hpread_lookup_type): Substitute throughout. 10349 103502002-04-29 Kevin Buettner <kevinb@redhat.com> 10351 10352 From Louis Hamilton <hamilton@redhat.com>: 10353 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include. 10354 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise. 10355 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(), 10356 not bfd-private xcoff data, to determine wordsize. 10357 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise. 10358 103592002-04-29 Andrew Cagney <ac131313@redhat.com> 10360 10361 GDB 5.2 released from 5.2 branch. 10362 103632002-04-29 Michal Ludvig <mludvig@suse.cz> 10364 10365 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning. 10366 * x86-64-tdep.c (i386_gdbarch_init): Ditto. 10367 (x86_64_register_info_table): Added comments with register numbers. 10368 103692002-04-29 Elena Zannoni <ezannoni@redhat.com> 10370 10371 * rs6000-tdep.c (rs6000_extract_return_value, 10372 rs6000_store_return_value): Handle returning vectors. 10373 (rs6000_gdbarch_init): Use 10374 ppc_sysv_abi_broken_use_struct_convention for native sysv cases. 10375 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention): 10376 New function. 10377 (ppc_sysv_abi_use_struct_convention): Deal with functions returning 10378 vectors. 10379 (ppc_sysv_abi_push_arguments): Handle vector parameters. 10380 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export. 10381 103822002-04-24 Pierre Muller <ics.u-strasbg.fr> 10383 10384 * hpread.c (hpread_psymtab_to_symtab_1, 10385 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...) 10386 with fprintf_unfiltered (gdb_stderr,...). 10387 103882002-04-24 Pierre Muller <ics.u-strasbg.fr> 10389 10390 * remote-array.c (printf_monitor, write_monitor, 10391 array_insert_breakpoint, array_remove_breakpoint ): 10392 Replace fprintf (stderr,... 10393 with fprintf_unfiltered (gdb_stderr,.... 10394 * remote-es.c: Likewise. 10395 * remote-os9k.c: Likewise. 10396 * remote-st.c: Likewise. 10397 103982002-04-28 Andreas Schwab <schwab@suse.de> 10399 10400 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add 10401 linux-proc.o and gcore.o. 10402 104032002-04-26 Michal Ludvig <mludvig@suse.cz> 10404 10405 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging 10406 code without frame pointers. 10407 104082002-04-26 Andrew Cagney <ac131313@redhat.com> 10409 10410 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why 10411 ON_STACK is needed. 10412 104132002-04-26 Ben Elliston <bje@redhat.com> 10414 10415 * target.c (do_xfer_memory): Correct reference to the new option 10416 "trust-readonly-sections". 10417 104182002-04-26 Elena Zannoni <ezannoni@redhat.com> 10419 10420 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define. 10421 * gdbtypes.c (recursive_dump_type): Output the vector flag. 10422 * dwarf2read.c (dwarf_attr_name): Handle new attribute for 10423 vectors. 10424 (read_array_type): Record the fact that this array type is really a 10425 vector (i.e. are passed in by value). 10426 104272002-04-26 Jason Thorpe <thorpej@wasabisystems.com> 10428 10429 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member. 10430 * alpha-tdep.c (alpha_sigcontext_addr): New function. 10431 (alpha_find_saved_regs): Use alpha_sigcontext_addr. 10432 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr. 10433 * alpha-linux-tdep.c: Include frame.h. 10434 (alpha_linux_sigcontext_addr): New function. 10435 (alpha_linux_init_abi): Set tdep->sigcontext_addr to 10436 alpha_linux_sigcontext_addr. 10437 * alpha-osf1-tdep.c: Include gdbcore.h. 10438 (alpha_osf1_sigcontext_addr): New function. 10439 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to 10440 alpha_osf1_sigcontext_addr. 10441 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove. 10442 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove. 10443 104442002-04-26 Andrew Cagney <ac131313@redhat.com> 10445 10446 * stack.c (selected_frame_level): 10447 (select_frame): Do not set selected_frame_level. 10448 * frame.h (selected_frame_level): Delete declaration. 10449 104502002-04-26 Andrew Cagney <ac131313@redhat.com> 10451 10452 * rs6000-tdep.c (rs6000_gdbarch_init): Only set 10453 convert_from_func_ptr-addr when AIX / PowerOpen. 10454 104552002-04-25 Andrew Cagney <ac131313@redhat.com> 10456 10457 * valops.c (hand_function_call): Call 10458 generic_save_call_dummy_addr. 10459 * frame.h (generic_save_call_dummy_addr): Declare. 10460 * blockframe.c (struct dummy_frame): Add fields call_lo and 10461 call_hi. 10462 (generic_find_dummy_frame): Check for PC in range call_lo to 10463 call_hi instead of entry_point_address. 10464 (generic_pc_in_call_dummy): Search the dummy frames for a PC in 10465 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK. 10466 (generic_save_call_dummy_addr): New function. 10467 104682002-04-24 David S. Miller <davem@redhat.com> 10469 10470 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates 10471 sparc_skip_prologue. 10472 (sparc_skip_prologue): Kill frameless_p arg, and use line number 10473 information to find prologue when possible. 10474 (sparc_prologue_frameless_p): Call examine_prologue directly. 10475 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call. 10476 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed 10477 second argument. 10478 (SKIP_PROLOGUE): Likewise. 10479 104802002-04-25 Jason Thorpe <thorpej@wasabisystems.com> 10481 10482 * alpha-tdep.c (alpha_skip_prologue_internal): Remove 10483 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to 10484 indicate that the condition it was testing is always true. 10485 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove. 10486 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto. 10487 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto. 10488 104892002-04-25 Jason Thorpe <thorpej@wasabisystems.com> 10490 10491 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members. 10492 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize 10493 tdep->jb_pc and tdep->jb_elt_size. 10494 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise. 10495 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise. 10496 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise. 10497 * alpha-nat.c (get_longjmp_target): Remove. 10498 (JB_ELEMENT_SIZE): Ditto. 10499 (JB_PC): Ditto. 10500 * alpha-tdep.c (alpha_get_longjmp_target): New function. 10501 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the 10502 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target 10503 to alpha_get_longjmp_target. 10504 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size. 10505 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove. 10506 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove. 10507 105082002-04-25 Andrew Cagney <ac131313@redhat.com> 10509 10510 * README: Update to GDB 5.2. 10511 105122002-04-25 Andrew Cagney <ac131313@redhat.com> 10513 10514 * gdbarch.sh (LC_ALL): Set to `c'. 10515 105162002-04-25 Theodore A. Roth <troth@verinet.com> 10517 10518 * avr-tdep.c: Ran through gdb_indent.sh. 10519 105202002-04-25 Theodore A. Roth <troth@verinet.com> 10521 10522 * MAINTAINERS: Add myself as AVR maintainer. 10523 * NEWS: Note new target avr. 10524 105252002-04-25 Theodore A. Roth <troth@verinet.com> 10526 10527 * Makefile.in: Add support for AVR target. 10528 * configure.tgt: Add support for AVR target. 10529 * avr-tdep.c: New file 10530 * config/avr/avr.mt: New file. 10531 105322002-04-25 Theodore A. Roth <troth@verinet.com> 10533 10534 * MAINTAINERS: Add myself to write-after-approval. 10535 105362002-04-24 Pierre Muller <ics.u-strasbg.fr> 10537 10538 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,... 10539 with fprintf_unfiltered (gdb_stderr,.... 10540 105412002-04-25 Pierre Muller <muller@ics.u-strasbg.fr> 10542 10543 Fix PR gdb/508. 10544 * symfile.c (add_filename_language): Fix wrong xrealloc size argument. 10545 105462002-04-25 Pierre Muller <muller@ics.u-strasbg.fr> 10547 10548 * p-exp.y: Also use new prev_lexptr variable 10549 to improve error reporting. Based on Michael Snyder 10550 2002-04-24 dated patch to c-exp.y. 10551 105522002-04-25 Jason Thorpe <thorpej@wasabisystems.com> 10553 10554 * alpha-tdep.c (alpha_breakpoint_from_pc): New function. 10555 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to 10556 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset 10557 to 0. 10558 * config/alpha/tm-alpha.h: Remove forward decls of struct type 10559 and struct value. 10560 (FUNCTION_START_OFFSET): Remove. 10561 (BREAKPOINT): Ditto. 10562 105632002-04-25 Jason Thorpe <thorpej@wasabisystems.com> 10564 10565 * MAINTAINERS: Reflect that multi-arch is enabled for VAX. 10566 * NEWS: Ditto. 10567 105682002-04-24 Jason Thorpe <thorpej@wasabisystems.com> 10569 10570 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function. 10571 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to 10572 alpha_linux_pc_in_sigtramp. 10573 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function. 10574 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to 10575 alpha_osf1_pc_in_sigtramp. 10576 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove. 10577 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function. 10578 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to 10579 alphafbsd_pc_in_sigtramp. 10580 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function. 10581 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to 10582 alphanbsd_pc_in_sigtramp. 10583 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove. 10584 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove. 10585 105862002-04-24 Jason Thorpe <thorpej@wasabisystems.com> 10587 10588 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o. 10589 105902002-04-24 Jason Thorpe <thorpej@wasabisystems.com> 10591 10592 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and 10593 alphanbsd-tdep.c. 10594 (alphanbsd-nat.o): New dependency list. 10595 (alphanbsd-tdep.o): Ditto. 10596 * NEWS: Note new native NetBSD/alpha configuration. 10597 * alphanbsd-nat.c: New file. 10598 * alphanbsd-tdep.c: Ditto. 10599 * configure.host (alpha*-*-netbsd*): New host. 10600 * configure.tgt (alpha*-*-netbsd*): New target. 10601 * config/alpha/nbsd.mh: New file. 10602 * config/alpha/nbsd.mt: Ditto. 10603 * config/alpha/nm-nbsd.h: Ditto. 10604 * config/alpha/tm-nbsd.h: Ditto. 10605 106062002-04-24 Jason Thorpe <thorpej@wasabisystems.com> 10607 10608 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c. 10609 (alpha-osf1-tdep.o): New dependency list. 10610 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset 10611 and skip_sigtramp_frame members. 10612 * alpha-linux-tdep.c: Include gdbcore.h. 10613 (alpha_linux_sigtramp_offset): Change return type to LONGEST. 10614 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset. 10615 * alpha-osf1-tdep.c: New file. 10616 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to 10617 alpha-osf1-dep.c. 10618 (alpha_frame_past_sigtramp_frame): New function. 10619 (alpha_dynamic_sigtramp_offset): Ditto. 10620 (alpha_proc_desc_is_dyn_sigtramp): Ditto. 10621 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto. 10622 (ALPHA_PROC_SIGTRAMP_MAGIC): Define. 10623 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp. 10624 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp. 10625 (find_proc_desc): Use alpha_dynamic_sigtramp_offset. 10626 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame. 10627 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp. 10628 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp. 10629 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset 10630 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code 10631 to find_solib_trampoline_target. 10632 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o. 10633 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h. 10634 (SKIP_TRAMPOLINE_CODE): Remove. 10635 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto. 10636 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto. 10637 (DYNAMIC_SIGTRAMP_OFFSET): Ditto. 10638 (FRAME_PAST_SIGTRAMP_FRAME): Ditto. 10639 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove. 10640 (PROC_SIGTRAMP_MAGIC): Ditto. 10641 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto. 10642 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto. 10643 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto. 10644 (DYNAMIC_SIGTRAMP_OFFSET): Ditto. 10645 (FRAME_PAST_SIGTRAMP_FRAME): Ditto. 10646 106472002-04-24 Jason Thorpe <thorpej@wasabisystems.com> 10648 10649 * NEWS: Note that Alpha targets are now multi-arch. 10650 106512002-04-24 Michael Snyder <msnyder@redhat.com> 10652 10653 * parser-defs.h (prev_lexptr): New external variable. 10654 * parse.c (parse_exp_1): Set prev_lexptr to null before 10655 calling the language-specific parser. 10656 * c-exp.y (yylex): Set prev_lexptr to start of current token. 10657 (yyerror): Use prev_lexptr in error reporting. 10658 106592002-04-24 Daniel Jacobowitz <drow@mvista.com> 10660 10661 * config/i386/tm-linux.h: Define FILL_FPXREGSET. 10662 * gregset.h: If FILL_FPXREGSET is defined, provide 10663 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset. 10664 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET 10665 is defined, call fill_fpxregset. 10666 106672002-04-24 Roland McGrath <roland@frob.com> 10668 10669 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here. 10670 * i386gnu-nat.c [HAVE_SYS_PROCFS_H] 10671 (supply_gregset, supply_fpregset): New functions. 10672 10673 * gnu-nat.c (gnu_find_memory_regions): New function. 10674 (init_gnu_ops): Set `to_find_memory_regions' hook to that. 10675 (gnu_xfer_memory): Add a cast. 10676 106772002-04-24 Michael Snyder <msnyder@redhat.com> 10678 10679 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the 10680 loop. Add handling for "str lr, [sp, #-4]!" and for saves 10681 of argument regs ("str r(0123), [r11, #-nn"]). 10682 (arm_skip_prologue): Better handling for frameless functions. 10683 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]". 10684 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn]. 10685 10686Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com> 10687 10688 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor 10689 NUM_PSEUDO_REGS can be used. 10690 106912002-04-24 Andrew Cagney <ac131313@redhat.com> 10692 10693 * arch-utils.h: Update copyright. 10694 10695 * gdbarch.sh (PC_IN_SIGTRAMP): Add. 10696 * gdbarch.h, gdbarch.c: Re-generate. 10697 10698 * inferior.h (IN_SIGTRAMP): Delete definition. 10699 * arch-utils.c (legacy_pc_in_sigtramp): New function. 10700 * arch-utils.h (legacy_pc_in_sigtramp): Declare. 10701 10702 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP. 10703 (mips_dump_tdep): Do not print value of IN_SIGTRAMP. 10704 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP. 10705 (find_proc_framesize): Ditto. 10706 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto. 10707 (alpha_init_extra_frame_info): Ditto. 10708 * infrun.c (handle_inferior_event): Ditto. 10709 (handle_inferior_event): Ditto. 10710 (check_sigtramp2): Ditto. 10711 * blockframe.c (create_new_frame): Ditto. 10712 (get_prev_frame): Ditto. 10713 * ppc-linux-tdep.c: Update comments. 10714 * i386-linux-tdep.c: Update comments. 10715 * breakpoint.c (bpstat_what): Update comment. 10716 107172002-04-24 David S. Miller <davem@redhat.com> 10718 10719 * i960-tdep.c (register_in_window_p): New function. 10720 (i960_find_saved_register): Use it instead of 10721 REGISTER_IN_WINDOW_P. 10722 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete. 10723 10724 * symtab.h (find_stab_function_addr): Kill extern. 10725 * minsyms.c (find_stab_function_addr): Remove from here... 10726 * dbxread.c: ... to here, and mark it static. 10727 107282002-04-20 David S. Miller <davem@redhat.com> 10729 10730 * sparc-tdep.c (sparc_pop_frame): Only need to allocate 10731 SPARC_INTREG_SIZE * 16 bytes for reg_temp. 10732 107332002-04-21 David S. Miller <davem@redhat.com> 10734 10735 * remote-vxsparc.c (vx_read_register): Fix typo, we want 10736 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR. 10737 (vx_write_register): Likewise. 10738 107392002-04-23 J. Brobecker <brobecker@gnat.com> 10740 10741 * source.c (is_regular_file): New function. 10742 (openp): Check wether file to open is a regular file 10743 to avoid opening directories. 10744 107452002-04-22 Jason Thorpe <thorpej@wasabisystems.com> 10746 10747 * findvar.c (extract_signed_integer): Cast printf argument 10748 to suppress format warning. 10749 (extract_unsigned_integer): Likewise. 10750 * infcmd.c (registers_info): Likewise. 10751 * top.c (get_prompt_1): Likewise. 10752 * valops.c (value_assign): Likewise. 10753 * valprint.c (print_decimal): Likewise. 10754 107552002-04-22 H.J. Lu (hjl@gnu.org) 10756 10757 * c-exp.y (typebase): Support 10758 10759 [long|long long|short] [signed|unsigned] [int|] 10760 10761 and 10762 10763 signed [long|long long|short] int 10764 107652002-04-22 Jason Thorpe <thorpej@wasabisystems.com> 10766 10767 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h), 10768 and vax-tdep.h. 10769 * vax-tdep.h: New file. 10770 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h. 10771 Make several routines static. 10772 (vax_get_saved_register): New function. 10773 (vax_gdbarch_init): New function. 10774 (_initialize_vax_tdep): Register vax_gdbarch_init. 10775 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL. 10776 Remove macros now under the control of gdbarch. 10777 107782002-04-22 Michael Snyder <msnyder@redhat.com> 10779 10780 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn". 10781 Some whitespace and coding standards tweaks. 10782 107832002-04-22 Jason Thorpe <thorpej@wasabisystems.com> 10784 10785 * vax-tdep.c: Include regcache.h. 10786 (vax_call_dummy_words): New. 10787 (sizeof_vax_call_dummy_words): New. 10788 (vax_fix_call_dummy): New function. 10789 (vax_saved_pc_after_call): Ditto. 10790 * config/vax/tm-vax.h: Don't include regcache.h. 10791 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call. 10792 (CALL_DUMMY): Remove. 10793 (CALL_DUMMY_WORDS): Define. 10794 (SIZEOF_CALL_DUMMY_WORDS): Define. 10795 (FIX_CALL_DUMMY): Use vax_fix_call_dummy. 10796 107972002-04-18 Michael Snyder <msnyder@redhat.com> 10798 10799 * arm-tdep.h: Change regnum defines to enums for ease of debugging. 10800 108012002-04-22 Jason Thorpe <thorpej@wasabisystems.com> 10802 10803 * vax-tdep.c (vax_frame_chain): New function. 10804 (vax_push_dummy_frame): Ditto. 10805 (vax_pop_frame): Ditto. 10806 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain. 10807 (FRAMELESS_FUNCTION_INVOCATION): Use 10808 generic_frameless_function_invocation_not. 10809 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame. 10810 (POP_FRAME): Use vax_pop_frame. 10811 108122002-04-22 Jason Thorpe <thorpej@wasabisystems.com> 10813 10814 * vax-tdep.c (vax_store_struct_return): New function. 10815 (vax_extract_return_value): Ditto. 10816 (vax_store_return_value): Ditto. 10817 (vax_extract_struct_value_address): Ditto. 10818 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use 10819 vax_store_struct_return. 10820 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value. 10821 (STORE_RETURN_VALUE): Use vax_store_return_value. 10822 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address. 10823 108242002-04-22 Jason Thorpe <thorpej@wasabisystems.com> 10825 10826 * vax-tdep.c (vax_frame_saved_pc): New function. 10827 (vax_frame_args_address_correct): Ditto. 10828 (vax_frame_args_address): Ditto. 10829 (vax_frame_locals_address): Ditto. 10830 (vax_frame_num_args): Move code to be in proximity to 10831 other frame-related functions. 10832 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan. 10833 (FRAME_SAVED_PC): Use vax_frame_saved_pc. 10834 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct. 10835 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address. 10836 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address. 10837 108382002-04-22 H.J. Lu (hjl@gnu.org) 10839 10840 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and 10841 includedir. 10842 108432002-04-22 Jason Thorpe <thorpej@wasabisystems.com> 10844 10845 * vax-tdep.c (vax_frame_init_saved_regs): New function. 10846 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove. 10847 (FRAME_INIT_SAVED_REGS): New macro. 10848 108492002-04-22 Jason Thorpe <thorpej@wasabisystems.com> 10850 10851 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd. 10852 108532002-04-22 Jason Thorpe <thorpej@wasabisystems.com> 10854 10855 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants 10856 where needed. 10857 (fetch_osf_core_registers): Likewise. 10858 (supply_gregset): Likewise. 10859 108602002-04-22 J. Brobecker <brobecker@gnat.com> 10861 10862 * symfile.h (get_section_index): Define. 10863 * symfile.c (get_section_index): New function. 10864 * mdebugread.c (SC_IS_SBSS): New macro. 10865 (SC_IS_BSS): Return true for the scBss storage class only, as 10866 the scSBss storage class refers to the .sbss section. 10867 (parse_partial_symbols): Discard the symbols which associated 10868 section does not exist. 10869 Make sure to use the .sbss section index for symbols which 10870 storage class is scBss, rather than using the .bss section index. 10871 108722002-04-22 Jason Thorpe <thorpej@wasabisystems.com> 10873 10874 * vax-tdep.c: Update copyright years. 10875 (vax_register_name): New function. 10876 (vax_register_byte): Ditto. 10877 (vax_register_raw_size): Ditto. 10878 (vax_register_virtual_size): Ditto. 10879 (vax_register_virtual_type): Ditto. 10880 * config/vax/tm-vax.h: Update copyright years. 10881 (REGISTER_NAMES): Remove. 10882 (REGISTER_NAME): Define. 10883 (REGISTER_BYTE): Use vax_register_byte. 10884 (REGISTER_RAW_SIZE): Use vax_register_raw_size. 10885 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size. 10886 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type. 10887 108882002-04-21 Andrew Cagney <ac131313@redhat.com> 10889 10890 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore 10891 declaration 10892 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error. 10893 108942002-04-21 David S. Miller <davem@redhat.com> 10895 10896 * arch-utils.c (generic_prologue_frameless_p): Kill 10897 SKIP_PROLOGUE_FRAMELESS_P code. 10898 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete 10899 references. 10900 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New. 10901 * arc-tdep.c (arc_prologue_frameless_p): Implement. 10902 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete 10903 references. 10904 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New. 10905 * sparc-tdep.c (sparc_prologue_frameless_p): Implement. 10906 (sparc_gdbarch_init): Pass it to 10907 set_gdbarch_prologue_frameless_p. 10908 109092002-04-21 Jason Thorpe <thorpej@wasabisystems.com> 10910 10911 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c. 10912 (alphabsd-nat.o): New dependency list. 10913 109142002-04-21 Jason Thorpe <thorpej@wasabisystems.com> 10915 10916 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and 10917 alphafbsd-tdep.c. 10918 (alpha-linux-tdep.o): New dependency list. 10919 (alphafbsd-tdep.o): Likewise. 10920 109212002-04-21 Jason Thorpe <thorpej@wasabisystems.com> 10922 10923 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset 10924 to here... 10925 * alpha-tdep.c: ...from here. 10926 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o. 10927 109282002-04-21 Jason Thorpe <thorpej@wasabisystems.com> 10929 10930 * config/alpha/tm-alpha.h: Move alpha_software_single_step 10931 prototype from here... 10932 * alpha-tdep.h: ...to here. 10933 109342002-04-21 Andrew Cagney <ac131313@redhat.com> 10935 10936 * frame.h (selected_frame_level): Document as deprecated. 10937 (frame_relative_level): Declare. 10938 * stack.c (frame_relative_level): New function. 10939 (selected_frame_level): Document as deprecated. 10940 (select_frame): Do not set the selected_frame_level. 10941 10942 * stack.c (frame_info, record_selected_frame): Update. 10943 (frame_command, current_frame_command): Update. 10944 (up_silently_base, up_command, down_silently_base): Update. 10945 (down_command): Update. 10946 * inflow.c (kill_command): Update. 10947 * tracepoint.c (finish_tfind_command): Update. 10948 * corelow.c (core_open): Update. 10949 * thread.c (info_threads_command): Update. 10950 (do_captured_thread_select): Update. 10951 * infcmd.c (finish_command): Update. 10952 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update. 10953 109542002-04-21 Jason Thorpe <thorpej@wasabisystems.com> 10955 10956 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove. 10957 109582002-04-21 Andrew Cagney <ac131313@redhat.com> 10959 10960 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return 10961 type const. 10962 109632002-04-21 Jason Thorpe <thorpej@wasabisystems.com> 10964 10965 * alphafbsd-tdep.c: Update copyright years. Include 10966 alpha-tdep.h. 10967 (alphafbsd_use_struct_convention): Make static. 10968 (alphafbsd_init_abi): New function. 10969 (_initialize_alphafbsd_tdep): New function. 10970 * config/alpha/tm-fbsd.h: Update copyright years. 10971 (USE_STRUCT_CONVENTION): Remove. 10972 109732002-04-21 Jason Thorpe <thorpej@wasabisystems.com> 10974 10975 * alpha-tdep.c (alpha_abi_handler): New structure to describe 10976 an Alpha ABI variant. 10977 (alpha_abi_handler_list): Declare. 10978 (alpha_gdbarch_register_os_abi): New function. 10979 (alpha_gdbarch_init): Give registered ABI variant handlers a 10980 chance to tweak the gdbarch once we have set up defaults. 10981 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi. 10982 109832002-04-21 Jason Thorpe <thorpej@wasabisystems.com> 10984 10985 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double 10986 to standard_coerce_float_to_double. 10987 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove. 10988 109892002-04-21 Jason Thorpe <thorpej@wasabisystems.com> 10990 10991 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member. 10992 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address 10993 from gdbarch_tdep rather than a constant. 10994 (alpha_gdbarch_init): Initialize tdep->vm_min_address to 10995 the default text address for all Alpha Unix ABIs. 10996 (alpha_dump_tdep): Report the value of tdep->vm_min_address. 10997 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete. 10998 109992002-04-21 Jason Thorpe <thorpej@wasabisystems.com> 11000 11001 * alpha-tdep.h: New file. Includes several Alpha target constants 11002 taken from... 11003 * config/alpha/tm-alpha.h: ...here. Remove macros that we now 11004 let gdbarch deal with. 11005 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL. 11006 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd 11007 to dependency list. 11008 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted 11009 Alpha target register names. 11010 * alphabsd-nat.c: Likewise. 11011 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted 11012 Alpha target register names. Make serveral routines static. 11013 (alpha_get_saved_register): New function. 11014 (alpha_abi_names): New. 11015 (process_note_abi_tag_sections): New function. 11016 (get_elfosabi): New function. 11017 (alpha_gdbarch_init): New function. 11018 (alpha_dump_tdep): New function. 11019 (_initialize_alpha_tdep): Register alpha_gdbarch_init. 11020 110212002-04-21 Andrew Cagney <ac131313@redhat.com> 11022 11023 * frame.c (find_saved_register): Delete #ifdef 11024 HAVE_REGISTER_WINDOWS code. 11025 * config/sparc/tm-sparc.h: Update comments. 11026 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro. 11027 110282002-04-21 Andrew Cagney <ac131313@redhat.com> 11029 11030 * i960-tdep.c (i960_find_saved_register): New function. 11031 (i960_get_saved_register): New function. 11032 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define. 11033 (i960_get_saved_register): Declare. 11034 * config/i960/tm-i960.h, i960-tdep.c: Update copyright. 11035 110362002-04-20 David S. Miller <davem@redhat.com> 11037 11038 * sparc-nat.c (store-inferior_registers): Fix ambiguous else. 11039 110402002-04-20 Andrew Cagney <ac131313@redhat.com> 11041 11042 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs 11043 instead of NUM_PSEUDO_REGS. 11044 110452002-04-20 David S. Miller <davem@redhat.com> 11046 11047 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to 11048 GDB_MULTI_ARCH_PARTIAL 11049 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not 11050 define, let tm-sp64.h do it. 11051 110522002-04-20 Jason Thorpe <thorpej@wasabisystems.com> 11053 11054 * frame.c (find_saved_register): Avoid a NULL pointer 11055 dereference and actually walk the frame list. 11056 110572002-04-20 Andrew Cagney <ac131313@redhat.com> 11058 11059 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures 11060 sorted in most most-recent-used order. Document. 11061 * gdbarch.h, gdbarch.c: Regenerate. 11062 110632002-04-19 Andrew Cagney <ac131313@redhat.com> 11064 11065 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame 11066 instead of ->prev. 11067 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev. 11068 * s390-tdep.c (s390_frame_chain): Do not use ->prev. 11069 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain() 11070 instead of ->prev. 11071 110722002-04-19 Elena Zannoni <ezannoni@redhat.com> 11073 11074 Fix PR gdb/471. 11075 * gdbtypes.c (init_simd_type): Rewrite using new functions. 11076 (build_builtin_type_vec128): Ditto. 11077 (append_composite_type_field): Fix calculation of type length in 11078 union case. 11079 110802002-04-19 Eli Zaretskii <eliz@is.elta.co.il> 11081 11082 * config/djgpp/README: Update. 11083 11084 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a 11085 compiler warnings. 11086 110872002-04-19 Jason Thorpe <thorpej@wasabisystems.com> 11088 11089 * alpha-tdep.c (setup_arbitrary_frame): Rename... 11090 (alpha_setup_arbitrary_frame): ...to this. 11091 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update 11092 for alpha_setup_arbitrary_frame. 11093 110942002-04-18 Andrew Cagney <cagney@redhat.com> 11095 11096 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer. 11097 * gdbarch.h, gdbarch.c: Regenerate. 11098 11099 * defs.h (breakpoint_from_pc_fn): Delete type definition. 11100 * target.h (memory_breakpoint_from_pc): Update declaration. 11101 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto. 11102 11103 * arch-utils.c (legacy_breakpoint_from_pc): Update return type. 11104 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto. 11105 * mem-break.c (memory_breakpoint_from_pc): Ditto. 11106 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto. 11107 * s390-tdep.c (s390_breakpoint_from_pc): Ditto 11108 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto. 11109 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto. 11110 * mips-tdep.c (mips_breakpoint_from_pc): Ditto. 11111 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto. 11112 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto. 11113 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto. 11114 * arch-utils.c (legacy_breakpoint_from_pc): Ditto.. 11115 11116 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a 11117 const pointer. 11118 * monitor.c (monitor_insert_breakpoint): Ditto. 11119 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'. 11120 11121 * config/mcore/tm-mcore.h: Update copyright. 11122 * mem-break.c: Ditto. 11123 * xstormy16-tdep.c: Ditto. 11124 111252002-04-18 Pierre Muller <muller@ics.u-strasbg.fr> 11126 11127 * p-exp.y: Add precedence rule for '^' token. 11128 This removes the shift/reduce conflicts. 11129 Remove the comment concerning these shift/reduce conflicts. 11130 111312002-04-18 Elena Zannoni <ezannoni@redhat.com> 11132 11133 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro. 11134 (registers_powerpc_nofp): New register set for processors 11135 without floating point unit. 11136 111372002-04-18 David S. Miller <davem@redhat.com> 11138 11139 * MAINTAINERS: Add myself to write-after-approval. 11140 111412002-04-17 Michael Snyder <msnyder@redhat.com> 11142 11143 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm. 11144 111452002-04-17 Andrew Cagney <ac131313@redhat.com> 11146 11147 * rs6000-tdep.c (frame_initial_stack_address): Use 11148 frame_register_read to read the alloca_reg. 11149 111502002-04-17 Andrew Cagney <ac131313@redhat.com> 11151 11152 * frame.c (find_saved_register): Find saved registers in the next 11153 not prev frame. 11154 Fix PR gdb/365. 11155 111562002-04-17 Andrew Cagney <ac131313@redhat.com> 11157 11158 * gdbarch.sh (LANG): Set to ``c''. 11159 111602002-04-15 Andrew Cagney <ac131313@redhat.com> 11161 11162 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems. 11163 111642002-04-15 Andrew Cagney <ac131313@redhat.com> 11165 11166 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h". 11167 Update copyright. 11168 11169 * hpread.c (hpread_get_lntt): Add declaration. 11170 Also fix PR gdb/391. 11171 111722002-04-14 Andrew Cagney <ac131313@redhat.com> 11173 11174 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6. 11175 * aclocal.m4, configure: Re-generate. 11176 Fix PR gdb/391. 11177 111782002-04-14 Elena Zannoni <ezannoni@redhat.com> 11179 11180 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN 11181 instead of tm_print_insn. 11182 111832002-04-14 Elena Zannoni <ezannoni@redhat.com> 11184 11185 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo. 11186 111872002-04-14 Andrew Cagney <ac131313@redhat.com> 11188 11189 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro. 11190 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro. 11191 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE. 11192 111932002-04-12 Don Howard <dhoward@redhat.com> 11194 11195 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value: 11196 max_user_call_depth. 11197 (init_cmd_lists): Initialize the new value; 11198 * cli/cli-script.c (execute_user_command): Limit the call depth of 11199 user defined commands. This avoids a core-dump when user commands 11200 are infinitly recursive. 11201 112022002-04-12 Kevin Buettner <kevinb@redhat.com> 11203 11204 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''. 11205 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset'' 11206 from tdep struct instead of DEFAULT_LR_SAVE. 11207 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''. 11208 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete. 11209 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete. 11210 112112002-04-12 Michael Snyder <msnyder@redhat.com> 11212 11213 * Remote.c: Spelling fix. 11214 * gcore.c (default_derive_heap_segment): Use bfd_section_name. 11215 If no symbol found for "sbrk", try "_sbrk". 11216 (make_output_phdrs): Use bfd_section_name. 11217 (gcore_copy_callback): Use bfd_section_name. 11218 * eval.c: Indentation fix-ups. 11219 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent, 11220 in case it gets applied to an address that is already 11221 in the instruction space. 11222 * cli/cli-decode.c (help_list): Allow long lines to wrap. 11223 * symfile.c: Fix indentation, long lines. 11224 * source.c: White space fix-up. 11225 112262002-04-12 Andrew Cagney <cagney@redhat.com> 11227 11228 * defs.h (read_relative_register_raw_bytes): Delete declaration. 11229 * frame.c (frame_register_read): New function. Return non-zero on 11230 success. 11231 (read_relative_register_raw_bytes_for_frame): Delete. 11232 (read_relative_register_raw_bytes): Delete. 11233 * frame.h (frame_register_read): Declare. 11234 * d30v-tdep.c: Update Copyright. Use frame_register_read. 11235 * sh-tdep.c: Ditto. 11236 * infcmd.c (do_registers_info): Ditto. 11237 * hppa-tdep.c: Ditto. 11238 * rs6000-tdep.c: Ditto. 11239 * h8500-tdep.c: Ditto. 11240 * mips-tdep.c: Ditto. 11241 * h8300-tdep.c: Ditto. 11242 * z8k-tdep.c: Ditto. 11243 112442002-04-12 Kevin Buettner <kevinb@redhat.com> 11245 11246 From Jimi X <jimix@watson.ibm.com>: 11247 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for 11248 64-bit SysV ABI. 11249 112502002-04-12 Kevin Buettner <kevinb@redhat.com> 11251 11252 From Jimi X <jimix@watson.ibm.com>: 11253 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from 11254 bfd info. 11255 112562002-04-12 Kevin Buettner <kevinb@redhat.com> 11257 11258 From Jimi X <jimix@watson.ibm.com>: 11259 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define 11260 register sets for these processor variants. 11261 112622002-04-11 Daniel Jacobowitz <drow@mvista.com> 11263 11264 * regformats/reg-ppc.dat: Support FPSCR. 11265 112662002-04-11 Kevin Buettner <kevinb@redhat.com> 11267 11268 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''. 11269 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers): 11270 Add fpscr as an invalid/unfetchable register. 11271 * ppc-linux-nat.c (ppc_register_u_addr, store_register) 11272 (fetch_ppc_registers, store_ppc_registers, supply_fpregset) 11273 (fill_fpregset): Add support for register fpscr. 11274 (fetch_ppc_registers, store_ppc_registers, supply_gregset) 11275 (fill_gregset): Account for the fact that register ``mq'' might 11276 not exist. 11277 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr. 11278 (registers_power): Add fpscr to register set at slot 71. 11279 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't 11280 exist on most PPC architectures. Initialize ppc_fpscr_regnum. 11281 112822002-04-11 Michael Snyder <msnyder@redhat.com> 11283 11284 * configure.in: Autoconfiscate _SYSCALL32 define for solaris. 11285 * configure: Regenerate. 11286 * config.in: Regenerate. 11287 * acconfig.h: Add define for _SYSCALL32. 11288 * core-sol2.c: Remove #define _SYSCALL32. 11289 * solib-legacy.c: Remove #define _SYSCALL32. 11290 112912002-04-10 Andrew Cagney <ac131313@redhat.com> 11292 11293 * stack.c (select_frame): Cleanup internal error message, do not 11294 use %p. 11295 112962002-04-10 Andrew Cagney <ac131313@redhat.com> 11297 11298 * stack.c (select_frame): Check that selected_frame and the 11299 specified level are as expected. 11300 * blockframe.c (get_prev_frame): Set the `level' from next_frame. 11301 Update copyright. 11302 * frame.h (struct frame_info): Add field `level'. Update 11303 copyright. 11304 Work-in-progress PR gdb/464. 11305 113062002-04-10 Andrew Cagney <ac131313@redhat.com> 11307 11308 * maint.c (maint_print_section_info): Rename print_section_info. 11309 (print_bfd_section_info, print_objfile_section_info): Update. 11310 * inferior.h (struct gdbarch): Add opaque declaration. 11311 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh. 11312 * gdbarch.h: Regenerate. 11313 113142002-04-10 Michal Ludvig <mludvig@suse.cz> 11315 11316 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete. 11317 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h. 11318 (kernel_u_size): Added. 11319 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete. 11320 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h. 11321 113222002-04-04 Jim Ingham <jingham@apple.com> 11323 11324 * valarith.c (find_size_for_pointer_math): New function, either returns 11325 the size for a pointer's target, returns 1 for void *, or errors for 11326 incomplete types. 11327 (value_add, value_sub): use find_size_for_pointer_math. 11328 113292002-04-09 Daniel Jacobowitz <drow@mvista.com> 11330 11331 * linux-low.c (linux_look_up_symbols): New hook. 11332 (linux_target_ops): Add linux_look_up_symbols. 11333 * remote-utils.c (decode_address): New function. 11334 (look_up_one_symbol): New function. 11335 * server.c (handle_query): Call target look_up_symbols hook. 11336 * server.h (look_up_one_symbol): Add prototype. 11337 * target.h (struct target_ops): Add look_up_symbols hook. 11338 113392002-04-09 Andrew Cagney <ac131313@redhat.com> 11340 11341 * frame.c (read_relative_register_raw_bytes_for_frame): Do not 11342 override FP_REGNUM with frame->fp. Update copyright. 11343 * parse.c (num_std_regs, std_regs): Delete. 11344 (target_map_name_to_register): Do not search std_regs. Update 11345 function description. 11346 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete 11347 declarations. Update copyright. 11348 Fix PR gdb/251. 11349 113502002-04-09 Daniel Jacobowitz <drow@mvista.com> 11351 11352 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer 11353 after the last symbol in a block. 11354 113552002-04-09 Pierre Muller <muller@ics.u-strasbg.fr> 11356 11357 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this 11358 is non zero as a found symbol. 11359 113602002-04-08 Andrew Cagney <ac131313@redhat.com> 11361 11362 * findvar.c: Include "builtin-regs.h". 11363 (value_of_register): Call value_of_builtin_reg when applicable. 11364 * parse.c: Include "builtin-regs.h" and "gdb_assert.h". 11365 (target_map_name_to_register): Call 11366 builtin_reg_map_name_to_regnum. 11367 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c. 11368 (COMMON_OBS): Add builtin-regs.o and std-regs.o. 11369 (builtin_regs_h): Define. 11370 (builtin-regs.o): New target. 11371 (findvar.o): Add $(builtin_regs_h). 11372 * builtin-regs.c, builtin-regs.h: New files. 11373 * std-regs.c: New file. 11374 Partial fix for PR gdb/251. 11375 113762002-04-08 Kevin Buettner <kevinb@redhat.com> 11377 11378 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn; 11379 it's no longer required. 11380 113812002-04-08 Andrew Cagney <ac131313@redhat.com> 11382 11383 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies. 11384 113852002-04-08 Kevin Buettner <kevinb@redhat.com> 11386 11387 From Jimi X <jimix@watson.ibm.com>: 11388 * rs6000-tdep.c (rs6000_software_single_step): Use 11389 rs6000_breakpoint_from_pc() to fetch breakpoint instruction 11390 and size. Use target_insert_breakpoint() and 11391 target_remove_breakpoint() to insert and remove breakpoints 11392 instead of explicit memory reads and writes. 11393 113942002-04-08 Kevin Buettner <kevinb@redhat.com> 11395 11396 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete. 11397 * rs6000-tdep.c (rs6000_push_arguments): Eliminate 11398 ELF_OBJECT_FORMAT ifdef. 11399 114002002-04-08 Kevin Buettner <kevinb@redhat.com> 11401 11402 From Jimi X <jimix@watson.ibm.com>: 11403 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn(). 11404 114052002-04-08 Kevin Buettner <kevinb@redhat.com> 11406 11407 From Jimi X <jimix@watson.ibm.com>: 11408 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro 11409 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET. 11410 114112002-04-07 Mark Kettenis <kettenis@gnu.org> 11412 11413 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions): 11414 s/asprintf/xasprintf/. 11415 (fbsd_make_corefile_notes): s/strdup/xstrdup/. 11416 114172002-04-07 Andrew Cagney <ac131313@redhat.com> 11418 11419 I believe Jeff Law denies responsability for this one: 11420 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork. 11421 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork. 11422 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork. 11423 Work-around for PR gdb/366. 11424 114252002-04-07 Elena Zannoni <ezannoni@redhat.com> 11426 11427 * remote-e7000.c (write_small, e7000_read_inferior_memory, 11428 e7000_read_inferior_memory_large, e7000_insert_breakpoint, 11429 e7000_remove_breakpoint): Use paddr_nz() to print addresses. 11430 114312002-04-07 Elena Zannoni <ezannoni@redhat.com> 11432 11433 * sh-tdep.c (sh_fp_frame_init_saved_regs, 11434 sh_nofp_frame_init_saved_regs): Use alloca() for 'where' 11435 information. 11436 114372002-04-07 Andrew Cagney <ac131313@redhat.com> 11438 11439 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER 11440 maintainer. 11441 114422002-04-07 Andrew Cagney <ac131313@redhat.com> 11443 11444 * README (Reporting Bugs in GDB): Document the bug web page as the 11445 prefered way of submitting bugs. 11446 Fix PR gdb/402. 11447 114482002-04-06 Andrew Cagney <ac131313@redhat.com> 11449 11450 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of 11451 -1. Update comment. 11452 * gdbarch.h, gdbarch.c: Re-generate. 11453 114542002-04-07 Andreas Schwab <schwab@suse.de> 11455 11456 * m68klinux-nat.c (fill_fpregset): Properly pass address of 11457 buffer to regcache_collect. 11458 114592002-04-06 Andrew Cagney <ac131313@redhat.com> 11460 11461 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1. 11462 * gdbarch.c, gdbarch.h: Re-generate. 11463 114642002-04-06 Andrew Cagney <ac131313@redhat.com> 11465 11466 * symtab.c (lookup_symtab): Remove ``const'' from ``rp'' 11467 declaration. Fix -Werror. 11468 114692002-04-05 Daniel Jacobowitz <drow@mvista.com> 11470 11471 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap. 11472 * gdbarch.c: Regenerate. 11473 114742002-04-05 Michael Snyder <msnyder@redhat.com> 11475 11476 * breakpoint.c (clear_command): Rewrite middle section to 11477 combine two loops with identical control conditions. 11478 Add a cleanup to eliminate a memory leak. 11479 * cli/cli-dump.c (restore_section_callback): Use paddr_nz. 11480 114812002-04-05 H.J. Lu (hjl@gnu.org) 11482 11483 * solib-svr4.c (bkpt_names): Add "__start". 11484 114852002-04-04 Andrew Cagney <ac131313@redhat.com> 11486 11487 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64 11488 as test for 64 bit target. 11489 114902002-04-05 Andrew Cagney <ac131313@redhat.com> 11491 11492 * h8500-tdep.c (h8500_write_fp): Delete function. 11493 * dwarf2cfi.c (cfi_write_fp): Document as not used. 11494 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp. 11495 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp. 11496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp. 11497 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp. 11498 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp. 11499 (s390_write_fp): 11500 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp. 11501 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp. 11502 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp. 11503 (d10v_write_fp): Delete function. 11504 * inferior.h (write_fp, generic_target_write_fp): Delete 11505 declarations. 11506 * regcache.c (generic_target_write_fp): Delete function. 11507 (write_fp): Delete function. 11508 * gdbarch.sh (TARGET_WRITE_FP): Delete. 11509 * gdbarch.h, gdbarch.c: Regenerate. 11510 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro. 11511 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro. 11512 (sparc64_write_fp): Delete declaration. 11513 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro. 11514 (h8500_write_fp): Delete declaration. 11515 115162002-04-04 Andrew Cagney <ac131313@redhat.com> 11517 11518 * sparc-tdep.c (sparc64_write_fp): Delete. 11519 (sparc_push_dummy_frame): Replace write_fp call with code to store 11520 the FP directly. 11521 (sparc_gdbarch_init): Do not initialize write_fp. 11522 115232002-04-05 Kevin Buettner <kevinb@redhat.com> 11524 11525 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable 11526 clause. 11527 115282002-03-29 Jim Blandy <jimb@redhat.com> 11529 11530 * stack.c (get_selected_block): Add new argument `addr_in_block', 11531 used to return the exact code address we used to select the block, 11532 not just the block. 11533 * blockframe.c (get_frame_block, get_current_block): Same. 11534 * frame.h (get_frame_block, get_current_block, 11535 get_selected_block): Update declarations. 11536 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c, 11537 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed. 11538 115392002-04-05 Michael Snyder <msnyder@redhat.com> 11540 11541 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in 11542 warning message. 11543 115442002-04-05 J. Brobecker <brobecker@gnat.com> 11545 11546 * utils.c (xfullpath): New function. 11547 * defs.h (xfullpath): Add declaration. 11548 * source.c (openp): Use xfullpath in place of gdb_realpath to 11549 avoid resolving the basename part of filenames when the 11550 associated file is a symbolic link. This fixes a potential 11551 inconsistency between the filenames known to GDB and the 11552 filenames it prints in the annotations. 11553 * symtab.c (lookup_symtab): Use the new xfullpath function, in order 11554 to be able to match a filename with either the real filename, or 11555 the name of any symbolic link to this file. 11556 (lookup_partial_symtab): Ditto. 11557 115582002-04-04 Michael Snyder <msnyder@redhat.com> 11559 11560 * breakpoint.c: Add support for hardware breakpoints in overlays. 11561 (overlay_events_enabled): New state variable. 11562 (insert_breakpoints): Use overlay_events_enabled to decide 11563 whether to attempt to set a breakpoint at the overlay load addr. 11564 Handle bp_hardware_breakpoint as well as bp_breakpoint. 11565 (remove_breakpoint): Use overlay_events_enabled to decide 11566 whether breakpoints need to be removed from overlay load addr. 11567 Handle bp_hardware_breakpoint as well as bp_breakpoint. 11568 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays. 11569 (create_overlay_event_breakpoint, enable_overlay_breakpoints, 11570 disable_overlay_breakpoints): Update overlay_events_enabled. 11571 115722002-04-04 Daniel Jacobowitz <drow@mvista.com> 11573 11574 * dwarf2read.c (struct function_range): New. 11575 (cu_first_fn, cu_last_fn, cu_cached_fn): New. 11576 (check_cu_functions): New. 11577 (read_file_scope): Initialize global function lists. 11578 Call dwarf_decode_line after processing children. 11579 (read_func_scope): Add to global function list. 11580 (dwarf_decode_lines): Call check_cu_functions everywhere 11581 record_line is called. Call record_line with a linenumber 11582 of 0 to mark sequence ends. 11583 115842002-04-04 Michal Ludvig <mludvig@suse.cz> 11585 11586 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI 11587 change sync with glibc. 11588 115892002-04-03 Jim Blandy <jimb@redhat.com> 11590 11591 * configure.in: Call AC_C_INLINE. 11592 * configure: Regenerated. 11593 115942002-04-01 Daniel Jacobowitz <drow@mvista.com> 11595 11596 * rs6000-tdep.c: Change #include of "bfd/libcoff.h" 11597 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h". 11598 115992002-03-31 Mark Kettenis <kettenis@gnu.org> 11600 11601 * NEWS: Mention gcore support on FreeBSD/i386. 11602 11603 * fbsd-proc.c: New file. 11604 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define. 11605 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o. 11606 11607 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in 11608 while statement. 11609 116102002-03-29 Jim Blandy <jimb@redhat.com> 11611 11612 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate 11613 unescaped newlines in string literals, but newer ones don't. So 11614 escape them. 11615 116162002-03-26 Michael Snyder <msnyder@redhat.com> 11617 Andrew Cagney <cagney@redhat.com> 11618 11619 * cli/cli-dump.c: New file. Dump memory to file, 11620 restore file to memory. 11621 * cli/cli-dump.h: New file. 11622 * Makefile.in: Add rules, dependencies for cli-dump.o. 11623 * NEWS: Mention new commands. 11624 116252002-03-28 Michael Snyder <msnyder@redhat.com> 11626 11627 * symfile.c (symbol_file_add): Move test for null symbols to later. 11628 116292002-03-27 Andrew Cagney <ac131313@redhat.com> 11630 11631 From veksler at il.ibm.com: 11632 * utils.c (gdb_realpath): If canonicalize_file_name fails, return 11633 the xstrduped original path. 11634 Fix PR gdb/417. 11635 116362002-03-27 Michael Snyder <msnyder@redhat.com> 11637 11638 * breakpoint.c (_initialize_breakpoint): Clean up help string. 11639 * infcmd.c (_initialize_infcmd): Ditto. 11640 * language.c (_initialize_language): Ditto. 11641 * symfile.c (_initialize_symfile): Ditto. 11642 * top.c (_init_main): Ditto. 11643 * cli/cli-cmds.c (init_cli_cmds): Ditto. 11644 116452002-03-27 Elena Zannoni <ezannoni@redhat.com> 11646 11647 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec 11648 vector registers handling. 11649 (skip_prologue): Handle new AltiVec instructions. Fill in new 11650 fields of frame data. 11651 (frame_get_saved_regs): Fill in information for AltiVec registers. 11652 116532002-03-27 Jim Blandy <jimb@redhat.com> 11654 11655 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into 11656 a function; leave this macro here to invoke that function. 11657 (symbol_init_mangled_name): Declaration for that function. 11658 * symtab.c (symbol_init_mangled_name): New function. 11659 116602002-03-27 Andrew Cagney <ac131313@redhat.com> 11661 11662 * valarith.c: Replace strerror with safe_strerror. 11663 * tracepoint.c: Ditto. 11664 * lin-lwp.c: Ditto. 11665 * go32-nat.c: Ditto. 11666 * inflow.c: Ditto. 11667 * gnu-nat.c: Ditto. 11668 116692002-03-27 Andreas Schwab <schwab@suse.de> 11670 11671 * event-top.c (command_line_handler): Remove useless if. 11672 116732002-03-27 Andreas Jaeger <aj@suse.de> 11674 11675 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright 11676 comment. 11677 116782002-03-27 Michal Ludvig <mludvig@suse.cz> 11679 11680 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines. 11681 (x86_64_num_regs, x86_64_num_gregs): Added extern variables. 11682 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS. 11683 (x86_64_linux_dr_get_status, supply_gregset), 11684 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs. 11685 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete. 11686 (x86_64_register_info_table): Add. 11687 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add. 11688 (x86_64_register_raw_size, x86_64_register_virtual_type), 11689 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new 11690 general x86_64_register_info_table. 11691 (i386_gdbarch_init): gdbarch_register_bytes is now set 11692 dynamicaly during initialization. 11693 * regformats/reg-x86-64.dat: Synced with changes to registers above. 11694 * gdbserver/linux-x86-64-low.c: Ditto. 11695 116962002-03-27 Daniel Jacobowitz <drow@mvista.com> 11697 11698 * gdbserver/server.c (main): Call target_signal_to_host_p 11699 and target_signal_to_host on signals received from the remote. 11700 * gdbserver/remote-utils.c (prepare_resume_reply): Call 11701 target_signal_from_host on signals sent to the remote. 11702 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h". 11703 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}. 11704 117052002-03-27 Daniel Jacobowitz <drow@mvista.com> 11706 11707 * signals/signals.c: Include "server.h" in gdbserver build. 11708 (target_signal_from_name): Don't use STREQ. 11709 (_initialize_signals): Likewise. Don't include function in 11710 gdbserver build. 11711 117122002-03-27 Daniel Jacobowitz <drow@mvista.com> 11713 11714 * signals.c: Moved to... 11715 * signals/signals.c: Here. 11716 * Makefile (signals.o): Update. 11717 117182002-03-26 Jeff Law (law@redhat.com) 11719 11720 * somread.c (som_symtab_read): Remove some commented out code and 11721 updated related comments. Do not set the minimal symbol table to 11722 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope 11723 in a dynamic executable. 11724 * hppa-tdep.c (find_proc_framesize): Sanely handle the case 11725 where we are unable to find the minimal symbol for the given 11726 PC value. 11727 117282002-03-25 Jeff Law (law@redhat.com) 11729 11730 * linux-proc.c (read_mapping): Scan up to end of line for filename. 11731 117322002-03-25 Michal Ludvig <mludvig@suse.cz> 11733 11734 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch. 11735 117362002-03-23 Andrew Cagney <ac131313@redhat.com> 11737 11738 * command.h: Update copyright. 11739 (struct cmd_list_element): Replace definition with opaque 11740 declaration. 11741 (enum cmd_types): Document that it will eventually be moved to 11742 cli/cli-decode.h 11743 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros. 11744 (MALLOCED_REPLACEMENT): Delete macro. 11745 * Makefile.in (cli_decode_h): Add $(command_h). 11746 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h). 11747 * top.c: Include "cli/cli-decode.h". 11748 * completer.c: Include "cli/cli-decode.h". 11749 * maint.c: Include "cli/cli-decode.h". 11750 * cli/cli-decode.h: Include "command.h". 11751 (enum command_class): Delete. 11752 (enum cmd_types): Comment out. 11753 (enum cmd_auto_boolean): Delete. 11754 (enum var_types): Delete. 11755 117562002-03-23 Andrew Cagney <ac131313@redhat.com> 11757 11758 * cli/cli-decode.c: Include "gdb_assert.h". 11759 (add_set_or_show_cmd): New static function. 11760 (add_set_cmd): Rewrite. Use add_set_or_show_cmd. 11761 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy 11762 all fields, such as func, from the set command. 11763 117642002-03-23 Andrew Cagney <ac131313@redhat.com> 11765 11766 * MAINTAINERS (sh-elf): Change warning flag to -w. 11767 117682002-03-23 Andrew Cagney <cagney@redhat.com> 11769 11770 * defs.h (error): Add printf format attribute. 11771 * thread-db.c (thread_from_lwp): Fix error format string. 11772 * stack.c (parse_frame_specification): Ditto. 11773 * cli/cli-decode.c (undef_cmd_error): Ditto. 11774 * scm-lang.c (scm_lookup_name): Ditto. 11775 * tracepoint.c (trace_error): Ditto. 11776 * remote-utils.c (usage): Ditto. 11777 * remote.c (compare_sections_command): Ditto. 11778 Fix PR gdb/328. 11779 117802002-03-22 Andrew Cagney <ac131313@redhat.com> 11781 11782 * gdbtypes.c (append_composite_type_field): New function. 11783 (init_composite_type): New function. 11784 * gdbtypes.h (append_composite_type_field): Declare. 11785 (init_composite_type): Ditto. 11786 117872002-03-22 Elena Zannoni <ezannoni@redhat.com> 11788 11789 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New 11790 function. 11791 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export. 11792 * rs6000-tdep.c (rs6000_gdbarch_init): Use different 11793 structure returning convention for SYSV ABI case, but not 11794 for GNU/Linux, FreeBSD, or NetBSD. 11795 117962002-03-22 Daniel Jacobowitz <drow@mvista.com> 11797 11798 * symtab.h (lookup_block_symbol): Add mangled_name argument 11799 to prototype. 11800 11801 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol 11802 with new mangled_name argument. 11803 * linespec.c (decode_line_1): Likewise. 11804 * valops (value_of_this): Likewise. 11805 * symtab.c (lookup_transparent_type): Likewise. 11806 (lookup_symbol_aux): Likewise. Accept new mangled_name argument. 11807 (lookup_symbol): If we are given a mangled name, pass it down 11808 to lookup_symbol_aux. 11809 (lookup_block_symbol): If we are given a mangled name to check 11810 against, only return symbols which match it. 11811 118122002-03-22 Christopher Faylor <cgf@redhat.com> 11813 11814 * win32-nat.c (child_create_inferior): Check for proper shell to use 11815 here, in case the user changes it on the fly. 11816 (_initialize_inftarg): Remove shell path considerations. 11817 118182002-03-21 Elena Zannoni <ezannoni@redhat.com> 11819 11820 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value 11821 for gdbarch_max_register_raw_size and max_register_virtual_size. 11822 Adjust copyright year. 11823 118242002-03-21 Daniel Jacobowitz <drow@mvista.com> 11825 11826 * dbxread.c (process_one_symbol): Extend the first N_SLINE 11827 in a function to cover the entire beginning of the function 11828 as well if it does not already. 11829 118302002-03-21 Tom Rix <trix@redhat.com> 11831 11832 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32. 11833 (rs6000_ptrace64): Renamed from ptrace64. 11834 118352002-03-20 Martin M. Hunt <hunt@redhat.com> 11836 11837 * gdbserver/remote-utils.c (remote_open): Don't call 11838 getprotobyname, we're all using TCP here so just use 11839 IPPROTO_TCP. 11840 * gdbserver/gdbreplay.c (remote_open): Ditto. 11841 118422002-03-20 Martin M. Hunt <hunt@redhat.com> 11843 11844 * regcache.c (_initialize_regcache): No need to call 11845 build_regcache() at this time; it gets called whenever 11846 the gdbarch changes. 11847 118482002-03-20 David O'Brien <obrien@FreeBSD.org> 11849 11850 * sparc-nat.c: Include sys/param.h where possible. 11851 118522002-03-20 Daniel Jacobowitz <drow@mvista.com> 11853 11854 Fix PR gdb/422. 11855 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX, 11856 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX. 11857 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for 11858 complex types. 11859 * stabsread.c (rs6000_builtin_type): Likewise. 11860 (read_sun_floating_type): Likewise. 11861 118622002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 11863 11864 * stabsread.c (read_member_functions): Remove skip code for duplicate 11865 constructor/destructor methods. Use standard parsing for these 11866 methods and just do not chain them to the list of methods after 11867 parsing. 11868 118692002-03-19 Alexandre Oliva <aoliva@redhat.com> 11870 11871 * coffread.c: Remove redundant static declarations. Replace 11872 occurrences of `PTR' with `void *'. 11873 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise. 11874 * top.h (quit_cover): Likewise. 11875 * defs.h (catch_errors): Likewise. 11876 118772002-03-18 Andrew Cagney <ac131313@redhat.com> 11878 11879 * defs.h (XMALLOC): Define. 11880 * gdb-events.sh (XMALLOC): Delete macro. 11881 * gdb-events.c, gdb-events.h: Regenerate. 11882 * gdbarch.sh (XMALLOC): Delete macro. 11883 * gdbarch.c: Regenerate. 11884 * serial.c (XMALLOC): Delete macro. 11885 * ui-file.c (XMALLOC): Ditto. 11886 * ser-unix.h (XMALLOC): Ditto. 11887 * sh-tdep.c (XMALLOC): Ditto. 11888 * ui-out.c (XMALLOC): Ditto. 11889 * utils.c (XMALLOC): Ditto. 11890 * i386-tdep.c (XMALLOC): Ditto. 11891 * gdb-events.c (XMALLOC): Ditto. 11892 * d10v-tdep.c (XMALLOC): Ditto. 11893 * cli-out.c (XMALLOC): Ditto. 11894 11895 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright. 11896 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto. 11897 * ui-file.c, ui-out.c: Ditto. 11898 118992002-03-18 Andrew Cagney <ac131313@redhat.com> 11900 11901 * command.h (struct cmd_list_element): Add field context. 11902 (set_cmd_context, get_cmd_context): Declare. 11903 * cli/cli-decode.h: Ditto. 11904 * cli/cli-decode.c (get_cmd_context): New function. 11905 (set_cmd_context): New function. 11906 (add_cmd): Initialize context. 11907 Part of fixing PR gdb/145 and PR gdb/146. 11908 119092002-03-17 Andrew Cagney <ac131313@redhat.com> 11910 11911 * cli/cli-decode.c (cmd_type): New function. 11912 * command.h (cmd_type): Declare. 11913 * infrun.c (set_schedlock_func): Call function cmd_type. 11914 * kod.c (kod_set_os): Call cmd_type. 11915 * cris-tdep.c (cris_version_update): Use function cmd_type. 11916 (cris_mode_update, cris_abi_update): Ditto. 11917 11918 * command.h: (execute_cmd_post_hook): Declare. 11919 (execute_cmd_pre_hook): Declare. 11920 * cli/cli-script.c (clear_hook_in_cleanup): New function. 11921 (execute_cmd_post_hook, execute_cmd_pre_hook): New 11922 functions. Execute pre/post hook while ensuring that afterwords 11923 hook_in is cleared. 11924 * top.c (execute_command): Use execute_cmd_post_hook, and 11925 execute_cmd_pre_hook to execute pre/post commands. 11926 * infrun.c (normal_stop): Pass stop_command and not pre_hook to 11927 hook_stop_stub. 11928 (hook_stop_stub): Call execute_cmd_pre_hook. 11929 119302002-03-17 Andrew Cagney <ac131313@redhat.com> 11931 11932 * kod.c (kod_set_os): Revert previous change. Is called by ``info 11933 set'' and this leads to a core dump. Move xstrdup of 11934 operating_system to after check that it is not NULL. 11935 119362002-03-17 Andrew Cagney <ac131313@redhat.com> 11937 11938 * kod.c (kod_set_os): Remove unnecessary check that 11939 ``command->type'' is set_cmd. 11940 11941 * valprint.c (set_input_radix): Use input_radix. 11942 (set_output_radix): Use output_radix. 11943 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix 11944 isn't reverted. 11945 119462002-03-16 Andrew Cagney <ac131313@redhat.com> 11947 11948 * value.h (struct value): Delete field ``substring_addr''. Change 11949 aligner fields to force_doublest_align, force_longest_align, 11950 force_core_addr_align and force_pointer_aligh. 11951 11952 * value.h (struct value): Fix typo in above change. 11953 119542002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 11955 11956 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip, 11957 to fix internal_error from ``maintenance print architecture''. 11958 119592002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 11960 11961 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type 11962 for gcc versions after gcc-2.8.1. 11963 119642002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 11965 11966 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer 11967 for method resolution. Restore adjustment of ``this'' pointer after 11968 calling value_struct_elt, which was accidentally removed during the 11969 HP merge. 11970 119712002-03-15 Andrew Cagney <ac131313@redhat.com> 11972 11973 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to 11974 value_of_register. 11975 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to 11976 get_saved_register. 11977 * value.h (value_of_register): Update. 11978 119792002-03-14 Richard Henderson <rth@redhat.com> 11980 11981 * configure.in: Detect declaration for canonicalize_file_name. 11982 * utils.c (canonicalize_file_name): Declare, if needed. 11983 (gdb_realpath): Prefer realpath if available and usable. 11984 * config.in, configure: Rebuild. 11985 119862002-03-14 Richard Henderson <rth@redhat.com> 11987 11988 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as 11989 a constant array bound. 11990 11991 * MAINTAINERS: Add myself to write-after-approval. 11992 119932002-03-14 Michael Snyder <msnyder@redhat.com> 11994 11995 * symfile.c (syms_from_objfile): Return immediately if no syms. 11996 (symbol_file_add): Return immediately if no syms. 11997 (find_sym_fns): Return immediately if no syms. 11998 119992002-03-13 Michal Ludvig <mludvig@suse.cz> 12000 12001 * gdbserver/remote-util.c (remote_open): Print remote-side's 12002 IP address when remote debugging over the network. 12003 120042002-03-12 David O'Brien <obrien@FreeBSD.org> 12005 12006 * config/sparc/fbsd.mh: Fix copyright. 12007 * config/sparc/fbsd.mt: Likewise. 12008 120092002-03-11 Richard Earnshaw <rearnsha@arm.com> 12010 12011 * MAINTAINERS: Fix typo in name of gdb warnings option. 12012 (x86-64): Fix formating so that this can be parsed by awk. 12013 120142002-03-10 Daniel Jacobowitz <drow@mvista.com> 12015 12016 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h. 12017 * defs.h: Include "gdb/signals.h". 12018 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h. 12019 120202002-03-10 Michal Ludvig <mludvig@suse.cz> 12021 12022 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c 12023 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here 12024 from x86-64-tdep.h 12025 120262002-03-10 Daniel Jacobowitz <drow@mvista.com> 12027 Don Howard <dhoward@redhat.com> 12028 12029 * mips-tdep.c (ST0_FR): Define. 12030 (mips2_fp_compat): New function, temporarily disabled. 12031 (mips_read_fp_register_single): New function. 12032 (mips_read_fp_register_double): New function. 12033 (mips_print_register): Use them. 12034 (do_fp_register_row): Likewise. 12035 120362002-03-09 Andrew Cagney <ac131313@redhat.com> 12037 12038 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after 12039 approval''. 12040 120412002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 12042 12043 * stabsread.c (read_member_functions): Fix is_stub test for 12044 static member functions, improve comment. 12045 120462002-03-07 Richard Earnshaw <rearnsha@arm.com> 12047 12048 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'. 12049 (mywrite, mywritec, mypause, myreadc, mygets): Likewise. 12050 (_initialize_remote_rdi): Use add_set_boolean_cmd to register 12051 commands that set boolean values. 12052 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning. 12053 (arm_rdi_resume): Always initialize PC. 12054 (arm_rdi_open): Don't use rslt as a boolean. 12055 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume) 12056 (arm_rdi_fetch_registers, arm_rdi_store_registers) 12057 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill) 12058 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise. 12059 120602002-03-06 Alexandre Oliva <aoliva@redhat.com> 12061 12062 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX. 12063 * configure: Rebuilt. 12064 120652002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr> 12066 12067 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn. 12068 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead. 12069 120702002-03-06 Andrew Cagney <ac131313@redhat.com> 12071 12072 * cli/cli-decode.c (set_cmd_completer): New function. 12073 * command.h (set_cmd_completer): Declare. 12074 * cli/cli-decode.h (set_cmd_completer): Ditto. 12075 12076 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer. 12077 * cli/cli-cmds.c (init_cli_cmds): Ditto. 12078 * win32-nat.c (_initialize_inftarg): Ditto. 12079 * remote-rdi.c (_initialize_remote_rdi): Ditto. 12080 * proc-api.c (_initialize_proc_api): Ditto. 12081 * hppa-tdep.c (_initialize_hppa_tdep): Ditto. 12082 * source.c (_initialize_source): Ditto. 12083 * exec.c (_initialize_exec): Ditto. 12084 * solib.c (_initialize_solib): Ditto. 12085 * top.c (init_main): Ditto. 12086 * tracepoint.c (_initialize_tracepoint): Ditto. 12087 * symfile.c (_initialize_symfile): Ditto. 12088 * printcmd.c (_initialize_printcmd): Ditto. 12089 * infcmd.c (_initialize_infcmd): Ditto. 12090 * corefile.c (_initialize_core): Ditto. 12091 120922002-03-05 Andrew Cagney <ac131313@redhat.com> 12093 12094 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler. 12095 120962002-03-05 Andrew Cagney <ac131313@redhat.com> 12097 12098 * MAINTAINERS: Fix Mac OS X and Objective-C/C++. 12099 121002002-03-05 Andrew Cagney <ac131313@redhat.com> 12101 12102 * NEWS: Update headings, 5.2 has branched. 12103 121042002-03-04 Daniel Jacobowitz <drow@mvista.com> 12105 12106 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long. 12107 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS. 12108 (register_addr, REGISTER_RAW_SIZE): Likewise. 12109 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE. 12110 * gdbserver/linux-x86-64-low.c: Remove extra #endif. 12111 121122002-03-03 Michal Ludvig <mludvig@suse.cz> 12113 12114 * MAINTAINERS (x86-64): Add myself. 12115 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs, 12116 changed value_ptr -> struct value * 12117 121182002-03-01 David O'Brien <obrien@FreeBSD.org> 12119 12120 * configure.host (sparc64-*-freebsd): Add. 12121 * configure.tgt: Likewise. 12122 * config/sparc/fbsd.mh: New file. 12123 * config/sparc/fbsd.mt: Likewise. 12124 * config/sparc/nm-fbsd.h: Likewise. 12125 * config/sparc/tm-fbsd.h: Likewise. 12126 121272002-03-01 Daniel Jacobowitz <drow@mvista.com> 12128 12129 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and 12130 regformats/reg-s390x.dat. 12131 121322002-03-01 Andrew Cagney <ac131313@redhat.com> 12133 12134 * utils.c: Add FIXME explaining true/false problem. 12135 121362002-02-28 Andrew Cagney <ac131313@redhat.com> 12137 12138 * MAINTAINERS (Past Maintainers): Add J.T. Conklin. 12139 121402002-02-28 Michael Chastain <mec@shout.net> 12141 12142 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs . 12143 121442002-02-28 Daniel Jacobowitz <drow@mvista.com> 12145 12146 * gdbserver/linux-s390-low.c: New file. 12147 * regformats/reg-s390.dat: New file. 12148 * regformats/reg-s390x.dat: New file. 12149 * gdbserver/configure.srv: Add S/390. 12150 * gdbserver/Makefile.in: Add S/390. 12151 * configure.tgt: Enable gdbserver for S/390. 12152 121532002-02-28 Eli Zaretskii <eliz@is.elta.co.il> 12154 12155 * go32-nat.c (_initialize_go32_nat): Don't use periods in the 12156 first line of the doc string for "info dos", except at the end of 12157 the sentence, since the short help stops at the first period. 12158 121592002-02-28 Jason Merrill <jason@redhat.com> 12160 12161 * dwarf2read.c (dwarf_cfi_name): Add new codes. 12162 121632002-02-27 Fred Fish <fnf@redhat.com> 12164 12165 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in 12166 comment (dumy -> dummy). 12167 121682002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 12169 12170 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames. 12171 121722002-02-27 Rodney Brown <rbrown64@csc.com.au> 12173 12174 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5. 12175 121762002-02-27 Daniel Jacobowitz <drow@mvista.com> 12177 12178 * gdbserver/acconfig.h: New file. 12179 * gdbserver/i387-fp.c: New file. 12180 * gdbserver/i387-fp.h: New file. 12181 * gdbserver/linux-x86-64.c: New file. 12182 * regformats/reg-x86-64.dat: New file. 12183 * configure.tgt: Add x86_64-*-linux* gdbserver support. 12184 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support. 12185 * gdbserver/configure.in: Add support for regsets. 12186 * gdbserver/config.in: Regenerate. 12187 * gdbserver/configure: Regenerate. 12188 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h). 12189 * gdbserver/linux-low.h: New file. 12190 * gdbserver/linux-low.c: Include "linux-low.h". Add support 12191 for regsets. 12192 * gdbserver/linux-arm-low.c: Include "linux-low.h". 12193 * gdbserver/linux-ia64-low.c: Include "linux-low.h". 12194 * gdbserver/linux-m68k-low.c: Include "linux-low.h". 12195 * gdbserver/linux-mips-low.c: Include "linux-low.h". 12196 * gdbserver/linux-ppc-low.c: Include "linux-low.h". 12197 * gdbserver/linux-sh-low.c: Include "linux-low.h". 12198 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include 12199 "i387-fp.h". Add PTRACE_GETREGS and friends. 12200 * gdbserver/regcache.c (supply_register): New function. 12201 (supply_register_by_name): New function. 12202 (collect_register): New function. 12203 (collect_register_by_name): New function. 12204 122052002-02-27 Daniel Jacobowitz <drow@mvista.com> 12206 12207 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER. 12208 (config.status): Add configure.srv dependency. 12209 (server_h): Add config.h dependency. 12210 122112002-02-27 Daniel Jacobowitz <drow@mvista.com> 12212 12213 * regformats/reg-i386-linux.dat: New file, with $orig_eax. 12214 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o. 12215 * gdbserver/configure.srv: Change i386-*-linux* to use 12216 reg-i386-linux.o. 12217 122182002-02-26 Andrew Cagney <ac131313@redhat.com> 12219 12220 * x86-64-tdep.c: Re-indent. Update copyright date. 12221 122222002-02-26 Andrew Cagney <ac131313@redhat.com> 12223 12224 From Michal Ludvig <mludvig@suse.cz>: 12225 * x86-64-tdep.c (value.h): Delete. 12226 (gdb_assert.h): Include. 12227 (x86_64_register_convert_to_virtual, 12228 x86_64_register_convert_to_raw ): Add check which lets only 12229 floating-point values to be converted. 12230 (value_push): Delete. 12231 (x86_64_push_arguments): Order of arguments pushed on stack fixed. 12232 (i386_gdbarch_init): Number of register_bytes fixed. 12233 122342002-02-26 Andrew Cagney <ac131313@redhat.com> 12235 12236 * MAINTAINERS: Add x86-64 target. 12237 122382002-02-26 Andrew Cagney <ac131313@redhat.com> 12239 12240 * memattr.c (mem_command): Eliminate ``true'' and ``false''. 12241 * osfsolib.c (solib_map_sections): Ditto. 12242 * irix5-nat.c (solib_map_sections): Ditto. 12243 * corelow.c (gdb_check_format): Ditto. 12244 * symfile.c (symfile_bfd_open): Ditto. 12245 * solib.c (solib_map_sections): Ditto. 12246 Fix PR gdb/354. 12247 122482002-02-26 Andrew Cagney <ac131313@redhat.com> 12249 12250 * remote.c (_initialize_remote): By default, disable ``e'' and 12251 ``E'' step out-of-range packets. 12252 122532002-02-26 Andreas Schwab <schwab@suse.de> 12254 12255 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as 12256 m68k_linux_frame_saved_pc. 12257 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of 12258 in_sigtramp. 12259 (SIGCONTEXT_PC_OFFSET): Remove. 12260 * m68klinux-nat.c (m68k_linux_frame_saved_pc, 12261 m68k_linux_sigtramp_saved_pc): New functions. 12262 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define. 12263 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h. 12264 (UCONTEXT_PC_OFFSET): Define. 12265 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both 12266 non-RT and RT signal trampolines. 12267 122682002-02-26 Richard Earnshaw <rearnsha@arm.com> 12269 12270 * config/arm/tm-embed.h (TARGET_UPAGES): Delete. 12271 (TARGET_NBPG, STACK_END_ADDR): Delete 12272 (VARIABLES_INSIDE_BLOCK): Delete. 12273 122742002-02-25 Andrew Cagney <ac131313@redhat.com> 12275 12276 * utils.c (perror_with_name): Make string parameter constant. 12277 (print_sys_errmsg): Ditto. 12278 (query): Ditto. 12279 * defs.h (perror_with_name): Update. 12280 (print_sys_errmsg): Update. 12281 (query): Update. 12282 122832002-02-25 Daniel Jacobowitz <drow@mvista.com> 12284 12285 From Eliot Dresselhaus <eliot@ayrnetworks.com>: 12286 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo. 12287 122882002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 12289 12290 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture 12291 if it already matches the current architecture from the exec file. 12292 Include arch-utils.h for gdbarch_info_init prototype. 12293 * Makefile.in (rs6000-nat.o): Update dependencies. 12294 122952002-02-25 Eli Zaretskii <eliz@is.elta.co.il> 12296 12297 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the 12298 list of exported variables. 12299 123002002-02-24 Daniel Jacobowitz <drow@mvista.com> 12301 12302 * gdbserver/configure.srv: New file. 12303 * gdbserver/configure.in: Use configure.srv instead 12304 of the host/target makefile fragments. Set GDBSERVER_DEPFILES 12305 from it. 12306 * gdbserver/configure: Regenerated. 12307 * gdbserver/terminal.h: New file. 12308 * gdbserver/Makefile.in: Update for configure changes. Remove 12309 more unneeded include paths. 12310 123112002-02-24 Andrew Cagney <ac131313@redhat.com> 12312 12313 From wiz at danbala: 12314 * config/sparc/tm-sp64.h: Fix grammar and typos. 12315 Fix PR gdb/287. 12316 123172002-02-24 Andrew Cagney <ac131313@redhat.com> 12318 12319 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux'' 12320 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright. 12321 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto. 12322 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto. 12323 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto. 12324 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto. 12325 * s390-tdep.c: Ditto. 12326 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto. 12327 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h: 12328 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto. 12329 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto. 12330 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto. 12331 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto. 12332 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto. 12333 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto. 12334 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto. 12335 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto. 12336 Fix PR gdb/378. 12337 123382002-02-23 Andrew Cagney <ac131313@redhat.com> 12339 12340 * lin-thread.c: Delete file. 12341 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer 12342 to gdb_proc_service.h. 12343 * configure: Re-generate. 12344 12345 * ocd.c (ocd_open): Do not try to open the "ocd" device. 12346 * serial.c (serial_open): Delete check for "ocd". 12347 Fix PR gdb/349. 12348 12349 * Makefile.in (linux-thread.o): Delete target. 12350 * linux-thread.c: Delete file. 12351 12352 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other 12353 renamed SH files to be consistent. 12354 12355 * symtab.c (sort_search_symbols): Use xfree. 12356 123572002-02-23 Richard Earnshaw <rearnsha@arm.com> 12358 12359 * arm-linux-tdep.c (arm_linux_init_abi): Register 12360 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE 12361 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old 12362 definition with undef, since we don't want the sysvr4 definition. 12363 (SKIP_TRAMPOLINE_CODE): Likewise. 12364 123652002-02-23 Andrew Cagney <ac131313@redhat.com> 12366 12367 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>: 12368 12369 * configure.in: (AC_CHECK_FUNCS) Added test for 12370 canonicalize_file_name Regenerated. 12371 * config.in, configure: Regenerated. 12372 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is 12373 defined use canonicalize_file_name. 12374 123752002-02-23 Michael Chastain <mec@shout.net> 12376 12377 * MAINTAINERS: Remove Michael Chastain from "paper trail" list. 12378 123792002-02-23 Andrew Cagney <ac131313@redhat.com> 12380 12381 * README: Remove references to cygnus.com. 12382 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar 12383 dot com'' form. Remove references to cygnus.com and sourceware. 12384 123852002-02-23 Paul Eggert <eggert@twinsun.com> 12386 12387 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX 12388 1003.1-2001 no longer allows "head -1". 12389 * Makefile.in (version.c): Likewise. 12390 * CONTRIBUTE: Change "diff -c3" to "diff -c", which is 12391 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3". 12392 123932002-02-23 Andrew Cagney <ac131313@redhat.com> 12394 12395 * cli/cli-decode.c (cmd_cfunc_eq): New function. 12396 * command.h (cmd_cfunc_eq): Declare. 12397 * cli/cli-decode.h (cmd_cfunc_eq): Ditto. 12398 12399 * cli/cli-cmds.h (is_complete_command): Change parameter to a 12400 ``struct cmd_list_element *''. 12401 * cli/cli-cmds.c (is_complete_command): Update. Use 12402 cmd_cfunc_eq. 12403 * top.c (execute_command): Pass the command to 12404 is_complete_command. 12405 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq. 12406 124072002-02-23 Andrew Cagney <ac131313@redhat.com> 12408 12409 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>: 12410 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed 12411 architecture defines. 12412 * s390-tdep.c (s390_gdbarch_init): Likewise. 12413 124142002-02-23 Richard Earnshaw <rearnsha@arm.com> 12415 12416 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static. 12417 (arm_linux_push_arguments): Likewise. 12418 (arm_linux_init_abi): Register them. Also register linux-specific 12419 call_dummy_words. 12420 (find_minsym_and_objfile): Use strcmp, not STREQ. 12421 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete. 12422 (arm_linux_call_dummy_words): Delete declaration. 12423 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete. 12424 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete 12425 declarations. 12426 (LOWEST_PC): Delete. 12427 124282002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 12429 12430 * maint.c (print_section_info): Do not prepend `0x' to filepos 12431 output, it will be handled by local_hex_string_custom. 12432 124332002-02-23 Richard Earnshaw <rearnsha@arm.com> 12434 12435 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect. 12436 (store_newfpe_double, store_newfpe_extended, store_fpregister) 12437 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise. 12438 124392002-02-22 Jim Blandy <jimb@redhat.com> 12440 12441 Indicate that the bcache functions don't change the strings 12442 they're passed. 12443 * bcache.h (bcache, hash): Add `const' keywords to declarations. 12444 * bcache.c (bcache, hash): Add `const' keywords to definitions. 12445 124462002-02-22 Pierre Muller <muller@ics.u-strasbg.fr> 12447 12448 * win32-nat.c (child_create_inferior): Fix create flags setting bug. 12449 124502002-02-21 Christopher Faylor <cgf@redhat.com> 12451 12452 * win32-nat.c (register_loaded_dll): Just use raw name when we can't 12453 find the complete path to a loaded DLL. 12454 124552002-02-21 Fred Fish <fnf@redhat.com> 12456 12457 * dbxread.c (process_one_symbol): When finding an N_FUN symbol 12458 that marks the end of the range of a function, enter a line number 12459 entry that has a line number of zero and a PC offset that matches 12460 the end of the function. This starts a range of PC's for which no 12461 line number information is known. 12462 * symtab.c (find_pc_sect_line): If our best fit is in a range of 12463 PC's for which no line number info is found (line number is zero) 12464 then we didn't find any valid line information. 12465 * symtab.h: Document use of zero line number entry. 12466 124672002-02-21 Elena Zannoni <ezannoni@redhat.com> 12468 12469 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define. 12470 (have_ptrace_getvrregs): Define for run time checks. 12471 (gdb_vrregset_t): New type for Altivec register handling. 12472 (fetch_register, store_register): Fetch/store altivec register 12473 when needed. 12474 (fetch_altivec_register, store_altivec_register): New functions. 12475 (supply_vrregset, fill_vrregset): New functions. 12476 (fetch_altivec_registers, store_altivec_registers): New functions. 12477 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec 12478 registers as well. 12479 124802002-02-21 Jiri Smid <smid@suse.cz> 12481 12482 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o. 12483 124842002-02-21 Richard Earnshaw <rearnsha@arm.com> 12485 12486 * Makefile.in (armnbsd-nat.o): Update dependencies. 12487 * armnbsd-nat.c (supply_gregset): New function. Common code to 12488 supply the integer register set. 12489 (supply_fparegset): New function. Similar for FPA registers. 12490 (fetch_regs, fetch_fp_regs): Use them. 12491 (fetch_core_registers): Likewise. 12492 (fetch_elfcore_registers): New function. 12493 (arm_netbsd_elfcore_fns): New core-file type specification. 12494 (_initialize_arm_netbsd_nat): Register it. 12495 124962002-02-21 Richard Earnshaw <rearnsha@arm.com> 12497 12498 * armnbsd-nat.c: Include gdbcore.h. 12499 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined. 12500 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit 12501 'void' to declaration, to shut up ARI. 12502 (fetch_core_registers): Make static. Rewrite using supply_register. 12503 (arm_netbsd_core_fns): New core-file type specification. 12504 (_initialize_arm_netbsd_nat): New function. 12505 125062002-02-21 Christopher Faylor <cgf@redhat.com> 12507 12508 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle 12509 value. 12510 125112002-02-20 Christopher Faylor <cgf@redhat.com> 12512 12513 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile 12514 fails. 12515 125162002-02-20 Daniel Jacobowitz <drow@mvista.com> 12517 12518 * jv-exp.y (parse_number): Change type of implicit longs 12519 to builtin_type_uint64. 12520 125212002-02-20 Daniel Jacobowitz <drow@mvista.com> 12522 12523 * gdbserver/linux-low.c (mywait): Change argument to waitpid 12524 to be an integer instead of a `union wait'. 12525 125262002-02-20 Daniel Jacobowitz <drow@mvista.com> 12527 12528 * mips-linux-nat.c: Call the operating system GNU/Linux. 12529 * mips-linux-tdep.c: Likewise. 12530 * mips-tdep.c: Likewise. 12531 125322002-02-20 Daniel Jacobowitz <drow@mvista.com> 12533 12534 Fix PR gdb/265. 12535 * jv-exp.y (parse_number): Handle 64-bit integers. 12536 125372002-02-20 Daniel Jacobowitz <drow@mvista.com> 12538 12539 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change 12540 AC_STDC_HEADERS to AC_HEADER_STDC. 12541 * gdbserver/configure: Regenerated. 12542 125432002-02-20 Richard Earnshaw <rearnsha@arm.com> 12544 12545 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC 12546 is defined. 12547 * sparc-tdep.c (get_longjmp_target): Likewise. 12548 125492002-02-20 Richard Earnshaw <rearnsha@arm.com> 12550 12551 * News: Add news about ARM and Multi-arch. Mention the new target 12552 arm*-*-netbsd*. 12553 125542002-02-19 Jim Blandy <jimb@redhat.com> 12555 12556 * stabsread.c (error_type_complaint): Improve error message. 12557 125582002-02-19 Daniel Jacobowitz <drow@mvista.com> 12559 12560 * gdbserver/README: Update documentation. 12561 * gdbserver/configure.in: Update configury to match documentation. 12562 * gdbserver/Makefile.in: Likewise. 12563 * gdbserver/configure: Regenerated. 12564 * gdbserver/aclocal.m4: New file, generated by aclocal. 12565 * gdbserver/config.in: New file, generated by autoheader. 12566 125672002-02-19 Richard Earnshaw <rearnsha@arm.com> 12568 12569 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and 12570 armnbsd-nat.c. 12571 125722002-02-19 Richard Earnshaw <rearnsha@arm.com> 12573 12574 * arm-tdep.h (enum arm_float_model): New enum. 12575 (struct gdbarch_tdep): Add fp_model. 12576 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting 12577 up floating-point conversions until we know the floating-point model 12578 in use by the inferior. Don't complain about being unable to 12579 determine the ABI of the inferior when we don't have one. 12580 (arm_extract_return_value): Support different floating-point models. 12581 (arm_store_return_value): Likewise. 12582 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to 12583 ARM_FLOAT_SOFT. 12584 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP. 12585 125862002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 12587 12588 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use 12589 of ``current_gdbarch''. 12590 125912002-02-19 Richard Earnshaw <rearnsha@arm.com> 12592 12593 * armnbsd-nat.c : ANSIfy all function declarations. 12594 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New. 12595 (fetch_inferior_registers): Re-implement in terms of above. 12596 (store_register, store_regs, store_fp_register, store_fp_regs): New. 12597 (store_inferior_registers): Re-implement in terms of above. 12598 125992002-02-19 Richard Earnshaw <rearnsha@arm.com> 12600 12601 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the 12602 kernel. 12603 * arm-linux-tdep.c: Likewise. 12604 * config/arm/tm-linux.h: Likewise. 12605 126062002-02-19 Richard Earnshaw <rearnsha@arm.com> 12607 12608 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch. 12609 * config/arm/nbsd.mt (TM_FILE): Delete. 12610 * config/arm/tm-nbsd.h: Delete. 12611 126122002-02-19 Richard Earnshaw <rearnsha@arm.com> 12613 12614 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED. 12615 Initialize CALL_DUMMY_LENGTH. 12616 126172002-02-19 Richard Earnshaw <rearnsha@arm.com> 12618 12619 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New 12620 function. 12621 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE. 12622 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only 12623 defines one thing and that is incorrect for this port. 12624 (IN_SOLIB_CALL_TRAMPOLINE): Delete. 12625 126262002-02-18 Pierre Muller <muller@ics.u-strasbg.fr> 12627 12628 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro. 12629 126302002-02-18 Pierre Muller <muller@ics.u-strasbg.fr> 12631 12632 * win32-nat.c (display_selector): New function. Displays information 12633 about the information returned by GetThreadSelectorEntry API function. 12634 (display_selectors): New function. Displays the infomation of 12635 the selector given as argument, or of CS, DS ans FS selectors 12636 if no argument is given. 12637 ( _initialize_inftarg): Add "w32" as info prefix command. 12638 Add "info w32 selector" as command calling display_selectors. 12639 126402002-02-19 Pierre Muller <muller@ics.u-strasbg.fr> 12641 12642 * i386-tdep.c (get_longjmp_target): Fix compilation failure 12643 by setting dummy values to JB_PC and JB_ELEMENT_SIZE 12644 if not defined. 12645 126462002-02-18 Richard Earnshaw <rearnsha@arm.com> 12647 12648 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o. 12649 126502002-02-18 Richard Earnshaw <rearnsha@arm.com> 12651 12652 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function. 12653 (arm_fix_call_dummy): Call it. 12654 (arm_call_dummy_breakpoint_offset): Delete. 12655 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset. 12656 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete. 12657 126582002-02-18 Andrew Cagney <ac131313@redhat.com> 12659 12660 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2. 12661 Default to func_frame_chain_valid. 12662 * gdbarch.h, gdbarch.c: Re-generate. 12663 * frame.h (FRAME_CHAIN_VALID): Delete definition. 12664 126652002-02-18 Elena Zannoni <ezannoni@redhat.com> 12666 12667 * ppc-linux-nat.c: Update copyright. 12668 (fetch_register, store_register): Add tid parameter, don't compute 12669 tid here. 12670 (fetch_ppc_registers, store_ppc_registers): Add tid 12671 parameter. Pass it along to callees. 12672 (fetch_inferior_registers, store_inferior_registers): Compute tid 12673 here, and pass it to calleed functions. 12674 (fill_gregset, supply_fpregset): Clean up formatting. 12675 126762002-02-18 Richard Earnshaw <rearnsha@arm.com> 12677 12678 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double. 12679 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete. 12680 126812002-02-18 Richard Earnshaw <rearnsha@arm.com> 12682 12683 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule. 12684 * gdbarch.c gdbarch.h: Regenerate. 12685 * breakpoint.c (create_longjmp_breakpoint): Always compile this 12686 function. 12687 (breakpoint_reset): Test GET_LONGJMP_TARGET_P(). 12688 * infrun.c (GET_LONGJMP_TARGET): Delete default definition. 12689 (handle_inferior_event): Test GET_LONGJMP_TARGET_P(). 12690 12691 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields. 12692 * arm-tdep.c (arm_get_longjmp_target): New function. 12693 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes 12694 this to a positive value register arm_get_longjmp_target as the 12695 longjmp handler. 12696 * arm-linux-tdep.c (arm_get_longjmp_target): Delete. 12697 (arm_linux_init_abi): Set up longjmp description in tdep. 12698 * armnbsd-nat.c (get_longjmp_target): Delete. 12699 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp 12700 description in tdep. 12701 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete. 12702 (get_longjmp_target): Delete declaration. 12703 (GET_LONGJMP_TARGET): Delete. 12704 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration. 12705 (GET_LONGJMP_TARGET): Delete. 12706 127072002-02-17 Kevin Buettner <kevinb@redhat.com> 12708 12709 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>: 12710 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use 12711 of ``current_gdbarch''. 12712 127132002-02-17 Tom Tromey <tromey@redhat.com> 12714 12715 * cli/cli-cmds.c (compare_strings): New function. 12716 (complete_command): Only print each unique item once. 12717 * completer.h (complete_line): Declare. 12718 * completer.c (complete_line): New function. 12719 (line_completion_function): Use it. 12720 127212002-02-16 Andrew Cagney <ac131313@redhat.com> 12722 12723 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64. 12724 * gdbarch.h, gdbarch.c: Re-generate. 12725 127262002-02-16 Daniel Jacobowitz <drow@mvista.com> 12727 12728 * valarith.c (value_x_unop): Fix decrement; support post-decrement. 12729 127302002-02-16 Daniel Jacobowitz <drow@mvista.com> 12731 12732 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>: 12733 * valops.c (value_arg_coerce): Don't take the address of a reference 12734 to convert an argument to a reference. 12735 127362002-02-15 Christopher Faylor <cgf@redhat.com> 12737 12738 * win32-nat.c (get_image_name): New function. 12739 (handle_load_dll): Use get_image_name function. 12740 (get_child_debug_event): Avoid registering debug events until possibly 12741 execed process is started. 12742 (child_create_inferior): Allow invocation via shell so that command 12743 line redirection, etc. works ok. 12744 (_initialize_inftarg): Add new command: "set shell" to control whether 12745 a shell is used to start a process. 12746 127472002-02-15 Daniel Jacobowitz <drow@mvista.com> 12748 12749 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno 12750 instead of find_register_by_number. 12751 (cannot_store_register): Likewise. 12752 127532002-02-14 Pierre Muller <muller@ics.u-strasbg.fr> 12754 12755 * dwarf2read.c: Replace fprintf (stderr, ...) by 12756 fprintf_unfiltered (gdb_stderr, ...). 12757 127582002-02-15 Daniel Jacobowitz <drow@mvista.com> 12759 12760 * gdbserver/gdbserver.1: Document --attach. 12761 127622002-02-15 Richard Earnshaw <rearnsha@arm.com> 12763 12764 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint 12765 descriptions. 12766 * arm-tdep.c (arm_default_arm_le_breakpoint) 12767 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint) 12768 (arm_default_thumb_be_breakpoint): New. Initialize them from 12769 traditional breakpoint defines. 12770 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries. 12771 (arm_gdbarch_init): Initialize new breakpoint variables. 12772 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New. 12773 (arm_linux_init_abi): Initialize linux-specific breakpoint. 12774 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New. 12775 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common 12776 code out to ... 12777 (arm_netbsd_init_abi_common): ... here; new function. 12778 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT) 12779 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete. 12780 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete. 12781 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete. 12782 127832002-02-15 Richard Earnshaw <rearnsha@arm.com> 12784 12785 * arm-tdep.h (enum arm_abi): New enum. 12786 (struct gdbarch_tdep): New structure. 12787 (LOWEST_PC): Provide a default. 12788 (arm_gdbarch_register_os_abi): Declare new function. 12789 * arm-tdep.c (arm_abi_names): New array. 12790 (process_note_abi_tag_sections): New function. 12791 (get_elfosabi): New function. 12792 (arm_gdbarch_register_os_abi): New function. 12793 (arm_gdbarch_init): Try to determine the ABI of the inferior. If 12794 support for that ABI has been built in, then call the appropriate 12795 configuration routine. Use gdbarch_num_regs() to get the number 12796 of registers. 12797 (arm_dump_tdep): New function. 12798 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New 12799 place-holder functions. 12800 (_initialize_arm_tdep): Register them. 12801 * config/arm/tm-arm.h (LOWEST_PC): Delete. 12802 12803 * armnbsd-tdep.c: New file. 12804 * Makefile.in (armnbsd-tdep.o): Add dependencies. 12805 * config/arm/nbsd.mt (TDEPFILES): Add it. 12806 * config/arm/tm-nbsd.h (LOWEST_PC): Delete. 12807 12808 * armnbsd-nat.c: Include regcache.h. 12809 * Makefile.in (armnbsd-nat.o): Update dependency list. 12810 12811 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message. 12812 128132002-02-14 Daniel Jacobowitz <drow@mvista.com> 12814 12815 * gdbserver/Makefile.in: Fix typos in target rules. 12816 128172002-02-14 Daniel Jacobowitz <drow@mvista.com> 12818 12819 Fix part of PR gdb/267. 12820 * linespec.c (find_methods): Handle constructors specially for now. 12821 128222002-02-14 Corinna Vinschen <vinschen@redhat.com> 12823 12824 * arm-tdep.c (arm_push_arguments): Eliminate special float type 12825 handling. 12826 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call 12827 standard_coerce_float_to_double(). 12828 128292002-02-14 Christopher Faylor <cgf@redhat.com> 12830 12831 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of 12832 GDBINIT_FILENAME. 12833 128342002-02-14 Elena Zannoni <ezannoni@redhat.com> 12835 12836 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call 12837 find_variant_by_name, because it confuses the multiarch 12838 framework. Return NULL if there isn't an architecture with the 12839 user supplied name, instead of forcing a different one without 12840 recording the change with the multiarch machinery. 12841 (find_variant_by_name): Delete. 12842 128432002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 12844 12845 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by 12846 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore. 12847 128482002-02-13 Martin M. Hunt <hunt@redhat.com> 12849 12850 * stack.c (print_frame_info_base): When calling 12851 print_frame_info_listing_hook, set current_source_symtab. 12852 128532002-02-14 Daniel Jacobowitz <drow@mvista.com> 12854 12855 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS, 12856 and remove unused $(INCLUDE_DIR). 12857 Add regcache.c to OBS. 12858 Add generated register protocol files to clean target. 12859 Update dependencies for new objects, obsolete old target code. 12860 12861 * gdbserver/linux-low.c: Remove all platform-specific code to 12862 new files. Remove various dead code. Update to use regcache 12863 functionality. 12864 * gdbserver/remote-utils.c (fromhex): Add return statement 12865 to quiet warning. 12866 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer 12867 constant. 12868 (input_interrupt): Add integer parameter to match prototype 12869 of a signal handler. 12870 (outreg): Use register_data (). 12871 (prepare_resume_reply): Use gdbserver_expedite_regs. 12872 * gdbserver/server.c (main): Dynamically allocate own_buf because 12873 PBUFSIZ is no longer constant. Use registers_to_string () and 12874 registers_from_string (). 12875 * gdbserver/server.h: No longer include "defs.h". Add prototypes 12876 for error (), fatal (), and warning (). Update definition of 12877 PBUFSIZ to use regcache functionality. Add include guard. 12878 * gdbserver/utils.c (fatal): Add missing ``const''. 12879 (warning): New function. 12880 12881 * regformats/regdat.sh: Include "regcache.h" in generated files. 12882 Provide init_registers () function. 12883 * regformats/regdef.h: Add prototype for set_register_cache (). 12884 Add include guard. 12885 12886 * gdbserver/linux-arm-low.c: New file. 12887 * gdbserver/linux-i386-low.c: New file. 12888 * gdbserver/linux-ia64-low.c: New file. 12889 * gdbserver/linux-m68k-low.c: New file. 12890 * gdbserver/linux-mips-low.c: New file. 12891 * gdbserver/linux-ppc-low.c: New file. 12892 * gdbserver/linux-sh-low.c: New file. 12893 12894 * gdbserver/regcache.c: New file. 12895 * gdbserver/regcache.h: New file. 12896 12897 * gdbserver/low-linux.c: Removed obsolete file. 12898 128992002-02-14 Daniel Jacobowitz <drow@mvista.com> 12900 12901 * config/arm/linux.mt: Update GDBSERVER_DEPFILES. 12902 * config/i386/linux.mt: Likewise. 12903 * config/ia64/linux.mt: Likewise. 12904 * config/m68k/linux.mh: Likewise. 12905 * config/powerpc/linux.mh: Likewise. 12906 * config/mips/linux.mt: Likewise. 12907 12908 * config/sh/linux.mt: Add GDBSERVER_DEPFILES. 12909 12910 * config/i386/i386lynx.mh: Mark gdbserver variables 12911 as (currently) obsolete for this target. 12912 * config/i386/nbsd.mt: Likewise. 12913 * config/i386/nbsdelf.mt: Likewise. 12914 * config/m32r/m32r.mt: Likewise. 12915 * config/m68k/m68klynx.mh: Likewise. 12916 * config/m68k/nbsd.mt: Likewise. 12917 * config/m68k/sun3os4.mh: Likewise. 12918 * config/mips/vr5000.mt: Likewise. 12919 * config/ns32k/nbsd.mt: Likewise. 12920 * config/pa/hppabsd.mh: Likewise. 12921 * config/pa/hppaosf.mh: Likewise. 12922 * config/powerpc/nbsd.mt: Likewise. 12923 * config/rs6000/rs6000lynx.mh: Likewise. 12924 * config/s390/s390.mt: Likewise. 12925 * config/s390/s390x.mt: Likewise. 12926 * config/sparc/sparclynx.mh: Likewise. 12927 * config/sparc/sun4os4.mh: Likewise. 12928 * config/i386/x86-64linux.mt: Likewise. 12929 * config/sparc/linux.mh: Likewise. 12930 129312002-02-14 Daniel Jacobowitz <drow@mvista.com> 12932 12933 * configure.tgt: Configure gdbserver only for known working 12934 targets. Set ${build_gdbserver} instead of modifying ${configdirs}. 12935 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into 12936 SUBDIRS if it is configured. Update comment for ${nativefile}. 12937 * configure: Regenerated. 12938 129392002-02-13 Michael Snyder <msnyder@redhat.com> 12940 12941 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES. 12942 12943 * gcore.c (gcore_command): Use gcore_default_target instead of NULL. 12944 (default_gcore_mach): Just return 0, work around a problem in bfd. 12945 (default_gcore_target): OK to return NULL if exec_bfd is null. 12946 (make_mem_sec): Use a cast, avoid a warning. 12947 12948 * procfs.c (find_memory_regions_callback): Use a cast instead of 12949 calling host_pointer_to_address (which complains if 12950 sizeof (host pointer) != sizeof (target pointer)). 12951 (procfs_make_note_section): Avoid overflow in psargs string. 12952 12953 * procfs.c (procfs_make_note_section): Make the default 12954 implementation return an error. 12955 129562002-02-13 Rodney Brown <rbrown64@csc.com.au> 12957 12958 * procfs.c (procfs_make_note_section): Provide a default definition 12959 (for alpha-dec-osf4.0f). Fix typos. 12960 129612002-02-13 Elena Zannoni <ezannoni@redhat.com> 12962 12963 * linux-proc.c: Add include of regcache.h. 12964 * Makefile.in (linux-proc.o): Add dependency on regcache.h. 12965 129662002-02-13 Andrew Cagney <ac131313@redhat.com> 12967 12968 From 2002-01-18 Greg McGary <greg@mcgary.org>: 12969 * memattr.c (create_mem_region): Disallow useless empty region. 12970 Regions are half-open intervals, so allow [A..B) [B..C) as 12971 non-overlapping. 12972 129732002-02-13 Michael Chastain <mec@shout.net> 12974 12975 * defs.h: Kill CONST_PTR. 12976 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const". 12977 * c-lang.c (c_builtin_types): Likewise. 12978 * ch-lang.c (ch_builtin_types): Likewise. 12979 * f-lang.c (f_builtin_types): Likewise. 12980 * language.c (unknown_builtin_types): Likewise. 12981 * m2-lang.c (m2_builtin_types): Likewise. 12982 * p-lang.c (pascal_builtin_types): Likewise. 12983 * scm-lang.c (c_builtin_types): Likewise. 12984 129852002-02-13 Keith Seitz <keiths@redhat.com> 12986 12987 * arm-tdep.h (arm_get_next_pc): Add declaration. 12988 129892002-02-13 Richard Earnshaw <rearnsha@arm.com> 12990 12991 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be 12992 with other related struct-returning functions. 12993 (arm_extract_struct_value_address): New function. 12994 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also 12995 initialize float_format, double_format and long_double_format as 12996 appropriate to the endianness of the target. 12997 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete. 12998 (arm_use_struct_convention): Delete declaration. 12999 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete. 13000 130012002-02-13 Keith Seitz <keiths@redhat.com> 13002 13003 * defs.h (core_addr_to_string_nz): New function. 13004 130052002-02-13 Mark Kettenis <kettenis@gnu.org> 13006 13007 Apply missing bits of 2002-01-15 patch. 13008 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave. 13009 (fill_fpregset): Use i387_fill_fsave. 13010 130112002-02-12 Keith Seitz <keiths@redhat.com> 13012 13013 * utils.c (core_addr_to_string): Use phex instead of phex_nz. 13014 (core_addr_to_string_nz): New function. 13015 130162002-02-11 Richard Earnshaw <rearnsha@arm.com> 13017 13018 * arm-linux-nat.c: Really include arm-tdep.h. 13019 * config/arm/tm-linux.h (struct type, struct value): Declare. 13020 130212002-02-11 Michael Snyder <msnyder@redhat.com> 13022 13023 * procfs.c: Include elf-bfd.h (for elfcore_write functions). 13024 (gcore section): Ifdef for Solaris and Unixware only. 13025 (procfs_do_thread_registers): Unixware needs one lwpstatus 13026 per thread (not one prstatus or pstatus). 13027 (procfs_make_note_section): Iterate only over kernel threads (lwps), 13028 not over all gdb threads. For unixware, call elfcore_write_pstatus 13029 once before iterating over threads. 13030 130312002-02-11 Richard Earnshaw <rearnsha@arm.com> 13032 13033 * arm-tdep.h: New file. 13034 * arm-tdep.c: Include arm-tdep.h. 13035 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call) 13036 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy) 13037 (arm_print_float_info, arm_register_type, convert_to_extended) 13038 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special) 13039 (arm_extract_return_value, arm_register_name): Make static. 13040 (arm_software_single_step): Similarly. Fix types in declaration. 13041 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size) 13042 (arm_store_return_value, arm_store_struct_return): New functions. 13043 (arm_gdbarch_init): Register the above functions. Also register 13044 call_dummy_start_offset, sizeof_call_dummy_words, 13045 function_start_offset, inner_than, decr_pc_after_break, fp_regnum, 13046 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size, 13047 max_register_virtual_size, register_size. Set up 13048 prologue_cache.saved_regs here, rather than ... 13049 (_initialize_arm_tdep): ... here. 13050 * config/arm/tm-arm.h (struct type, struct value): Delete forward 13051 declarations. 13052 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call) 13053 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy) 13054 (arm_print_float_info, arm_register_type, convert_to_extended) 13055 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special) 13056 (arm_extract_return_value, arm_register_name): Delete declarations. 13057 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET) 13058 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC) 13059 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS) 13060 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE) 13061 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE) 13062 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN) 13063 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS) 13064 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY) 13065 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP) 13066 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete. 13067 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc) 13068 (arm_get_next_pc): No-longer static -- these are needed by the RDI 13069 interface. 13070 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h. 13071 * remote-rdi.c remote-rdp.c: Likewise. 13072 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o) 13073 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies. 13074 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus 13075 definition. 13076 13077 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM) 13078 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM) 13079 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed 13080 from non-ARM_ prefixed definitions. 13081 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update 13082 all uses of above. 13083 * remote-rdi.c remote-rdp.c: Likewise. 13084 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM. 13085 130862002-02-11 Richard Earnshaw <rearnsha@arm.com> 13087 13088 * arm-tdep.c (arm_frameless_function_invocation) 13089 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args) 13090 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc) 13091 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame) 13092 (arm_pop_frame, arm_get_next_pc): Make static. 13093 (arm_gdbarch_init): Register above in gdbarch structure. 13094 (arm_read_fp): Renamed from arm_target_read_fp. 13095 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static. 13096 * config/arm/tm-arm.h (arm_frameless_function_invocation) 13097 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args) 13098 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc) 13099 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame) 13100 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb) 13101 (arm_pc_is_thumb_dummy): Delete declarations. 13102 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN) 13103 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS) 13104 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP) 13105 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete. 13106 131072002-02-10 Daniel Jacobowitz <drow@mvista.com> 13108 13109 * symtab.c (compare_search_syms): New function. 13110 (sort_search_symbols): New function. 13111 (search_symbols): Sort symbols after searching rather than 13112 before. 13113 131142002-02-10 Andrew Cagney <ac131313@redhat.com> 13115 13116 * NEWS: Linux -> GNU/Linux. 13117 131182002-02-10 Andrew Cagney <ac131313@redhat.com> 13119 13120 * gdbarch.sh: For for level one methods, disallow a definition 13121 when partially multi-arched. Add comments explaining rationale. 13122 * gdbarch.h: Re-generate. 13123 131242002-02-10 Andrew Cagney <ac131313@redhat.com> 13125 13126 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when 13127 multi-arch partial. 13128 131292002-02-10 Andrew Cagney <ac131313@redhat.com> 13130 13131 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad 13132 field. Use diff -u. 13133 * gdbarch.c: Re-generate. 13134 131352002-02-10 Andrew Cagney <ac131313@redhat.com> 13136 13137 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete. 13138 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch 13139 partial. 13140 131412002-02-10 Andrew Cagney <ac131313@redhat.com> 13142 13143 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when 13144 multi-arch partial. 13145 (PUSH_ARGUMENTS): Switch to using predefault. 13146 * gdbarch.c: Regenerate. 13147 131482002-02-10 Andrew Cagney <ac131313@redhat.com> 13149 13150 * valops.c (PUSH_ARGUMENTS): Delete definition. 13151 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch 13152 partial. Default to default_push_arguments. 13153 * gdbarch.h, gdbarch.c: Regenerate. 13154 131552002-02-09 Andrew Cagney <ac131313@redhat.com> 13156 13157 * defs.h (throw_exception): Rename return_to_top_level. Update 13158 comments. 13159 * utils.c (error_stream, internal_verror, quit): Ditto. 13160 * top.c (throw_exception, catcher): Ditto. 13161 * sparclet-rom.c (sparclet_load): Ditto. 13162 * remote.c (interrupt_query, minitelnet): Ditto. 13163 * remote-sds.c (interrupt_query): Ditto. 13164 * remote-mips.c (mips_error, mips_kill): Ditto. 13165 * ocd.c (interrupt_query): Ditto. 13166 * monitor.c (monitor_interrupt_query): Ditto. 13167 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto. 13168 * target.h: Update comment. 13169 13170 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright. 13171 131722002-02-09 Andrew Cagney <ac131313@redhat.com> 13173 13174 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to 13175 default_double_format. 13176 * gdbarch.h, gdbarch.c: Re-generate. 13177 * findvar.c (floatformat_unknown): Delete variable definition. 13178 * doublest.h (floatformat_unknown): Delete variable declaration. 13179 131802002-02-09 Jim Blandy <jimb@redhat.com> 13181 13182 * stabsread.c (read_type): Add code to parse Sun's syntax for 13183 prototyped function types. 13184 131852002-02-09 Andrew Cagney <ac131313@redhat.com> 13186 13187 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS. 13188 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS. 13189 131902002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 13191 13192 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from 13193 _initialize_solib. Fixes name clash with solib.c:_initialize_solib, 13194 now _initialize_xcoffsolib gets called again and overrides the 13195 commands from solib.c in a native configuration. 13196 131972002-02-09 Mark Kettenis <kettenis@gnu.org> 13198 13199 * doublest.c (store_typed_floating): Don't try to return a value. 13200 Fixes PR gdb/290. 13201 132022002-02-08 Jim Blandy <jimb@redhat.com> 13203 13204 * c-typeprint.c (c_type_print_varspec_suffix): If a function type 13205 is prototyped and has no arguments, print its argument list as 13206 `(void)'. 13207 132082002-02-08 Chris Demetriou <cgd@broadcom.com> 13209 13210 * MAINTAINERS (write-after-approval): Add myself. 13211 (paper-trail): I've escaped! 13212 132132002-02-08 Christopher Faylor <cgf@redhat.com> 13214 13215 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf 13216 changes. 13217 (_initialize_check_for_gdb_ini): Ditto. 13218 132192002-02-08 Martin M. Hunt <hunt@redhat.com> 13220 13221 * win32-nat.c (cygwin_pid_to_str): Fix typo. 13222 xaprintf -> xasprintf. 13223 132242002-02-08 Pierre Muller <muller@ics.u-strasbg.fr> 13225 13226 * win32-nat.c: Remove use of printf and sprintf functions. 13227 132282002-02-08 Richard Earnshaw <rearnsha@arm.com> 13229 13230 * arm-tdep.c (arm_frame_chain_valid): Make static. 13231 (arm_push_arguments): Likewise. 13232 (arm_gdbarch_init): New function. 13233 (_initialize_arm_tdep): Call it. 13234 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1. 13235 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order. 13236 (FRAME_CHAIN_VALID): Delete. 13237 (arm_frame_chain_valid): Delete declaration. 13238 (PUSH_ARGUMENTS): Delete. 13239 (arm_push_arguments): Delete declaration. 13240 (CALL_DUMMY_P): Delete. 13241 132422002-02-08 Andrew Cagney <ac131313@redhat.com> 13243 Corinna Vinschen <vinschen@redhat.com> 13244 13245 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format 13246 on builtin float types. 13247 132482002-02-08 Daniel Jacobowitz <drow@mvista.com> 13249 13250 * utils.c: Include <curses.h> before "bfd.h". 13251 * tui/tui-hooks.c: Likewise. 13252 * tui/tui.c: Likewise. 13253 * tui/tuiCommand.c: Likewise. 13254 * tui/tuiData.c: Likewise. 13255 * tui/tuiDataWin.c: Likewise. 13256 * tui/tuiDisassem.c: Likewise. 13257 * tui/tuiGeneralWin.c: Likewise. 13258 * tui/tuiIO.c: Likewise. 13259 * tui/tuiLayout.c: Likewise. 13260 * tui/tuiRegs.c: Likewise. 13261 * tui/tuiSource.c: Likewise. 13262 * tui/tuiSourceWin.c: Likewise. 13263 * tui/tuiStack.c: Likewise. 13264 * tui/tuiWin.c: Likewise. 13265 132662002-02-07 Elena Zannoni <ezannoni@redhat.com> 13267 13268 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array 13269 to include space for pseudoregs as well. Update loops accordingly. 13270 (sh_fp_frame_init_saved_regs): Ditto. 13271 (sh_init_extra_frame_info, sh_pop_frame): Split long lines. 13272 132732002-02-07 Andrew Cagney <ac131313@redhat.com> 13274 13275 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer. 13276 Add Richard Earnshaw to Arm maintainers. 13277 132782002-02-07 Andrew Cagney <ac131313@redhat.com> 13279 13280 * defs.h (warning_begin): Delete declaration. 13281 13282 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT): 13283 Delete macro. 13284 132852002-02-07 Michael Snyder <msnyder@redhat.com> 13286 13287 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): 13288 Logic bug, remove misplaced else. 13289 132902002-02-07 Klee Dienes <klee@apple.com> 13291 13292 * fork-inferior.c (fork_inferior): Add '!' to the list of 13293 characters that need to be quoted when building a string for the 13294 shell. Quote '!' specifically with a backslash, since CSH chokes 13295 when trying to evaluate "str!str". 13296 132972002-02-06 Nick Clifton <nickc@cambridge.redhat.com> 13298 13299 * rdi-share/host.h: Only provide a typedef for bool if it is not 13300 defined. 13301 133022002-02-04 Michael Snyder <msnyder@redhat.com> 13303 13304 * breakpoint.h (enum bptype): Add new overlay event bp type. 13305 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export. 13306 13307 * breakpoint.c (create_internal_breakpoint): New function. 13308 (internal_breakpoint_number): Moved into create_internal_breakpoint. 13309 (create_longjmp_breakpoint): Use create_internal_breakpoint. 13310 (create_thread_event_breakpoint): Ditto. 13311 (create_solib_event_breakpoint): Ditto. 13312 (create_overlay_event_breakpoint): New function. 13313 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs. 13314 (update_breakpoints_after_exec): Delete and re-initialize 13315 overlay event breakpoints after an exec. Add FIXME comment 13316 about longjmp breakpoint. 13317 (print_it_typical): Ignore overlay event breakpoints. 13318 (print_one_breakpoint): Ditto. 13319 (mention): Ditto. 13320 (bpstat_what): Do not stop for overlay event breakpoints. 13321 (delete_breakpoint): Don't delete overlay event breakpoints. 13322 (breakpoint_re_set_one): Delete the overlay event breakpoint. 13323 (breakpoint_re_set): Re-create overlay event breakpoint. 13324 13325 * symfile.c (overlay_auto_command): Enable overlay breakpoints. 13326 (overlay_manual_command): Disable overlay breakpoints. 13327 (overlay_off_command): Disable overlay breakpoints. 13328 133292002-02-06 Richard Earnshaw <rearnsha@arm.com> 13330 13331 * arm-tdep.c: Include elf-bfd.h and coff/internal.h. 13332 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines 13333 to here from config/tm-arm.h. 13334 (coff_sym_is_thumb): Make static. 13335 (arm_elf_make_msymbol_special): New function. 13336 (arm_coff_make_msymbol_special): New function. 13337 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition. 13338 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise. 13339 (coff_sym_is_thumb): Delete declaration. 13340 (arm_elf_make_msymbol_special): Declare. 13341 (arm_coff_make_msymbol_special): Declare. 13342 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special. 13343 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special. 13344 133452002-02-06 Richard Earnshaw <rearnsha@arm.com> 13346 13347 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration. 13348 133492002-02-06 Richard Earnshaw <rearnsha@arm.com> 13350 13351 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule. 13352 * gdbarch.c gdbarch.h: Regenerate. 13353 * arch-utils.c (default_print_float_info): New function. 13354 * arch-utils.h (default_print_float_info): Prototype it. 13355 * infcmd.c (float_info): Call PRINT_FLOAT_INFO. 13356 13357 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info. 13358 * config/arm/tm-arm.h (FLOAT_INFO): Delete. 13359 (PRINT_FLOAT_INFO): Define. 13360 133612002-02-06 Pierre Muller <muller@ics.u-strasbg.fr> 13362 13363 * win32-nat.c (_initialize_check_for_gdb_ini): 13364 Add typecast to sprintf argument to suppress a warning. 13365 133662002-02-05 Pierre Muller <muller@ics.u-strasbg.fr> 13367 13368 * win32-nat.c (last_sig): Changed type of variable to target_signal, 13369 to allow easier handling of pass state. 13370 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception, 13371 that gives exception name and address. 13372 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro 13373 and set last_sig value to ourstatus->value.sig. Some missing 13374 exceptions added. 13375 (child_continue): Correctly report continue_status. 13376 (get_child_debug_event,do_initial_child_stuff): Set last_sig to 13377 TARGET_SIGNAL_0 (new default value). 13378 (child_resume): consider sig argument passed to decide if 13379 the exception should be passed to debuggee or not. 13380 133812002-02-05 Michael Snyder <msnyder@redhat.com> 13382 13383 * regcache.c (fetch_register): Call target_fetch_register 13384 only if we don't call FETCH_PSEUDO_REGISTER. 13385 (store_register): Call target_store_register only if we 13386 don't call STORE_PSEUDO_REGISTER. 13387 133882002-02-05 Elena Zannoni <ezannoni@redhat.com> 13389 13390 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and 13391 ELF_MAKE_MSYMBOL_SPECIAL. 13392 * gdbarch.c, gdbarch.h: Regenerate. 13393 * arch-utils.c (default_make_msymbol_special): New function. 13394 * arch-utils.h (default_make_msymbol_special): Export. 13395 * elfread.c (elf_symtab_read): Compile use of 13396 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now 13397 multiarched. 13398 * coffread.c (coff_symtab_read): Ditto, for 13399 COFF_MAKE_MSYMBOL_SPECIAL. 13400 134012002-02-05 Jim Blandy <jimb@redhat.com> 13402 13403 * solib-svr4.c (svr4_truncate_ptr): New function. 13404 (svr4_relocate_section_addresses): Do the address arithmetic with 13405 the appropriate truncation for target addresses, even when 13406 CORE_ADDR is larger than a target address. 13407 134082002-02-05 Daniel Jacobowitz <drow@mvista.com> 13409 13410 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid 13411 to (int *). 13412 134132002-02-05 Daniel Jacobowitz <drow@mvista.com> 13414 13415 * gdbserver/linux-low.c (kill_inferior): Remove commented out 13416 code. 13417 134182002-02-05 Daniel Jacobowitz <drow@mvista.com> 13419 13420 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX. 13421 134222002-02-05 Daniel Jacobowitz <drow@mvista.com> 13423 13424 * gdbserver/linux-low.c: Remove unused include files. 13425 134262002-02-05 Daniel Jacobowitz <drow@mvista.com> 13427 13428 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE. 13429 (read_inferior_memory): Use it. 13430 (write_inferior_memory): Likewise. 13431 134322002-02-05 Daniel Jacobowitz <drow@mvista.com> 13433 13434 * gdbserver/linux-low.c (create_inferior): Call strerror instead of 13435 grubbing through sys_errlist. 13436 134372002-02-05 Daniel Jacobowitz <drow@mvista.com> 13438 13439 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c. 13440 134412002-02-04 Pierre Muller <muller@ics.u-strasbg.fr> 13442 * win32-nat.c (handle_exception): Handle Ctrl-Break exception. 13443 134442002-02-04 Andrew Cagney <ac131313@redhat.com> 13445 13446 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions. 13447 (do_sfunc, set_cmd_sfunc): New functions. 13448 13449 * command.h (struct cmd_list_element): Add field func. 13450 * cli/cli-decode.h (struct cmd_list_element): Ditto. 13451 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare. 13452 * cli/cli-decode.h: Ditto. 13453 13454 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc. 13455 (help_all, help_cmd_list): Ditto. 13456 (find_cmd, complete_on_cmdlist): Ditto. 13457 * top.c (execute_command): Ditto. 13458 13459 * cli/cli-setshow.c (do_setshow_command): Call func instead of 13460 function.sfunc. 13461 13462 * infcmd.c (notice_args_read): Fix function signature. 13463 13464 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc. 13465 * cli/cli-decode.c (add_set_cmd): Ditto. 13466 * utils.c (initialize_utils): Ditto. 13467 * maint.c (_initialize_maint_cmds): Ditto. 13468 * infrun.c (_initialize_infrun): Ditto. 13469 * demangle.c (_initialize_demangler): Ditto. 13470 * remote.c (add_packet_config_cmd): Ditto. 13471 * mips-tdep.c (_initialize_mips_tdep): Ditto. 13472 * cris-tdep.c (_initialize_cris_tdep): Ditto. 13473 * proc-api.c (_initialize_proc_api): Ditto. 13474 * kod.c (_initialize_kod): Ditto. 13475 * valprint.c (_initialize_valprint): Ditto. 13476 * top.c (init_main): Ditto. 13477 * infcmd.c (_initialize_infcmd): Ditto. 13478 * corefile.c (_initialize_core): Ditto. 13479 * arm-tdep.c (_initialize_arm_tdep): Ditto. 13480 * arch-utils.c (initialize_current_architecture): Ditto. 13481 (_initialize_gdbarch_utils): Ditto. 13482 * alpha-tdep.c (_initialize_alpha_tdep): Ditto. 13483 13484 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc. 13485 * wince.c (_initialize_inftarg): Ditto. 13486 * symfile.c (_initialize_symfile): Ditto. 13487 * mips-tdep.c (_initialize_mips_tdep): Ditto. 13488 * language.c (_initialize_language): Ditto. 13489 * arc-tdep.c (_initialize_arc_tdep): Ditto. 13490 134912002-02-04 Michael Snyder <msnyder@redhat.com> 13492 13493 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command. 13494 134952002-02-04 Daniel Jacobowitz <drow@mvista.com> 13496 13497 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS. 13498 Add rules for building the register data files. 13499 135002002-02-04 Daniel Jacobowitz <drow@mvista.com> 13501 13502 * regformats/regdat.sh: Add braces to the definition of 13503 expedite_regs_${arch}. 13504 135052002-02-04 Daniel Jacobowitz <drow@mvista.com> 13506 13507 * regformats/regdef.h (struct reg): Add comment describing the 13508 requirements for offset and size fields. 13509 135102002-02-04 Andreas Schwab <schwab@suse.de> 13511 13512 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX. 13513 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS. 13514 135152002-02-04 Richard Earnshaw <rearnsha@arm.com> 13516 13517 * gdbarch.sh (copyright): Update years in generated header. 13518 (SMASH_TEXT_ADDRESS): Add rule. 13519 * gdbarch.h, gdbarch.c: Re-generate. 13520 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS. 13521 * dbxread.c: Likewise. 13522 * dwarfread.c: Likewise. 13523 * elfread.c: Likewise. 13524 * somread.c: Likewise. 13525 13526 * arm-tdep.c (arm_smash_text_address): New function. 13527 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above. 13528 135292002-02-04 Pierre Muller <muller@ics.u-strasbg.fr> 13530 13531 Add support for hardware watchpoints on win32 native. 13532 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of 13533 CONTEXT_DEBUG_REGISTERS. 13534 (dr variable): New variable. Static array containing a local copy 13535 of debug registers. 13536 (debug_registers_changed): New variable. Reflects when debug registers 13537 are changed and need to be written to inferior. 13538 (debug_registers_used): New variable. Reflects when any debug register 13539 was set, used when new threads are created. 13540 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by 13541 i386-nat code. 13542 (thread_rec): Set dr array if id is the thread of current_event . 13543 (child_continue, child_resume): Change the debug registers for all 13544 threads if debug_registers_changed. 13545 (child_add_thread): Change the debug registers if debug_registers_used. 13546 * config/i386/cygwin.mh: Add use of i386-nat.o file. 13547 Link nm.h to new nm-cygwin.h file. 13548 + config/i386/nm-cygwin.h: New file. Contains the macros used for use 13549 of hardware registers. 13550 135512002-02-03 Andrew Cagney <ac131313@redhat.com> 13552 13553 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types. 13554 Restore behavour broken by 2002-01-20 Andrew Cagney 13555 <ac131313@redhat.com> IEEE_FLOAT removal. 13556 135572002-02-03 Daniel Jacobowitz <drow@mvista.com> 13558 13559 * c-valprint.c (c_val_print): Pass a proper valaddr to 13560 cp_print_class_method. 13561 * valops.c (search_struct_method): If there is only one method 13562 and args is NULL, return that method. 13563 135642002-02-03 Daniel Jacobowitz <drow@mvista.com> 13565 13566 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of 13567 accessing tag_name directly. 13568 135692002-02-03 Daniel Jacobowitz <drow@mvista.com> 13570 13571 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead 13572 of accessing tag_name directly. 13573 135742002-02-03 Daniel Jacobowitz <drow@mvista.com> 13575 13576 PR gdb/280 13577 * gdbtypes.c (replace_type): New function. 13578 * gdbtypes.h (replace_type): Add prototype. 13579 * stabsread.c (read_type): Use replace_type. 13580 135812002-02-03 Richard Earnshaw <rearnsha@arm.com> 13582 13583 * Makefile.in (memattr.o): Add missing dependencies rule. 13584 135852002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 13586 13587 * breakpoint.c (break_at_finish_command): Really export. 13588 (break_at_finish_at_depth_command): Ditto. 13589 (tbreak_at_finish_command): Ditto. 13590 * hppa-tdep.c: Include completer.h. 13591 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h). 13592 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o. 13593 135942002-02-01 Andrew Cagney <ac131313@redhat.com> 13595 13596 * utils.c (do_write): New function. 13597 (error_stream): Rewrite combining the code from error_begin and 13598 verror. 13599 (verror): Rewrite using error_stream. 13600 (error_begin): Delete function. 13601 136022002-02-01 Andrew Cagney <ac131313@redhat.com> 13603 13604 * utils.c (error_begin): Make static. 13605 * defs.h (error_begin): Delete declaration. 13606 13607 * linespec.c (cplusplus_error): Replace cplusplus_hint. 13608 (decode_line_1): Use cplusplus_error instead of error_begin, 13609 cplusplus_hint and return_to_top_level. 13610 * coffread.c (coff_symfile_read): Use error instead of error_begin 13611 and return_to_top_level. 13612 * infrun.c (default_skip_permanent_breakpoint): Ditto. 13613 136142002-02-01 Andrew Cagney <ac131313@redhat.com> 13615 13616 * language.h (type_error, range_error): Make string parameter 13617 constant. 13618 * language.c (warning_pre_print): Delete extern declaration. 13619 * dwarfread.c (warning_pre_print): Ditto. 13620 * language.c (type_error, range_error): Rewrite to use verror and 13621 vwarning instead of warning_begin. 13622 136232002-02-01 Michael Snyder <msnyder@redhat.com> 13624 13625 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code. 13626 (set_ignore_count): Move misplaced comment back where it belongs. 13627 136282002-02-01 Andrew Cagney <ac131313@redhat.com> 13629 13630 * command.h (NO_FUNCTION): Delete macro. 13631 * cli/cli-decode.h (NO_FUNCTION): Ditto. 13632 * top.c (execute_command): Replace NO_FUNCTION with NULL. 13633 * tracepoint.c (_initialize_tracepoint): Ditto. 13634 * cli/cli-decode.c (add_set_cmd): Ditto. 13635 * cli/cli-cmds.c (init_cli_cmds): Ditto. 13636 136372002-02-01 Daniel Jacobowitz <drow@mvista.com> 13638 13639 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments. 13640 Update ``this'' pointer when calling virtual functions. 13641 136422002-02-01 Michael Snyder <msnyder@redhat.com> 13643 13644 * breakpoint.c (create_temp_exception_breakpoint): Delete. 13645 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands. 13646 136472002-02-01 Daniel Jacobowitz <drow@mvista.com> 13648 13649 * regformats/reg-arm.dat: New file. 13650 * regformats/reg-i386.dat: New file. 13651 * regformats/reg-ia64.dat: New file. 13652 * regformats/reg-m68k.dat: New file. 13653 * regformats/reg-mips.dat: New file. 13654 * regformats/reg-ppc.dat: New file. 13655 * regformats/reg-sh.dat: New file. 13656 * regformats/regdef.h: New file. 13657 * regformats/regdat.sh: New file. 13658 136592002-02-01 Richard Earnshaw <reanrsha@arm.com> 13660 13661 * arm-tdep.c (arm_frameless_function_invocation): Add some comments. 13662 (arm_frame_args_address, arm_frame_locals_address): New functions. 13663 (arm_frame_num_args): New function. 13664 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address. 13665 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address. 13666 (FRMA_NUM_ARGS): Call arm_frame_num_args. 13667 136682002-01-31 Michael Snyder <msnyder@redhat.com> 13669 13670 * breakpoint.c (break_at_finish_command): Export. 13671 (break_at_finish_at_depth_command): Export. 13672 (tbreak_at_finish_command): Export. 13673 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands. 13674 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and 13675 "txbreak" commands, which are HPPA specific. 13676 13677 * printcmd.c (disassemble_command): Remove an ancient 13678 artifact of an old merge. 13679 13680 * symfile.h (enum overlay_debugging_state): 13681 Define enum constant values for overlay mode. 13682 * symfile.c (overlay_debugging): Use enums instead of literals. 13683 (overlay_is_mapped, overlay_auto_command, 13684 overlay_manual_command): Ditto. 13685 13686 * breakpoint.c (insert_breakpoints, remove_breakpoint, 13687 breakpoint_here_p, breakpoint_inserted_here_p, 13688 breakpoint_thread_match, bpstat_stop_status, 13689 describe_other_breakpoints, check_duplicates, clear_command): 13690 Coding standard fixes. 13691 13692 * target.c (target_xfer_memory): Add spaces, coding standard. 13693 (do_xfer_memory): Add missing line to trust-readonly 13694 code: check bfd SEC_READONLY flag for section. 13695 136962002-01-31 Andrew Cagney <ac131313@redhat.com> 13697 13698 * PROBLEMS: Fix typo, 5.1->5.1.1. 13699 137002002-01-30 Daniel Jacobowitz <drow@mvista.com> 13701 13702 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for 13703 data symbols, since we search based on textlow and texthigh. 13704 (find_pc_sect_symtab): Likewise. 13705 137062002-01-30 Andrew Cagney <ac131313@redhat.com> 13707 13708 * defs.h (vwarning): Declare. 13709 * utils.c (vwarning): New function. 13710 (warning): Call vwarning. 13711 (warning_begin): Delete function. 13712 13713 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print 13714 the warning message. 13715 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to 13716 warning_begin. 13717 137182002-01-30 Michael Snyder <msnyder@redhat.com> 13719 13720 * NEWS: Mention "set trust-readonly-sections" command. 13721 Mention generate-core-file command. 13722 137232002-01-15 Michael Snyder <msnyder@redhat.com> 13724 13725 * target.c: New command, "set trust-readonly-sections on". 13726 (do_xfer_memory): Honor the suggestion to trust readonly sections 13727 by reading them from the object file instead of from the target. 13728 (initialize_targets): Register command "set trust-readonly-sections". 13729 137302002-01-29 Andrew Cagney <ac131313@redhat.com> 13731 13732 * parse.c (target_map_name_to_register): Simplify, search regs and 13733 pseudo-regs using a single loop. 13734 137352002-01-30 Andrew Cagney <ac131313@redhat.com> 13736 13737 * PROBLEMS: Note that the i386 fix was missing from 5.1.1. 13738 137392002-01-15 Rodney Brown <rbrown64@csc.com.au> 13740 13741 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS. 13742 * config/i386/i386v42mp.mh: Add i387-nat.o . 13743 * i386v4-nat.c: Include i387-nat.h. 13744 (supply_fpregset): Use i387_supply_fsave. 13745 (fill_fpregset): Use i387_fill_fsave. 13746 137472002-01-30 Richard Earnshaw <rearnsha@arm.com> 13748 13749 * arm-tdep.c (arm_call_dummy_words): Define. 13750 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define. 13751 * config/arm/tm-arm.h (CALL_DUMMY_P): Define. 13752 (CALL_DUMMY_WORDS): Define. 13753 (arm_call_dummy_words): Declare. 13754 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define. 13755 (arm_linux_call_dummy_words): Declare. 13756 137572002-01-30 Andreas Schwab <schwab@suse.de> 13758 13759 * m68klinux-nat.c: Fix last change to use regcache_collect 13760 instead of referencing registers[] directly. 13761 137622002-01-29 Andrew Cagney <ac131313@redhat.com> 13763 13764 * parse.c (target_map_name_to_register): Delete code wrapped in 13765 #ifdef REGISTER_NAME_ALIAS_HOOK. 13766 137672002-01-28 Michael Snyder <msnyder@redhat.com> 13768 13769 * regcache.c (legacy_read_register_gen): Need to be able to 13770 read pseudo-register as well as real register. 13771 (legacy_write_register_gen): Ditto. 13772 137732002-01-28 Andrew Cagney <ac131313@redhat.com> 13774 13775 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete. 13776 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete. 13777 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete. 13778 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete. 13779 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete. 13780 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete. 13781 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete. 13782 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete. 13783 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete. 13784 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete. 13785 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete. 13786 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete. 13787 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete. 13788 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete. 13789 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete. 13790 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete. 13791 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete. 13792 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete. 13793 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete. 13794 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete. 13795 137962002-01-28 Andrew Cagney <ac131313@redhat.com> 13797 13798 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro. 13799 (target_byte_order): Initialize to BFD_ENDIAN_BIG. 13800 (initialize_current_architecture): Update target_byte_order using 13801 information from BFD. 13802 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT): 13803 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete. 13804 138052002-01-28 Andrew Cagney <ac131313@redhat.com> 13806 13807 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here... 13808 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken. 13809 13810 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in 13811 #ifdef INVALID_FLOAT. 13812 * infcmd.c (do_registers_info): Ditto. 13813 * values.c (unpack_double): Ditto. Add comment. 13814 13815 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was 13816 already commented out. 13817 138182002-01-26 Andreas Schwab <schwab@suse.de> 13819 13820 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define. 13821 * m68klinux-nat.c: Update ptrace interface for fetching/storing 13822 registers and add support for PTRACE_GETREGS. 13823 138242002-01-24 Andrew Cagney <ac131313@redhat.com> 13825 13826 GDB 5.1.1 released from 5.1 branch. 13827 * NEWS: Add 5.1.1 news. 13828 * README: Sync with 5.1 branch. 13829 138302002-01-23 Fred Fish <fnf@redhat.com> 13831 13832 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to 13833 stabstring on initial malloc. Reallocing will copy it for us, 13834 if necessary. 13835 138362002-01-23 Elena Zannoni <ezannoni@redhat.com> 13837 13838 * Makefile.in (hpread_h): Delete. 13839 (HFILES_NO_SRCDIR): Remove hpread.h. 13840 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c. 13841 (hpread.o): Update dependencies. 13842 (hp-psymtab-read.o, hp-symtab-read.o): Remove. 13843 13844 * hp-psymtab-read.c: Remove file. 13845 * hp-symtab-read.c: Remove file. 13846 * hpread.h: Remove file. 13847 13848 * hpread.c: Merge all contents of hp-psymtab-read.c, 13849 hp-symtab-read.c and hpread.h into this file, as it was prior to 13850 January 1999. 13851 13852 * config/pa/hpux11w.mh, config/pa/hpux11.mh, 13853 config/pa/hpux1020.mh, config/pa/hppaosf.mh, 13854 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES): 13855 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o. 13856 138572002-01-23 Elena Zannoni <ezannoni@redhat.com> 13858 13859 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset, 13860 fill_gregset): Call gdbarch_tdep() just once, assign result to 13861 variable and use that, instead of calling the function several 13862 times. 13863 138642002-01-24 Alexandre Oliva <aoliva@redhat.com> 13865 13866 * configure.host: Accept sparcv9 as alias for sparc64. 13867 * configure.tgt: Likewise. 13868 138692002-01-22 Kevin Buettner <kevinb@redhat.com> 13870 13871 * solib-aix5.c (build_so_list_from_mapfile) 13872 (aix5_relocate_main_executable): Fix xcalloc() calls so order of 13873 arguments is not reversed. 13874 * solib-sunos.c (sunos_relocate_main_executable): Likewise. 13875 * solib-svr4.c (svr4_relocate_main_executable): Likewise. 13876 138772002-01-22 Elena Zannoni <ezannoni@redhat.com> 13878 13879 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and 13880 modified version of obsolete sh_fetch_pseudo_register. 13881 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read. 13882 (sh4_register_read): New function. 13883 (sh_pseudo_register_write): New function. Renamed and modified 13884 version of obsolete sh_store_pseudo_register. 13885 (sh_store_pseudo_register): Rename to sh_pseudo_register_write. 13886 (sh4_register_write): New function. 13887 (sh_gdbarch_init): Remove setting of gdbarch function 13888 fetch_pseudo_register and store_pseudo_register. Remove setting of 13889 register_convert_to_raw, register_convert_to_virtual, 13890 register_convertible. 13891 (sh_sh4_register_convertible): Delete. No longer needed. All is 13892 taken care by architecture specific functions 13893 register_read/register_write. 13894 (sh_sh4_register_convert_to_virtual): Make static. 13895 (sh_sh4_register_convert_to_raw): Ditto. 13896 138972002-01-22 Andrew Cagney <ac131313@redhat.com> 13898 13899 * doublest.c (floatformat_is_negative): Assert FMT is non NULL. 13900 (floatformat_is_nan, floatformat_mantissa): Ditto. 13901 13902 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT 13903 for builtin_type_ieee_single_little, builtin_type_ieee_double_big, 13904 builtin_type_ieee_double_little, 13905 builtin_type_ieee_double_littlebyte_bigword, 13906 builtin_type_m68881_ext, builtin_type_i960_ext, 13907 builtin_type_m88110_ext, builtin_type_m88110_harris_ext, 13908 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword, 13909 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and 13910 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little. 13911 139122002-01-22 Corinna Vinschen <vinschen@redhat.com> 13913 13914 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless 13915 parameter. Set frameless flag if it exists and depended of 13916 whether the scanned function is frameless or not. 13917 (xstormy16_skip_prologue): If function is frameless, return 13918 result of xstormy16_scan_prologue(). 13919 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue() 13920 call. 13921 139222002-01-21 Elena Zannoni <ezannoni@redhat.com> 13923 13924 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments, 13925 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs, 13926 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs, 13927 sh_sh4_register_byte, sh_sh4_register_raw_size, 13928 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type, 13929 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual, 13930 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register, 13931 sh_store_pseudo_register, sh_do_pseudo_register): Call 13932 gdbarch_tdep() just once, assign result to variable and use that, 13933 instead of calling the function several times. 13934 139352002-01-20 Mark Kettenis <kettenis@gnu.org> 13936 13937 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P 13938 macros instead of LAST_FPU_CTRL_REGNUM. 13939 (store_register): Likewise. 13940 139412002-01-21 Jim Blandy <jimb@redhat.com> 13942 13943 * infcmd.c (run_command): Check that the `exec' target layer's BFD 13944 is up-to-date before running the program, not just when a program 13945 exits. 13946 139472002-01-21 Fred Fish <fnf@redhat.com> 13948 13949 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue 13950 when we have found all instructions we are looking for. 13951 139522002-01-21 Richard Earnshaw <rearnsha@arm.com> 13953 13954 * arm-tdep.c (arm_register_name): New function. 13955 (arm_registers_names): Make static. 13956 * config/arm/tm-arm.h (arm_register_names): Delete declaration. 13957 (arm_register_name): Declare. 13958 (REGISTER_NAME): Use it. 13959 139602002-01-21 Richard Earnshaw <rearnsha@arm.com> 13961 Kevin Buettner <kevinb@redhat.com> 13962 13963 Convert arm targets to new FRAME interface. 13964 * arm-tdep.c (struct frame_extra_info): Remove fsr. 13965 (arm_frame_find_save_regs): Delete. 13966 (arm_frame_init_saved_regs): New. 13967 (arm_init_extra_frame_info): Alloacte saved_regs as required. 13968 Allocate extra_info as required. Convert all uses of fsr.regs 13969 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields 13970 to use extra_info. 13971 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg) 13972 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise. 13973 (check_prologue_cache, save_prologue_cache): Likewise. 13974 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up. 13975 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete. 13976 (FRAME_FIND_SAVED_REGS): Delete. 13977 (arm_frame_find_saved_regs): Delete prototype. 13978 (arm_frame_init_saved_regs): New prototype. 13979 (FRAME_INIT_SAVED_REGS): Define. 13980 139812002-01-20 Andrew Cagney <ac131313@redhat.com> 13982 13983 * config/arc/tm-arc.h (IEEE_FLOAT): Delete. 13984 139852002-01-20 Andrew Cagney <ac131313@redhat.com> 13986 13987 From Jeff Law <law@redhat.com>: 13988 * infttrace.c: Include <sys/pstat.h>. 13989 (child_pid_to_exec_file): Revamp. Use pstat call to get the 13990 exec file if the ttrace equivalent fails. 13991 139922002-01-20 Andrew Cagney <ac131313@redhat.com> 13993 13994 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''. 13995 (closeLogFile): Ditto. 13996 139972002-01-20 Michael Chastain <mec@shout.net> 13998 13999 * top.c (print_gdb_version): Bump copyright year to 2002. 14000 140012002-01-20 Andrew Cagney <ac131313@redhat.com> 14002 14003 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena 14004 Zannoni and Eli Zaretskii. 14005 140062002-01-20 Daniel Jacobowitz <drow@mvista.com> 14007 14008 * buildsym.c: Update copyright years. 14009 * c-typeprint.c: Likewise. 14010 * dwarf2read.c: Likewise. 14011 * f-typeprint.c: Likewise. 14012 * gdbtypes.c: Likewise. 14013 * gdbtypes.h: Likewise. 14014 * hp-symtab-read.c: Likewise. 14015 * hpread.c: Likewise. 14016 * mdebugread.c: Likewise. 14017 * p-typeprint.c: Likewise. 14018 140192002-01-20 Andrew Cagney <ac131313@redhat.com> 14020 14021 * remote-sim.c (gdbsim_open): Simplify code testing the macro 14022 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always 14023 byte-order selectable. 14024 * sparc-tdep.c (sparc_target_architecture_hook): Ditto. 14025 * arch-utils.c: Ditto. 14026 (set_endian): Ditto. 14027 (set_endian_from_file): Ditto. 14028 * gdbserver/low-sim.c (create_inferior): Ditto. 14029 * gdbarch.sh: Ditto. 14030 * gdbarch.h: Re-generate. 14031 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P): 14032 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE): 14033 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE): 14034 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P): 14035 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P): 14036 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P): 14037 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE): 14038 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete 14039 macro definition. 14040 * config/mips/tm-wince.h: Remove #undef of macro 14041 TARGET_BYTE_ORDER_SELECTABLE. 14042 * config/sh/tm-wince.h: Ditto. 14043 140442002-01-20 Daniel Jacobowitz <drow@mvista.com> 14045 14046 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to 14047 member function fields. Add accessor macro 14048 TYPE_FN_FIELD_ARTIFICIAL. 14049 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods. 14050 * c-typeprint.c (c_type_print_base): Skip artificial member 14051 functions. 14052 140532002-01-20 Daniel Jacobowitz <drow@mvista.com> 14054 14055 * f-typeprint.c: Delete unused function f_type_print_args. 14056 * p-typeprint.c: Delete unused function pascal_type_print_args. 14057 140582002-01-20 Daniel Jacobowitz <drow@mvista.com> 14059 14060 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete 14061 comment. Add ``artificial'' to ``union field_location''. 14062 14063 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL. 14064 14065 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0. 14066 * mdebugread.c (parse_symbol): Likewise. 14067 * stabsread.c (define_symbol): Likewise. 14068 * hp-symtab-read.c (hpread_function_type): Likewise, instead of 14069 initializing TYPE_FIELD_BITPOS to n (obsolete). 14070 (hpread_doc_function_type): Likewise. 14071 * hpread.c (hpread_function_type): Likewise. 14072 140732002-01-20 Andrew Cagney <ac131313@redhat.com> 14074 14075 * configure.in (host_makefile_frag): Only require a host makefile 14076 fragment when a native build. 14077 * configure: Re-generate. 14078 140792002-01-20 Andrew Cagney <ac131313@redhat.com> 14080 14081 * doublest.h (floatformat_from_type): Declare. 14082 * doublest.c (floatformat_from_type): New function. 14083 (convert_typed_floating): Use. 14084 14085 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with 14086 call to function floatformat_from_type. 14087 14088 * gdbarch.sh (IEEE_FLOAT): Delete. 14089 * gdbarch.h, gdbarch.c: Re-generate. 14090 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro. 14091 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto. 14092 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto. 14093 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto. 14094 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto. 14095 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto. 14096 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto. 14097 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto. 14098 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto. 14099 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto. 14100 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto. 14101 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto. 14102 14103 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float. 14104 * x86-64-tdep.c (i386_gdbarch_init): Ditto. 14105 * sparc-tdep.c (sparc_gdbarch_init): Ditto. 14106 * sh-tdep.c (sh_gdbarch_init): Ditto. 14107 * mips-tdep.c (mips_gdbarch_init): Ditto. 14108 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto. 14109 * cris-tdep.c (cris_gdbarch_init): Ditto. 14110 141112002-01-20 Jiri Smid <smid@suse.cz> 14112 14113 * configure.host, configure.tgt: Support x86-64. 14114 * NEWS: Note new target x86-64. 14115 14116 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed. 14117 * x86-64-linux-nat.c (x86_64_register_u_addr): New function. 14118 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed. 14119 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o, 14120 x86-64-linux-nat.o): Fix dependencies. 14121 141222002-01-19 Andrew Cagney <ac131313@redhat.com> 14123 14124 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE. 14125 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro .... 14126 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here. 14127 * config/sparc/xm-sun4os4.h: Delete file. 14128 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable. 14129 141302002-01-19 Andrew Cagney <ac131313@redhat.com> 14131 14132 * config/sparc/sparclynx.mh (XM_FILE): Delete. 14133 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete. 14134 * config/m68k/m68klynx.mh (XM_FILE): Delete. 14135 * config/i386/i386lynx.mh (XM_FILE): Delete. 14136 * config/rs6000/xm-rs6000ly.h: Delete file. 14137 * config/sparc/xm-sparclynx.h: Delete file. 14138 * config/m68k/xm-m68klynx.h: Delete file. 14139 * config/i386/xm-i386lynx.h: Delete file. 14140 * config/xm-lynx.h: Delete file. 14141 * config/djgpp/fnchange.lst: Update. 14142 141432002-01-19 Jason Thorpe <thorpej@wasabisystems.com> 14144 14145 * alpha-tdep.c (alpha_register_byte): New function. 14146 (alpha_register_raw_size): Ditto. 14147 (alpha_register_virtual_size): Ditto. 14148 (alpha_skip_prologue_internal): Renamed from 14149 alpha_skip_prologue. 14150 (alpha_skip_prologue): New version that calls 14151 alpha_skip_prologue_internal. 14152 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal. 14153 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove 14154 second argument from alpha_skip_prologue. 14155 (REGISTER_BYTE): Use alpha_register_byte. 14156 (REGISTER_RAW_SIZE): Use alpha_register_raw_size. 14157 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size. 14158 (FRAMELESS_FUNCTION_INVOCATION): Use 14159 generic_frameless_function_invocation_not. 14160 (FRAME_NUM_ARGS): Use frame_num_args_unknown. 14161 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double. 14162 141632002-01-19 Andrew Cagney <ac131313@redhat.com> 14164 14165 * config/mips/xm-news-mips.h: Delete file. 14166 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable. 14167 14168 * config/m88k/xm-m88k.h: Delete file. 14169 * config/m88k/xm-dgux.h: Do not include xm-m88k.h. 14170 * config/m88k/xm-delta88v4.h: Ditto. 14171 * config/m88k/xm-delta88.h: Ditto. 14172 14173 * config/alpha/xm-fbsd.h: Delete file. 14174 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable. 14175 14176 * config/sparc/xm-sparc.h: Delete file. 14177 * Makefile.in (xm-sun4os4.h): Delete dependency. 14178 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h. 14179 * config/sparc/xm-sun4os4.h: Ditto. 14180 * config/sparc/xm-linux.h: Ditto. 14181 14182 * config/i386/xm-windows.h: Delete file. 14183 141842002-01-19 Andrew Cagney <ac131313@redhat.com> 14185 14186 * utils.c: Include <sys/param.h> for MAXPATHLEN. 14187 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined. 14188 141892002-01-19 Jason Thorpe <thorpej@wasabisystems.com> 14190 14191 * alpha-tdep.c (alpha_call_dummy_words): New. 14192 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove. 14193 (CALL_DUMMY_P): Define. 14194 (CALL_DUMMY_WORDS): Define. 14195 (SIZEOF_CALL_DUMMY_WORDS): Define. 14196 141972002-01-19 Per Bothner <per@bothner.com> 14198 14199 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name 14200 isn't NULL, which can happen with some gcj-3.x-produced code. 14201 142022002-01-19 Jason Thorpe <thorpej@wasabisystems.com> 14203 14204 * alpha-tdep.c (alpha_register_virtual_type): New function. 14205 (alpha_init_frame_pc_first): Ditto. 14206 (alpha_fix_call_dummy): Ditto. 14207 (alpha_store_struct_return): Ditto. 14208 (alpha_extract_struct_value_address): Ditto. 14209 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use 14210 alpha_register_virtual_type. 14211 (STORE_STRUCT_RETURN): Use alpha_store_struct_return. 14212 (EXTRACT_STRUCT_VALUE_ADDRESS): Use 14213 alpha_extract_struct_value_address. 14214 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy. 14215 (INIT_FRAME_PC): Use init_frame_pc_noop. 14216 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first. 14217 142182002-01-19 Mark Kettenis <kettenis@gnu.org> 14219 14220 * i386gnu-nat.c: Include "i386-tdep.h". 14221 (fetch_fpregs): Simplify code dealing with uninitialized floating 14222 point states such that it doesn't require FP7_REGNUM. 14223 142242002-01-18 Jason Thorpe <thorpej@wasabisystems.com> 14225 14226 * alpha-tdep.c (frame_extra_info): New. 14227 (alpha_find_saved_regs): Make static. Use 14228 frame->extra_info. 14229 (alpha_frame_init_saved_regs): New function. 14230 (alpha_frame_saved_pc): Use frame->extra_info. 14231 (temp_saved_regs): Don't declare as struct frame_saved_regs. 14232 (heuristic_proc_desc): Adjust for temp_saved_regs changes. 14233 (init_extra_frame_info): Rename to... 14234 (alpha_init_extra_frame_info): ...this. Use frame->extra_info. 14235 (alpha_print_extra_frame_info): New function. 14236 (alpha_frame_locals_address): Ditto. 14237 (alpha_frame_args_address): Ditto. 14238 (alpha_pop_frame): Use frame->extra_info. 14239 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use 14240 alpha_frame_args_address. 14241 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address. 14242 (alpha_find_saved_regs): Remove prototype. 14243 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs. 14244 (EXTRA_FRAME_INFO): Remove. 14245 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info. 14246 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info. 14247 142482002-01-18 Jason Thorpe <thorpej@wasabisystems.com> 14249 14250 * alpha-tdep.c (alpha_osf_in_sigtramp): New function. 14251 (alpha_cannot_fetch_register): Ditto. 14252 (alpha_cannot_store_register): Ditto. 14253 (alpha_register_convertible): Ditto. 14254 (alpha_use_struct_convention): Ditto. 14255 * config/alpha/tm-alpha.h: Update copyright years. 14256 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp. 14257 (INNER_THAN): Use core_addr_lessthan. 14258 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register. 14259 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register. 14260 (REGISTER_CONVERTIBLE): Use alpha_register_convertible. 14261 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention. 14262 (FRAME_CHAIN): Remove unnecessary cast. 14263 142642002-01-18 Andrew Cagney <ac131313@redhat.com> 14265 14266 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is 14267 obsolete. 14268 142692002-01-18 Andrew Cagney <ac131313@redhat.com> 14270 14271 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright. 14272 * monitor.c, remote-array.c, remote-bug.c: Ditto. 14273 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto. 14274 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto. 14275 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto. 14276 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto. 14277 * x86-64-linux-nat.c: Ditto. 14278 142792002-01-18 Jason Thorpe <thorpej@wasabisystems.com> 14280 14281 * alpha-tdep.c (alpha_register_name): New function. 14282 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove. 14283 (REGISTER_NAME): Define. 14284 142852002-01-18 Jason Thorpe <thorpej@wasabisystems.com> 14286 14287 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove. 14288 142892002-01-18 Jason Thorpe <thorpej@wasabisystems.com> 14290 14291 * alpha-tdep.c: Update copyright years. 14292 (alpha_next_pc): New function. 14293 (alpha_software_single_step): Ditto. 14294 * config/alpha/tm-alpha.h: Add prototype for 14295 alpha_software_single_step. 14296 142972002-01-18 Jason Thorpe <thorpej@wasabisystems.com> 14298 14299 * alphabsd-nat.c: Update copyright years. 14300 (fill_gregset): Use regcache_collect. 14301 (fill_fpregset): Likewise. 14302 (fetch_inferior_registers): Only fetch integer registers 14303 if requested to do so. 14304 (store_inferior_registers): Only store integer registers 14305 if requested to do so. 14306 143072002-01-17 Andrew Cagney <ac131313@redhat.com> 14308 14309 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete. 14310 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete. 14311 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete. 14312 * config/alpha/alpha-linux.mh (XDEPFILES): Delete. 14313 * config/alpha/fbsd.mh (XDEPFILES): Delete. 14314 * config/arm/linux.mh (XDEPFILES): Delete. 14315 * config/arm/nbsd.mh (XDEPFILES): Delete. 14316 * config/i386/i386dgux.mh (XDEPFILES): Delete. 14317 * config/i386/i386sol2.mh (XDEPFILES): Delete. 14318 * config/i386/i386m3.mh (XDEPFILES): Delete. 14319 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here. 14320 * config/i386/i386gnu.mh (XDEPFILES): Delete. 14321 * config/i386/fbsd.mh (XDEPFILES): Delete. 14322 * config/i386/i386bsd.mh (XDEPFILES): Delete. 14323 * config/i386/i386sco5.mh (XDEPFILES): Delete. 14324 * config/i386/i386v4.mh (XDEPFILES): Delete. 14325 * config/i386/i386v42mp.mh (XDEPFILES): Delete. 14326 * config/i386/i386sco4.mh (XDEPFILES): Delete. 14327 * config/i386/i386aix.mh (XDEPFILES): Delete. 14328 * config/i386/go32.mh (XDEPFILES): Delete. 14329 * config/i386/cygwin.mh (XDEPFILES): Delete. 14330 * config/i386/i386lynx.mh (XDEPFILES): Delete. 14331 * config/i386/i386mach.mh (XDEPFILES): Delete. 14332 * config/i386/i386v32.mh (XDEPFILES): Delete. 14333 * config/i386/linux.mh (XDEPFILES): Delete. 14334 * config/i386/nbsdelf.mh (XDEPFILES): Delete. 14335 * config/i386/ncr3000.mh (XDEPFILES): Delete. 14336 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES. 14337 * config/i386/i386sco.mh (XDEPFILES): Delete. 14338 * config/i386/i386v.mh (XDEPFILES): Delete. 14339 * config/i386/nbsd.mh (XDEPFILES): Delete. 14340 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES. 14341 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES. 14342 * config/i386/symmetry.mh (XDEPFILES): Delete. 14343 * config/i386/obsd.mh (XDEPFILES): Delete. 14344 * config/i386/x86-64linux.mh (XDEPFILES): Delete. 14345 * config/ia64/linux.mh (XDEPFILES): Delete. 14346 * config/ia64/aix.mh (XDEPFILES): Delete. 14347 * config/m68k/apollo68b.mh (XDEPFILES): Delete. 14348 * config/m68k/dpx2.mh (XDEPFILES): Delete. 14349 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES. 14350 * config/m68k/apollo68v.mh (XDEPFILES): Delete. 14351 * config/m68k/hp300bsd.mh (XDEPFILES): Delete. 14352 * config/m68k/linux.mh (XDEPFILES): Delete. 14353 * config/m68k/m68klynx.mh (XDEPFILES): Delete. 14354 * config/m68k/m68kv4.mh (XDEPFILES): Delete. 14355 * config/m68k/nbsd.mh (XDEPFILES): Delete. 14356 * config/m68k/sun2os3.mh (XDEPFILES): Delete. 14357 * config/m68k/sun2os4.mh (XDEPFILES): Delete. 14358 * config/m68k/sun3os3.mh (XDEPFILES): Delete. 14359 * config/m68k/sun3os4.mh (XDEPFILES): Delete. 14360 * config/m88k/delta88.mh (XDEPFILES): Delete. 14361 * config/m88k/delta88v4.mh (XDEPFILES): Delete. 14362 * config/m88k/m88k.mh (XDEPFILES): Delete. 14363 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES. 14364 * config/mips/linux.mh (XDEPFILES): Delete. 14365 * config/mips/irix6.mh (XDEPFILES): Delete. 14366 * config/mips/irix5.mh (XDEPFILES): Delete. 14367 * config/mips/irix4.mh (XDEPFILES): Delete. 14368 * config/mips/irix3.mh (XDEPFILES): Delete. 14369 * config/mips/decstation.mh (XDEPFILES): Delete. 14370 * config/mips/mipsm3.mh (XDEPFILES): Delete. 14371 (NATDEPFILES): Move core-aout.o to here. 14372 * config/ns32k/nbsd.mh (XDEPFILES): Delete. 14373 * config/pa/hpux1020.mh (XDEPFILES): Delete. 14374 * config/pa/hppabsd.mh (XDEPFILES): Delete. 14375 * config/pa/hppahpux.mh (XDEPFILES): Delete. 14376 * config/pa/hpux11w.mh (XDEPFILES): Delete. 14377 * config/pa/hppaosf.mh (XDEPFILES): Delete. 14378 * config/pa/hpux11.mh (XDEPFILES): Delete. 14379 * config/powerpc/aix.mh (XDEPFILES): Delete. 14380 * config/powerpc/nbsd.mh (XDEPFILES): Delete. 14381 * config/powerpc/linux.mh (XDEPFILES): Delete. 14382 * config/romp/rtbsd.mh: Rename XDEPFILES. 14383 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete. 14384 * config/rs6000/aix4.mh (XDEPFILES): Delete. 14385 * config/rs6000/rs6000.mh (XDEPFILES): Delete. 14386 * config/s390/s390.mh (XDEPFILES): Delete. 14387 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES. 14388 * config/sparc/sun4sol2.mh (XDEPFILES): Delete. 14389 * config/sparc/sun4os4.mh (XDEPFILES): Delete. 14390 * config/sparc/sparclynx.mh (XDEPFILES): Delete. 14391 * config/sparc/nbsdelf.mh (XDEPFILES): Delete. 14392 * config/sparc/nbsd.mh (XDEPFILES): Delete. 14393 * config/sparc/linux.mh (XDEPFILES): Delete. 14394 * config/vax/vaxult.mh (XDEPFILES): Delete. 14395 * config/vax/vaxult2.mh (XDEPFILES): Delete. 14396 * Makefile.in (DEPFILES): Remove XDEPFILES. 14397 143982002-01-17 Andrew Cagney <ac131313@redhat.com> 14399 14400 * utils.c (internal_verror): Fix comments, default is yes not no. 14401 Update queries to match. Default to quit and dump core. 14402 144032002-01-17 Andrew Cagney <ac131313@redhat.com> 14404 14405 * breakpoint.c: Update assuming #if UI_OUT is always true. Update 14406 copyright. 14407 * defs.h, event-top.c, gdbcmd.h: Ditto. 14408 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto. 14409 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto. 14410 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto. 14411 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto. 14412 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto. 14413 * mi/mi-main.c:Ditto. 14414 14415 * stack.c, symfile.c: Update copyright. 14416 144172002-01-17 Daniel Jacobowitz <drow@mvista.com> 14418 14419 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c, 14420 gdbserver/low-nbsd.c, gdbserver/low-sim.c, 14421 gdbserver/low-sparc.c, gdbserver/low-sun3.c, 14422 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices. 14423 144242002-01-17 Daniel Jacobowitz <drow@mvista.com> 14425 14426 * gdbserver/low-hppabsd.c (myattach): New function, returning -1. 14427 * gdbserver/low-lynx.c (myattach): Likewise. 14428 * gdbserver/low-nbsd.c (myattach): Likewise. 14429 * gdbserver/low-sim.c (myattach): Likewise. 14430 * gdbserver/low-sparc.c (myattach): Likewise. 14431 * gdbserver/low-sun3.c (myattach): Likewise. 14432 14433 * gdbserver/low-linux.c (myattach): New function. 14434 14435 * gdbserver/server.c (attach_inferior): New function. 14436 (main): Handle "--attach". 14437 144382002-01-16 Andrew Cagney <ac131313@redhat.com> 14439 14440 * MAINTAINERS (language support): Daniel Jacobwitz is C++ 14441 maintainer. 14442 144432002-01-15 Daniel Jacobowitz <drow@mvista.com> 14444 14445 * c-typeprint.c (is_type_conversion_operator): Add additional 14446 check for non-conversion operators. 14447 144482002-01-15 Michael Snyder <msnyder@redhat.com> 14449 14450 * linux-proc.c: Add "info proc" command, a la procfs.c. 14451 (read_mapping): New function, abstract and re-use code. 14452 (linux_find_memory_regions): Use new func read_mapping. 14453 (linux_info_proc_cmd): New function, implement "info proc". 14454 (_initialize_linux_proc): Add new command "info proc". 14455 144562002-01-15 Michael Snyder <msnyder@redhat.com> 14457 14458 * symfile.c (generic_load): Use bfd_map_over_sections method 14459 instead of manipulating bfd structure members directly. 14460 (add_section_size_callback): New function, bfd sections callback 14461 used by generic_load. 14462 (load_sections_callback): New function, bfd sections callback 14463 used by generic_load. 14464 144652002-01-15 Elena Zannoni <ezannoni@redhat.com> 14466 14467 [Based on work by Jim Blandy] 14468 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export. 14469 (builtin_type_vec128): Export. 14470 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD 14471 types. 14472 (builtin_type_vec128): New builtin type for 128 bit vector 14473 registers. 14474 (build_gdbtypes): Initialize builtin_type_v16qi and 14475 builtin_type_v8hi. Create the vec128 register builtin type 14476 structure. 14477 (build_builtin_type_vec128): New function. 14478 (_initialize_gdbtypes): Register builtin_type_v16qi and 14479 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128. 14480 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of 14481 AltiVec register to new builtin type. 14482 144832002-01-15 Daniel Jacobowitz <drow@mvista.com> 14484 14485 * stabsread.c (read_type): Pass dbx_lookup_type (typenums) 14486 to make_cv_type. 14487 144882002-01-14 Andrew Cagney <ac131313@redhat.com> 14489 14490 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename 14491 CLEAN_UP_REGISTER_VALUE. 14492 * regcache.c (supply_register): Update only call. 14493 144942002-01-14 Andrew Cagney <ac131313@redhat.com> 14495 14496 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*, 14497 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and 14498 a29k-*-vxworks* targets as obsolete. 14499 145002002-01-14 Michael Snyder <msnyder@redhat.com> 14501 14502 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs 14503 until we can resolve portability issues. 14504 * gregset.h: Remove references to fpxregs. 14505 * gcore.c (gcore_command): Initialize note_sec to NULL. 14506 145072002-01-13 Andrew Cagney <ac131313@redhat.com> 14508 14509 * signals.c (target_signal_to_name): Rewrite. Only use 14510 signals[].name when in bounds and non-NULL. 14511 145122002-01-13 Andrew Cagney <ac131313@redhat.com> 14513 14514 From Petr Ledvina <ledvinap@kae.zcu.cz>: 14515 * signals.c (target_signal_to_name): Verify that SIG is within the 14516 bounds of the signals array. 14517 145182002-01-13 Andrew Cagney <ac131313@redhat.com> 14519 14520 * MAINTAINERS: Remove arm-coff and arm-pe from target list. 14521 145222002-01-13 Keith Seitz <keiths@redhat.com> 14523 14524 * stack.c (print_frame_info_base): Print the frame's pc 14525 only if when print_frame_info_listing_hook is not defined. 14526 145272002-01-13 Keith Seitz <keiths@redhat.com> 14528 14529 * varobj.c (varobj_set_value): Make sure that there were no 14530 errors evaluating the object before attempting to set its 14531 value. 14532 value_cast now properly adjusts VALUE_ADDRESS for baseclasses, 14533 so this offset adjustment is no longer necessary. 14534 (create_child): Don't set the error flag if the child is 14535 a CPLUS_FAKE_CHILD. 14536 (value_of_child): If value_fetch_lazy fails, return NULL 14537 so that callers will be notified that an error occurred. 14538 (c_value_of_variable): Delay check of variable's validity 14539 until later. We actually want all structs and unions to have 14540 the value "{...}". 14541 Do not return "???" for variables which could not be evaluated. 14542 This error condition must be returned to the caller so that it 14543 can get the error condition from gdb. 14544 (cplus_name_of_child): Adjust index for vptr before figuring 14545 out the name of the child. 14546 (cplus_value_of_child): If a child's (real) parent is not valid, 14547 don't even bother trying to give a value for it. Just return 14548 an error. Change all instances in this function. 14549 (cplus_type_of_child): If our parent is one of the "fake" 14550 parents, we need to get at the type of the real parent, and 14551 derive the child's true type using this information. 14552 145532002-01-13 Andrew Cagney <ac131313@redhat.com> 14554 14555 From 2002-01-09 John Marshall <johnm@falch.net>: 14556 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to 14557 sources.redhat.com, and tweak some related URLs which had 14558 suffered from linkrot. 14559 145602002-01-13 Andrew Cagney <ac131313@redhat.com> 14561 14562 From Jeff law: 14563 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte 14564 structures passed in registers. 14565 145662002-01-13 Eli Zaretskii <eliz@is.elta.co.il> 14567 14568 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous 14569 white space which prevented compilation. Reported by DSK 14570 <dsk@student.unsw.edu.au>. 14571 145722002-01-11 Michael Snyder <msnyder@redhat.com> 14573 14574 * symfile.c (build_section_addr_info_from_section_tab): 14575 Use bfd access method instead of manipulating bfd directly. 14576 (syms_from_objfile): Ditto. 14577 (simple_overlay_update_1): Ditto. 14578 (simple_overlay_update): Ditto. 14579 (generic_load): Ditto. 14580 (overlay_unmapped_address): FIXME comment, bfd access methods. 14581 (sections_overlap): FIXME comment, bfd access methods. 14582 (pc_in_mapped_range): FIXME comment, bfd access methods. 14583 (pc_in_unmapped_range): FIXME comment, bfd access methods. 14584 (section_is_mapped): FIXME comment, bfd access methods. 14585 (section_is_overlay): FIXME comment, bfd access methods. 14586 14587 * symfile.c (generic_load): Whitespace and long line cleanups. 14588 Remove duplicate variable, change several local variables to 14589 more appropriate data types. 14590 (print_transfer_performance): Use %lu instead of %ld for ulongs. 14591 145922002-01-12 Andrew Cagney <ac131313@redhat.com> 14593 14594 From Peter Schauer: 14595 * language.c (longest_local_hex_string_custom): Use phex_nz to 14596 convert NUM to a hex string. 14597 145982002-01-12 Elena Zannoni <ezannoni@redhat.com> 14599 14600 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in 14601 the function. 14602 Update Copyright year. 14603 146042002-01-12 Andrew Cagney <ac131313@redhat.com> 14605 14606 * language.c (longest_raw_hex_string): Delete unused function. 14607 146082002-01-11 Petr Sorfa <petrs@caldera.com> 14609 14610 * MAINTAINERS (write-after-approval): Add myself. 14611 * dwarf2read.c (read_tag_string_type): Handling of 14612 DW_AT_byte_size. 14613 (read_tag_string_type): FORTRAN fix to prevent propagation of 14614 first string size. 14615 (set_cu_language): Handling of DW_LANG_Fortran95 14616 146172002-01-11 Richard Earnshaw <rearnsha@arm.com> 14618 14619 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid -> 14620 GETPID(inferior_ptid). 14621 (store_inferior_registers): Likewise. 14622 146232002-01-10 Jason Merrill <jason@redhat.com> 14624 14625 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup. 14626 Fix DW_OP_minus. 14627 146282002-01-10 Andrew Cagney <ac131313@redhat.com> 14629 14630 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001 14631 and bfd/elf32-sh-nbsd.c. 14632 146332002-01-10 Michael Snyder <msnyder@redhat.com> 14634 14635 * NEWS: Mention --pid and corefile/proc-id behavior change. 14636 14637 * Makefile.in: Add rules for gcore.o and linux-proc.o. 14638 * gcore.c: Include cli/cli-decode.h instead of command.h. 14639 14640 * main.c (captured_main): Add new command line option "--pid". 14641 If the second command line argument (following the symbol-file) 14642 begins with a digit, try to attach to it before trying to open 14643 it as a corefile. 14644 (print_gdb_help): Document the "--pid" argument. 14645 146462002-01-10 Eli Zaretskii <eliz@is.elta.co.il> 14647 14648 * completer.c (command_completer): New function. 14649 14650 * completer.h <command_completer>: Add prototype. 14651 14652 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the 14653 completer for the "help" command. 14654 146552002-01-09 Jason Merrill <jason@redhat.com> 14656 14657 * c-typeprint.c (is_type_conversion_operator): Fix thinko. 14658 146592002-01-09 Michael Snyder <msnyder@redhat.com> 14660 14661 * i386-linux-nat.c (fill_fpxregset): Make global. 14662 (store_fpxregset): Ditto. 14663 14664 * gregset.h (gdb_fpxregset_t): Define. 14665 (supply_fpxregset): Prototype. 14666 (fill_fpxregset): Prototype. 14667 14668 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo. 14669 146702002-01-09 Richard Earnshaw <rearnsha@arm.com> 14671 14672 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS. 14673 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise. 14674 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise. 14675 146762002-01-09 Andrew Cagney <ac131313@redhat.com> 14677 14678 * MAINTAINERS: Update target maintainer rules so that any 14679 Maintainer can approve a tested patch for a maintenance-only 14680 target. 14681 146822002-01-09 Richard Earnshaw <rearnsha@arm.com> 14683 14684 * MAINTAINERS (write-after-approval): Add myself. 14685 14686 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to 14687 IN_SIGTRAMP. 14688 146892002-01-08 Michael Snyder <msnyder@redhat.com> 14690 14691 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the 14692 real name of the executable, rather than the /proc name. 14693 146942002-01-03 Michael Snyder <msnyder@redhat.com> 14695 14696 Implement a "generate-core-file" command in gdb, save target state. 14697 * gcore.c: New file. Implement new command 'generate-core-file'. 14698 Save a corefile image of the current state of the inferior. 14699 * linux-proc.c: Add linux-specific code for saving corefiles. 14700 * target.h (struct target_ops): Add new target vectors for saving 14701 corefiles; to_find_memory_regions and to_make_corefile_notes. 14702 (target_find_memory_regions): New macro. 14703 (target_make_corefile_notes): New macro. 14704 * target.c (update_current_target): Inherit new target methods. 14705 (dummy_find_memory_regions): New place-holder method. 14706 (dummy_make_corefile_notes): New place-holder method. 14707 (init_dummy_target): Initialize new dummy target vectors. 14708 * exec.c (exec_set_find_memory_regions): New function. 14709 Allow the exec_ops vector for memory regions to be taken over. 14710 (exec_make_note_section): New function, target vector method. 14711 * defs.h (exec_set_find_memory_regions): Export prototype. 14712 * procfs.c (proc_find_memory_regions): New function, corefile method. 14713 (procfs_make_note_section): New function, corefile method. 14714 (init_procfs_ops): Set new target vector pointers. 14715 (find_memory_regions_callback): New function. 14716 (procfs_do_thread_registers): New function. 14717 (procfs_corefile_thread_callback): New function. 14718 * sol-thread.c (sol_find_memory_regions): New function. 14719 (sol_make_note_section): New function. 14720 (init_sol_thread_ops): Initialize new target vectors. 14721 * inftarg.c (inftarg_set_find_memory_regions): New function. 14722 Allow to_find_memory_regions vector to be taken over. 14723 (inftarg_set_make_corefile_notes): New function. 14724 Allow to_make_corefile_notes vector to be taken over. 14725 * thread-db.c (thread_db_new_objfile): Don't activate thread-db 14726 interface layer if not target_has_execution (may be a corefile). 14727 * config/i386/linux.mh: Add gcore.o to NATDEPFILES. 14728 * config/sparc/sun4sol2.mh: Ditto. 14729 * config/alpha/alpha-linux.mh: Ditto. 14730 * config/arm/linux.mh: Ditto. 14731 * config/i386/x86-64linux.mh: Ditto. 14732 * config/ia64/linux.mh: Ditto. 14733 * config/m68k/linux.mh: Ditto. 14734 * config/mips/linux.mh: Ditto. 14735 * config/powerpc/linux.mh: Ditto. 14736 * config/sparc/linux.mh: Ditto. 14737 147382002-01-07 Michael Snyder <msnyder@redhat.com> 14739 14740 * arm-linux-nat.c: Remove references to regcache.c internal data 14741 (registers[] and register_valid[]). 14742 147432002-01-07 Michael Snyder <msnyder@redhat.com> 14744 14745 * linux-proc.c: New file. Implement child_pid_to_exec_file, 14746 so that attaching to a pid will automatically read the process's 14747 symbol file and shlibs. 14748 * Makefile.in: Add rule for linux-proc.o. 14749 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE. 14750 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES. 14751 * config/arm/linux.mh: Ditto. 14752 * config/i386/linux.mh: Ditto. 14753 * config/i386/x86-64linux.mh: Ditto. 14754 * config/ia64/linux.mh: Ditto. 14755 * config/m68k/linux.mh: Ditto. 14756 * config/mips/linux.mh: Ditto. 14757 * config/powerpc/linux.mh: Ditto. 14758 * config/sparc/linux.mh: Ditto. 14759 147602002-01-06 Pierre Muller <muller@ics.u-strasbg.fr> 14761 14762 * win32-nat.c: Add i386-tdep.h dependency. 14763 147642002-01-07 Michael Snyder <msnyder@redhat.com> 14765 14766 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT 14767 instead of bfd_get_arch_size. Don't bail out just because 14768 there's no exec_bfd. 14769 14770 * cp-valprint.c (cp_print_value): FIXME comment, alloca size. 14771 * p-valprint.c (pascal_object_print_value): Ditto. 14772 * somread.c (som_symtab_read): Ditto. 14773 * symfile.c (simple_free_overlay_region_table): Ditto. 14774 * valops.c (value_assign): Ditto. 14775 14776 * tracepoint.c (tracepoint_save_command): From Klee Dienes -- 14777 use tilde_expand and strerror for opening save-tracepoints file. 14778 14779 * thread-db.c (thread_db_new_objfile): Indendation fix. 14780 14781 * infptrace.c (GDB_MAX_ALLOCA): New define. 14782 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the 14783 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte, 14784 can be overridden with whatever value is appropriate to the host). 14785 * infttrace.c (child_xfer_memory): Add FIXME warning about use of 14786 alloca to allocate potentially large buffer. 14787 * rs6000-nat.c (child_xfer_memory): Ditto. 14788 * symm-nat.c (child_xfer_memory): Ditto. 14789 * x86-64-linux-nat.c (child_xfer_memory): Ditto. 14790 147912002-01-07 Jackie Smith Cashion <jsmith@redhat.com> 14792 14793 From Nick Clifton <nickc@redhat.com> 14794 * d10v-tdep.c: Set STACK_START to 0x200bffe. 14795 147962002-01-07 Michael Snyder <msnyder@redhat.com> 14797 14798 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): 14799 Don't use exec_bfd if it's NULL. 14800 148012002-01-06 Mark Kettenis <kettenis@gnu.org> 14802 14803 * valops.c (value_arg_coerce): Fix formatting. 14804 148052002-01-06 Andrew Cagney <ac131313@redhat.com> 14806 14807 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>. 14808 * gnu-nat.c: Ditto. 14809 148102002-01-06 Andrew Cagney <ac131313@redhat.com> 14811 14812 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff, 14813 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms, 14814 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf, 14815 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and 14816 z8k-coff have not been multi-arched. Update z8k-coff build 14817 status. 14818 148192002-01-06 Andrew Cagney <ac131313@redhat.com> 14820 14821 * MAINTAINERS: Mark a29k target as obsolete. 14822 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o) 14823 (remote-mm.o, remote-udi.o): Obsolete. Remove references in 14824 comments. 14825 * NEWS: Note that a29k targets are obsolete. 14826 * a29k-tdep.c: Mark as obsolete. 14827 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*, 14828 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and 14829 a29k-*-vxworks* targets as obsolete. 14830 * remote-adapt.c: Obsolete. 14831 * remote-eb.c: Obsolete. 14832 * remote-mm.c: Obsolete. 14833 * remote-udi.c: Obsolete. 14834 * config/a29k/a29k-udi.mt: Obsolete. 14835 * config/a29k/a29k.mt: Obsolete. 14836 * config/a29k/tm-a29k.h: Obsolete. 14837 * config/a29k/tm-vx29k.h: Obsolete. 14838 * config/a29k/vx29k.mt: Obsolete. 14839 148402002-01-05 Andrew Cagney <ac131313@redhat.com> 14841 14842 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN 14843 with BFD_ENDIAN_BIG. 14844 148452002-01-05 Andrew Cagney <ac131313@redhat.com> 14846 14847 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>. 14848 * configure, config.in: Re-generate. 14849 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>. 14850 * defs.h: Do not include <endian.h>. 14851 148522002-01-05 Jason Thorpe <thorpej@wasabisystems.com> 14853 14854 * acconfig.h (HAVE_PT_GETXMMREGS): New. 14855 * config.in: Regenerate. 14856 * configure.in: Update copyright years. 14857 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>. 14858 * configure: Regenerate. 14859 * i386bsd-nat.c: Update copyright years. 14860 (fill_gregset): Use regcache_collect. 14861 (fetch_inferior_registers): Only fetch integer registers 14862 if requested to do so. Add support for XMM registers 14863 using PT_GETXMMREGS. 14864 (store_inferior_registers): Only store integer registers 14865 if requested to do so. Add support for XMM registers 14866 using PT_SETXMMREGS. 14867 * i386nbsd-nat.c (fetch_inferior_registers): Remove. 14868 (store_inferior_registers): Remove. 14869 (fetch_core_registers): Use supply_gregset and i387_supply_fsave. 14870 (fetch_elfcore_registers): New function. 14871 (i386nbsd_elfcore_fns): New. 14872 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns. 14873 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and 14874 i386bsd-nat.o. 14875 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise. 14876 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o. 14877 * config/i386/nbsdelf.mt (TDEPFILES): Likewise. 14878 * config/i386/tm-nbsd.h: Update copyright years. 14879 (HAVE_SSE_REGS): Define. 14880 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp. 14881 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start. 14882 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end. 14883 (SIGCONTEXT_PC_OFFSET): Remove. 14884 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc. 14885 148862002-01-05 Andrew Cagney <ac131313@redhat.com> 14887 14888 * configure.tgt: Remove powerpc-*-macos* target. 14889 * config/m68k/xm-mpw.h: Delete file. 14890 * config/xm-mpw.h: Delete file. 14891 * ser-mac.c: Delete file. 14892 * mpw-make.sed: Delete file. 14893 * mpw-config.in: Delete file. 14894 * mac-xdep.c: Delete file. 14895 * mac-gdb.r: Delete file. 14896 * mac-defs.h: Delete file. 14897 * mac-nat.c: Delete file. 14898 * config/powerpc/macos.mh: Delete file. 14899 * config/powerpc/macos.mt: Delete file. 14900 * config/powerpc/nm-macos.h: Delete file. 14901 * config/powerpc/tm-macos.h: Delete file. 14902 * source.c (openp, open_source_file): Remove obsolete code. 14903 * top.c (gdb_readline): Ditto. 14904 * utils.c (query): Ditto. 14905 * event-top.c (display_gdb_prompt): Ditto. 14906 * Makefile.in (ser-mac.o): Delete obsolete target. 14907 * NEWS: Update. 14908 149092002-01-04 Andrew Cagney <ac131313@redhat.com> 14910 14911 * defs.h (BIG_ENDIAN): Delete macro definition. 14912 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c, 14913 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h, 14914 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c, 14915 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c, 14916 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c, 14917 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h, 14918 config/a29k/tm-vx29k.h, config/arm/tm-arm.h, 14919 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h, 14920 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h, 14921 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h, 14922 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h, 14923 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c, 14924 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG. 14925 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG. 14926 * gdbarch.c: Re-generate. 14927 149282002-01-04 Daniel Jacobowitz <drow@mvista.com> 14929 14930 * thread-db.c (thread_db_new_objfile): Do not enable thread_db 14931 for core files. 14932 149332002-01-04 Jason Thorpe <thorpej@wasabisystems.com> 14934 14935 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o. 14936 149372002-01-04 Andrew Cagney <ac131313@redhat.com> 14938 14939 * value.h (value_ptr): Delete typedef. 14940 149412002-01-04 Jason Thorpe <thorpej@wasabisystems.com> 14942 14943 * i386nbsd-nat.c: Update copyright years. 14944 Include i386-tdep.h. 14945 149462002-01-04 Elena Zannoni <ezannoni@redhat.com> 14947 14948 * stabsread.c: Update copyright years. 14949 14950 From Debashis Mahata <debashis.mahata@wipro.com>: 14951 (read_struct_fields): Deal with Sun C compiler erroneous stab 14952 output for structs and unions. 14953 Fix PR gdb/269. 14954 149552002-01-04 Daniel Jacobowitz <drow@mvista.com> 14956 14957 * p-valprint.c: Include "cp-abi.h" for baseclass_offset 14958 prototype. 14959 149602002-01-04 Daniel Jacobowitz <drow@mvista.com> 14961 14962 * cp-abi.c: Fix whitespace. 14963 (baseclass_offset): New wrapper function. 14964 * cp-abi.h (baseclass_offset): Add prototype. 14965 (struct cp_abi_ops): Add baseclass_offset pointer. 14966 14967 * valops.c (vb_match): Move to... 14968 * gnu-v2-abi.c (vb_match): here. 14969 * valops.c (baseclass_offset): Move to... 14970 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename. 14971 14972 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function. 14973 14974 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset. 14975 * gnu-v3-abi.c (init_gnuv3_ops): Likewise. 14976 * hpacc-abi.c (init_hpacc_ops): Likewise. 14977 149782002-01-04 Daniel Jacobowitz <drow@mvista.com> 14979 14980 * valops.c (find_overload_match): Accept obj as a 14981 reference parameter. Update it before returning. 14982 * value.h (find_overload_match): Update prototype. 14983 * eval.c (evaluate_subexp_standard): Pass object to 14984 find_overload_match by reference. 14985 149862002-01-03 Andrew Cagney <ac131313@redhat.com> 14987 14988 * valarith.c: Replace value_ptr with struct value pointer. Remove 14989 register attribute from value declarations. 14990 * valops.c: Ditto. 14991 * value.h: Ditto. 14992 * scm-lang.c (scm_lookup_name): Ditto. 14993 149942002-01-03 Michael Snyder <msnyder@redhat.com> 14995 14996 Abstract the functionality of iterating over mapped memory 14997 regions into a general purpose iterator function. 14998 * procfs.c (iterate_over_mappings): New function, general purpose 14999 iterator for memory sections. 15000 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings. 15001 (solib_mappings_callback): New function, callback for above. 15002 (info_proc_mappings): Reimpliment using iterate_over_mappings. 15003 (info_mappings_callback): New function, callback for above. 15004 15005 * procfs.c (proc_set_watchpoint): Add cast to suppress warning. 15006 150072002-01-01 Mark Kettenis <kettenis@gnu.org> 15008 15009 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member. 15010 * i386-tdep.c: Include "elf-bfd.h". 15011 (process_note_abi_tag_sections): New function. 15012 (i386_gdbarch_init): Add code to recognize various OS/ABI 15013 combinations. 15014 15015 * maint.c (_initialize_maint_cmds): Add missing \ in 15016 string-literal. 15017 15018For older changes see ChangeLog-2001 15019 15020Local Variables: 15021mode: change-log 15022left-margin: 8 15023fill-column: 74 15024version-control: never 15025End: 15026