12007-10-29 Joel Brobecker <brobecker@adacore.com> 2 3 * version.in: Set version to 6.7.1. 4 52007-10-29 Joel Brobecker <brobecker@adacore.com> 6 7 * README: Update GDB version number to 6.7.1. 8 92007-10-25 Pedro Alves <pedro_alves@portugalmail.pt> 10 11 * memory-map.c (parse_memory_map): Don't use an empty struct 12 initializer. 13 142007-10-25 Joel Brobecker <brobecker@adacore.com> 15 16 * NEWS: Document status of hppa64-hpux support. 17 182007-10-24 Pedro Alves <pedro_alves@portugalmail.pt> 19 20 PR gdb/2341 21 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4 22 alias warning bug. 23 242007-10-23 Daniel Jacobowitz <dan@codesourcery.com> 25 26 PR gdb/2336 27 * configure.ac: Modify $LIBINTL before the BFD check. 28 * configure: Regenerated. 29 302007-10-21 Luis Machado <luisgpm@br.ibm.com> 31 32 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function. 33 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as 34 default dwarf2_frame_set_init_reg function. 35 362007-10-16 Daniel Jacobowitz <dan@codesourcery.com> 37 38 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message 39 after freeing it. 40 412007-10-13 Joel Brobecker <brobecker@adacore.com> 42 43 * solib-target.c (solib_target_parse_libraries) 44 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type. 45 462007-10-10 Joel Brobecker <brobecker@adacore.com> 47 48 * version.in: Set version to 6.7.0.20071010-cvs. 49 502007-10-10 Joel Brobecker <brobecker@adacore.com> 51 52 GDB 6.7 released. 53 542007-10-10 Joel Brobecker <brobecker@adacore.com> 55 56 * version.in: Set version to 6.7. 57 582007-10-10 Joel Brobecker <brobecker@adacore.com> 59 60 * README: Update GDB version number to 6.7. 61 622007-10-09 Daniel Jacobowitz <dan@codesourcery.com> 63 64 * solib-svr4.c (enable_break): Add the dynamic linker also if 65 auxv succeeds. 66 672007-10-08 Pedro Alves <pedro_alves@portugalmail.pt> 68 69 Revert: 70 2007-08-10 Michael Snyder <msnyder@access-company.com> 71 72 * stabsread.c (read_huge_number): Attempt to compute value before 73 values that it depends on. 74 752007-10-05 Daniel Jacobowitz <dan@codesourcery.com> 76 77 * remote.c (get_offsets): Only call free_symfile_segment_data if 78 data was allocated. 79 802007-10-03 Daniel Jacobowitz <dan@codesourcery.com> 81 82 * NEWS: Mention XML support for M68K in GDB 6.7. 83 842007-10-02 Ulrich Weigand <uweigand@de.ibm.com> 85 86 * s390-tdep.c (s390_regset_from_core_section): Allow excess section 87 size to enable bi-arch generate-core-file support. 88 892007-10-02 Markus Deuling <deuling@de.ibm.com> 90 91 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal. 92 932007-09-29 Daniel Jacobowitz <dan@codesourcery.com> 94 95 * configure.ac: Add $LIBINTL when testing libbfd. 96 * configure: Regenerated. 97 982007-09-24 Jim Blandy <jimb@codesourcery.com> 99 100 * symfile.h (struct symfile_segment_data): Doc fixes. 101 * symfile.c (symfile_map_offsets_to_segments): Doc fixes. 102 Assert that we were passed some loaded segment addresses, 103 and that sections' segment numbers are valid. 104 Simplify offset calculation. 105 * remote.c (get_offsets): Clarify selection of relocate-by-segment 106 strategy, and set num_segments correctly. Delete redundant 107 assignments to do_sections. 108 1092007-09-19 Joel Brobecker <brobecker@adacore.com> 110 111 * version.in: Set version to 6.6.90.20070919-cvs. 112 1132007-09-19 Joel Brobecker <brobecker@adacore.com> 114 115 GDB 6.6.90 released. 116 1172007-09-19 Joel Brobecker <brobecker@adacore.com> 118 119 * version.in: Set version to 6.6.90. 120 1212007-09-19 Joel Brobecker <brobecker@adacore.com> 122 123 * NEWS: Re-phrase "Changes since..." into "Changes in..." in 124 preparation for the gdb-6.7 release and its associated pre-releases. 125 1262007-09-19 Joel Brobecker <brobecker@adacore.com> 127 128 * README: Update GDB version number to 6.6.90. 129 1302007-09-19 Daniel Jacobowitz <dan@codesourcery.com> 131 132 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return 133 address register. Correct the call to frame_id_build. 134 (mips_stub_frame_sniffer): Use the stub unwinder when the PC 135 is invalid. 136 1372007-09-18 Joel Brobecker <brobecker@adacore.com> 138 139 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan 140 the linetable past the function end. 141 1422007-09-11 Joel Brobecker <brobecker@adacore.com> 143 144 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC) 145 * version.in: Bump version to 6.6.90.20070907-cvs. 146 1472007-09-07 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr> 148 149 * p-valprint.c: Fix 7 ARI reported problems. 150 (pascal_val_print): Fix one operator at end of line issue. 151 Use paddress function to remove use of 152 deprecated_print_address_numeric function (2 times). 153 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME. 154 (pascal_value_print): Fix 3 operator at end of line issues. 155 1562007-09-07 Daniel Jacobowitz <dan@codesourcery.com> 157 158 PR gdb/2103 159 * arm-tdep.c (arm_in_call_stub): Delete. 160 (arm_skip_stub): Handle from_arm and from_thumb stubs. 161 1622007-09-06 Daniel Jacobowitz <dan@codesourcery.com> 163 164 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer 165 types. 166 1672007-09-04 Daniel Jacobowitz <dan@codesourcery.com> 168 Jim Blandy <jimb@codesourcery.com> 169 170 * NEWS: Update description of string changes. Mention print/s. 171 * c-valprint.c (textual_element_type): New. 172 (c_val_print): Use it. Do not skip address printing for pointers 173 with a string format. 174 (c_value_print): Doc update. 175 * dwarf2read.c (read_array_type): Use make_vector_type. 176 * gdbtypes.c (make_vector_type): New. 177 (init_vector_type): Use it. 178 (gdbtypes_post_init): Initialize builtin_true_unsigned_char. 179 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT. 180 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char. 181 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New. 182 (make_vector_type): New. 183 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine. 184 Call the language print routine for string format. 185 (print_scalar_formatted): Call val_print for string format. Handle 186 unsigned original types for char format. 187 (validate_format): Do not reject string format. 188 * stabsread.c (read_type): Use make_vector_type. 189 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type. 190 1912007-09-04 Michael Snyder <msnyder@access-company.com> 192 193 * expprint.c (print_subexp_standard): Check strchr for null. 194 * Makefile.in (expprint.o): Depend on gdb_assert.h. 195 196 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null. 197 198 * stabsread.c (patch_block_status): Guard against null. 199 * Makefile.in (stabsread.o): Depend on gdb_assert.h. 200 2012007-09-04 Daniel Jacobowitz <dan@codesourcery.com> 202 203 * printcmd.c (printf_command): Handle ptr_arg. Correct typo 204 in internal error message. 205 2062007-09-04 Pedro Alves <pedro_alves@portugalmail.pt> 207 Daniel Jacobowitz <dan@codesourcery.com> 208 209 * infcmd.c (post_create_inferior): Update comment. 210 (run_command_1): Always call post_create_inferior with 0 as 211 from_tty. 212 213 * i386-cygwin-tdep.h: New. 214 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h". 215 (win32_xfer_shared_library): Make it extern. 216 217 * win32-nat.c: Include gdb_obstack.h and xml-support.h and 218 i386-cygwin-tdep.h. 219 (win32_so_ops): Delete. 220 (get_relocated_section_addrs): Delete. 221 (solib_symbols_add): Delete. 222 (register_loaded_dll): Delete. 223 (win32_make_so): New. 224 (handle_load_dll): Use win32_make_so. 225 (win32_free_so): Free the passed in so. 226 (win32_relocate_section_addresses): Delete. 227 (win32_solib_create_inferior_hook): Delete. 228 (handle_unload_dll): Don't add PE offset here. Free so with 229 win32_free_so instead of free_so. 230 (win32_special_symbol_handling): Delete. 231 (get_win32_debug_event): Remove unneeded calls. Set state to 232 TARGET_WAITKIND_LOADED on a dll unload. 233 (do_initial_win32_stuff): Clear cygwin_load_start and 234 cygwin_load_end. 235 (map_code_section_args): Delete. 236 (dll_code_sections_add): Delete. 237 (core_section_load_dll_symbols): Delete. 238 (win32_xfer_shared_libraries): New. 239 (win32_current_sos): Delete. 240 (win32_xfer_partial): New. 241 (open_symbol_file_object): Delete. 242 (in_dynsym_resolve_code): Delete. 243 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member 244 of win32_ops. Remove win32_so_ops settings. Don't set 245 current_target_so_ops here. 246 247 * Makefile.in (i386_cygwin_tdep_h): New variable. 248 (i386-cygwin-tdep.o): Update dependencies. 249 (win32-nat.o): Update dependencies. 250 2512007-09-04 Pedro Alves <pedro_alves@portugalmail.pt> 252 Daniel Jacobowitz <dan@codesourcery.com> 253 254 * gdbarch.sh (core_xfer_shared_libraries): New. 255 256 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES. 257 258 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New. 259 260 * xml-support.c (gdb_xml_parse): Debug output tweaks. 261 (xml_escape_text): New. 262 * xml-support.h (xml_escape_text): Declare. 263 264 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ... 265 * config/i386/cygwin.mt (TDEPFILES): ... here. 266 267 * win32-nat.c: (fetch_elf_core_registers): Delete. 268 (win32_elf_core_fn): Delete. 269 (_initialize_core_win32): Delete. 270 271 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h", 272 "xml-support.h" and "gdbcore.h". 273 (i386_win32_gregset_reg_offset): New. 274 (I386_WIN32_SIZEOF_GREGSET): New. 275 (i386_win32_regset_from_core_section): New. 276 (win32_xfer_shared_library): New. 277 (struct cpms_data): New. 278 (core_process_module_section): New. 279 (win32_core_xfer_shared_libraries): New. 280 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset, 281 gregset_num_regs, sizeof_gregset members of tdep. Register 282 regset_from_core_section and core_xfer_shared_libraries callbacks. 283 284 * Makefile.in (i386-cygwin-tdep.o): Update dependencies. 285 * gdbarch.h, gdbarch.c: Regenerate. 286 2872007-09-03 Daniel Jacobowitz <dan@codesourcery.com> 288 289 * corelow.c (core_xfer_partial): Pass writebuf to 290 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case. 291 2922007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> 293 294 * arm-tdep.h (arm_skip_stub): Declare. 295 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include 296 "gdbcore.h". 297 (arm_pe_skip_trampoline_code): New function. 298 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as 299 gdbarch_skip_trampoline_code callback. 300 * Makefile.in (arm-wince-tdep.o): Update dependencies. 301 3022007-09-03 Daniel Jacobowitz <dan@codesourcery.com> 303 304 * MAINTAINERS: Move Fred Fish to Past Maintainers. 305 3062007-09-03 Daniel Jacobowitz <dan@codesourcery.com> 307 308 * configure.ac: Add --with-expat. 309 * configure: Regenerated. 310 3112007-09-03 Andreas Schwab <schwab@suse.de> 312 313 * configure.ac: Accept --with-system-readline. 314 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute. 315 * configure: Regenerate. 316 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use 317 substituted values. 318 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE). 319 3202007-09-03 Maxim Grigoriev <maxim2405@gmail.com> 321 Daniel Jacobowitz <dan@codesourcery.com> 322 323 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters. 324 3252007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> 326 327 * top.c (print_gdb_version): Fixed a string end-of-line compiler error. 328 3292007-09-02 Daniel Jacobowitz <dan@codesourcery.com> 330 331 * top.c (print_gdb_version): Update for GPL version 3. 332 3332007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> 334 335 * NEWS: Mention the build-id .debug files verification. 336 3372007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> 338 339 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow. 340 3412007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com> 342 343 * Makefile.in (symfile.o): Update dependencies. 344 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the 345 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS. 346 (struct build_id): New structure. 347 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New. 348 (find_separate_debug_file): New variable BUILD_ID. 349 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try. 350 3512007-08-31 Vladimir Prus <vladimir@codesourcery.com> 352 353 * varobj.c (struct varobj): Fix comment 354 for the type member not to lie when it can be 355 NULL. 356 3572007-08-31 Vladimir Prus <vladimir@codesourcery.com> 358 359 Implement -var-info-path-expression. 360 361 * mi/mi-cmds.h (mi_cmd_var_info_path_expression): 362 Declare. 363 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression. 364 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New. 365 * varobj.c (struct varobj): New field 'path_expr'. 366 (c_path_expr_of_child, cplus_path_expr_of_child) 367 (java_path_expr_of_child): New. 368 (struct language_specific): New field path_expr_of_child. 369 (varobj_create): Initialize the path_expr field. 370 (varobj_get_path_expr): New. 371 (new_variable): Initialize the path_expr field. 372 (free_variable): Free the path_expr field. 373 (adjust_value_for_children_access): New parameter 374 WAS_TYPE. 375 (c_number_of_children): Adjust. 376 (c_describe_child): New parameter CFULL_EXPRESSION. 377 Compute full expression. 378 (c_value_of_child, c_type_of_child): Adjust. 379 (cplus_number_of_children): Adjust. 380 (cplus_describe_child): New parameter CFULL_EXPRESSION. 381 Compute full expression. 382 (cplus_name_of_child, cplus_value_of_child) 383 (cplus_type_of_child): Adjust. 384 * varobj.h (varobj_get_path_expr): Declare. 385 3862007-08-31 Vladimir Prus <vladimir@codesourcery.com> 387 388 * mi/mi-cmd-var.c (print_varobj): If a varobj 389 type is NULL, don't try to print it. 390 3912007-08-30 Alan Modra <amodra@bigpond.net.au> 392 393 * ppc-linux-nat.c (right_fill_reg): Delete. 394 (supply_gregset): Use ppc_supply_gregset. 395 (supply_fpregset): Use ppc_supply_fpregset. 396 (fill_gregset): Use ppc_collect_gregset. 397 (fill_fpregset): Use ppc_collect_fpregset. 398 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define. 399 (right_supply_register, ppc_linux_supply_gregset): Delete. 400 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete. 401 (ppc_linux_supply_fpregset): Delete. 402 (ppc_linux_collect_gregset): New function. 403 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New. 404 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets, 405 ppc_linux_supply_gregset, and ppc_collect_gregset. 406 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update. 407 (ppc_linux_gregset, ppc_linux_fpregset): New functions. 408 (ppc_linux_regset_from_core_section): Update. 409 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare. 410 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete. 411 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields. 412 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert. 413 (ppcobsd_collect_gregset): Likewise. 414 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size. 415 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise. 416 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise. 417 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise. 418 (rs6000_aix64_reg_offsets): Likewise. 419 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing 420 ppc_floating_point_unit_p. 421 (rs6000_aix_collect_regset): Similarly. 422 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset 423 when regsize is larger than regcache register size. 424 (ppc_collect_reg): Similarly zero pad when regsize is larger than 425 regcache register size. 426 (ppc_greg_offset): New function, split out from.. 427 (ppc_supply_gregset): ..here. Separate code handling all regs from 428 single reg case. Correct xer offset. 429 (ppc_fpreg_offset): New function, split out from.. 430 (ppc_supply_fpregset): ..here. Separate code handling all regs from 431 single reg case. 432 (ppc_collect_gregset, ppc_collect_fpregset): Likewise. 433 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have 434 a fp unit, instead return if no fp. 435 4362007-08-29 Jim Blandy <jimb@codesourcery.com> 437 438 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block; 439 this code has not been compiled for two years. 440 4412007-08-29 Michael Snyder <msnyder@access-company.com> 442 443 * event-top.c (gdb_readline2): Return after EOF. 444 4452007-08-29 Joel Brobecker <brobecker@adacore.com> 446 447 * symtab.c: Remove a function that has been commented out 3 years ago. 448 4492007-08-29 Randolph Chung <tausq@debian.org> 450 451 * hppa-tdep.c (hppa32_cannot_fetch_register) 452 (hppa64_cannot_fetch_register): New functions. 453 (hppa_gdbarch_init): Set cannot_fetch_register appropriately. 454 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM. 455 4562007-08-28 Michael Snyder <msnyder@access-company.com> 457 458 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to 459 check for null before calling check_typedef. 460 461 * NEWS: Mention Coverity bug fixes. 462 4632007-08-27 Markus Deuling <deuling@de.ibm.com> 464 465 * spu-tdep.c (spu_pointer_to_address): New function. 466 (spu_integer_to_address): Likewise. 467 (spu_gdbarch_init): Add spu_pointer_to_address and 468 spu_integer_to_address to gdbarch. 469 4702007-08-26 Pedro Alves <pedro_alves@portugalmail.pt> 471 472 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10. 473 4742007-08-23 Joel Brobecker <brobecker@adacore.com> 475 476 * Makefile.in (copying.c): Use the top-level COPYING3 as the file 477 that contains the GDB license. 478 * copying.awk: Adjust to the GPLv3 wording. 479 * copying.c: Regenerate. 480 4812007-08-23 Joel Brobecker <brobecker@adacore.com> 482 483 * copying.awk: Protoization, and i18n markup. 484 4852007-08-23 Joel Brobecker <brobecker@adacore.com> 486 487 * config/djgpp/djconfig.sh: Switch license to GPLv3. 488 * copyright.sh: Likewise. 489 * gdb-events.sh: Likewise. 490 * gdb_gcore.sh: Likewise. 491 * gdb_mbuild.sh: Likewise. 492 * gdbarch.sh: Likewise. 493 * observer.sh: Likewise. 494 * features/feature_to_c.sh: Likewise. 495 * regformats/regdat.sh: Likewise. 496 4972007-08-23 Joel Brobecker <brobecker@adacore.com> 498 499 Switch the license of all .c files to GPLv3. 500 Switch the license of all .h files to GPLv3. 501 Switch the license of all .cc files to GPLv3. 502 5032007-08-23 Joel Brobecker <brobecker@adacore.com> 504 505 * configure.ac: Switch license to GPLv3. 506 5072007-08-22 Daniel Jacobowitz <dan@codesourcery.com> 508 509 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to 510 determine the file's FPU type. 511 5122007-08-22 Daniel Jacobowitz <dan@codesourcery.com> 513 514 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New. 515 (mips_n32n64_push_dummy_call): Always increment float_argreg along 516 with argreg. Use mips_n32n64_fp_arg_chunk_p. 517 5182007-08-22 Daniel Jacobowitz <dan@codesourcery.com> 519 520 * solib-svr4.c (scan_dyntag): Only read target memory when necessary. 521 Fix formatting. 522 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments. 523 (elf_lookup_lib_symbol): Fix formatting. 524 5252007-08-21 Michael Snyder <msnyder@access-company.com> 526 527 * dbxread.c (read_dbx_symtab): Guard null deref. 528 Break up long line. 529 530 * valops.c (find_overload_match): Guard against NULL. 531 5322007-08-21 Daniel Jacobowitz <dan@codesourcery.com> 533 534 * MAINTAINERS (Patch Champions): Remove self. 535 5362007-08-21 Chris Smith <chris.smith@st.com> 537 538 * cli/cli-script.c (read_command_lines): Call dont_repeat for each 539 line. 540 5412007-08-18 Michael Snyder <msnyder@access-company.com> 542 543 * stabsread.c (dbx_lookup_type): Memory leak. 544 545 * event-loop.c (delete_async_signal_handler): Move pointer null 546 test to before pointer dereference. 547 548 * ui-out.c (append_header_to_list): Possible cut and paste error. 549 550 * MAINTAINERS: white space tweak. 551 5522007-08-17 Michael Snyder <msnyder@access-company.com> 553 554 * stack.c (print_frame): Memory leak. 555 556 * completer.c (filename_completer): Avoid memory leak. 557 Remove unnecessary nested block. 558 559 * c-exp.y (parse_number): Memory leak. 560 561 * completer.c (location_completer): Must free 'fn_list', except 562 in the one case where it is returned (as 'list'). 563 564 * varobj.c (value_of_root): Memory leak. 565 566 * gdbtypes.h (virtual_base_list): Remove export decl. 567 * gdbtypes.c (virtual_base_list): Make static. Not called outside. 568 (virtual_base_index): Memory leak. 569 (virtual_base_index_skip_primaries): Ditto. 570 5712007-08-17 Maxim Grigoriev <maxim2405@gmail.com> 572 573 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS) 574 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS) 575 (C0_CONST, C0_INEXP, C0_NOSTK): New macros. 576 (xtensa_read_register): New function. 577 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg) 578 (xtensa_insn_kind): New types. 579 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache) 580 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue) 581 (xtensa_verify_config, xtensa_pseudo_register_read) 582 (xtensa_pseudo_register_write, xtensa_extract_return_value) 583 (xtensa_store_return_value) 584 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI. 585 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id) 586 (xtensa_frame_this_id, xtensa_frame_prev_register) 587 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes. 588 (call0_frame_cache, call0_frame_get_reg_at_entry) 589 (call0_classify_opcode, call0_track_op) 590 (call0_analyze_prologue, call0_frame_cache): New functions. 591 5922007-08-17 Vladimir Prus <vladimir@codesourcery.com> 593 594 * breakpoint.c (bpstat_free): New. 595 (bpstat_clear): Use bpstat_free. 596 (delete_breakpoint): Document why we cannot 597 remove bpstats from stop_bpstat. 598 * breakpoint.h (bpstat_free): Declare. 599 6002007-08-16 Michael Snyder <msnyder@access-company.com> 601 602 * event-loop.c (gdb_wait_for_event): Move statement into "if" block. 603 6042007-08-15 Paul Hilfinger <hilfinger@adacore.com> 605 Joel Brobecker <brobecker@adacore.com> 606 607 * ada-lang.c (resolve_subexp): Correct arity of binary operators. 608 6092007-08-15 Paul Hilfinger <hilfinger@adacore.com> 610 Joel Brobecker <brobecker@adacore.com> 611 612 * ada-lang.c (possible_user_operator_p): Alternative fix to last 613 checkin guarding against NULL. 614 6152007-08-14 Michael Snyder <msnyder@access-company.com> 616 617 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c, 618 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c, 619 tui-wingeneral.c, tui-winsource.c: Coding standard, && and || 620 go at beginning of new line. 621 622 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c, 623 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c, 624 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h, 625 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c, 626 tui-winsource.h, tui.c, tui.h: Function declarations and 627 definitions, wrap long lines. 628 629 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c, 630 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c: 631 Reformat block comments to GNU standard. 632 633 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c, 634 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c, 635 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c, 636 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h, 637 tui.c, tui.h: Comment reformatting to coding standard (capitals, 638 spaces after periods, etc). 639 640 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c, 641 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c, 642 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c, 643 tui-winsource.h: Whitespace changes, fix pointer declarations 644 to be consistant. 645 6462007-08-14 Joel Brobecker <brobecker@adacore.com> 647 Michael Snyder <msnyder@access-company.com> 648 649 * ada-lang.c (field_alignment): Guard against NULL. 650 6512007-08-14 Joel Brobecker <brobecker@adacore.com> 652 653 * MAINTAINERS (Global Maintainers): Add self. 654 6552007-08-14 Michael Snyder <msnyder@access-company.com> 656 657 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable. 658 659 * ada-lang.c (possible_user_operator_p): Guard against NULL. 660 661 * varobj.c (cplus_describe_child): Guard against null. 662 Use "NULL" instead of "0" to initialize pointers. 663 6642007-08-14 Daniel Jacobowitz <dan@codesourcery.com> 665 666 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings 667 to match any gdbarch with matching OSABI. Set default ABI and FPU 668 after running the OSABI handler. 669 6702007-08-14 Daniel Jacobowitz <dan@codesourcery.com> 671 672 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here... 673 * config/i386/linux.mt (TDEPFILES): ...to here. 674 6752007-08-14 Vladimir Prus <vladimir@codesourcery.com> 676 677 * breakpoint.c (disable_breakpoints_in_shlibs): Remove 678 the 'silent' parameter and code to implement that. 679 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust 680 prototype. 681 * win32-nat.c: Adjust. 682 * solib.c: Adjust. 683 6842007-08-14 Vladimir Prus <vladimir@codesourcery.com> 685 686 * breakpoint.c (update_breakpoints_after_exec): Don't 687 set address to zero. 688 6892007-08-13 Michael Snyder <msnyder@access-company.com> 690 691 * valops.c: Whitespace clean-up. 692 693 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation. 694 695 * event-top.c (command_line_handler): Memory leak. 696 697 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak. 698 No need to make copy. 699 700 * source.c (find_source_lines): Require symtab 's'. 701 7022007-08-11 Michael Snyder <msnyder@access-company.com> 703 704 * completer.c: Spelling fix in comments. 705 7062007-08-10 Michael Snyder <msnyder@access-company.com> 707 708 * gdbtypes.c: Coding standard cleanup. 709 * gdbtypes.c: Comment/whitespace cleanup. 710 711 * stabsread.c (read_huge_number): Attempt to compute value before 712 values that it depends on. 713 714 * linespec.c (decode_dollar): Dead code, ptr can't be non-null. 715 (decode_objc): Use "NULL" instead of 0. 716 (find_method): Ditto. 717 (decode_all_digits): Ditto. 718 (decode_dollar): Ditto. 719 720 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak. 721 722 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak. 723 724 * solib-svr4.c (enable_break): Don't free tmp_pathname until 725 after closing bfd. 726 727 * completer.c: Comment/whitespace cleanup. 728 7292007-08-10 Joel Brobecker <brobecker@adacore.com> 730 731 * Makefile.in (i386nbsd-nat.o): Add missing dependency. 732 7332007-08-10 Maxim Grigoriev <maxim2405@gmail.com> 734 735 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly 736 allocated file descriptors. 737 7382007-08-10 Joel Brobecker <brobecker@adacore.com> 739 740 * Makefile.in: Minor cleanup throughout; add some missing variables, 741 add some missing rules, remove some rules that are no longer needed, 742 and fix the dependencies in several rules. 743 7442007-08-10 Ludovic Court��s <ludo@gnu.org> 745 746 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c. 747 (scm_lang_h, scm_tags_h): New. 748 (COMMON_OBS): Add scm-{exp,lang,valprint}.o. 749 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets. 750 * defs.h (enum language): Add `language_scm'. 751 752 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon 753 opening. 754 7552007-08-09 Ludovic Court��s <ludo@gnu.org> 756 757 * MAINTAINERS (Write After Approval): Add myself. 758 7592007-08-09 Michael Snyder <msnyder@access-company.com> 760 761 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer. 762 7632007-08-09 Joel Brobecker <brobecker@adacore.com> 764 765 * solib-som.c (som_relocate_section_addresses): Stop saving 766 the $CODE$ section in the so_list structure. 767 7682007-08-08 Maxim Grigoriev <maxim2405@gmail.com> 769 770 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New. 771 (xtensa_register_group_t): Add entries for coprocessors. 772 * xtensa-tdep.c (xtensa_init_reggroups): New register groups. 773 (xtensa_add_reggroups): Likewise. 774 (xtensa_register_reggroup_p): Likewise. 775 (xtensa_coprocessor_register_group): New function. 776 (xtensa_cp): New. 777 7782007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com> 779 780 * serial.c (serial_open): Fix the OPEN parameter macro expansion. 781 7822007-08-08 Michael Snyder <msnyder@access-company.com> 783 784 * target.c (target_read_string): Guard against null. 785 786 * varobj.c (value_of_root): Move alloc after return to avoid leak. 787 788 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable. 789 (tui_set_layout_for_display_command): Mem leak. 790 791 * top.c (command_line_input): Memory leak. 792 793 * solib-svr4.c (open_symbol_file_object): Memory leak. 794 (svr4_current_sos): Ditto. 795 (enable_break): Ditto. 796 797 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak. 798 799 * dwarf2read.c (add_partial_symbol): Memory leak. 800 8012007-08-06 Michael Snyder <msnyder@access-company.com> 802 803 * ada-lang.c (desc_bounds): Comparison of function address to NULL. 804 8052007-08-05 Jim Blandy <jimb@codesourcery.com> 806 807 * macroexp.c (init_buffer): Remove testing code that overrides the 808 caller's length guess. 809 (gather_arguments): Use a larger initial size, now that the vector 810 growth code has been exercised. 811 8122007-08-05 Pedro Alves <pedro_alves@portugalmail.pt> 813 814 * solib-target.c (solib_target_relocate_section_addresses): Add 815 orig_delta to addr_high. 816 8172007-08-04 Michael Snyder <msnyder@access-company.com> 818 819 * remote-fileio.c (remote_fileio_func_write): Memory leak. 820 821 * breakpoint.c (print_one_breakpoint): Off by one error. 822 823 * tracepoint.c (add_register): Off by one error. 824 (stringify_collection_list): Free malloc buffer. 825 8262007-08-03 Michael Snyder <msnyder@access-company.com> 827 828 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable, 829 stop memory leak, straighten out cleanups. 830 831 * jv-lang.c (java_link_class_type): Guard against NULL. 832 8332007-08-02 Michael Snyder <msnyder@access-company.com> 834 835 * gdbtypes.c (create_set_type): Test should only be done within 836 the preceeding if block. Otherwise, variable is uninitialized. 837 838 * gdbtypes.c (check_typedef): Guard NULL. 839 8402007-08-01 Michael Snyder <msnyder@access-company.com> 841 842 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to 843 avoid dereference in lookup_cmd_1. 844 845 * tui/tui-data.c (tui_alloc_content): Move assign out of if, 846 clean up long lines. 847 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro. 848 (tui_alloc_win_info): Ditto. 849 (tui_add_content_elements): Ditto. 850 * tui/tui-file.c (tui_file_magic): Ditto. 851 8522007-07-31 Michael Snyder <msnyder@access-company.com> 853 854 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'. 855 True and false paths are mutually exclusive. 856 857 * event-top.c (command_line_handler): Add pedantic return. 858 859 * f-valprint.c (info_common_command): Bail out to prevent null 860 pointer deref. Break up a long line. 861 862 * exec.c (xfer_memory): Remove redundant condition from 'if'. 863 864 * symfile.c (reread_separate_symbols): Free xmalloced memory. 865 866 * printcmd.c (build_address_symbolic): Remove dead code and dead 867 variable. 868 8692007-07-31 Daniel Jacobowitz <dan@codesourcery.com> 870 871 * linespec.c (minsym_found): Advance to the next line if possible. 872 8732007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> 874 875 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call. 876 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and 877 solib-svr4.o, and add solib-target.o 878 8792007-07-27 Michael Snyder <msnyder@access-company.com> 880 881 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof. 882 8832007-07-26 Maciej W. Rozycki <macro@linux-mips.org> 884 885 * MAINTAINERS (Write After Approval): Add myself. 886 8872007-07-26 Maciej W. Rozycki <macro@mips.com> 888 889 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory 890 for include files. 891 8922007-07-25 Maciej W. Rozycki <macro@mips.com> 893 894 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary". 895 8962007-07-24 Michael Snyder <msnyder@access-company.com> 897 898 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of 899 'buffer' must cover both branches that call strcmp (Coverity). 900 901 * stack.c (print_frame_args): Check return value of lookup_symbol. 902 903 * ax-gdb.c (find_field): Guard against null ptr. 904 9052007-07-24 Ulrich Weigand <uweigand@de.ibm.com> 906 907 * regformats/reg-spu.dat: Fix order of npc, id registers. 908 9092007-07-24 Ulrich Weigand <uweigand@de.ibm.com> 910 911 * target.c (memory_xfer_partial): Accesses to unmapped overlay 912 sections should always go to the executable file. 913 9142004-07-20 Chris Dearman <chris@mips.com> 915 916 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function 917 prologue instructions. 918 9192007-07-20 Maciej W. Rozycki <macro@mips.com> 920 921 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of 922 a direct test. 923 9242007-07-20 Chris Dearman <chris@mips.com> 925 Maciej W. Rozycki <macro@mips.com> 926 927 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the 928 description. 929 9302007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> 931 Daniel Jacobowitz <dan@codesourcery.com> 932 933 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o. 934 * coff-pe-read.c (read_pe_exported_syms): Delete verbose 935 printf. 936 * NEWS: Mention gdbserver DLL support. 937 9382007-07-17 Daniel Jacobowitz <dan@codesourcery.com> 939 940 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches. 941 9422007-07-16 H.J. Lu <hongjiu.lu@intel.com> 943 944 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias 945 warning bug. 946 9472007-07-13 Kevin Buettner <kevinb@redhat.com> 948 949 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA 950 instruction case. 951 9522007-07-12 Kevin Buettner <kevinb@redhat.com> 953 954 * mep-tdep.c (IS_BRA, BRA_DISP): New macros. 955 (mep_analyze_prologue): Add case for BRA instruction. 956 9572007-07-12 Ulrich Weigand <uweigand@de.ibm.com> 958 959 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic. 960 9612007-07-10 Nick Roberts <nickrob@snap.net.nz> 962 963 * breakpoint.c: Include "top.h". 964 (breakpoint_1): Don't set convenience variable $_ if server prefix 965 is used. 966 (_initialize_breakpoint): Describe this behaviour in command help. 967 9682007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> 969 970 * solib-target.c (library_list_start_segment): Cast address to 971 CORE_ADDR. 972 9732007-07-06 Mark Kettenis <kettenis@gnu.org> 974 975 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs 976 for terminated processes. 977 9782007-07-05 Michael Snyder <msnyder@access-company.com> 979 980 * event-top.c (cli_command_loop): Prompt string can (and should) 981 be freed after call to readline (Coverity). Also move local var 982 declarations into block where they are used. 983 984 * tui/tui-interp.c (tui_command_loop): Prompt string can (and 985 should) be freed after call to readline (Coverity). Also move 986 local var declarations into block where they are used. 987 9882007-07-03 Andreas Schwab <schwab@suse.de> 989 990 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in 991 /proc/../stat. 992 9932007-07-03 Paul Gilliam <pgilliam@us.ibm.com> 994 Thiago Bauermann <bauerman@br.ibm.com> 995 Joseph S. Myers <joseph@codesourcery.com> 996 Daniel Jacobowitz <dan@codesourcery.com> 997 998 * remote.c (remote_check_symbols): Use 999 gdbarch_convert_from_func_ptr_addr. 1000 * infcall.c (find_function_addr): Handle function descriptors 1001 without debugging information. 1002 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed 1003 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt. 1004 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr. 1005 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state". 1006 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always 1007 allow SEC_CODE and SEC_DATA. 1008 (enable_break): Update calls. Pass current_target to solib_add. 1009 Use gdbarch_convert_from_func_ptr_addr. 1010 10112007-07-03 Ilko Iliev <iliev@ronetix.at> 1012 Daniel Jacobowitz <dan@codesourcery.com> 1013 1014 * symfile.c (print_transfer_performance): Avoid integer overflow. 1015 Use larger units. 1016 10172007-07-03 Markus Deuling <deuling@de.ibm.com> 1018 1019 * cp-namespace.c (lookup_symbol_file): Add block to 1020 lookup_symbol_global call. 1021 * Makefile.in (solist_h): Add dependency on symtab header. 1022 (symtab.o): Add dependency on solist header. 1023 * solib.c (solib_global_lookup): New function. 1024 * solib-svr4.c (scan_dyntag): Likewise. 1025 (elf_locate_base): Call helper routine scan_dyntag. 1026 (elf_lookup_lib_symbol): New function. 1027 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops. 1028 * solist.h (symtab.h): New include. 1029 (struct target_so_ops): New member lookup_lib_global_symbol. 1030 (solib_global_lookup): New prototype. 1031 * symtab.c: New include solist.h. 1032 (lookup_objfile_from_block): New function. 1033 (lookup_global_symbol_from_objfile): New function. 1034 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call. 1035 (lookup_symbol_global): Call library-specific lookup procedure. 1036 * symtab.h (lookup_global_symbol_from_objfile): New prototype. 1037 1038 * NEWS: Document framework. 1039 10402007-07-02 Daniel Jacobowitz <dan@codesourcery.com> 1041 1042 * target-descriptions.c (tdesc_create_reg): Do not set reg->type 1043 to NULL. 1044 1045 * cli/cli-script.c (build_command_line): Update NULL check. 1046 10472007-07-02 Michael Snyder <msnyder@access-company.com> 1048 1049 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity). 1050 10512007-07-02 Daniel Jacobowitz <dan@codesourcery.com> 1052 1053 * Makefile.in (XMLFILES): Add library-list.dtd. 1054 (ALLDEPFILES): Add solib-target.o. 1055 (solib-target.o): New rule. 1056 * remote.c (PACKET_qXfer_libraries): New constant. 1057 (remote_protocol_features): Add qXfer:libraries:read. 1058 (remote_wait): Recognize library stop replies. 1059 (remote_async_wait): Likewise. Fix typo. 1060 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES. 1061 (init_remote_async_ops): Fix typo. 1062 (_initialize_remote): Register "set remote library-info-packet". 1063 * solib-som.c (som_current_sos): Set addr_low and addr_high. 1064 * solib-target.c: New file. 1065 * solib.c (solib_map_sections): Use addr_low and addr_high instead 1066 of textsection. 1067 (info_sharedlibrary_command): Likewise. 1068 (solib_add_library, solib_remove_library): New. 1069 * solist.h (struct so_list): Replace textsection with addr_low and 1070 addr_high. 1071 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES. 1072 * NEWS: Describe new qXfer:libraries:read and shared library 1073 event support. 1074 * features/library-list.dtd: New. 1075 10762007-07-02 Daniel Jacobowitz <dan@codesourcery.com> 1077 1078 * infrun.c (inferior_ignoring_startup_exec_events): Delete. 1079 (start_remote): Use STOP_QUIETLY_REMOTE. 1080 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED 1081 support on a SOLIB_ADD definition. Update breakpoints_inserted. 1082 Update to match shared library event breakpoint support. Only 1083 resume if appropriate. Handle STOP_QUIETLY_REMOTE. 1084 (normal_stop): Handle TARGET_WAITKIND_LOADED. 1085 * fork-child.c (startup_inferior): Do not set 1086 inferior_ignoring_startup_exec_events 1087 * inferior.h (inferior_ignoring_startup_exec_events): Delete 1088 declaration. 1089 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE. 1090 10912007-07-02 Markus Deuling <deuling@de.ibm.com> 1092 1093 * breakpoint.c (insert_bp_location): Remove dead code 1094 (DISABLE_UNSETTABLE_BREAK). 1095 (disable_breakpoints_in_shlibs) 1096 (disable_breakpoints_in_unloaded_shlib): Likewise (comment). 1097 10982007-07-02 Daniel Jacobowitz <dan@codesourcery.com> 1099 1100 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint. 1101 Call insert_bp_location. 1102 11032007-07-01 H.J. Lu <hongjiu.lu@intel.com> 1104 1105 * core-regset.c (fetch_core_registers): Work around gcc 3.4 1106 alias warning bug. 1107 11082007-07-01 Daniel Jacobowitz <dan@codesourcery.com> 1109 1110 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer 1111 objfiles. 1112 11132007-07-01 Daniel Jacobowitz <dan@codesourcery.com> 1114 1115 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove. 1116 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig. 1117 (gdb_readline_wrapper_cleanup): Do not reset the prompt. 1118 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt 1119 to display_gdb_prompt. 1120 11212007-07-01 Daniel Jacobowitz <dan@codesourcery.com> 1122 1123 PR symtab/2161 1124 * target.c (memory_xfer_partial): Do not continue past targets with 1125 all memory. 1126 11272007-06-30 Andreas Schwab <schwab@suse.de> 1128 1129 * m68k-tdep.c (m68k_ps_type): New. 1130 (m68k_init_types): New. 1131 (m68k_register_type): Use m68k_ps_type for PS register. 1132 (_initialize_m68k_tdep): Call m68k_init_types. 1133 1134 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour 1135 from the generic m68k arch. 1136 11372007-06-28 Michael Snyder <msnyder@access-company.com> 1138 1139 * m2-typeprint.c (m2_print_type): Move pointer ref after null test 1140 (Coverity). 1141 1142 * linux-thread-db.c (thread_db_get_thread_local_address): Add 1143 gdb_assert before using return value of find_thread_pid (Coverity). 1144 1145 * source.c (unset_substitute_path_command): Plug leak (Coverity). 1146 1147 * cli/cli-script.c (build_command_line): Add null pointer guard 1148 (Coverity). 1149 11502007-06-27 Daniel Jacobowitz <dan@codesourcery.com> 1151 1152 * linux-thread-db.c (thread_db_attach): Delete. 1153 (thread_db_detach): Typo fix. Call target_mourn_inferior 1154 instead of fixing up proc_handle. 1155 (have_threads_callback, have_threads): New functions. 1156 (thread_db_wait): Remove dead proc_handle.pid check. Only 1157 translate PTIDs if we have registered threads. Check for new 1158 threads if we have none. 1159 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete. 1160 (find_new_threads_callback): Only enable event reporting if TID == 0. 1161 (same_ptid_callback): New. 1162 (thread_db_get_thread_local_address): Check for new threads. 1163 (init_thread_db_ops): Don't set to_attach, to_create_inferior, 1164 or to_post_startup_inferior. 1165 11662007-06-22 Ulrich Weigand <uweigand@de.ibm.com> 1167 1168 * infrun.c (adjust_pc_after_break): Do not assume software single-step 1169 is always active if SOFTWARE_SINGLE_STEP_P is true. 1170 (resume): Use gdbarch_software_single_step[_p] instead of 1171 SOFTWARE_SINGLE_STEP[_P]. 1172 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P. 1173 1174 * gdbarch.sh (software_single_step): Remove target macro. 1175 * gdbarch.h, gdbarch.c: Regenerate. 1176 11772007-06-22 Ulrich Weigand <uweigand@de.ibm.com> 1178 1179 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap, 1180 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove. 1181 (struct gdbarch_swap, struct gdbarch_swap_registration, 1182 struct gdbarch_swap_registry, gdbarch_swap_registry, 1183 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack, 1184 current_gdbarch_swap_in_hack): Remove. 1185 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack. 1186 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack 1187 and current_gdbarch_swap_out_hack, update current_gdbarch directly. 1188 (deprecated_current_gdbarch_select_hack): Likewise. 1189 * gdbarch.h, gdbarch.c: Regenerate. 1190 11912007-06-22 Ulrich Weigand <uweigand@de.ibm.com> 1192 1193 * infrun.c (clear_proceed_status): Clean up stop_registers. 1194 (normal_stop): Allocate regcache for stop_registers. 1195 (struct inferior_status): Remove stop_registers member. 1196 (save_inferior_status): Do not save stop_registers. 1197 (restore_inferior_status): Do not restore stop_registers. 1198 (discard_inferior_status): Do not discard stop_registers. 1199 (build_infrun): Remove. 1200 (_initialize_infrun): Do not swap stop_registers. 1201 12022007-06-22 Ulrich Weigand <uweigand@de.ibm.com> 1203 1204 * remote.c (remote_address_masked): If remote_address_size is zero, 1205 default to target address size. 1206 (build_remote_gdbarch_data): Remove. 1207 (_initialize_remote): Do not swap remote_address_size. 1208 12092007-06-22 Ulrich Weigand <uweigand@de.ibm.com> 1210 1211 * gdbtypes.h (builtin_type_true_char, builtin_type_void, 1212 builtin_type_char, builtin_type_short, builtin_type_int, 1213 builtin_type_long, builtin_type_signed_char, 1214 builtin_type_unsigned_char, builtin_type_unsigned_short, 1215 builtin_type_unsigned_int, builtin_type_unsigned_long, 1216 builtin_type_float, builtin_type_double, builtin_type_long_double, 1217 builtin_type_complex, builtin_type_double_complex, builtin_type_string, 1218 builtin_type_bool, builtin_type_long_long, 1219 builtin_type_unsigned_long_long, builtin_type_void_data_ptr, 1220 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global 1221 variable declaration with compatibility macro. 1222 * gdbtypes.c (builtin_type_true_char, builtin_type_void, 1223 builtin_type_char, builtin_type_short, builtin_type_int, 1224 builtin_type_long, builtin_type_signed_char, 1225 builtin_type_unsigned_char, builtin_type_unsigned_short, 1226 builtin_type_unsigned_int, builtin_type_unsigned_long, 1227 builtin_type_float, builtin_type_double, builtin_type_long_double, 1228 builtin_type_complex, builtin_type_double_complex, builtin_type_string, 1229 builtin_type_bool, builtin_type_long_long, 1230 builtin_type_unsigned_long_long, builtin_type_void_data_ptr, 1231 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove. 1232 (build_gdbtypes): Remove. 1233 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing 1234 opaque-type-resolution command here. Do not call 1235 deprecated_register_gdbarch_swap. 1236 12372007-06-22 Ulrich Weigand <uweigand@de.ibm.com> 1238 1239 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol, 1240 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol. 1241 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types. 1242 1243 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove. 1244 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove. 1245 (write_exp_msymbol): Use builtin nodebug_ types instead of them. 1246 (build_parse): Remove. 1247 (_initialize_parse): Do not call build_parse. Do not register 1248 msym_ types for gdbarch-swapping. 1249 1250 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type 1251 instead of creating private type. 1252 1253 * xcoffread.c (func_symbol_type, var_symbol_type): Remove. 1254 (_initialize_xcoffread): Do not initialized them. 1255 (process_xcoff_symbol): Use builtin nodebug_ types instead of them. 1256 1257 * mdebugread.c (nodebug_func_symbol_type): Remove. 1258 (nodebug_var_symbol_type): Remove. 1259 (_initialize_mdebugread): Do not initialize them. 1260 (parse_symbol): Use builtin nodebug_ type instead of them. 1261 (parse_procedure): Likewise. 1262 12632007-06-21 Chris Dearman <chris@mips.com> 1264 1265 * printcmd.c (do_one_display): If display/i, start with an initial 1266 line feed to avoid bad layout if there is a branch delay slot. 1267 12682007-06-21 Nigel Stephens <nigel@mips.com> 1269 Maciej W. Rozycki <macro@mips.com> 1270 1271 * disasm.c (gdb_print_insn): Return the number of branch delay 1272 slot instructions too. 1273 * disasm.h (gdb_print_insn): Update prototype. 1274 * printcmd.c (branch_delay_insns): New variable to record the 1275 number of delay slot instructions after disassembling a branch. 1276 (print_formatted): Record the number of branch delay slot 1277 instructions. 1278 (do_examine): When disassembling, if the last instruction 1279 disassembled has any branch delay slots, then bump the count so 1280 that they get disassembled too. 1281 * tui/tui-disasm.c (tui_disassemble): Update the call to 1282 gdb_print_insn(). 1283 * NEWS: Document the new behaviour. 1284 12852007-06-21 Andreas Schwab <schwab@suse.de> 1286 1287 * regcache.c (write_pc_pid): Restore missing else. 1288 12892007-06-20 Ulrich Weigand <uweigand@de.ibm.com> 1290 1291 * regcache.c (regcache_print): Use get_current_regcache () 1292 instead of current_regcache. 1293 12942007-06-20 H.J. Lu <hongjiu.lu@intel.com> 1295 1296 PR 4606 1297 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags 1298 instead of bfd_make_section_anyway. 1299 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD 1300 when clearing SEC_LOAD. 1301 13022007-06-19 Joseph Myers <joseph@codesourcery.com> 1303 1304 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial 1305 registers for big-endian. 1306 13072007-06-19 Markus Deuling <deuling@de.ibm.com> 1308 1309 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn. 1310 * disasm.c (dump_insns, gdb_print_insn): Likewise. 1311 * gdbarch.c, gdbarch.h: Regenerate. 1312 13132007-06-19 Markus Deuling <deuling@de.ibm.com> 1314 1315 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by 1316 gdbarch_believe_pcc_promotion. 1317 * stabsread.c (define_symbol): Likewise. 1318 Remove unnecessary definition. 1319 * coffread.c (process_coff_symbol): Remove unnecessary code. 1320 * gdbarch.c, gdbarch.h: Regenerate. 1321 13222007-06-19 Daniel Jacobowitz <dan@codesourcery.com> 1323 1324 * configure.ac: Do not use ${objdir}. 1325 * configure: Regenerated. 1326 13272007-06-18 Ulrich Weigand <uweigand@de.ibm.com> 1328 1329 * gdbarch.sh (deprecated_register_size): Remove. 1330 * gdbarch.h, gdbarch.c: Regenerate. 1331 1332 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE 1333 by INT_REGISTER_SIZE. 1334 (thumb_get_next_pc, arm_return_in_memory): Likewise. 1335 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size. 1336 * ia64-tdep.c (ia64_gdbarch_init): Do not call 1337 set_gdbarch_deprecated_register_size. 1338 13392007-06-18 Markus Deuling <deuling@de.ibm.com> 1340 1341 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by 1342 gdbarch_deprecated_fp_regnum. 1343 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise. 1344 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise. 1345 * arch-utils.c (legacy_virtual_frame_pointer): Likewise. 1346 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise 1347 (comment). 1348 * gdbarch.c, gdbarch.h: Regenerate. 1349 13502007-06-18 Markus Deuling <deuling@de.ibm.com> 1351 1352 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with 1353 gdbarch_extract_return_value. 1354 * value.c (generic_use_struct_convention): Likewise (comment). 1355 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment). 1356 * arch-utils.c (legacy_return_value): Likewise. 1357 * arch-utils.h (legacy_return_value): Likewise (comment). 1358 * gdbarch.sh (STORE_RETURN_VALUE): Replace by 1359 gdbarch_store_return_value. 1360 * stack.c (return_command): Likewise (comment). 1361 * arch-utils.h (legacy_return_value): Likewise (comment). 1362 * arch-utils.c (legacy_return_value): Likewise. 1363 * gdbarch.c, gdbarch.h: Regenerate. 1364 13652007-06-18 Markus Deuling <deuling@de.ibm.com> 1366 1367 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by 1368 gdbarch_deprecated_use_struct_convention. 1369 * arch-utils.c (legacy_return_value): Likewise. 1370 * gdbarch.c, gdbarch.h: Regenerate. 1371 13722007-06-18 Markus Deuling <deuling@de.ibm.com> 1373 1374 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by 1375 gdbarch_deprecated_function_start_offset. 1376 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise. 1377 * linespec.c (minsym_found): Likewise. 1378 * infrun.c (handle_inferior_event): Likewise. 1379 * infcall.c (find_function_addr): Likewise. 1380 * cli/cli-cmds.c (disassemble_command): Likewise. 1381 * gdbarch.c, gdbarch.h: Regenerate. 1382 13832007-06-18 Markus Deuling <deuling@de.ibm.com> 1384 1385 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by 1386 gdbarch_deprecated_reg_struct_has_addr. 1387 * infcall.c (call_function_by_hand): Likewise. 1388 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by 1389 * gdbarch_deprecated_reg_struct_has_addr_p. 1390 * infcall.c (call_function_by_hand): Likewise. 1391 * gdbarch.c, gdbarch.h: Regenerate. 1392 13932007-06-18 Markus Deuling <deuling@de.ibm.com> 1394 1395 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove. 1396 * sh-tdep.c (sh_extract_struct_value_address): Remove. 1397 (sh_gdbarch_init): Remove 1398 set_gdbarch_deprecated_extract_struct_value_address. 1399 * sh64-tdep.c (sh64_extract_struct_value_address): Remove. 1400 (sh64_gdbarch_init): Remove 1401 set_gdbarch_deprecated_extract_struct_value_address. 1402 * ia64-tdep.c (ia64_extract_struct_value_address): Remove. 1403 (ia64_gdbarch_init): Remove 1404 set_gdbarch_deprecated_extract_struct_value_address. 1405 * frv-tdep.c (frv_extract_struct_value_address): Remove. 1406 (frv_gdbarch_init): Remove 1407 set_gdbarch_deprecated_extract_struct_value_address. 1408 * gdbarch.c, gdbarch.h: Regenerate. 1409 14102007-06-18 Markus Deuling <deuling@de.ibm.com> 1411 1412 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum. 1413 * v850-tdep.c (v850_unwind_sp): Likewise. 1414 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise. 1415 * stack.c (frame_info): Likewise. 1416 * stabsread.c (define_symbol): Likewise. 1417 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu) 1418 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register) 1419 (sh_unwind_sp): Likewise. 1420 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache) 1421 (sh64_frame_prev_register, sh64_unwind_sp): Likewise. 1422 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id) 1423 (rs6000_frame_cache): Likewise. 1424 * rs6000-nat.c (store_register): Likewise. 1425 * remote-mips.c (mips_wait): Likewise. 1426 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise. 1427 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call) 1428 (ppc64_sysv_abi_push_dummy_call): Likewise. 1429 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise. 1430 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise. 1431 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise. 1432 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise. 1433 * m32r-rom.c (m32r_supply_register): Likewise. 1434 * frame.c (frame_sp_unwind): Likewise. 1435 * mips-tdep.c (mips_insn16_frame_cache) 1436 (mips_insn32_frame_cache): Likewise (comment). 1437 * m68klinux-nat.c (supply_gregset): Likewise. 1438 * m68k-tdep.c (m68k_get_longjmp_target): Likewise. 1439 * ia64-tdep.c (ia64_frame_prev_register): Likewise. 1440 * i386-tdep.c (i386_get_longjmp_target): Likewise. 1441 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise. 1442 * cris-tdep.c (cris_regnums, cris_sigcontext_addr) 1443 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call) 1444 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp) 1445 (cris_register_type, crisv32_register_type) 1446 (cris_dwarf2_frame_init_reg): Likewise. 1447 * arch-utils.c (legacy_virtual_frame_pointer): Likewise. 1448 * amd64-tdep.c (amd64_frame_prev_register): Likewise. 1449 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise. 1450 * libunwind-frame.c (libunwind_frame_cache): Likewise. 1451 1452 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum. 1453 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise. 1454 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset) 1455 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register) 1456 (xtensa_extract_return_value, xtensa_store_return_value): Likewise. 1457 * v850-tdep.c (v850_unwind_pc): Likewise. 1458 * stack.c (frame_info): Likewise. 1459 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs) 1460 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs) 1461 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs) 1462 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc) 1463 (sh_dsp_show_regs): Likewise. 1464 * shnbsd-tdep.c (shnbsd_supply_gregset) 1465 (shnbsd_collect_gregset): Likewise. 1466 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise. 1467 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs) 1468 (sh64_frame_prev_register, sh64_unwind_pc): Likewise. 1469 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset) 1470 (6000_register_reggroup_p, rs6000_unwind_pc) 1471 (rs6000_frame_cache): Likewise. 1472 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers) 1473 (rs6000_store_inferior_registers): Likewise. 1474 * remote-mips.c (mips_wait, mips_load): Likewise. 1475 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise. 1476 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise. 1477 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise. 1478 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise. 1479 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise. 1480 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise. 1481 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers) 1482 (store_ppc_registers, fill_gregset): Likewise. 1483 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise. 1484 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise. 1485 * mipsnbsd-nat.c (getregs_supplies): Likewise. 1486 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise. 1487 * m68klinux-nat.c (supply_gregset): Likewise. 1488 * irix5-nat.c (fill_gregset): Likewise. 1489 * i386-tdep.c (i386_unwind_pc): Likewise. 1490 * i386-linux-nat.c (i386_linux_resume): Likewise. 1491 * frame.c (get_prev_frame_1): Likewise. 1492 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise. 1493 * dbug-rom.c (dbug_supply_register): Likewise. 1494 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue) 1495 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size) 1496 (cris_register_type, crisv32_register_type, crisv32_register_name) 1497 (cris_dwarf2_frame_init_reg, find_step_target) 1498 (cris_software_single_step, cris_supply_gregset) 1499 (cris_regnums): Likewise. 1500 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise. 1501 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32) 1502 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise. 1503 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise. 1504 * mips-linux-tdep.c (mips_linux_write_pc): Likewise. 1505 1506 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum. 1507 * dbug-rom.c (dbug_supply_register): Likewise. 1508 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache) 1509 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise. 1510 * win32-nat.c (win32_resume): Likewise. 1511 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise. 1512 * m68k-tdep.c (m68k_register_type): Likewise. 1513 * m68klinux-nat.c (supply_gregset): Likewise. 1514 1515 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum. 1516 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu) 1517 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs) 1518 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type) 1519 (fv_reg_base_num, dr_reg_base_num): Likewise. 1520 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num) 1521 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call) 1522 (sh64_extract_return_value, sh64_store_return_value) 1523 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type) 1524 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise. 1525 * procfs.c (procfs_fetch_registers, procfs_store_registers) 1526 (invalidate_cache): Likewise. 1527 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise. 1528 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg) 1529 (mipsnbsd_fill_fpreg): Likewise. 1530 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers) 1531 (mipsnbsd_store_inferior_registers): Likewise. 1532 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset) 1533 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise. 1534 * mips-linux-nat.c (mips64_linux_register_addr): Likewise. 1535 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise. 1536 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset) 1537 (fill_fpregset): Likewise. 1538 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise. 1539 * i386-tdep.h (struct_return): Likewise (comment). 1540 * i386-nto-tdep.c (i386nto_register_area): Likewise. 1541 * go32-nat.c (fetch_register, go32_fetch_registers, store_register) 1542 (go32_store_registers): Likewise. 1543 * alpha-tdep.c (alpha_next_pc): Likewise. 1544 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise. 1545 * alphabsd-nat.c (alphabsd_fetch_inferior_registers) 1546 (alphabsd_store_inferior_registers): Likewise. 1547 * core-regset.c (fetch_core_registers): Likewise. 1548 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise. 1549 1550 * gdbarch.c, gdbarch.h: Regenerate. 1551 15522007-06-18 Daniel Jacobowitz <dan@codesourcery.com> 1553 1554 * coffread.c (coff_sym_fns): Add default_symfile_segments. 1555 * dbxread.c (start_psymtab): Check HAVE_ELF. 1556 (aout_sym_fns): Likewise. 1557 * elfread.c (elf_symfile_segments): New. 1558 (elf_sym_fns): Add elf_symfile_segments. 1559 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments. 1560 * remote.c (get_offsets): Use symfile_map_offsets_to_segments. 1561 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg. 1562 * somread.c (som_sym_fns): Use default_symfile_segments. 1563 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns. 1564 (init_objfile_sect_indices): Call symfile_find_segment_sections. 1565 (default_symfile_segments): New function. 1566 (syms_from_objfile): Update call to find_sym_fns. 1567 (symfile_get_segment_data, free_symfile_segment_data): New. 1568 (symfile_map_offsets_to_segments): New. 1569 (symfile_find_segment_sections): New. 1570 * symfile.h (struct symfile_segment_data): New. 1571 (struct sym_fns): Add sym_segments. 1572 (default_symfile_segments, symfile_get_segment_data) 1573 (free_symfile_segment_data): New prototypes. 1574 (symfile_map_offsets_to_segments): Likewise. 1575 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments. 1576 * Makefile.in (COMMON_OBS): Remove elfread.o. 1577 (elf_internal_h): New. 1578 (elfread.o): Update. 1579 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was 1580 compiled. 1581 * config.in, configure: Regenerated. 1582 * NEWS: Mention qOffsets changes. 1583 15842007-06-16 Ulrich Weigand <uweigand@de.ibm.com> 1585 1586 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int, 1587 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool): 1588 Replace global variable declaration with compatibility macro. 1589 (struct builtin_m2_type): New data type. 1590 (builtin_m2_type): Add prototype. 1591 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int, 1592 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool): 1593 Remove global variables. 1594 (m2_language_arch_info): Use builtin_m2_type instead of variables. 1595 (build_m2_types): New function. 1596 (m2_type_data): New variable. 1597 (builtin_m2_type): New function. 1598 (_initialize_m2_language): Do not build data types. Register 1599 m2_type_data per-gdbarch data. 1600 16012007-06-16 Ulrich Weigand <uweigand@de.ibm.com> 1602 1603 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical, 1604 builtin_type_f_logical_s1, builtin_type_f_logical_s2, 1605 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real, 1606 builtin_type_f_real_s8, builtin_type_f_real_s16, 1607 builtin_type_f_complex_s8, builtin_type_f_complex_s16, 1608 builtin_type_f_complex_s32, builtin_type_f_void): Replace global 1609 variable declaration with compatibility macro. 1610 (struct builtin_f_type): New data type. 1611 (builtin_f_type): Add prototype. 1612 * f-lang.c (builtin_type_f_character, builtin_type_f_logical, 1613 builtin_type_f_logical_s1, builtin_type_f_logical_s2, 1614 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real, 1615 builtin_type_f_real_s8, builtin_type_f_real_s16, 1616 builtin_type_f_complex_s8, builtin_type_f_complex_s16, 1617 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables. 1618 (f_language_arch_info): Use builtin_f_type instead of variables. 1619 (build_fortran_types): Build builtin_f_type structure instead of 1620 setting global type variables. 1621 (f_type_data): New variable. 1622 (builtin_f_type): New function. 1623 (_initialize_f_language): Do not call build_fortran_types. Do not 1624 swap global type variables. Register f_type_data per-gdbarch data. 1625 16262007-06-16 Ulrich Weigand <uweigand@de.ibm.com> 1627 1628 * f-lang.c (_initialize_f_language): Do not initialize or 1629 swap builtin_type_string. 1630 16312007-06-16 Ulrich Weigand <uweigand@de.ibm.com> 1632 1633 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg, 1634 value_of_builtin_frame_reg): Remove. 1635 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove 1636 inactive call to value_of_builtin_frame_reg. 1637 16382007-06-16 Ulrich Weigand <uweigand@de.ibm.com> 1639 1640 * gdbarch.sh (bfd_vma_bit): Remove. 1641 * gdbarch.c, gdbarch.h: Regenerate. 1642 1643 * gdbtypes.h (builtin_bfd_vma_type): Remove. 1644 * gdbtypes.h (builtin_bfd_vma_type): Remove. 1645 (build_gdbtypes): Do not initialize it. 1646 (_initialize_gdbtypes): Do not swap it. 1647 16482007-06-16 Ulrich Weigand <uweigand@de.ibm.com> 1649 1650 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float, 1651 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16, 1652 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32, 1653 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf, 1654 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 1655 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si, 1656 builtin_type_vec64, builtin_type_vec128): Remove. 1657 (init_simd_type): Remove. 1658 (init_vector_type): Make global. 1659 (build_builtin_type_vec64, build_builtin_type_vec128): Remove. 1660 (build_gdbtypes): Do not build vector types. 1661 (_initialize_gdbtypes): Do not swap vector types. 1662 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float, 1663 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16, 1664 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32, 1665 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf, 1666 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 1667 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si, 1668 builtin_type_vec64, builtin_type_vec128): Remove declarations. 1669 (init_vector_type): Add prototype. 1670 1671 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and 1672 i386_sse_type members. 1673 (i386_mmx_type, i386_sse_type): Change from variables to functions. 1674 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables. 1675 (i386_init_types): Do not build vector types. 1676 (i386_mmx_type, i386_sse_type): New functions. 1677 (i386_register_type): Call them instead of using global variables. 1678 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure. 1679 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead 1680 of using global variable. 1681 1682 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64 1683 and ppc_builtin_type_vec128 members. 1684 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function. 1685 (rs6000_builtin_type_vec128): Likewise. 1686 (rs6000_register_type): Call them instead of using builtin_type_vec64 1687 and builtin_type_vec128. 1688 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure. 1689 1690 * spu-tdep.c (struct gdbarch_tdep): New data type. 1691 (spu_builtin_type_vec128): Remove variable. 1692 (spu_builtin_type_vec128): New function. 1693 (spu_register_type): Call it instead of using global variable. 1694 (spu_gdbarch_init): Allocate tdep structure. 1695 (spu_init_vector_type): Remove function. 1696 (_initialize_spu_tdep): Do not call it. 1697 16982007-06-16 Ulrich Weigand <uweigand@de.ibm.com> 1699 1700 * amd64-tdep.c (struct amd64_register_info): Remove. 1701 (amd64_register_info): Remove. 1702 (amd64_register_names): New static variable. 1703 (AMD64_NUM_REGS): Use amd64_register_names instead of 1704 amd64_register_info. 1705 (amd64_register_name): Likewise. 1706 (amd64_register_type): Do not refer to amd64_register_info. 1707 1708 * s390-tdep.c (struct s390_register_info): Remove. 1709 (s390_register_info): Remove. 1710 (s390_register_name): Do not refer to s390_register_info. 1711 (s390_register_type): Likewise. 1712 1713 * sparc64-tdep.c (struct sparc64_register_info): Remove. 1714 (sparc64_register_info, sparc64_pseudo_register_info): Remove. 1715 (sparc64_register_names, sparc64_pseudo_register_names): New. 1716 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use 1717 sparc64_register_names and sparc64_pseudo_register_names instead of 1718 sparc64_register_info and sparc64_pseudo_register_info. 1719 (sparc64_register_name): Likewise. 1720 (sparc64_register_type): Do not refer to sparc64_register_info 1721 and sparc64_pseudo_register_info. 1722 17232007-06-16 Ulrich Weigand <uweigand@de.ibm.com> 1724 1725 * c-lang.c (cplus_builtin_types): Remove. 1726 (enum cplus_primitive_types): New data type. 1727 (cplus_language_arch_info): New function. 1728 (cplus_language_defn): Set la_language_arch_info member. Do not set 1729 la_builtin_type_vector and string_char_type members. 1730 1731 * f-lang.c (f_builtin_types): Remove. 1732 (enum f_primitive_types): New data type. 1733 (f_language_arch_info): New function. 1734 (f_language_de): Set la_language_arch_info member. Do not set 1735 la_builtin_type_vector and string_char_type members. 1736 1737 * m2-lang.c (m2_builtin_types): Remove. 1738 (enum m2_primitive_types): New data type. 1739 (m2_language_arch_info): New function. 1740 (m2_language_defn): Set la_language_arch_info member. Do not set 1741 la_builtin_type_vector and string_char_type members. 1742 1743 * objc-lang.c (objc_builtin_types): Remove. 1744 (objc_language): Set la_language_arch_info member. Do not set 1745 la_builtin_type_vector and string_char_type members. 1746 1747 * p-lang.c (pascal_builtin_types): Remove. 1748 (enum pascal_primitive_types): New data type. 1749 (pascal_language_arch_info): New function. 1750 (pascal_language_defn): Set la_language_arch_info member. Do not set 1751 la_builtin_type_vector and string_char_type members. 1752 17532007-06-16 Ulrich Weigand <uweigand@de.ibm.com> 1754 1755 * regcache.c (struct regcache): Add ptid_t member. 1756 (regcache_xmalloc): Initialize it. 1757 (regcache_cpy_no_passthrough): Do not refer to current_regcache. 1758 (regcache_dup): Likewise. 1759 (regcache_dup_no_passthrough): Likewise. 1760 (current_regcache): Make static. 1761 (registers_ptid): Remove variable. 1762 (get_thread_regcache): New function. 1763 (get_current_regcache): New function. 1764 (registers_changed): Implement by freeing current regcache. 1765 (regcache_raw_read): Do not refer to current_regcache. Set 1766 inferior_ptid to regcache->ptid while calling target routines. 1767 (regcache_raw_write): Likewise. 1768 (regcache_raw_supply): Do not refer to current_regcache. 1769 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid. 1770 (write_pc_pid): Likewise. 1771 (build_regcache): Remove. 1772 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP 1773 or deprecated_register_gdbarch_swap. Do not initialize 1774 registers_ptid. 1775 * regcache.h (get_current_regcache): Add prototype. 1776 (get_thread_regcache): Likewise. 1777 (current_regcache): Remove declaration. 1778 1779 * corelow.c (core_open): Replace current_regcache by 1780 get_current_regcache (). 1781 * frame.c (frame_pop): Likewise. 1782 (put_frame_register): Likewise. 1783 (get_current_frame, create_new_frame): Likewise. 1784 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise. 1785 * stack.c (return_command): Likewise. 1786 * infcall.c (call_function_by_hand): Likewise. 1787 * infrun.c (resume): Likewise. 1788 (save_inferior_status, restore_inferior_status): Likewise. 1789 * linux-fork.c (fork_load_infrun_state): Likewise. 1790 (fork_save_infrun_state): Likewise. 1791 * win32-nat.c (win32_resume): Likewise. 1792 * i386fbsd-nat.c (i386fbsd_resume): Likewise. 1793 * monitor.c (monitor_wait): Likewise. 1794 * remote.c (remote_wait): Likewise. 1795 * remote-mips.c (mips_wait): Likewise. 1796 1797 * bsd-kvm.c (bsd_kvm_open): Likewise 1798 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise. 1799 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise. 1800 * i386-linux-nat.c (i386_linux_resume): Likewise. 1801 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise. 1802 (ia64_linux_stopped_data_address): Likewise. 1803 1804 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise. 1805 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise. 1806 * mep-tdep.c (current_me_module, current_options): Likewise. 1807 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise. 1808 1809 * linux-nat.c (linux_nat_do_thread_registers): Use thread 1810 regcache instead of current_regcache. Call target_fetch_registers. 1811 (linux_nat_corefile_thread_callback): Update call site. 1812 (linux_nat_do_registers): Likewise. 1813 * procfs.c (procfs_do_thread_registers): Use thread regcache instead 1814 of current_regcache. 1815 (procfs_make_note_section): Likewise. 1816 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise. 1817 (ps_lgetfpregs, ps_lsetfpregs): Likewise. 1818 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise. 1819 (ps_lgetfpregs, ps_lsetfpregs): Likewise. 1820 18212007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 1822 1823 * regcache.c (read_register, read_register_pid): Remove. 1824 (write_register, write_register_pid): Likewise. 1825 * regcache.h (read_register, read_register_pid): Remove prototype. 1826 (write_register, write_register_pid): Likewise. 1827 18282007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 1829 1830 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument. 1831 (write_pc): Likewise. Remove default implementation, add predicate. 1832 * gdbarch.c, gdbarch.h: Regenerate. 1833 * regcache.c (read_pc_pid): Use current regcache instead of calling 1834 read_register_pid. 1835 (write_pc_pid): Check gdbarch_write_pc predicate, implement default 1836 case inline. 1837 (generic_target_write_pc): Remove. 1838 * inferior.h (generic_target_write_pc): Remove. 1839 * frv-tdep.c (frv_gdbarch_init): Do not install it. 1840 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise. 1841 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. 1842 * sh64-tdep.c (sh64_gdbarch_init): Likewise. 1843 * sh-tdep.c (sh_gdbarch_init): Likewise. 1844 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. 1845 1846 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID 1847 argument. Use REGCACHE instead of calling read_register_pid. 1848 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise. 1849 * hppa-tdep.c (hppa_read_pc): Likewise. 1850 * hppa-tdep.h (hppa_read_pc): Likewise. 1851 * ia64-tdep.c (ia64_read_pc): Likewise. 1852 * m32r-tdep.c (m32r_read_pc): Likewise. 1853 * mep-tdep.c (mep_read_pc): Likewise. 1854 * mn10300-tdep.c (mn10300_read_pc): Likewise. 1855 * spu-tdep.c (spu_read_pc): Likewise. 1856 1857 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID 1858 argument. Use REGCACHE instead of calling write_register_pid. 1859 * avr-tdep.c (avr_write_pc): Likewise. 1860 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise. 1861 * hppa-tdep.c (hppa_write_pc): Likewise. 1862 * hppa-tdep.h (hppa_write_pc): Likewise. 1863 * i386-linux-tdep.c (i386_linux_write_pc): Likewise. 1864 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise. 1865 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise. 1866 * ia64-tdep.c (ia64_write_pc): Likewise. 1867 * ia64-tdep.h (ia64_write_pc): Likewise. 1868 * m32r-tdep.c (m32r_write_pc): Likewise. 1869 * m88k-tdep.c (m88k_write_pc): Likewise. 1870 * mep-tdep.c (mep_write_pc): Likewise. 1871 * mips-tdep.c (mips_write_pc): Likewise. 1872 * mips-linux-tdep.c (mips_linux_write_pc): Likewise. 1873 * mn10300-tdep.c (mn10300_write_pc): Likewise. 1874 * sparc-tdep.c (sparc_write_pc): Likewise. 1875 * spu-tdep.c (spu_write_pc): Likewise. 1876 1877 * mips-tdep.c (read_signed_register): Remove. 1878 (read_signed_register_pid): Likewise. 1879 (mips_read_pc): Add REGCACHE argument. Remove PTID argument. 1880 Use REGCACHE instead of calling read_signed_register_pid. 1881 18822007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 1883 1884 * gdbarch.sh (push_dummy_code): Add REGCACHE argument. 1885 * gdbarch.c, gdbarch.h: Regenerate. 1886 * infcall.c (generic_push_dummy_code): Add REGCACHE argument. 1887 (push_dummy_code): Likewise. Pass it to callee. 1888 (call_function_by_hand): Pass current regcache to push_dummy_code. 1889 1890 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE 1891 argument. Use it instead of current_regcache. 1892 1893 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument. 1894 * sparc-tdep.c (sparc32_push_dummy_code): Likewise. 1895 18962007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 1897 1898 * gdbarch.sh (get_longjmp_target): Add FRAME argument. 1899 * gdbarch.c, gdbarch.h: Regenerate. 1900 * infrun.c (handle_inferior_event): Pass current frame to 1901 gdbarch_get_longjmp_target. 1902 1903 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument. 1904 Read registers from FRAME instead of using read_register. 1905 Use get_frame_arch instead of current_gdbarch. 1906 * arm-tdep.c (arm_get_longjmp_target): Likewise. 1907 * i386-tdep.c (i386_get_longjmp_target): Likewise. 1908 * m68k-tdep.c (m68k_get_longjmp_target): Likewise. 1909 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise. 1910 (mips64_linux_get_longjmp_target): Likewise. 1911 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise. 1912 19132007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 1914 1915 * gdbarch.sh (skip_trampoline_code): Add FRAME argument. 1916 * gdbarch.c, gdbarch.h: Regenerate. 1917 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument. 1918 * arch-utils.h (generic_skip_trampoline_code): Likewise. 1919 * infrun.c (handle_inferior_event): Pass current frame to 1920 gdbarch_skip_trampoline_code and skip_language_trampoline. 1921 1922 * language.c (unk_lang_trampoline): Add FRAME argument. 1923 (skip_language_trampoline): Add FRAME argument. Pass it to 1924 skip_trampoline callback. 1925 * language.h: Add forward declaration of struct frame_info. 1926 (struct language_defn): Add FRAME argument to skip_trampoline. 1927 (skip_language_trampoline): Add FRAME argument. 1928 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it 1929 to skip_trampoline callback. 1930 * cp-abi.h: Add forward declaration of struct frame_info. 1931 (cplus_skip_trampoline): Add FRAME argument. 1932 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback. 1933 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it 1934 to gdbarch_skip_trampoline_code. 1935 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it 1936 to gdbarch_skip_trampoline_code. 1937 1938 * minsyms.c (find_solib_trampoline_target): Add FRAME argument. 1939 * symtab.h (find_solib_trampoline_target): Likewise. 1940 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to 1941 find_solib_trampoline_target. 1942 1943 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers 1944 from FRAME instead of calling read_register. 1945 1946 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME 1947 argument. Read registers from FRAME instead of using read_register. 1948 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise. 1949 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument. 1950 1951 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME 1952 argument. 1953 1954 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument. 1955 1956 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read 1957 registers from FRAME instead of using read_signed_register. 1958 1959 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME 1960 argument. 1961 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME 1962 instead of using read_register. 1963 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to 1964 ppc64_standard_linkage_target. 1965 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument. 1966 Pass it to find_solib_trampoline_target. Read registers from FRAME 1967 instead of using read_register. 1968 1969 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME 1970 argument. 1971 19722007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 1973 1974 * gdbarch.sh (software_single_step): Replace REGCACHE argument by 1975 FRAME argument. 1976 * gdbarch.c, gdbarch.h: Regenerate. 1977 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP. 1978 1979 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve 1980 registers from FRAME instead of using read_register. 1981 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME 1982 to alpha_next_pc. Use get_frame_pc instead of read_pc. 1983 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE 1984 argument by FRAME. 1985 1986 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers 1987 from FRAME instead of using read_register. 1988 (thumb_get_next_pc): Likewise. 1989 (arm_get_next_pc): Likewise. 1990 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME 1991 to arm_get_next_pc. Use get_frame_pc instead of read_register. 1992 * arm-tdep.h (arm_software_single_step): Replace REGCACHE 1993 argument by FRAME. 1994 1995 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers 1996 from FRAME instead of using read_register. 1997 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME 1998 to find_step_target. 1999 2000 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers 2001 from FRAME instead of using read_register / read_signed_register. 2002 (extended_mips16_next_pc): Likewise. 2003 (mips16_next_pc): Likewise. 2004 (mips_next_pc): Likewise. 2005 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME 2006 to mips_next_pc. Use get_frame_pc instead of read_pc. 2007 * mips-tdep.h (mips_software_single_step): Replace REGCACHE 2008 argument by FRAME. 2009 2010 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead 2011 of current frame. Read registers from FRAME. 2012 (deal_with_atomic_sequence): Add FRAME argument. Pass it to 2013 branch_dest. Use get_frame_pc instead of read_pc. 2014 (rs6000_software_single_step): Likewise. 2015 (bl_to_blrl_insn_p): Do not call branch_dest. 2016 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE 2017 argument by FRAME. 2018 2019 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument. 2020 Read registers from FRAME instead of current regcache. 2021 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise. 2022 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise. 2023 * sparc-tdep.c (sparc_address_from_register): Remove. 2024 (sparc_analyze_control_transfer): Pass FRAME argument instead of 2025 GDBARCH. Pass FRAME to step_trap callback. 2026 (sparc_step_trap): Add FRAME argument. 2027 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME 2028 to sparc_analyze_control_transfer. Read registers from FRAME instead 2029 of calling sparc_address_from_register. 2030 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to 2031 step_trap callback. 2032 (sparc_address_from_register): Remove prototype. 2033 (sparc_software_single_step): Replace REGCACHE argument by FRAME. 2034 (sparcnbsd_step_trap): Add FRAME argument. 2035 2036 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument 2037 by FRAME. Read registers from FRAME instead of REGCACHE. 2038 20392007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 2040 2041 * arm-tdep.c (arm_print_float_info): Use register value from FRAME 2042 instead of calling read_register. 2043 2044 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of 2045 calling write_register. 2046 2047 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of 2048 calling write_register. 2049 2050 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it 2051 instead of calling read_register. 2052 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE 2053 instead of calling read_register and write_register. 2054 2055 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter 2056 instead of current_regcache. 2057 2058 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead 2059 of calling write_register. 2060 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE 2061 parameter instead of current_regcache. 2062 2063 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it 2064 instead of calling read_register. 2065 (mips_read_fp_register_double, mips_print_fp_register): Update calls. 2066 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register. 2067 (mips_n32n64_push_dummy_call): Likewise. 2068 (mips_o32_push_dummy_call): Likewise. 2069 (mips_o64_push_dummy_call): Likewise. 2070 2071 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE 2072 parameter instead of current_regcache. 2073 2074 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter. 2075 Use it instead of read_register and write_register. 2076 (xtensa_register_read_masked): Likewise. 2077 (xtensa_pseudo_register_read): Update call. 2078 (xtensa_pseudo_register_write): Likewise. 2079 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME 2080 instead of calling read_register. 2081 (xtensa_push_dummy_call): Update comment. 2082 20832007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 2084 2085 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg 2086 by frame_unwind_register_signed calls. 2087 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack 2088 frame allocations when called with NULL NEXT_FRAME parameter. 2089 (read_next_frame_reg): Remove. 2090 2091 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it 2092 instead of reading the FPSCR register. 2093 (sh_frame_cache): Pass unwound FPSCR register value to 2094 sh_analyze_prologue. 2095 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue. 2096 2097 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it 2098 instead of reading the CTBP register. 2099 (v850_frame_cache): Pass unwound CTBP register value to 2100 v850_analyze_prologue. 2101 21022007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 2103 2104 * sh-tdep.h (sh_show_regs): Add FRAME parameter. 2105 * sh-tdep.c (sh_show_regs): Likewise. 2106 (sh_show_regs_command): Pass current frame to sh_show_regs routine. 2107 (sh_generic_show_regs): Add FRAME parameter. Use register 2108 values from that frame instead of calling read_register. 2109 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs, 2110 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs, 2111 sh_dsp_show_regs): Likewise. 2112 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs, 2113 sh64_show_regs): Likewise. 2114 21152007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 2116 2117 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from 2118 current regcache instead of calling read_register. 2119 21202007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 2121 2122 * mep-tdep.c (current_me_module): Read from current regcache 2123 instead of calling read_register. 2124 (current_options): Likewise. 2125 21262007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 2127 2128 * cris-tdep.c (cris_stopped_data_address): Read register values 2129 from current frame instead of calling read_register. 2130 * frv-tdep.c (frv_stopped_data_address): Likewise. 2131 21322007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 2133 2134 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc 2135 instead of write_register (PC_REGNUM, ...). 2136 21372007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 2138 2139 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment 2140 explaining why the PC adjustment code is necessary. 2141 21422007-06-15 Vladimir Prus <vladimir@codesourcery.com> 2143 2144 * m68k-tdep.h (enum m68k_flavour): New. 2145 (struct gdbarch_tdep): New fields 2146 float_return, flavour and fpregs_present. 2147 * m68k-tdep.c (m68k_register_type): Use 2148 fpregs_present and conditionalize floating 2149 registers type on flavour. 2150 (m68k_register_names): New. 2151 (m68k_register_name): Use the above. 2152 (m68k_convert_register_p): Consult fpregs_present. 2153 (m68k_register_to_value, m68k_value_to_register): 2154 Use register_type to obtain the type of floating 2155 point registers. 2156 (m68k_svr4_extract_return_value): Check tdep->float_return. 2157 Use register_type to get the type of floating 2158 point regiters. 2159 (m68k_svr4_store_return_value): Likewise. 2160 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present. 2161 (m68k_analyze_register_saves): Likewise. 2162 (m68k_gdbarch_init): Extract infromation 2163 from XML description, if present. Guess coldfire by 2164 looking at the file, if present. Conditionalize 2165 setting of long double format. Set decr_pc_after_break 2166 to 2 on coldfire and fido. Enable XML-driven 2167 register description. 2168 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use 2169 size of tdep->fpreg_type, as opposed to hardcoded value. 2170 * Makefile.in (m68k-tdep.o): Update dependencies. 2171 21722007-06-15 Ulrich Weigand <uweigand@de.ibm.com> 2173 2174 * NEWS: Mention "info spu" commands and qXfer:spu:read and 2175 qXfer:spu:write remote packet types. 2176 21772007-06-13 Daniel Jacobowitz <dan@codesourcery.com> 2178 2179 * xml-tdesc.c (tdesc_start_target): New. 2180 (target_attributes): New. 2181 (tdesc_elements): Use it. 2182 * features/gdb-target.dtd: Add #FIXED version attribute for 2183 <target>. 2184 21852007-06-13 Arthur Huillet <arthur.huillet@free.fr> 2186 2187 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo. 2188 21892007-06-13 Claudio Fontana <claudio.fontana@gmail.com> 2190 2191 * fork-child.c (fork_inferior): Update comment. 2192 21932007-06-13 Daniel Jacobowitz <dan@codesourcery.com> 2194 2195 * features/Makefile: Generate regformats for mips-linux and 2196 mips64-linux. 2197 * features/sort-regs.xsl: Correct typo. 2198 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete. 2199 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated 2200 files. 2201 22022007-06-13 Daniel Jacobowitz <dan@codesourcery.com> 2203 2204 * config/mips/linux.mh (TDEP_XML): New. 2205 * features/mips-linux.xml, features/mips64-linux.xml: New files. 2206 * mips-linux-nat.c (mips_linux_register_addr): Handle 2207 MIPS_RESTART_REGNUM. 2208 (mips64_linux_register_addr): Likewise. 2209 (super_xfer_partial, mips_linux_xfer_partial): New. 2210 (_initialize_mips_linux_nat): Add them to the target_ops. 2211 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM. 2212 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset) 2213 (mips_linux_o32_sigframe_init) 2214 (mips_linux_n32n64_sigframe_init): Likewise. 2215 (mips_linux_write_pc, mips_linux_restart_reg_p): New. 2216 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the 2217 "org.gnu.gdb.mips.linux" feature. 2218 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant. 2219 (mips_linux_restart_reg_p): New prototype. 2220 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI 2221 initialization routine. 2222 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update. 2223 22242007-06-13 Daniel Jacobowitz <dan@codesourcery.com> 2225 2226 * Makefile.in (mips-tdep.o): Update. 2227 * mips-tdep.c (struct register_alias, mips_o32_aliases) 2228 (mips_n32_n64_aliases, mips_register_aliases): New. 2229 (mips_register_name): Call tdesc_register_name. 2230 (mips_tdesc_register_reggroup_p): New. 2231 (mips_pseudo_register_type, value_of_mips_user_reg): New. 2232 (mips_gdbarch_init): Add target-described register support. 2233 Register aliases for register names. 2234 * target-descriptions.c (tdesc_register_name): Make global. 2235 (tdesc_register_in_reggroup_p): New function, broken out from 2236 tdesc_register_reggroup_p. 2237 (tdesc_register_reggroup_p): Use it. 2238 * target-descriptions.h (tdesc_register_name) 2239 (tdesc_register_in_reggroup_p): New prototypes. 2240 * NEWS: Correct formatting. Mention MIPS register support. 2241 * features/mips-cp0.xml, features/mips-fpu.xml, 2242 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml, 2243 features/mips64-cpu.xml: New files. 2244 22452007-06-13 Markus Deuling <deuling@de.ibm.com> 2246 2247 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit. 2248 * valops.c (value_cast): Likewise. 2249 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise. 2250 * ui-out.c (ui_out_field_core_addr): Likewise. 2251 * tracepoint.c (tracepoints_info): Likewise. 2252 * symtab.c (print_msymbol_info): Likewise. 2253 * solib-irix.c (irix_current_sos) 2254 (irix_open_symbol_file_object): Likewise. 2255 * remote.c (build_remote_gdbarch_data): Likewise. 2256 * prologue-value.c (make_pv_area): Likewise. 2257 * procfs.c (info_mappings_callback): Likewise. 2258 * printcmd.c (print_scalar_formatted) 2259 (deprecated_print_address_numeric): Likewise. 2260 * memattr.c (mem_info_command): Likewise. 2261 * linux-nat.c (linux_nat_info_proc_cmd): Likewise. 2262 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise. 2263 * exec.c (print_section_info): Likewise. 2264 * dwarf2read.c (read_subrange_type): Likewise. 2265 * dwarf2loc.c (find_location_expression): Likewise. 2266 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type) 2267 (signed_address_type, execute_stack_op): Likewise. 2268 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise. 2269 * gdbarch.c, gdbarch.h: Regenerate. 2270 22712007-06-13 Markus Deuling <deuling@de.ibm.com> 2272 2273 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info. 2274 * arch-utils.c (show_architecture): Likewise. 2275 * remote-mips.c (mips_open): Likewise 2276 * nto-tdep.c (nto_find_and_open_solib) 2277 (nto_init_solib_absolute_prefix): Likewise. 2278 * nto-procfs (procfs_open): Likewise. 2279 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise. 2280 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise. 2281 * gdbarch.c, gdbarch.h: Regenerate. 2282 22832007-06-13 Markus Deuling <deuling@de.ibm.com> 2284 2285 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit. 2286 * gdbtypes.c (build_flt): Likewise. 2287 * gdbarch.c, gdbarch.h: Regenerate. 2288 22892007-06-13 Markus Deuling <deuling@de.ibm.com> 2290 2291 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by 2292 gdbarch_breakpoint_from_pc. 2293 * s390-tdep.c (s390_gdbarch_init): Likewise (comment). 2294 * remote.c (remote_insert_breakpoint) 2295 (remote_insert_hw_breakpoint): Likewise. 2296 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise. 2297 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment). 2298 * breakpoint.h (bp_target_info): Likewise (comment). 2299 * breakpoint.c (read_memory_nobpt): Likewise. 2300 * mem-break.c (default_memory_insert_breakpoint): Likewise. 2301 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment. 2302 * gdbarch.c, gdbarch.h: Regenerate. 2303 23042007-06-13 Markus Deuling <deuling@de.ibm.com> 2305 2306 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit. 2307 * solib-svr4.c (svr4_truncate_ptr): Likewise. 2308 * solib-pa64.c (read_dynamic_info): Likewise. 2309 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise. 2310 * solib.c (info_sharedlibrary_command): Likewise. 2311 * s390-nat.c (SUBOFF): Likewise. 2312 * p-valprint.c (pascal_val_print): Likewise. 2313 * procfs.c (info_proc_mappings): Likewise. 2314 * printcmd.c (decode_format): Likewise. 2315 * nto-tdep.c (nto_truncate_ptr): Likewise. 2316 * mips-linux-tdep.c (mips_linux_get_longjmp_target) 2317 (mips64_linux_get_longjmp_target): Likewise. 2318 * m68k-tdep.c (m68k_get_longjmp_target): Likewise. 2319 * jv-valprint.c (java_value_print): Likewise. 2320 * jv-lang.c (get_java_object_header_size): Likewise. 2321 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise. 2322 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code) 2323 (hppa_hpux_unwind_adjust_stub): Likewise. 2324 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise. 2325 * gdbtypes.c (make_pointer_type, make_reference_type) 2326 (smash_to_memberptr_type): Likewise. 2327 * gdbarch.c, gdbarch.h: Regenerate. 2328 23292007-06-13 Daniel Jacobowitz <dan@codesourcery.com> 2330 2331 * mips-tdep.c (mips_print_register): Remove unused ALL argument. 2332 (print_gp_register_row): Stop before printing a register bigger 2333 than the ABI register size. 2334 (mips_print_registers_info): Update call to mips_print_register. 2335 23362007-06-13 Daniel Jacobowitz <dan@codesourcery.com> 2337 2338 * expression.h (enum exp_opcode): Document a register name for 2339 OP_REGISTER. 2340 * parse.c (write_dollar_variable): Write the register name for 2341 OP_REGISTER. 2342 (operator_length_standard): Expect the register name following 2343 OP_REGISTER. 2344 * ada-lang.c (resolve_subexp): Likewise. 2345 * ax-gdb.c (gen_expr): Likewise. 2346 * eval.c (evaluate_subexp_standard): Likewise. 2347 * expprint.c (print_subexp_standard, dump_subexp_body_standard): 2348 Likewise. 2349 * tracepoint.c (encode_actions): Likewise. 2350 23512007-06-13 Daniel Jacobowitz <dan@codesourcery.com> 2352 2353 * utils.c (set_screen_size): Use INT_MAX for default columns. 2354 23552007-06-13 Ulrich Weigand <uweigand@de.ibm.com> 2356 2357 * remote.c (remote_protocol_features): Add qXfer:spu:read and 2358 qXfer:spu:write packet types. 2359 23602007-06-12 Markus Deuling <deuling@de.ibm.com> 2361 2362 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove. 2363 * gdbarch.c, gdbarch.h: Regenerate. 2364 23652007-06-12 Markus Deuling <deuling@de.ibm.com> 2366 2367 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by 2368 gdbarch_stab_reg_to_regnum. 2369 * stabsread.c (define_symbol): Likewise. 2370 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by 2371 gdbarch_ecoff_reg_to_regnum. 2372 * mdebugread.c (parse_symbol): Likewise. 2373 * i386-tdep.c (i386_gdbarch_init): Likewise (comment). 2374 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by 2375 gdbarch_dwarf_reg_to_regnum. 2376 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum. 2377 * coffread.c (process_coff_symbol): Likewise. 2378 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by 2379 gdbarch_dwarf2_reg_to_regnum. 2380 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc) 2381 (locexpr_describe_location): Likewise. 2382 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache) 2383 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise. 2384 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro. 2385 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro. 2386 * gdbarch.c, gdbarch.h: Regenerate. 2387 23882007-06-12 Markus Deuling <deuling@de.ibm.com> 2389 2390 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by 2391 gdbarch_smash_text_address. 2392 * somread.c (som_symtab_read): Likewise. 2393 * elfread.c (record_minimal_symbol): Likewise. 2394 * dbxread.c (process_one_symbol): Likewise. 2395 * coffread.c (coff_symtab_read): Likewise. 2396 * gdbarch.c, gdbarch.h: Regenerate. 2397 23982007-06-12 Markus Deuling <deuling@de.ibm.com> 2399 2400 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value. 2401 * findvar.c (value_from_register): Likewise. 2402 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register. 2403 * valops.c (value_assign): Likewise. 2404 * gdbarch.sh (CONVERT_REGISTER_P): Replace by 2405 gdbarch_convert_register_p. 2406 * findvar.c (value_from_register): Likewise. 2407 * valops.c (value_assign): Likewise. 2408 * gdbarch.c, gdbarch.h: Regenerate. 2409 24102007-06-12 Markus Deuling <deuling@de.ibm.com> 2411 2412 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by 2413 gdbarch_register_sim_regno. 2414 * sim-regno.h (sim_regno): Likewise (comment). 2415 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise. 2416 * gdbarch.c, gdbarch.h: Regenerate. 2417 24182007-06-12 Markus Deuling <deuling@de.ibm.com> 2419 2420 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by 2421 gdbarch_virtual_frame_pointer. 2422 * tracepoint.c (encode_actions): Likewise. 2423 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise. 2424 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise. 2425 * gdbarch.c, gdbarch.h: Regenerate. 2426 24272007-06-12 Markus Deuling <deuling@de.ibm.com> 2428 2429 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit. 2430 * p-lang.c (pascal_create_fundamental_type): Likewise. 2431 * objc-lang.c (objc_create_fundamental_type): Likewise. 2432 * mdebugread.c (_initialize_mdebugread): Likewise. 2433 * m2-lang.c (m2_create_fundamental_type) 2434 (_initialize_m2_language): Likewise. 2435 * gdbtypes.c (build_gdbtypes): Likewise. 2436 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise. 2437 * doublest.c (floatformat_from_length): Likewise. 2438 * c-lang.c (c_create_fundamental_type): Likewise. 2439 * ada-lang.c (ada_create_fundamental_type) 2440 (ada_language_arch_info): Likewise. 2441 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format. 2442 * value.c (unpack_double): Likewise (comment). 2443 * gdbtypes.c (build_gdbtypes): Likewise. 2444 * doublest.c (floatformat_from_length): Likewise. 2445 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit. 2446 * valarith.c (value_binop): Likewise. 2447 * p-lang.c (pascal_create_fundamental_type): Likewise. 2448 * objc-lang.c (objc_create_fundamental_type): Likewise. 2449 * mdebugread.c (_initialize_mdebugread): Likewise. 2450 * m2-lang.c (m2_create_fundamental_type): Likewise. 2451 * gdbtypes.c (build_gdbtypes): Likewise. 2452 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise. 2453 * doublest.c (floatformat_from_length): Likewise. 2454 * cris-tdep.c (cris_gdbarch_init): Likewise (comment). 2455 * c-lang.c (c_create_fundamental_type): Likewise. 2456 * ada-lex.l (processReal): Likewise. 2457 * ada-lang.c (ada_create_fundamental_type) 2458 (ada_language_arch_info): Likewise. 2459 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format. 2460 * value.c (unpack_double): Likewise (comment). 2461 * gdbtypes.c (build_gdbtypes): Likewise. 2462 * doublest.c (floatformat_from_length): Likewise. 2463 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by 2464 gdbarch_long_double_bit. 2465 * p-lang.c (pascal_create_fundamental_type): Likewise. 2466 * objc-lang.c (objc_create_fundamental_type): Likewise. 2467 * m2-lang.c (m2_create_fundamental_type): Likewise. 2468 * gdbtypes.c (build_gdbtypes): Likewise. 2469 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise. 2470 * doublest.c (floatformat_from_length): Likewise. 2471 * c-lang.c (c_create_fundamental_type): Likewise. 2472 * ada-lex.l (processReal): Likewise. 2473 * ada-lang.c (ada_create_fundamental_type) 2474 (ada_language_arch_info): Likewise. 2475 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by 2476 gdbarch_long_double_format. 2477 * gdbtypes.c (build_gdbtypes): Likewise. 2478 * doublest.c (floatformat_from_length): Likewise. 2479 * gdbarch.c, gdbarch.h: Regenerate. 2480 24812007-06-12 Markus Deuling <deuling@de.ibm.com> 2482 2483 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit. 2484 * ada-lang.c (ada_create_fundamental_type) 2485 (ada_language_arch_info): Likewise. 2486 * c-lang.c (c_create_fundamental_type): Likewise. 2487 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise. 2488 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise. 2489 * m2-lang.c (m2_create_fundamental_type): Likewise. 2490 * objc-lang.c (objc_create_fundamental_type): Likewise. 2491 * p-lang.c (pascal_create_fundamental_type): Likewise. 2492 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit. 2493 * c-exp.y (parse_number): Likewise. 2494 * objc-exp.y (parse_number): Likewise. 2495 * ada-lex.l (processInt): Likewise. 2496 * f-exp.y (parse_number): Likewise. 2497 * p-exp.y (parse_number): Likewise. 2498 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info) 2499 (gdbtypes_post_init, build_gdbtypes): Likewise. 2500 * p-lang.c (pascal_create_fundamental_type): Likewise. 2501 * parse.c (build_parse): Likewise. 2502 * xcoffread.c (_initialize_xcoffread): Likewise. 2503 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type) 2504 (read_range_type): Likewise. 2505 * objc-lang.c (objc_create_fundamental_type): Likewise. 2506 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise. 2507 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language) 2508 (m2_create_fundamental_type): Likewise. 2509 * c-lang.c (c_create_fundamental_type): Likewise. 2510 * coffread.c (coff_read_enum_type): Likewise. 2511 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise. 2512 * dwarf2read.c (new_symbol): Likewise. 2513 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit. 2514 * c-exp.y (parse_number): Likewise. 2515 * objc-exp.y (parse_number): Likewise. 2516 * ada-lex.l (processInt): Likewise. 2517 * f-exp.y (parse_number): Likewise. 2518 * p-exp.y (parse_number): Likewise. 2519 * valarith.c (value_binop): Likewise. 2520 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise. 2521 * ada-lang.c (ada_create_fundamental_type) 2522 (ada_language_arch_info): Likewise. 2523 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise. 2524 * symfile.c (TARGET_LONG_BYTES): Likewise. 2525 * p-lang.c (pascal_create_fundamental_type): Likewise. 2526 * objc-lang.c (objc_create_fundamental_type): Likewise. 2527 * m2-lang.c (m2_create_fundamental_type): Likewise. 2528 * f-lang.c (f_create_fundamental_type): Likewise. 2529 * c-lang.c (c_create_fundamental_type): Likewise. 2530 * coffread.c (decode_base_type): Likewise. 2531 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit. 2532 * c-exp.y (parse_number): Likewise. 2533 * objc-exp.y (parse_number): Likewise. 2534 * p-exp.y (parse_number): Likewise. 2535 * ada-lang.c (ada_create_fundamental_type) 2536 (ada_language_arch_info): Likewise. 2537 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise. 2538 * stabsread.c (read_range_type): Likewise. 2539 * p-lang.c (pascal_create_fundamental_type): Likewise. 2540 * objc-lang.c (objc_create_fundamental_type): Likewise. 2541 * m2-lang.c (m2_create_fundamental_type): Likewise. 2542 * f-lang.c (f_create_fundamental_type): Likewise. 2543 * c-lang.c (c_create_fundamental_type): Likewise. 2544 * gdbarch.c, gdbarch.h: Regenerate. 2545 25462007-06-12 Andreas Schwab <schwab@suse.de> 2547 2548 * frame-unwind.h (frame_dealloc_cache_ftype): Define. 2549 (struct frame_unwind): Add dealloc_cache. 2550 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches. 2551 2552 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare. 2553 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define. 2554 (libunwind_frame_unwind): Set dealloc_cache. 2555 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache. 2556 25572007-06-12 Ulrich Weigand <uweigand@de.ibm.com> 2558 Markus Deuling <deuling@de.ibm.com> 2559 2560 * remote.c (remote_write_qxfer): New function. 2561 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU. 2562 (remote_read_qxfer): Do not cache empty objects. 2563 (_initialize_remote): Add PACKET_qXfer_spu_read and 2564 PACKET_qXfer_spu_write. 2565 25662007-06-12 Ulrich Weigand <uweigand@de.ibm.com> 2567 2568 * target.h (enum target_object): Add TARGET_OBJECT_SPU. 2569 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU. 2570 2571 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers. 2572 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM, 2573 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM. 2574 * spu-tdep.c (infospucmdlist): New variable. 2575 (spu_register_name): Handle additional pseudo registers. 2576 (spu_register_type): Likewise. 2577 (spu_pseudo_register_read): Likewise. 2578 (spu_pseudo_register_write): Likewise. 2579 (spu_pseudo_register_read_spu): New function. 2580 (spu_pseudo_register_write_spu): Likewise. 2581 (info_spu_event_command): New function. 2582 (info_spu_signal_command): Likewise. 2583 (info_spu_mailbox_list): Likewise. 2584 (info_spu_mailbox_command): Likewise. 2585 (spu_mfc_get_bitfield): Likewise. 2586 (info_spu_dma_cmdlist): Likewise. 2587 (info_spu_dma_command): Likewise. 2588 (info_spu_proxydma_command): Likewise. 2589 (info_spu_command): Likewise. 2590 (_initialize_spu_tdep): Install "info spu" commands. 2591 25922007-06-12 Ulrich Weigand <uweigand@de.ibm.com> 2593 2594 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when 2595 accessing non-seekable spufs files. 2596 25972007-06-09 Markus Deuling <deuling@de.ibm.com> 2598 2599 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by 2600 gdbarch_skip_trampoline_code. 2601 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment). 2602 * objc-lang.c (objc_skip_trampoline) 2603 (objc_submethod_helper_data): Likewise. 2604 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment). 2605 * infrun.c (handle_inferior_event): Likewise. 2606 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise. 2607 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by 2608 gdbarch_in_solib_return_trampoline. 2609 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment). 2610 * infrun.c (handle_inferior_event): Likewise. 2611 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise. 2612 * gdbarch.c, gdbarch.h: Regenerate. 2613 26142007-06-09 Markus Deuling <deuling@de.ibm.com> 2615 2616 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue. 2617 * symtab.c (find_function_start_sal, in_prologue): Likewise. 2618 * linespec.c (minsym_found): Likewise. 2619 * infrun.c (step_into_function): Likewise. 2620 * gdbarch.c, gdbarch.h: Regenerate. 2621 26222007-06-09 Markus Deuling <deuling@de.ibm.com> 2623 2624 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc. 2625 * valops.c (value_allocate_space_in_inferior): Likewise. 2626 * gdbarch.c, gdbarch.h: Regenerate. 2627 26282007-06-09 Markus Deuling <deuling@de.ibm.com> 2629 2630 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by 2631 gdbarch_memory_insert_breakpoint. 2632 * mem-break.c (memory_insert_breakpoint): Likewise. 2633 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by 2634 gdbarch_memory_remove_breakpoint. 2635 * mem-break.c (memory_remove_breakpoint): Likewise. 2636 * gdbarch.c, gdbarch.h: Regenerate. 2637 26382007-06-09 Markus Deuling <deuling@de.ibm.com> 2639 2640 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by 2641 gdbarch_fetch_tls_load_module_address. 2642 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by 2643 gdbarch_fetch_tls_load_module_address_p. 2644 * gdbarch.c, gdbarch.h: Regenerate. 2645 26462007-06-09 Markus Deuling <deuling@de.ibm.com> 2647 2648 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by 2649 gdbarch_decr_pc_after_break. 2650 * tracepoint.c (trace_dump_command): Likewise. 2651 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise. 2652 * linux-thread-db.c (check_event): Likewise. 2653 * linux-nat.c (cancel_breakpoints_callback): Likewise. 2654 * infrun.c (adjust_pc_after_break, normal_stop): Likewise. 2655 * frame.h: Likewise (comment). 2656 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise. 2657 * aix-thread.c (aix_thread_wait): Likewise. 2658 * gdbarch.c, gdbarch.h: Regenerate. 2659 26602007-06-09 Markus Deuling <deuling@de.ibm.com> 2661 2662 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by 2663 gdbarch_address_class_type_flags. 2664 * dwarf2read.c (read_tag_pointer_type): Likewise. 2665 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by 2666 gdbarch_address_class_type_flags_p. 2667 * dwarf2read.c (read_tag_pointer_type): Likewise. 2668 * gdbarch.c, gdbarch.h: Regenerate. 2669 26702007-06-09 Markus Deuling <deuling@de.ibm.com> 2671 2672 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove. 2673 * value.c (value_as_address): Likewise (comment). 2674 * remote-mips.c (common_breakpoint): Likewise. 2675 * regcache.c (read_pc_pid): Likewise. 2676 * printcmd.c (do_one_display): Likewise. 2677 * monitor.c (monitor_write_memory, monitor_read_memory) 2678 (monitor_insert_breakpoint): Likewise. 2679 * mips-tdep.c (heuristic_proc_start): Likewise. 2680 * infrun.c (insert_step_resume_breakpoint_at_frame) 2681 (insert_step_resume_breakpoint_at_caller): Likewise. 2682 * buildsym.c (record_line): Likewise. 2683 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc) 2684 (arm_get_next_pc): Likewise. 2685 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register) 2686 (store_regs): Likewise. 2687 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise. 2688 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise. 2689 * gdbarch.c, gdbarch.h: Regenerate. 2690 26912007-06-09 Markus Deuling <deuling@de.ibm.com> 2692 2693 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name. 2694 * tracepoint.c (scope_info): Likewise. 2695 * target.c (debug_print_register): Likewise. 2696 * stack.c (frame_info): Likewise. 2697 * sh-tdep.c (sh_register_reggroup_p): Likewise. 2698 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register) 2699 (sh64_media_print_registers_info) 2700 (sh64_compact_print_registers_info): Likewise. 2701 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise. 2702 * remote-sim.c (gdbsim_fetch_register): Likewise. 2703 * remote.c (packet_reg): Likewise (comment). 2704 * reggroups.c (default_register_reggroup_p): Likewise. 2705 * regcache.c (regcache_dump): Likewise. 2706 * printcmd.c (address_info): Likewise. 2707 * ppc-linux-nat.c (fetch_register, store_register): Likewise. 2708 * mt-dep.c (mt_registers_info): Likewise. 2709 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment). 2710 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single) 2711 (mips_read_fp_register_double, mips_print_fp_register) 2712 (mips_print_register, print_gp_register_row, mips_print_registers_info) 2713 (mips_register_sim_regno): Likewise. 2714 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise. 2715 * inf-ptrace.c (inf_ptrace_fetch_register) 2716 (inf_ptrace_store_register): Likewise. 2717 * infcmd.c (default_print_registers_info): Likewise. 2718 * ia64-linux-nat.c (ia64_linux_fetch_register) 2719 (ia64_linux_store_register): Likewise. 2720 * i386-linux-nat.c (fetch_register, store_register): Likewise. 2721 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise. 2722 * hppa-linux-nat.c (fetch_register, store_register): Likewise. 2723 * hppa-hpux-nat.c (hppa_hpux_fetch_register) 2724 (hppa_hpux_store_register): Likewise. 2725 * findvar.c (locate_var_value): Likewise. 2726 * dwarf2loc.c (locexpr_describe_location): Likewise. 2727 * dwarf2-frame.c (execute_cfa_program): Likewise. 2728 * arm-tdep.c (arm_push_dummy_call): Likewise. 2729 * arch-utils.c (legacy_register_sim_regno): Likewise. 2730 * alpha-tdep.c (alpha_register_reggroup_p): Likewise. 2731 * alpha-nat.c (fetch_osf_core_registers): Likewise. 2732 * mi/mi-main.c (mi_cmd_data_list_register_names) 2733 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values) 2734 (mi_cmd_data_write_register_values): Likewise. 2735 * gdbarch.c, gdbarch.h: Regenerate. 2736 27372007-06-07 Daniel Jacobowitz <dan@codesourcery.com> 2738 2739 * target-memory.c (blocks_to_erase): Correct off-by-one error. 2740 27412007-06-06 Vladimir Prus <vladimir@codesourcery.com> 2742 2743 * remote.c (process_g_packet): Don't check size. 2744 * gdbarch.sh: Remove register_bytes_ok. 2745 * gdbarch.c: Regenerated. 2746 * gdbarch.h: Regenerated. 2747 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove. 2748 (m68k_register_bytes_ok): Remove. 2749 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok. 2750 27512007-06-06 Andreas Schwab <schwab@suse.de> 2752 2753 * libunwind-frame.c (unw_destroy_addr_space_p): Define. 2754 (destroy_addr_space_name): Define. 2755 (libunwind_load): Get address of destroy_addr_space function. 2756 (libunwind_frame_cache): Destroy unw_addr_space_t object before 2757 returning unsuccessfully. 2758 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before 2759 returning. 2760 (libunwind_sigtramp_frame_sniffer): Likewise. 2761 (libunwind_get_reg_special): Likewise. 2762 27632007-06-06 Markus Deuling <deuling@de.ibm.com> 2764 2765 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by 2766 gdbarch_fetch_pointer_argument. 2767 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise. 2768 * gdbarch.c, gdbarch.h: Regenerate. 2769 27702007-06-06 Markus Deuling <deuling@de.ibm.com> 2771 2772 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by 2773 gdbarch_have_nonsteppable_watchpoint. 2774 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise. 2775 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by 2776 gdbarch_cannot_step_breakpoint. 2777 * infrun.c (resume): Likewise. 2778 * gdbarch.c, gdbarch.h: Regenerate. 2779 27802007-06-06 Markus Deuling <deuling@de.ibm.com> 2781 2782 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip. 2783 * stack.c (print_frame_args): Likewise. 2784 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args. 2785 * stack.c (print_args_stub, frame_info): Likewise. 2786 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p. 2787 * stack.c (print_args_stub, frame_info): Likewise. 2788 * gdbarch.c, gdbarch.h: Regenerate. 2789 27902007-06-06 Markus Deuling <deuling@de.ibm.com> 2791 2792 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by 2793 gdbarch_coff_make_msymbol_special. 2794 * coffread.c (coff_symtab_read): Likewise. 2795 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by 2796 gdbarch_elf_make_msymbol_special. 2797 * elfread.c (elf_symtab_read): Likewise. 2798 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment). 2799 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment). 2800 * gdbarch.c, gdbarch.h: Regenerate. 2801 28022007-06-06 Markus Deuling <deuling@de.ibm.com> 2803 2804 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by 2805 gdbarch_frame_red_zone_size. 2806 * gdbarch.c, gdbarch.h: Regenerate. 2807 28082007-06-06 Markus Deuling <deuling@de.ibm.com> 2809 2810 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than. 2811 * infcall.c (call_function_by_hand): Likewise. 2812 * gcore.c (derive_stack_segment): Likewise. 2813 * frame.c (frame_id_inner): Likewise. 2814 * arch-utils.c (core_addr_lessthan): Likewise (comment). 2815 * ada-lang.c (ensure_lval): Likewise. 2816 * gdbarch.c, gdbarch.h: Regenerate. 2817 28182007-06-06 Markus Deuling <deuling@de.ibm.com> 2819 2820 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by 2821 gdbarch_address_to_pointer. 2822 * findvar.c (store_typed_address): Likewise. 2823 * gdbtypes.c (make_pointer_type): Likewise (comment). 2824 * procfs.c (procfs_address_to_host_pointer): Likewise. 2825 * std-regs.c (value_of_builtin_frame_reg): Likewise. 2826 (value_of_builtin_frame_fp_reg): Likewise. 2827 (value_of_builtin_frame_pc_reg): Likewise. 2828 * utils.c (paddress): Likewise (comment). 2829 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by 2830 gdbarch_pointer_to_address. 2831 * findvar.c (extract_typed_address): Likewise. 2832 * gdbtypes.c (make_pointer_type): Likewise (comment). 2833 * valops.c (value_cast): Likewise (comment). 2834 * gdbarch.c, gdbarch.h: Regenerate. 2835 28362007-06-06 Markus Deuling <deuling@de.ibm.com> 2837 2838 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target. 2839 * infrun.c (handle_inferior_event): Likewise. 2840 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by 2841 gdbarch_get_longjmp_target_p. 2842 * breakpoint.c (breakpoint_re_set): Likewise. 2843 * infrun.c (handle_inferior_event): Likewise. 2844 * gdbarch.c, gdbarch.h: Regenerate. 2845 28462007-06-06 Ulrich Weigand <uweigand@de.ibm.com> 2847 2848 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook, 2849 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break, 2850 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification, 2851 hp_cxx_exception_support, hp_cxx_exception_support_initialized, 2852 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr, 2853 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior, 2854 find_stub_with_shl_get, cover_find_stub_with_shl_get, 2855 initialize_hp_cxx_exception_support, child_enable_exception_callback, 2856 current_ex_event, child_get_current_exception_event): Remove. 2857 (hppa_hpux_inferior_created): Remove. 2858 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created. 2859 2860 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove. 2861 (deprecated_exception_support_initialized): Remove. 2862 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove. 2863 (deprecated_exception_support_initialized): Remove. 2864 (breakpoint_init_inferior): Remove handling of non-zero 2865 deprecated_exception_catchpoints_are_fragile. 2866 2867 * symtab.h (deprecated_hp_som_som_object_present): Remove. 2868 * symtab.c (deprecated_hp_som_som_object_present): Remove. 2869 * c-typeprint.c (c_type_print_base): Remove handling of non-zero 2870 deprecated_hp_som_som_object_present. 2871 * eval.c (evaluate_subexp_standard): Likewise. 2872 * valops.c (value_cast): Likewise. 2873 2874 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove. 2875 * parser-defs.h (parse_nested_classes_for_hpacc): Remove. 2876 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc. 2877 28782007-06-06 Ulrich Weigand <uweigand@de.ibm.com> 2879 2880 * objfiles.h (ImportEntry, ExportEntry): Remove types. 2881 (struct objfile): Remove import_list, import_list_size, 2882 export_list, export_list_size members. 2883 (is_in_import_list): Remove prototype. 2884 * objfiles.c (is_in_import_list): Remove. 2885 * somread.c (init_import_symbols, init_export_symbols): Remove. 2886 (som_symfile_read): Do not call init_import_symbols. Do not 2887 set objfile->export_list and objfile->export_list_size. 2888 28892007-06-05 Daniel Jacobowitz <dan@codesourcery.com> 2890 2891 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting. 2892 Use the original objfile if necessary. 2893 28942007-06-04 Daniel Jacobowitz <dan@codesourcery.com> 2895 2896 * defs.h (ldirname): New prototype. 2897 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is 2898 missing. 2899 * utils.c (ldirname): New function. 2900 * xml-tdesc.c (file_read_description_xml): Use ldirname. 2901 29022007-06-01 Ulrich Weigand <uweigand@de.ibm.com> 2903 2904 * spu-tdep.c (spu_push_dummy_call): Store stack back chain. 2905 29062007-06-01 Joel Brobecker <brobecker@adacore.com> 2907 2908 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning. 2909 29102007-06-01 Ulrich Weigand <uweigand@de.ibm.com> 2911 2912 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove. 2913 29142007-06-01 Ulrich Weigand <uweigand@de.ibm.com> 2915 2916 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777, 2917 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove. 2918 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET, 2919 PPC_LINUX_HANDLER_PTR_OFFSET): Remove. 2920 (ppc_linux_in_sigtramp, insn_is_sigreturn, 2921 ppc_linux_at_sigtramp_return_path): Remove. 2922 29232007-05-31 Markus Deuling <deuling@de.ibm.com> 2924 2925 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize) 2926 (xtensa_register_write_masked, xtensa_register_read_masked) 2927 (xtensa_extract_return_value, xtensa_store_return_value 2928 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace 2929 TARGET_BYTE_ORDER by gdbarch_byte_order. 2930 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh) 2931 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu) 2932 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise. 2933 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64) 2934 (sh64_push_dummy_call, sh64_extract_return_value) 2935 (sh64_store_return_value, sh64_register_convert_to_virtual) 2936 (sh64_register_convert_to_raw, sh64_pseudo_register_read) 2937 (sh64_pseudo_register_write, sh64_do_fp_register) 2938 (sh64_frame_prev_register): Likewise. 2939 * score-tdep.c (score_print_insn, score_breakpoint_from_pc) 2940 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise. 2941 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call) 2942 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise. 2943 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise. 2944 * ppc-linux-nat.c (store_register): Likewise. 2945 * nto-tdep.c (nto_find_and_open_solib) 2946 (nto_init_solib_absolute_prefix): Likewise. 2947 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write) 2948 (mips_convert_register_p, mips_eabi_push_dummy_call) 2949 (mips_n32n64_push_dummy_call, mips_n32n64_return_value) 2950 (mips_o32_push_dummy_call, mips_o32_return_value) 2951 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value) 2952 (mips_read_fp_register_single, mips_read_fp_register_double) 2953 (mips_print_register, print_gp_register_row, gdb_print_insn_mips) 2954 (mips_breakpoint_from_pc): Likewise. 2955 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise. 2956 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset) 2957 (mips_linux_o32_sigframe_init): Likewise. 2958 * m32r-tdep.c (m32r_memory_insert_breakpoint) 2959 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise. 2960 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer) 2961 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise. 2962 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise. 2963 * coffread.c (process_coff_symbol): Likewise. 2964 * arm-tdep.c (convert_from_extended, convert_to_extended) 2965 (gdb_print_insn_arm): Likewise. 2966 29672007-05-31 Markus Deuling <deuling@de.ibm.com> 2968 2969 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs. 2970 * i386-tdep.c (i386_dbx_reg_to_regnum) 2971 (i386_svr4_reg_to_regnum): Likewise. 2972 * inf-ptrace.c (inf_ptrace_fetch_registers) 2973 (inf_ptrace_store_registers): Likewise. 2974 * corelow.c (get_core_registers): Likewise. 2975 * i386-linux-nat.c (supply_gregset, fill_gregset) 2976 (i386_linux_fetch_inferior_registers) 2977 (i386_linux_store_inferior_registers): Likewise. 2978 * remote.c (init_remote_state,packet_reg_from_regnum) 2979 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers) 2980 (remote_prepare_to_store,store_registers_using_G) 2981 (remote_store_registers,remote_arch_state): Likewise. 2982 * tracepoint.c (encode_actions): Likewise. 2983 * mi/mi-main.c (mi_cmd_data_list_register_names) 2984 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values) 2985 (mi_cmd_data_write_register_values): Likewise. 2986 * tui/tui-regs.c (tui_show_register_group) 2987 (tui_show_register_group): Likewise. 2988 * xtensa-tdep.h (FP_ALIAS): Likewise. 2989 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type) 2990 (xtensa_reg_to_regnum,xtensa_pseudo_register_read) 2991 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise. 2992 * win32-nat.c (do_win32_fetch_inferior_registers) 2993 (do_win32_store_inferior_registers,fetch_elf_core_registers 2994 * user-regs.h: Likewise (comment). 2995 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise. 2996 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise. 2997 * target-descriptions.h: Likewise (comment). 2998 * target-descriptions.c (tdesc_use_registers): Likewise (comment). 2999 * target.c (debug_print_register): Likewise. 3000 * stack.c (frame_info): Likewise. 3001 * stabsread.c (define_symbol): Likewise. 3002 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register) 3003 (sh64_media_print_registers_info) 3004 (sh64_compact_print_registers_info): Likewise. 3005 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise. 3006 * rs6000-nat.c (fetch_register,store_register): Likewise. 3007 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register) 3008 (gdbsim_fetch_register,gdbsim_store_register): Likewise. 3009 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise. 3010 * remote-m32r-sdi.c (m32r_fetch_registers) 3011 (m32r_store_registers): Likewise. 3012 * reggroups.c (default_register_reggroup_p): Likewise. 3013 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save) 3014 (regcache_restore,regcache_dump): Likewise. 3015 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise. 3016 * mips-tdep.c (mips_xfer_register,mips_register_name) 3017 (mips_register_reggroup_p,mips_pseudo_register_read) 3018 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type) 3019 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset) 3020 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs) 3021 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg) 3022 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value) 3023 (print_gp_register_row,mips_print_registers_info) 3024 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum) 3025 (mips_register_sim_regno): Likewise. 3026 * mips-linux-tdep.c (mips_linux_o32_sigframe_init) 3027 (mips_linux_n32n64_sigframe_init): Likewise. 3028 * mips-linux-nat.c (mips_linux_register_addr) 3029 (mips64_linux_register_addr): Likewise. 3030 * findvar.c (value_of_register): Likewise. 3031 * infcmd.c (default_print_registers_info,registers_info) 3032 (print_vector_info,print_float_info): Likewise. 3033 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise. 3034 * inf-child.c (inf_child_fetch_inferior_registers): Likewise. 3035 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise. 3036 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise. 3037 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise. 3038 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register) 3039 (ia64_cannot_store_register,ia64_linux_fetch_registers) 3040 (ia64_linux_store_registers): Likewise. 3041 * hpux-thread.c (hpux_thread_fetch_registers) 3042 (hpux_thread_store_registers): Likewise. 3043 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM) 3044 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register) 3045 (h8300_register_type): Likewise. 3046 * dwarf2-frame.c (dwarf2_frame_cache) 3047 (dwarf2_frame_state_alloc_regs): Likewise. 3048 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register) 3049 (cris_cannot_store_register,crisv32_cannot_fetch_register) 3050 (crisv32_cannot_store_register,cris_register_name): Likewise. 3051 * avr-tdep.c (avr_frame_unwind_cache): Likewise. 3052 * arch-utils.c (legacy_register_sim_regno) 3053 (legacy_virtual_frame_pointer): Likewise. 3054 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise. 3055 * arm-tdep.h: Likewise (comment). 3056 * frv-tdep.c (frv_register_sim_regno): Likewise. 3057 * m68klinux-nat.c (old_fetch_inferior_registers) 3058 (old_store_inferior_registers): Likewise. 3059 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise. 3060 * irix5-nat.c (fetch_core_registers): Likewise. 3061 * hppa-tdep.c (hppa_frame_cache): Likewise. 3062 * hppa-linux-nat.c (hppa_linux_register_addr) 3063 (hppa_linux_fetch_inferior_registers) 3064 (hppa_linux_store_inferior_registers): Likewise. 3065 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers) 3066 (hppa_hpux_store_inferior_registers): Likewise. 3067 * amd64-nat.c (amd64_native_gregset_reg_offset) 3068 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise. 3069 * dbug-rom.c (dbug_regname): Likewise. 3070 * m68hc11-tdep.c (m68hc11_frame_unwind_cache) 3071 (HARD_PAGE_REGNUM (comment)): Likewise. 3072 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs. 3073 * i386-tdep.c (i386_dbx_reg_to_regnum) 3074 (i386_svr4_reg_to_regnum): Likewise. 3075 * mi/mi-main.c (mi_cmd_data_list_register_names) 3076 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values) 3077 (mi_cmd_data_write_register_values): Likewise. 3078 * gdbarch.c, gdbarch.h: Regenerate. 3079 * tui/tui-regs.c (tui_show_register_group): Likewise. 3080 * xtensa-tdep.h (FP_ALIAS): Likewise. 3081 * user-regs.h: Likewise (comment). 3082 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise. 3083 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise. 3084 * target-descriptions.h: Likewise (comment). 3085 * target.c (debug_print_register): Likewise. 3086 * stack.c (frame_info): Likewise. 3087 * stabsread.c (define_symbol): Likewise. 3088 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info) 3089 (sh64_compact_print_registers_info): Likewise. 3090 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise. 3091 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save 3092 (regcache_restore,regcache_dump): Likewise. 3093 * mips-tdep.c (print_gp_register_row,mips_print_registers_info) 3094 (mips_dwarf_dwarf2_ecoff_reg_to_regnum) 3095 (mips_stab_reg_to_regnum): Likewise. 3096 * findvar.c (value_of_register): Likewise. 3097 * infcmd.c (default_print_registers_info,registers_info) 3098 (print_vector_info,print_float_info): Likewise. 3099 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise. 3100 * h8300-tdep.c (h8300_register_type): Likewise. 3101 * dwarf2-frame.c (dwarf2_frame_cache): Likewise. 3102 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise. 3103 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum) 3104 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise. 3105 * parse.c: Remove comment. 3106 * gdbarch.c, gdbarch.h: Regenerate 3107 31082007-05-31 Markus Deuling <deuling@de.ibm.com> 3109 3110 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by 3111 gdbarch_cannot_fetch_register. 3112 * alpha-nat.c (fetch_osf_core_registers): Likewise. 3113 * hppa-linux-nat.c (fetch_register): Likewise. 3114 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise. 3115 * m68klinux-nat.c (fetch_register): Likewise. 3116 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): 3117 Likewise. 3118 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by 3119 gdbarch_cannot_store_register. 3120 * hppa-linux-nat.c (store_register): Likewise. 3121 * inf-ptrace.c (inf_ptrace_store_register): Likewise. 3122 * regcache.c (regcache_raw_write): Likewise. 3123 * m68klinux-nat.c (store_register): Likewise. 3124 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise. 3125 * gdbarch.c, gdbarch.h: Regenerate. 3126 31272007-05-31 Markus Deuling <deuling@de.ibm.com> 3128 3129 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi. 3130 * gdbarch.c, gdbarch.h: Regenerate. 3131 31322007-05-31 Markus Deuling <deuling@de.ibm.com> 3133 3134 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed. 3135 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise. 3136 * gdbarch.c, gdbarch.h: Regenerate. 3137 31382007-05-31 Markus Deuling <deuling@de.ibm.com> 3139 3140 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order. 3141 * ax-gdb.c (gen_bitfield_ref): Likewise. 3142 * mi/mi-main.c (get_register): Likewise. 3143 * findvar.c (default_value_from_register, extract_signed_integer) 3144 (extract_unsigned_integer, extract_long_unsigned_integer) 3145 (store_signed_integer, store_unsigned_integer): Likewise. 3146 * regcache.c (regcache_dump): Likewise. 3147 * value.c (lookup_internalvar, value_of_internalvar) 3148 (set_internalvar): Likewise. 3149 * defs.h: Likewise. 3150 * valprint.c (print_binary_chars, print_octal_chars) 3151 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise. 3152 * infcmd.c (default_print_registers_info): Likewise. 3153 * arch-utils.c (selected_byte_order, show_endian): Likewise. 3154 * stabsread.c (define_symbol): Likewise. 3155 * doublest.c (floatformat_from_length, floatformat_from_type) 3156 (extract_typed_floating, store_typed_floating): Likewise. 3157 * gdbarch.c, gdbarch.h: Regenerate. 3158 31592007-05-31 Markus Deuling <deuling@de.ibm.com> 3160 3161 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by 3162 gdbarch_call_dummy_location. 3163 * infcall.c (call_function_by_hand): Likewise. 3164 * inferior.h: Change comment. 3165 * arch-utils.c: Change comment. 3166 * gdbarch.c, gdbarch.h: Regenerate. 3167 31682007-05-28 Joel Brobecker <brobecker@adacore.com> 3169 3170 * solib-aix5.c: Delete. 3171 * Makefile.in (solib-aix5.o): Delete rule. 3172 31732007-05-23 Daniel Jacobowitz <dan@codesourcery.com> 3174 3175 * breakpoint.h (enum bpstat_what_main_action): Remove 3176 BPSTAT_WHAT_THROUGH_SIGTRAMP. 3177 * infrun.c (process_event_stop_test): Do not check for it. 3178 31792007-05-22 Chris Dearman <chris@mips.com> 3180 Maciej W. Rozycki <macro@mips.com> 3181 3182 * ser-unix.c (show_serial_hwflow): New function. 3183 (hardwire_raw): Add hardware flow control support. 3184 (_initialize_ser_hardwire): Add "set/show remoteflow". 3185 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h). 3186 * NEWS: Document the new command. 3187 31882007-05-21 Ulrich Weigand <uweigand@de.ibm.com> 3189 3190 * config/i386/tm-linux.h (sys_quotactl): Do not define. 3191 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not 3192 define for i[[3456]]86-*-linux* native configurations. 3193 * config.in, configure: Regenerate. 3194 31952007-05-19 Joel Brobecker <brobecker@adacore.com> 3196 3197 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging 3198 a core file. Add comment in the function description. 3199 32002007-05-18 Caroline Tice <ctice@apple.com> 3201 3202 * c-valprint.c (c_value_print): If the initialized field of the 3203 value struct is 0, print out "[uninitialized]" before the value. 3204 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field; 3205 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a 3206 DW_OP_regx op; add case for DW_OP_GNU_uninit and update 3207 ctx->initialized appropriately. Verify no location op follows 3208 DW_OP_GNU_uninit. 3209 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized. 3210 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to 3211 set_value_initialized. 3212 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit. 3213 (decode_locdesc): Add case for DW_OP_GNU_uninit. 3214 * value.c (struct value): New field, initialized. 3215 (allocate_value): Initialize new field. 3216 (set_value_initialized): New function. 3217 (value_initialized): New function. 3218 * value.h (value_initialized): New extern declaration. 3219 (set_value_initialized): Likewise. 3220 32212007-05-18 Caroline Tice <ctice@apple.com> 3222 3223 * MAINTAINERS (Write After Approval): Add self. 3224 32252007-05-17 Joel Brobecker <brobecker@adacore.com> 3226 3227 * gdbtypes.c (make_reference_type): Preserve the type chain 3228 and set the length of all the variants of the pointer type. 3229 32302007-05-17 Joel Brobecker <brobecker@adacore.com> 3231 3232 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain 3233 and set the length of all the variants of the pointer type. 3234 32352007-05-17 Maciej W. Rozycki <macro@mips.com> 3236 3237 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a 3238 comment. 3239 (mips_o64_push_dummy_call): Reformat a comment. 3240 32412007-05-17 Qinwei <qinwei@sunnorth.com.cn> 3242 3243 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue) 3244 (score_prologue_frame_base_address): Return fp to keep gdb print 3245 local variables correctly when debugging information is stabs. 3246 3247 (score_analyze_prologue): For software watchpoint, fetch all the 3248 instructions from range [startaddr, pc] once and identify them locally 3249 to reduce memory access. 3250 (score_malloc_and_get_memblock, score_free_memblock) 3251 (score_adjust_memblock_ptr): New functions. 3252 (score_fetch_inst): Fetch single instruction or mutiple instructions. 3253 3254 (score_target_can_use_watch, score_stopped_by_watch) 3255 (score_target_insert_watchpoint, score_target_remove_watchpoint) 3256 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint): 3257 New functions for remote & local hw-watchpoint and hw-breakpoint. 3258 32592007-05-16 Alfred M. Szmidt <ams@gnu.org> 3260 3261 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t' 3262 declarations as well. 3263 32642007-05-16 Ulrich Weigand <uweigand@de.ibm.com> 3265 3266 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h. 3267 * config/arm/tm-embed.h: Delete file. 3268 3269 * arm-tdep.h (arm_software_single_step): Declare. 3270 * arm-tdep.c (arm_software_single_step): Make global. 3271 (arm_gdbarch_init): Move set_gdbarch_software_single_step call 3272 from here to ... 3273 * arm-linux-tdep.c (arm_linux_init_abi): ... here ... 3274 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ... 3275 * armobsd-tdep.c (armobsd_init_abi): ... here ... 3276 * arm-wince-tdep.c (arm_wince_init_abi): ... and here. 3277 3278 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer 3279 allow defines to be overriden by TM file. 3280 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also, 3281 change default to {0xbe,0xbe}. 3282 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint, 3283 arm_obsd_thumb_be_breakpoint): New global variables. 3284 (armobsd_init_abi): Override tdep->thumb_breakpoint and 3285 tdep->thumb_breakpoint_size. 3286 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable. 3287 (arm_wince_init_abi): Override tdep->thumb_breakpoint and 3288 tdep->thumb_breakpoint_size. 3289 3290 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code. 3291 32922007-05-16 Daniel Jacobowitz <dan@codesourcery.com> 3293 3294 * NEWS: Mention removed "set mips stack-arg-size" and "set mips 3295 saved-gpreg-size". 3296 3297 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants. 3298 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string) 3299 (mips_stack_argsize_string, mips_stack_argsize): Delete. 3300 (mips_abi_regsize): Simplify. 3301 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call) 3302 (mips_n32n64_return_value, mips_o32_push_dummy_call) 3303 (mips_o32_return_value, mips_o64_push_dummy_call) 3304 (mips_o64_return_value): Propogate constant register sizes. Use the 3305 ABI register size instead of mips_stack_argsize. 3306 (mips_dump_tdep): Don't print mips_stack_argsize. 3307 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size 3308 settings. 3309 33102007-05-16 Daniel Jacobowitz <dan@codesourcery.com> 3311 3312 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete. 3313 * config/mips/tm-linux.h: Delete. 3314 * mips-linux-tdep.c (mips_svr4_so_ops): New. 3315 (mips_linux_in_dynsym_resolve_code): Make static. Use 3316 svr4_in_dynsym_resolve_code. 3317 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call 3318 set_solib_ops. 3319 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make 3320 global. 3321 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare. 3322 * Makefile.in (mips-linux-tdep.o): Update. 3323 * solib.c (set_solib_ops): New. 3324 (current_target_so_ops): Update comment. 3325 * solib.h (set_solib_ops): New prototype. 3326 33272007-05-16 Chris Dearman <chris@mips.com> 3328 3329 * printcmd.c (do_examine): Fix typos in a comment. 3330 33312007-05-16 Richard Sandiford <richard@codesourcery.com> 3332 3333 * configure.ac: Allow sysroots to be relocated under $prefix as 3334 well as $exec_prefix. 3335 * configure: Regenerate. 3336 33372007-05-14 Ulrich Weigand <uweigand@de.ibm.com> 3338 3339 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>. 3340 (offsetof): Do not define. 3341 (find_stub_with_shl_get): Use numerical value 3 instead of 3342 symbolic value TYPE_PROCEDURE. 3343 33442007-05-14 Daniel Jacobowitz <dan@codesourcery.com> 3345 3346 * gdb_proc_service.h (paddr_t): Delete typedef. 3347 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New. 3348 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr. 3349 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr. 3350 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t. 3351 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t. 3352 * Makefile.in (proc-service.o): Update. 3353 33542007-05-14 Daniel Jacobowitz <dan@codesourcery.com> 3355 3356 * Makefile.in (mips-tdep.o): Update. 3357 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI 3358 unwinder. 3359 33602007-05-14 Daniel Jacobowitz <dan@codesourcery.com> 3361 3362 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long 3363 instead of store_typed_address. 3364 * value.c (pack_long): New. 3365 (value_from_longest): Use it. 3366 * value.h (pack_long): New prototype. 3367 33682007-05-14 Daniel Jacobowitz <dan@codesourcery.com> 3369 3370 * dwarf2-frame.c (read_encoded_value): Correct typo. Use 3371 DW_EH_PE_signed if appropriate. 3372 33732007-05-14 Paul Brook <paul@codesourcery.com> 3374 Daniel Jacobowitz <dan@codesourcery.com> 3375 3376 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New 3377 function. 3378 (dwarf_decode_lines): Check for line info without a file. 3379 33802007-05-14 Daniel Jacobowitz <dan@codesourcery.com> 3381 3382 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs 3383 as hexadecimal. 3384 33852007-05-14 Daniel Jacobowitz <dan@codesourcery.com> 3386 3387 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of 3388 STRUCTOP_STRUCT. 3389 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of 3390 STRUCTOP_STRUCT. 3391 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring. 3392 33932007-05-14 Ulrich Weigand <uweigand@de.ibm.com> 3394 3395 * gdbarch.sh (read_sp): Remove. 3396 * gdbarch.c, gdbarch.h: Regenerate. 3397 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP. 3398 3399 * avr-tdep.c (avr_read_sp): Remove. 3400 (avr_unwind_sp): New function. 3401 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback. 3402 * mips-tdep.c (mips_read_sp): Remove. 3403 (mips_unwind_sp): New function. 3404 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback. 3405 * score-tdep.c (score_read_unsigned_register): Remove. 3406 (score_read_sp): Remove. 3407 (score_unwind_sp): New function. 3408 (score_gdbarch_init): Install unwind_sp instead of read_sp callback. 3409 34102007-05-14 Maxim Grigoriev <maxim2405@gmail.com> 3411 3412 * buildsym.c (start_subfile): Handle absolute pathnames 3413 while comparing subfile names. 3414 34152007-05-13 Ulrich Weigand <uweigand@de.ibm.com> 3416 3417 * hppa-hpux-tdep.c: Include "regcache.h". 3418 * hppa-linux-tdep.c: Likewise. 3419 * hppa-tdep.c: Include "gdb_stdint.h". 3420 (find_unwind_entry): Cast host pointer to uintptr_t before passing 3421 it to paddr_nz. 3422 * Makefile.in: Update dependencies. 3423 34242007-05-13 Ulrich Weigand <uweigand@de.ibm.com> 3425 3426 * blockframe.c: Remove obsolete comments. 3427 * alpha-nat.c (fetch_osf_core_registers): Update comment. 3428 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment. 3429 * hppa-tdep.h (enum hppa_regnum): Likewise. 3430 * mips-tdep.h: Likewise. 3431 * m68hc11-tdep.c: Likewise. 3432 34332007-05-13 Ulrich Weigand <uweigand@de.ibm.com> 3434 3435 * inferior.h (read_sp): Remove prototype. 3436 * regcache.c (read_sp): Remove. 3437 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp. 3438 * infcall.c (call_function_by_hand): Likewise. 3439 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead 3440 of calling read_sp. 3441 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise. 3442 34432007-05-11 Ulrich Weigand <uweigand@de.ibm.com> 3444 3445 * i386-linux-nat.c (i386_linux_resume): Use regcache functions 3446 instead of read_register and read_register_pid. 3447 3448 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE 3449 argument instead of PTID. Use regcache functions instead of 3450 read_register_pid. 3451 (ia64_linux_insert_watchpoint): Update call. 3452 (ia64_linux_stopped_data_address): Use regcache functions 3453 instead of read_register_pid and write_register_pid. 3454 34552007-05-11 Ulrich Weigand <uweigand@de.ibm.com> 3456 3457 * libunwind-frame.h (struct regcache): Add forward declaration. 3458 (libunwind_get_reg_special): Add REGCACHE argument. 3459 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE 3460 argument. Pass it to unw_init_remote_p. 3461 3462 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to 3463 libunwind_get_reg_special. 3464 (ia64_access_reg): Remove "write" case. 3465 (ia64_access_fpreg): Likewise. Read from next_frame passed 3466 as callback argument instead of from current_regcache. 3467 (ia64_access_rse_reg): Remove "write" case. Read from regcache 3468 passed as callback argument instead of from current_regcache. 3469 (ia64_access_rse_fpreg): New function. 3470 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg. 3471 34722007-05-11 Ulrich Weigand <uweigand@de.ibm.com> 3473 3474 * NEWS: Mention SPU overlay support. 3475 34762007-05-11 Ulrich Weigand <uweigand@de.ibm.com> 3477 3478 * spu-tdep.c (spu_frame_unwind_cache): Add comment. 3479 34802007-05-11 Ulrich Weigand <uweigand@de.ibm.com> 3481 3482 * breakpoint.c (remove_breakpoint): Do not remove software 3483 breakpoints in unmapped overlay sections. 3484 34852007-05-11 Ulrich Weigand <uweigand@de.ibm.com> 3486 3487 * spu-tdep.c: Include "observer.h". 3488 (spu_frame_unwind_cache): Unwind PC through overlay return stubs. 3489 (spu_overlay_data): New variable. 3490 (struct spu_overlay_table): New type. 3491 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update, 3492 spu_overlay_new_objfile): New functions. 3493 (spu_gdbarch_init): Install spu_overlay_update. 3494 (_initialize_spu_tdep): Register spu_overlay_new_objfile, 3495 allocate spu_overlay_data objfile data. 3496 34972007-05-11 Ulrich Weigand <uweigand@de.ibm.com> 3498 3499 * gdbarch.sh (overlay_update): New gdbarch function. 3500 (struct obj_section): Add forward declaration. 3501 * gdbarch.c, gdbarch.h: Regenerate. 3502 3503 * symfile.c (simple_overlay_update): Make global. 3504 (target_overlay_update): Remove variable. 3505 (overlay_is_mapped): Call gdbarch_overlay_update instead of 3506 target_overlay_update. 3507 (overlay_load_command): Likewise. 3508 * symfile.h (struct obj_section): Add forward declaration. 3509 (simple_overlay_update): Add prototype. 3510 3511 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update. 3512 35132007-05-11 Ulrich Weigand <uweigand@de.ibm.com> 3514 3515 * observer.sh: Add "struct objfile" forward declaration. 3516 * target.h (deprecated_target_new_objfile_hook): Remove. 3517 * symfile.c (deprecated_target_new_objfile_hook): Remove. 3518 (clear_symtab_users): Call observer_notify_new_objfile. 3519 (symbol_file_add_with_addrs_or_offsets): Likewise. 3520 * rs6000-nat.c: Include "observer.h". 3521 (vmap_ldinfo): Call observer_notify_new_objfile. 3522 (xcoff_relocate_core): Likewise. 3523 * remote.c (remote_new_objfile_chain): Remove. 3524 (remote_new_objfile): Do not call remote_new_objfile_chain. 3525 (_initialize_remote): Use observer_attach_new_objfile. 3526 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove. 3527 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain. 3528 (_initialize_tui_hooks): Use observer_attach_new_objfile. 3529 * aix-thread.c: Include "observer.h". 3530 (target_new_objfile_chain): Remove. 3531 (new_objfile): Do not call target_new_objfile_chain. 3532 (_initialize_aix_thread): Use observer_attach_new_objfile. 3533 * hpux-thread.c: Include "observer.h" 3534 (target_new_objfile_chain): Remove. 3535 (hpux_thread_new_objfile): Make static. Do not call 3536 target_new_objfile_chain. 3537 (_initialize_hpux_thread): Use observer_attach_new_objfile. 3538 * linux-thread-db.c: Include "observer.h". 3539 (target_new_objfile_chain): Remove. 3540 (thread_db_new_objfile): Do not call target_new_objfile_chain. 3541 (_initialize_thread_db): Use observer_attach_new_objfile. 3542 * sol-thread.c: Include "observer.h". 3543 (target_new_objfile_chain): Remove. 3544 (sol_thread_new_objfile): Make static. Do not call 3545 target_new_objfile_chain. 3546 (_initialize_sol_thread): Use observer_attach_new_objfile. 3547 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o, 3548 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on 3549 $(observer_h). 3550 35512007-05-11 Ulrich Weigand <uweigand@de.ibm.com> 3552 3553 * gdbarch.sh (remote_translate_xfer_address): Remove. 3554 * gdbarch.h, gdbarch.c: Regenerate. 3555 * arch-utils.c (generic_remote_translate_xfer_address): Remove. 3556 * arch-utils.h (generic_remote_translate_xfer_address): Remove. 3557 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not 3558 call gdbarch_remote_translate_xfer_address. 3559 * frv-tdep.c (frv_gdbarch_init): Do not call 3560 set_gdbarch_remote_translate_xfer_address. 3561 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove. 3562 (ia64_gdbarch_init): Do not install it. 3563 35642007-05-11 Bob Wilson <bob.wilson@acm.org> 3565 3566 * NEWS: Mention change in handling the -tui option. 3567 35682007-05-11 Daniel Jacobowitz <dan@codesourcery.com> 3569 3570 * linux-thread-db.c (enable_thread_event_reporting): Fix comment 3571 typo. 3572 35732007-05-11 Ulrich Weigand <uweigand@de.ibm.com> 3574 3575 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function. 3576 (breakpoint_inserted_here_p): Call it. 3577 (software_breakpoint_inserted_here_p): Likewise. 3578 35792007-05-10 Ulrich Weigand <uweigand@de.ibm.com> 3580 3581 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list. 3582 (inf_ptrace_fetch_register): Add register_u_offset callback parameters 3583 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value. 3584 (inf_ptrace_store_register): Likewise. 3585 (inf_ptrace_trad_target): Adapt register_u_offset parameter list. 3586 * inf-ptrace.h (inf_ptrace_trad_target): Likewise. 3587 3588 * vax-nat.c (vax_register_u_offset): Adapt parameter list. 3589 3590 * linux-nat.c (linux_trad_target): Adapt parameter list. 3591 * linux-nat.h (linux_trad_target): Likewise. 3592 3593 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters. 3594 3595 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove. 3596 (mips_linux_cannot_store_register): Likewise. 3597 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters. 3598 Return (CORE_ADDR) -1 for registers that cannot be fetched or 3599 stored via ptrace. Use GDBARCH instead of current_gdbarch. 3600 (mips64_linux_register_addr): Likewise. 3601 (mips_linux_register_u_offset): Adapt parameter list. Pass 3602 GDBARCH and STORE_P on to mips{64}_linux_register_addr. 3603 3604 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h. 3605 * config/mips/nm-linux.h: Delete file. 3606 36072007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> 3608 3609 * remote.c (remote_detach): Error out if remote can't detach. 3610 36112007-05-10 Luis Machado <luisgpm@br.ibm.com> 3612 3613 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch 3614 instruction's opcode in the "opcode" variable and declares new 3615 variable "closing_insn". 3616 36172007-05-10 Chris Dearman <chris@mips.com> 3618 Maciej W. Rozycki <macro@mips.com> 3619 3620 * cli/cli-setshow.c (do_setshow_command): Remove trailing 3621 whitespace when setting a var_filename. 3622 36232007-05-09 Bob Wilson <bob.wilson@acm.org> 3624 3625 * main.c (captured_main): Recognize -tui option and print an error 3626 message when the TUI is not configured. 3627 36282007-05-09 Andreas Schwab <schwab@suse.de> 3629 3630 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't 3631 set removed members. 3632 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise. 3633 36342007-05-08 Ulrich Weigand <uweigand@de.ibm.com> 3635 3636 * gdbarch.sh (deprecated_store_struct_return): Remove. 3637 * gdbarch.c, gdbarch.h: Regenerate. 3638 * frv-tdep.c (frv_store_struct_return): Remove. 3639 (frv_gdbarch_init): Do not install it. 3640 36412007-05-08 Ulrich Weigand <uweigand@de.ibm.com> 3642 3643 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define. 3644 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define. 3645 * config/nm-linux.h (USE_PROC_FS): Do not undefine. 3646 36472007-05-08 Ulrich Weigand <uweigand@de.ibm.com> 3648 3649 * spu-linux-nat.c: Include "gdb_stdint.h". 3650 (fetch_ppc_register): Use uint64_t instead of unsigned long long. 3651 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise. 3652 (fetch_ppc_memory, store_ppc_memory): Fix coding style. 3653 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf. 3654 (spu_child_wait): Mark up string for translation. 3655 36562007-05-08 Paul Gilliam <pgilliam@us.ibm.com> 3657 Luis Machado <luisgpm@br.ibm.com> 3658 3659 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION, 3660 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK, 3661 BC_INSTRUCTION): Define. 3662 (deal_with_atomic_sequence): New function. 3663 (rs6000_software_single_step): Call deal_with_atomic_sequence. 3664 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as 3665 gdbarch_software_single_step routine. 3666 36672007-05-07 Ulrich Weigand <uweigand@de.ibm.com> 3668 3669 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1, 3670 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory, 3671 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open, 3672 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior, 3673 spu_child_post_attach, spu_fetch_inferior_registers, 3674 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side 3675 memory addresses as ULONGEST, not CORE_ADDR. 3676 36772007-05-07 Ulrich Weigand <uweigand@de.ibm.com> 3678 3679 * gdbarch.sh: Add skip_permanent_breakpoint callback. 3680 * gdbarch.h, gdbarch.c: Regenerate. 3681 3682 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition. 3683 (resume): Call gdbarch_skip_permanent_breakpoint instead of 3684 SKIP_PERMANENT_BREAKPOINT. Inline default case. 3685 3686 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static. 3687 Add REGCACHE argument. Use it instead of read/write_register. 3688 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint. 3689 3690 * config/pa/tm-hppah.h: Delete file. 3691 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h. 3692 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise. 3693 36942007-05-07 Daniel Jacobowitz <dan@codesourcery.com> 3695 3696 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update. 3697 * NEWS: Mention improved C++ thunk support. 3698 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline. 3699 * cp-abi.c (cplus_skip_trampoline): New. 3700 * cp-abi.h (cplus_skip_trampoline): New prototype. 3701 (struct cp_abi_ops): Add skip_trampoline member. 3702 * gnu-v3-abi.c (gnuv3_skip_trampoline): New. 3703 (init_gnuv3_ops): Set skip_trampoline. 3704 37052007-05-06 Daniel Jacobowitz <dan@codesourcery.com> 3706 3707 * rs6000-tdep.c (struct frame_extra_info): Delete. 3708 37092007-05-06 Daniel Jacobowitz <dan@codesourcery.com> 3710 3711 * linux-thread-db.c: Update some FIXME comments. 3712 (thread_db_xfer_partial): Delete. 3713 (init_thread_db_ops): Do not set to_xfer_partial. 3714 37152007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 3716 3717 * inftarg.c, infptrace.c: Remove files. 3718 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c 3719 (inftarg.o, infptrace.o): Remove rules. 3720 * gdbcore.h (register_addr): Remove prototype. 3721 * inferior.h (kill_inferior, store_inferior_registers, 3722 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume, 3723 call_ptrace, pre_fork_inferior): Remove prototypes. 3724 * target.h (child_xfer_memory, child_pid_to_exec_file, 3725 child_core_file_to_sym_file, child_post_attach, 3726 child_post_startup_inferior, child_acknowledge_created_inferior, 3727 child_insert_fork_catchpoint, child_remove_fork_catchpoint, 3728 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint, 3729 child_insert_exec_catchpoint, child_remove_exec_catchpoint, 3730 child_follow_fork, child_reported_exec_events_per_exec_call, 3731 child_has_exited, child_thread_alive): Remove prototypes. 3732 37332007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 3734 3735 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype. 3736 (sparc_store_inferior_registers): Likewise. 3737 * sparc-nat.c (fetch_inferior_registers): Rename to ... 3738 (sparc_fetch_inferior_registers): ... this. 3739 (store_inferior_registers): Rename to ... 3740 (sparc_store_inferior_registers): ... this. 3741 (sparc_target): Update callback names. 3742 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise. 3743 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise. 3744 37452007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 3746 3747 * linux-nat.c (child_post_attach): Rename to ... 3748 (linux_child_post_attach): ... this. Make static. 3749 (child_follow_fork): Rename to ... 3750 (linux_child_follow_fork): ... this. Make static. 3751 (child_insert_fork_catchpoint): Rename to ... 3752 (linux_child_insert_fork_catchpoint): ... this. Make static. 3753 (child_insert_vfork_catchpoint): Rename to ... 3754 (linux_child_insert_vfork_catchpoint): ... this. Make static. 3755 (child_insert_exec_catchpoint): Rename to ... 3756 (linux_child_insert_exec_catchpoint): ... this. Make static. 3757 (child_pid_to_exec_file): Rename to ... 3758 (linux_child_pid_to_exec_file): ... this. Make static. 3759 Add prototype. 3760 (linux_handle_extended_wait): Update call. 3761 (linux_xfer_partial): Update callback routine names. 3762 37632007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 3764 3765 * configure.host (alpha*-*-osf[12]*): Remove support. 3766 * NEWS: Mention removed configurations. 3767 3768 * config/alpha/alpha-osf1.mh: Delete file. 3769 * config/alpha/alpha-osf2.mh: Delete file. 3770 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o 3771 and infptrace.o. 3772 * config/alpha/nm-osf.h: Delete file. 3773 * config/alpha/nm-osf2.h: Delete file. 3774 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h". 3775 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h. 3776 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h. 3777 3778 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define. 3779 (register_addr, kernel_u_size): Remove. 3780 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)". 3781 37822007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 3783 3784 * regcache.c (regcache_invalidate): New function. 3785 (register_cached): Remove. 3786 (set_register_cached): Remove. 3787 (deprecated_registers_fetched): Remove. 3788 (registers_changed): Use regcache_invalidate instead 3789 of set_register_cached. 3790 (regcache_raw_read): Update comment. 3791 3792 * regcache.h (regcache_invalidate): Add prototype. 3793 (register_cached): Remove. 3794 (set_register_cached): Remove. 3795 (deprecated_registers_fetched): Remove. 3796 3797 * findvar.c (value_of_register): Do not call register_cached. 3798 * frame.c (frame_register): Likewise. 3799 * tui/tui-regs.c (tui_get_register): Likewise. 3800 3801 * remote.c (fetch_register_using_p): Do not call set_register_cached. 3802 (process_g_packet): Likewise. 3803 (remote_fetch_registers): Likewise. 3804 * remote-sim.c (gdbsim_fetch_register): Likewise. 3805 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call 3806 by regcache_invalidate. 3807 (mt_pseudo_register_write): Likewise. 3808 * sh-tdep.c (sh_pseudo_register_write): Likewise. 3809 3810 * corelow.c (get_core_registers): Replace deprecated_registers_fetched 3811 call by loop over regcache_raw_supply (..., NULL). 3812 38132007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 3814 3815 * target.h (struct target_ops): Add REGCACHE parameter to 3816 to_prepare_to_store. 3817 (target_prepare_to_store): Likewise. 3818 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter. 3819 (update_current_target): Adapt prepare_to_store de_fault rule. 3820 3821 * regcache.c (regcache_raw_write): Pass regcache to 3822 target_prepare_to_store. 3823 3824 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter. 3825 Do not call CHILD_PREPARE_TO_STORE. 3826 * gnu-nat.c (gnu_prepare_to_store): Likewise. 3827 * procfs.c (procfs_prepare_to_store): Likewise. 3828 3829 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter. 3830 * go32-nat.c (go32_prepare_to_store): Likewise. 3831 * monitor.c (monitor_prepare_to_store): Likewise. 3832 * nto-procfs.c (procfs_prepare_to_store): Likewise. 3833 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise. 3834 * remote-mips.c (mips_prepare_to_store): Likewise. 3835 * remote-sim.c (gdbsim_prepare_to_store): Likewise. 3836 * win32-nat.c (win32_prepare_to_store): Likewise. 3837 3838 * remote.c (remote_prepare_to_store): Add REGCACHE parameter. 3839 Use it instead of current_regcache. 3840 3841 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE 3842 parameter. Pass it on to next target. 3843 * sol-thread.c (sol_thread_prepare_to_store): Likewise. 3844 38452007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 3846 3847 * target.h (struct regcache): Add forward declaration. 3848 (struct target_ops): Add REGCACHE parameter to to_fetch_registers 3849 and to_store_registers target operations. 3850 (target_fetch_registers, target_store_registers): Update. 3851 3852 * regcache.c (regcache_raw_read): Replace register_cached by 3853 regcache_valid_p. Pass regcache to target_fetch_registers. 3854 (regcache_raw_write): Pass regcache to target_store_registers. 3855 3856 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register, 3857 store_regs, store_wmmx_regs): Replace register_cached by 3858 regcache_valid_p. 3859 3860 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache 3861 to target_fetch_registers calls. 3862 * corelow.c (core_open): Likewise. 3863 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise. 3864 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, 3865 ps_lsetfpregs): Likewise. 3866 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, 3867 ps_lsetfpregs): Likewise. 3868 * win32-nat.c (win32_resume): Likewise. 3869 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache 3870 to target_store_registers call. 3871 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise. 3872 3873 * inferior.h (store_inferior_registers): Update prototype. 3874 (fetch_inferior_registers): Likewise. 3875 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise. 3876 * mips-linux-nat.c (super_fetch_registers, super_store_registers): 3877 Update function pointer signatures. 3878 3879 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter, 3880 use it instead of current_regcache, update calls. 3881 (aix_thread_store_registers): Likewise. 3882 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise. 3883 (alphabsd_store_inferior_registers): Likewise. 3884 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise. 3885 (amd64bsd_store_inferior_registers): Likewise. 3886 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise. 3887 (amd64_linux_store_inferior_registers): Likewise. 3888 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister, 3889 store_fpregs, fetch_register, fetch_regs, store_register, store_regs, 3890 fetch_wmmx_regs, store_wmmx_regs): Likewise. 3891 (arm_linux_fetch_inferior_registers): Likewise. 3892 (arm_linux_store_inferior_registers): Likewise. 3893 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register, 3894 fetch_fp_regs, armnbsd_fetch_registers): Likewise. 3895 (store_register, store_regs, store_fp_register, store_fp_regs, 3896 armnbsd_store_registers): Likewise. 3897 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise. 3898 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise. 3899 (bsd_uthread_store_registers): Likewise. 3900 * corelow.c (get_core_registers): Likewise. 3901 * go32-nat.c (fetch_register, go32_fetch_registers, store_register, 3902 go32_store_registers): Likewise. 3903 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise. 3904 (hppabsd_store_registers): Likewise. 3905 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise. 3906 (hppa_hpux_fetch_inferior_registers): Likewise. 3907 (hppa_hpux_store_register): Likewise. 3908 (hppa_hpux_store_inferior_registers): Likewise. 3909 * hppa-linux-nat.c (fetch_register, store_register): Likewise. 3910 (hppa_linux_fetch_inferior_registers): Likewise. 3911 (hppa_linux_store_inferior_registers): Likewise. 3912 * hpux-thread.c (hpux_thread_fetch_registers): Likewise. 3913 (hpux_thread_store_registers): Likewise. 3914 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise. 3915 (i386bsd_store_inferior_registers): Likewise. 3916 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs, 3917 gnu_store_registers): Likewise. 3918 * i386-linux-nat.c (fetch_register, store_register, fetch_regs, 3919 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs): 3920 Likewise. 3921 (i386_linux_fetch_inferior_registers): Likewise. 3922 (i386_linux_store_inferior_registers): Likewise. 3923 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise. 3924 (ia64_linux_fetch_registers): Likewise. 3925 (ia64_linux_store_register): Likewise. 3926 (ia64_linux_store_registers): Likewise. 3927 * inf-child.c (inf_child_fetch_inferior_registers): Likewise. 3928 (inf_child_store_inferior_registers): Likewise. 3929 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise. 3930 (inf_ptrace_fetch_registers): Likewise. 3931 (inf_ptrace_store_register): Likewise. 3932 (inf_ptrace_store_registers): Likewise. 3933 * infptrace.c (fetch_register, store_register): Likewise. 3934 (fetch_inferior_registers, store_inferior_registers): Likewise. 3935 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise. 3936 (m32r_linux_fetch_inferior_registers): Likewise. 3937 (m32r_linux_store_inferior_registers): Likewise. 3938 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise. 3939 (m68kbsd_store_inferior_registers): Likewise. 3940 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers, 3941 store_register, old_store_inferior_registers, fetch_regs, store_regs, 3942 fetch_fpregs, store_fpregs): Likewise. 3943 (m68k_linux_fetch_inferior_registers): Likewise. 3944 (m68k_linux_store_inferior_registers): Likewise. 3945 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise. 3946 (m88kbsd_store_inferior_registers): Likewise. 3947 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise. 3948 (mips64obsd_store_inferior_registers): Likewise. 3949 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise. 3950 (mips64_linux_regsets_store_registers): Likewise. 3951 (mips64_linux_fetch_registers): Likewise. 3952 (mips64_linux_store_registers): Likewise. 3953 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise. 3954 (mipsnbsd_store_inferior_registers): Likewise. 3955 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise. 3956 (monitor_fetch_registers, monitor_store_registers): Likewise. 3957 * nto-procfs.c (procfs_fetch_registers): Likewise. 3958 (procfs_store_registers): Likewise. 3959 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register, 3960 fetch_register, supply_vrregset, fetch_altivec_registers, 3961 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise. 3962 (store_altivec_register, store_spe_register, store_register, 3963 fill_vrregset, store_altivec_registers, store_ppc_registers, 3964 ppc_linux_store_inferior_registers): Likewise. 3965 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise. 3966 (ppcnbsd_store_inferior_registers): Likewise. 3967 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise. 3968 (ppcobsd_store_registers): Likewise. 3969 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise. 3970 * remote.c (fetch_register_using_p, process_g_packet, 3971 fetch_registers_using_g, remote_fetch_registers): Likewise. 3972 (store_register_using_P, store_registers_using_G, 3973 remote_store_registers): Likewise. 3974 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register, 3975 m32r_store_register, m32r_store_register): Likewise. 3976 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise. 3977 * remote-sim.c (gdbsim_fetch_register): Likewise. 3978 (gdbsim_store_register): Likewise. 3979 * rs6000-nat.c (fetch_register, store_register): Likewise. 3980 (rs6000_fetch_inferior_registers): Likewise. 3981 (rs6000_store_inferior_registers): Likewise. 3982 * s390-nat.c (fetch_regs, store_regs): Likewise. 3983 (fetch_fpregs, store_fpregs): Likewise. 3984 (s390_linux_fetch_inferior_registers): Likewise. 3985 (s390_linux_store_inferior_registers): Likewise. 3986 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise. 3987 (shnbsd_store_inferior_registers): Likewise. 3988 * sol-thread.c (sol_thread_fetch_registers): Likewise. 3989 (sol_thread_store_registers): Likewise. 3990 * sparc-nat.c (fetch_inferior_registers): Likewise. 3991 (store_inferior_registers): Likewise. 3992 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise. 3993 (spu_store_inferior_registers): Likewise. 3994 * target.c (debug_print_register): Likewise. 3995 (debug_to_fetch_registers, debug_to_store_registers): Likewise. 3996 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise. 3997 (vaxbsd_store_inferior_registers): Likewise. 3998 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise. 3999 (win32_fetch_inferior_registers): Likewise. 4000 (win32_store_inferior_registers): Likewise. 4001 40022007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 4003 4004 * gdbcore.h (struct regcache): Add forward declaration. 4005 (struct core_fns): Add REGCACHE argument to core_read_registers 4006 callback. 4007 * corelow.c (get_core_register_section): Add REGCACHE argument, 4008 use it instead of current_regcache, pass it to core_read_registers 4009 callback. 4010 (get_core_registers): Add current_regcache as parameter to 4011 get_core_register_section calls. 4012 4013 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument, 4014 use it instead of current_regcache. 4015 * armnbsd-nat.c (fetch_core_registers): Likewise. 4016 (fetch_elfcore_registers): Likewise. 4017 * core-regset.c (fetch_core_registers): Likewise. 4018 * cris-tdep.c (fetch_core_registers): Likewise. 4019 * irix5-nat.c (fetch_core_registers): Likewise. 4020 * m68klinux-nat.c (fetch_core_registers): Likewise. 4021 * mips-linux-tdep.c (fetch_core_registers): Likewise. 4022 * win32-nat.c (fetch_elf_core_registers): Likewise. 4023 40242007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 4025 4026 * gregset.h (struct regcache): Add forward declaration. 4027 (supply_gregset): Add REGCACHE parameter, make GREGS const. 4028 (supply_fpregset): Add REGCACHE parameter, make FPREGS const. 4029 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const. 4030 (fill_gregset): Add REGCACHE parameter. 4031 (fill_fpregset): Likewise. 4032 (fill_fpxregset): Likewise. 4033 4034 Update all definitions accordingly: 4035 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c, 4036 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c, 4037 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c, 4038 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c, 4039 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c 4040 (supply_gregset): Add REGCACHE parameter, use it instead of 4041 current_regcache. Make GREGSETP parameter const, adapt casts. 4042 (supply_fpregset): Add REGCACHE parameter, use it instead of 4043 current_regcache. Make FPREGSETP parameter const, adapt casts. 4044 (fill_gregset): Add REGCACHE parameter, use it instead of 4045 current_regcache. 4046 (fill_fpregset): Likewise. 4047 4048 Update all callers to pass in current_regcache as the new argument: 4049 * core-regset.c: Include "regcache.h". 4050 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls. 4051 * procfs.c: Include "regcache.h". 4052 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls. 4053 (procfs_store_registers): Update fill_gregset, fill_fpregset calls. 4054 (procfs_do_thread_registers): Likewise. 4055 (procfs_make_note_section): Likewise. 4056 * proc-service.c: Include "regcache.h". 4057 (ps_lgetregs): Update fill_gregset call. 4058 (ps_lsetregs): Update supply_gregset call. 4059 (ps_lgetfpregs): Update fill_fpregset call. 4060 (ps_lsetfpregs): Update supply_fpregset call. 4061 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset, 4062 supply_fpregset calls. 4063 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls. 4064 (ps_lgetregs): Update fill_gregset call. 4065 (ps_lsetregs): Update supply_gregset call. 4066 (ps_lgetfpregs): Update fill_fpregset call. 4067 (ps_lsetfpregs): Update supply_fpregset call. 4068 4069 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset, 4070 fill_fpregset, and fill_fpxregset calls. 4071 * i386-linux-nat.c (fetch_regs): Update supply_gregset call. 4072 (store_regs): Update fill_gregset call. 4073 (fetch_fpregs): Update supply_fpregset call. 4074 (store_fpregs): Update fill_fpregset call. 4075 (fetch_fpxregs): Update supply_fpxregset call. 4076 (store_fpxregs): Update fill_fpxregset call. 4077 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call. 4078 (store_regs): Update fill_gregset call. 4079 * m68klinux-nat.c (fetch_regs): Update supply_gregset call. 4080 (store_regs): Update fill_gregset call. 4081 (fetch_fpregs): Update supply_fpregset call. 4082 (store_fpregs): Update fill_fpregset call. 4083 (fetch_core_registers): Update supply_gregset, supply_fpregset calls. 4084 * s390-nat.c (fetch_regs): Update supply_gregset call. 4085 (store_regs): Update fill_gregset call. 4086 (fetch_fpregs): Update supply_fpregset call. 4087 (store_fpregs): Update fill_fpregset call. 4088 4089 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update 4090 dependencies. 4091 40922007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 4093 4094 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use 4095 it instead of current_regcache. 4096 (parse_register_dump): Add REGCACHE parameter, pass it to 4097 supply_register callback. 4098 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to 4099 parse_register_dump. 4100 (monitor_dump_regs): Add REGCACHE parameter, pass it to 4101 parse_register_dump and dumpregs callback. 4102 (monitor_wait): Pass current_regcache to parse_register_dump and 4103 monitor_dump_regs. 4104 (monitor_fetch_register): Pass current_regcache to 4105 monitor_supply_register. 4106 (monitor_fetch_registers): Pass current_regcache to 4107 monitor_dump_regs. 4108 * monitor.h (struct monitor_ops): Add REGCACHE parameter to 4109 supply_register and dumpregs callbacks. 4110 (monitor_supply_register, monitor_dump_reg_block): Update 4111 prototypes. 4112 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass 4113 it to monitor_supply_register. 4114 * dink32-rom.c (dink32_supply_register): Likewise. 4115 * ppcbug-rom.c (ppcbug_supply_register): Likewise. 4116 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE 4117 instead of current_regcache. 4118 41192007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 4120 4121 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset): 4122 Add REGCACHE parameter. Use it instead of current_regcache. 4123 (i386nto_supply_regset): Add REGCACHE parameter, pass it to 4124 i386nto_supply_gregset and i386nto_supply_fpregset. 4125 (i386nto_regset_fill): Add REGCACHE parameter; use it instead 4126 of current_regcache. 4127 4128 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to 4129 nto_supply_ helper functions. 4130 (procfs_store_registers): Pass current_regcache to nto_regset_fill. 4131 4132 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter. 4133 4134 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to 4135 supply_greget, supply_fpregset, supply_altregset, supply_regset, 4136 and regset_fill member function pointers. 4137 (nto_dummy_supply_regset): Adapt prototype. 4138 41392007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 4140 4141 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it 4142 instead of current_regcache. Make REGS const. 4143 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache. 4144 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update 4145 prototypes. 4146 * shnbsd-nat.c: Include "regcache.h". 4147 (shnbsd_fetch_inferior_registers): Pass current_regcache to 4148 shnbsd_supply_reg. 4149 (shnbsd_store_inferior_registers): Pass current_regcache to 4150 shnbsd_fill_reg. 4151 * Makefile.in (shbsd-nat.o): Update dependencies. 4152 41532007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 4154 4155 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it 4156 instead of current_regcache. 4157 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg. 4158 Make GREGSETP const, remove superfluous casts. 4159 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache. 4160 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove 4161 superfluous casts. 4162 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache. 4163 (supply_64bit_reg): Likewise 4164 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg. 4165 Make GREGSETP const, adapt casts accordingly. 4166 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache. 4167 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt 4168 casts accordingly. 4169 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache. 4170 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_ 4171 helper routines. 4172 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset, 4173 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset, 4174 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset): 4175 Adapt prototypes. 4176 * mips-linux-nat.c: Include "regcache.h". 4177 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass 4178 current_regcache to mips{64}_(supply|fill)_ helper routines. 4179 (mips64_linux_regsets_fetch_registers): Likewise. 4180 (mips64_linux_regsets_store_registers): Likewise. 4181 4182 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add 4183 REGCACHE argument; replace current_regcache. Make REGS const. 4184 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument; 4185 replace current_regcache. 4186 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg, 4187 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes. 4188 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers, 4189 mipsnbsd_store_inferior_registers): Pass current_regcache to 4190 mipsnbsd_(supply|fill)_... helper routines. 4191 4192 * Makefile.in (mips-linux-nat.o): Update dependencies. 4193 41942007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 4195 4196 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove. 4197 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes. 4198 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace 4199 i387_fill_fsave and i387_fill_fxsave calls by inline copies. 4200 * i386-nto-tdep.c (i386nto_regset_fill): Likewise. 4201 * i386gnu-nat.c (store_fpregs): Likewise. 4202 * i386v4-nat.c (fill_fpregset): Likewise. 4203 * go32-nat.c (store_register, go32_store_registers): Likewise. 4204 42052007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 4206 4207 * cris-tdep.c (supply_gregset): Rename to ... 4208 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it 4209 instead of current_regcache. 4210 (fetch_core_registers): Update call. Pass current_regcache. 4211 42122007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 4213 4214 * arnmnbsd-nat.c (supply_gregset): Rename to ... 4215 (arm_supply_gregset): ... this. Add REGCACHE parameter. 4216 Use it instead of current_regcache. 4217 (supply_fparegset): Rename to ... 4218 (arm_supply_fparegset): ... this. Add REGCACHE parameter. 4219 Use it instead of current_regcache. 4220 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache. 4221 (fetch_core_registers, fetch_elfcore_registers): Likewise. 4222 42232007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 4224 4225 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs, 4226 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter, 4227 use it instead of current_regcache. 4228 * alpha-tdep.h (struct regcache): Add forward declaration. 4229 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs, 4230 alpha_fill_fp_regs): Update prototypes. 4231 4232 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset, 4233 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines. 4234 * alpha-linux-nat.c: Include "regcache.h". 4235 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass 4236 current_regcache to alpha_supply/fill_ routines. 4237 4238 * alphabsd-tdep.c: Include "regcache.h". 4239 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter, 4240 pass it to alpha_supply_ routines. Make REGS const. 4241 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter, 4242 pass it to alpha_fill_ routines. 4243 * alphabsd-tdep.h (struct regcache): Add forward declaration. 4244 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg, 4245 alphabsd_fill_fpreg): Update prototypes. 4246 4247 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset, 4248 fill_fpregset, alphabsd_fetch_inferior_registers, 4249 alphabsd_store_inferior_registers): Pass current_regcache to 4250 alphabsd_supply/fill_ routines. 4251 4252 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update 4253 dependencies. 4254 42552007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 4256 4257 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs, 4258 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it 4259 instead of current_regcache. 4260 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add 4261 REGCACHE parameter, pass it to supply_ routines. 4262 (aix_thread_fetch_registers): Pass current_regcache to 4263 fetch_regs_user_thread and fetch_regs_kernel_thread. 4264 4265 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32): 4266 Add REGCACHE parameter, use it instead of current_regcache. 4267 Call regcache_valid_p instead of register_cached. 4268 (store_regs_user_thread, store_regs_kernel_thread): Likewise. 4269 Also, pass REGCACHE to fill_ routines. 4270 (aix_thread_store_registers): Pass current_regcache to 4271 store_regs_user_thread and store_regs_kernel_thread. 4272 42732007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 4274 4275 * m32r-linux-nat.c (supply_gregset): Do not modify contents 4276 pointed to by GREGSETP. 4277 42782007-05-06 Ulrich Weigand <uweigand@de.ibm.com> 4279 4280 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead 4281 of regcache_raw_read_signed. 4282 (fill_fpregset): Use regcache_raw_collect instead of 4283 regcache_raw_read. 4284 42852007-05-03 Kevin Buettner <kevinb@redhat.com> 4286 4287 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating 4288 point arguments, test explicitly for use of the EABI32 ABI 4289 instead of inferring this condition from tests on register 4290 sizes. 4291 42922007-05-03 Kevin Buettner <kevinb@redhat.com> 4293 4294 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address 4295 prior to allocating its location. 4296 42972007-05-02 Maciej W. Rozycki <macro@mips.com> 4298 4299 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions 4300 based on mips_abi_regsize() whose result is known in advance. 4301 (mips_o64_push_dummy_call): Likewise. 4302 43032007-04-29 Ulrich Weigand <uweigand@de.ibm.com> 4304 4305 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check. 4306 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS. 4307 4308 * mips-linux-nat.c: Include "gregset.h". 4309 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move 4310 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t. 4311 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset, 4312 fill_fpregset): Move to mips-linux-nat.c. 4313 4314 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies. 4315 43162007-04-28 Ulrich Weigand <uweigand@de.ibm.com> 4317 4318 * regcache.c (deprecated_read_register_gen): Remove, inline ... 4319 (read_register): ... here. 4320 (deprecated_write_register_gen): Remove, inline ... 4321 (write_register): ... here. 4322 * regcache.h (deprecated_read_register_gen): Remove prototype. 4323 (deprecated_write_register_gen): Likewise. 4324 4325 * remote-sim.c (gdbsim_store_register): Replace call to 4326 deprecated_read_register_gen with regcache_cooked_read. 4327 * target.c (debug_print_register): Replace calls to 4328 deprecated_read_register_gen and read_register with 4329 regcache_cooked_read. 4330 43312007-04-28 Ulrich Weigand <uweigand@de.ibm.com> 4332 4333 * hpux-thread.c (hpux_thread_store_registers): Use 4334 regcache_raw_collect, not regcache_raw_read. 4335 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply, 4336 not regcache_raw_write. 4337 43382007-04-28 Ulrich Weigand <uweigand@de.ibm.com> 4339 4340 * gdbarch.sh: Remove deprecated_register_byte. 4341 * gdbarch.c, gdbarch.h: Regenerate. 4342 * arch-utils.h (generic_register_size, generic_register_byte): Remove. 4343 * arch-utils.c (generic_register_size, generic_register_byte): Remove. 4344 4345 * regcache.h (regcache_valid_p): Make REGCACHE parameter const. 4346 * regcache.c (regcache_valid_p): Allow to query cooked registers in 4347 read-only register caches. Make REGCACHE parameter const. 4348 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE. 4349 4350 * mi/mi-main.c (old_regs): Remove. 4351 (mi_setup_architecture_data, _initialize_mi_main): Remove. 4352 (register_changed_p): Reimplement to compare two register caches. 4353 (mi_cmd_data_list_changed_registers): Update caller. 4354 * mi/mi-main.h (mi_setup_architecture_data): Remove. 4355 * mi/mi-interp.c (mi_interpreter_init): Do not call 4356 mi_setup_architecture_data. 4357 43582007-04-28 Ulrich Weigand <uweigand@de.ibm.com> 4359 4360 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define, 4361 inline definition at the places the macros are used. 4362 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise. 4363 43642007-04-28 Ulrich Weigand <uweigand@de.ibm.com> 4365 4366 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and 4367 "gdb_string.h". 4368 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables. 4369 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions. 4370 (rs6000_aix32_regset, rs6000_aix64_regset): New variables. 4371 (rs6000_aix_regset_from_core_section): New function. 4372 (rs6000_aix_init_osabi): Register it. 4373 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and 4374 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000. 4375 * rs6000-nat.c (CoreRegs): Do not define type. 4376 (fetch_core_registers, rs6000_core_fns): Remove. 4377 (_initialize_core_rs6000): Do not register it. Rename to ... 4378 (_initialize_rs6000_nat): ... this. 4379 * Makefile.in (rs6000-aix-tdep.o): Update dependencies. 4380 43812007-04-27 Kevin Buettner <kevinb@redhat.com> 4382 4383 * dwarf2expr.c (unsigned_address_type): Add forward declaration. 4384 (dwarf2_read_address): Sign extend return address as required by 4385 target architecture. 4386 43872007-04-27 Kevin Buettner <kevinb@redhat.com> 4388 4389 * solib-frv.c (lm_base): Bail out if the main executable has 4390 not been relocated. 4391 43922007-04-27 Ulrich Weigand <uweigand@de.ibm.com> 4393 4394 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location 4395 of FPCR register in fpregset. 4396 43972007-04-27 Maciej W. Rozycki <macro@mips.com> 4398 4399 * Makefile.in (gdbtk-wrapper.o): Update dependencies. 4400 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise. 4401 44022007-04-27 Ulrich Weigand <uweigand@de.ibm.com> 4403 4404 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove. 4405 * rs6000-nat.c (rs6000_wait): New function. 4406 (_initialize_core_rs6000): Install it as to_wait target method. 4407 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS. 4408 44092007-04-27 Ulrich Weigand <uweigand@de.ibm.com> 4410 4411 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove. 4412 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK. 4413 * rs6000-nat.c (super_create_inferior): New variable. 4414 (rs6000_create_inferior): Make static. Adapt argument list. Call 4415 original version of create_inferior via super_create_inferior. 4416 (_initialize_core_rs6000): Install to_create_inferior target method. 4417 44182007-04-27 Ulrich Weigand <uweigand@de.ibm.com> 4419 4420 * aix-thread.c (aix_thread_xfer_memory): Replace by ... 4421 (aix_thread_xfer_partial): ... this. 4422 (init_aix_thread_ops): Install to_xfer_partial instead 4423 of deprecated_xfer_memory target method. 4424 4425 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o 4426 and inftarg.o, add inf-ptrace.o. 4427 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS, 4428 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove. 4429 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h". 4430 (fetch_inferior_registers): Rename to ... 4431 (rs6000_fetch_inferior_registers): ... this. Make static. 4432 (store_inferior_registers): Rename to ... 4433 (rs6000_store_inferior_registers): ... this. Make static. 4434 (read_word, child_xfer_memory): Remove. 4435 (rs6000_xfer_partial): New function. 4436 (kernel_u_size): Remove. 4437 (_initialize_core_rs6000): Add inf_ptrace-based target. 4438 * Makefile.in (rs6000-nat.o): Update dependencies. 4439 44402007-04-27 Ulrich Weigand <uweigand@de.ibm.com> 4441 4442 * inf-ptrace.c: Include "gdb_stdint.h". 4443 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as 4444 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3. 4445 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t" 4446 before casting CORE_ADDR to PTRACE_TYPE_ARG3. 4447 (inf_ptrace_store_register): Likewise. 4448 * Makefile.in (inf-ptrace.o): Update dependencies. 4449 44502007-04-27 Ulrich Weigand <uweigand@de.ibm.com> 4451 4452 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules. 4453 * configure.tgt (rs6000-*-*): Likewise. 4454 * config/rs6000/aix4.mh: Delete file. 4455 * config/rs6000/aix4.mt: Delete file. 4456 * config/rs6000/rs6000.mh: Delete file. 4457 * config/rs6000/rs6000.mt: Delete file. 4458 4459 * config/powerpc/nm-aix.h: Delete file. 4460 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h. 4461 44622007-04-27 Ulrich Weigand <uweigand@de.ibm.com> 4463 4464 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *". 4465 Remove obsolete part of comment. 4466 (store_regs_user_thread): Use uint32_t temporaries when calling 4467 fill_sprs32. 4468 (store_regs_kernel_thread): Likewise. Add assertion to verify 4469 correct size of struct ptsprs members. 4470 (aix_thread_xfer_memory): Fix type of myaddr. 4471 (aix_thread_extra_thread_info): Fix compiler warning. 4472 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *". 4473 (fetch_register, store_register): Adapt callers. 4474 44752007-04-27 Ulrich Weigand <uweigand@de.ibm.com> 4476 4477 * vec.h (vec_free): Rename to vec_free_. Adapt users. 4478 44792007-04-25 Ulrich Weigand <uweigand@de.ibm.com> 4480 4481 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h", 4482 and "regcache.h". 4483 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New. 4484 (alpha_linux_gregset, alpha_linux_fpregset): New variables. 4485 (alpha_linux_regset_from_core_section): New function. 4486 (alpha_linux_init_abi): Install it. 4487 * alpha-linux-nat.c: Do not include "gdbcore.h". Include 4488 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>, 4489 <sys/procfs.h>, and "gregset.h". 4490 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR): 4491 Move from config/alpha/nm-linux.h. 4492 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy 4493 from alpha-nat.c. 4494 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c. 4495 * alpha-nat.c: Remove #ifdef __linux__ section. 4496 (fetch_elf_core_registers, alpha_elf_core_fns): Remove. 4497 (_initialize_core_alpha): Do not register alpha_elf_core_fns. 4498 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally. 4499 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h. 4500 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h. 4501 (NATDEPFILES): Remove alpha-nat.o. 4502 * config/alpha/nm-linux.h: Delete file. 4503 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c. 4504 * Makefile.in (alpha-linux-nat.o): Update dependencies. 4505 (alpha-linux-tdep.o): Likewise. 4506 45072007-04-25 Ulrich Weigand <uweigand@de.ibm.com> 4508 4509 * mips-linux-nat.c: No longer include "gdbcore.h". 4510 (mips_linux_register_addr): Move from mips-linux-tdep.c. 4511 (mips64_linux_register_addr): Likewise. 4512 (mips_linux_register_u_offset): Call mips_linux_register_addr or 4513 mips64_linux_register_addr instead of register_addr. 4514 * mips-linux-tdep.c (mips_linux_register_addr, 4515 mips64_linux_register_addr): Move to mips-linux-nat.c. 4516 (register_addr): Remove. 4517 (register_addr_data, init_register_addr_data): Remove. 4518 (_initialize_mips_linux_tdep): Do not initialize register_addr_data. 4519 (set_mips_linux_register_addr): Remove. 4520 (mips_linux_init_abi): Do not call set_mips_linux_register_addr. 4521 * Makefile.in (mips-linux-nat.o): Update dependencies. 4522 45232007-04-25 Ulrich Weigand <uweigand@de.ibm.com> 4524 4525 * linux-nat.c (linux_register_u_offset): Remove. 4526 (linux_target_install_ops): New function. 4527 (linux_target): Use it. 4528 (linux_trad_target): New function. 4529 * linux-nat.h (linux_trad_target): Declare. 4530 4531 * alpha-linux-nat.c: Include "gdbcore.h". 4532 (alpha_linux_register_u_offset): New function. 4533 (_initialize_alpha_linux_nat): Use linux_trad_target. 4534 4535 * mips-linux-nat.c: Include "gdbcore.h". 4536 (mips_linux_register_u_offset): New function. 4537 (_initialize_mips_linux_nat): Use linux_trad_target. 4538 4539 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h. 4540 * config/arm/nm-linux.h: Delete file. 4541 4542 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove. 4543 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove. 4544 4545 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h. 4546 * config/ia64/nm-linux.h: Delete file. 4547 4548 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h. 4549 * config/m32r/nm-linux.h: Delete file. 4550 4551 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h. 4552 * config/m68k/nm-linux.h: Delete file. 4553 4554 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h. 4555 * config/pa/nm-linux.h: Delete file. 4556 4557 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h. 4558 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise. 4559 * config/powerpc/nm-linux.h: Delete file. 4560 4561 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h. 4562 * config/s390/nm-linux.h: Delete file. 4563 4564 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h. 4565 * config/sparc/linux64.mh (NAT_FILE): Likewise. 4566 * config/sparc/nm-linux.h: Delete file. 4567 4568 * Makefile.in (alpha-linux-nat.o): Update dependencies. 4569 (mips-linux-nat.o): Likewise. 4570 45712007-04-25 Ulrich Weigand <uweigand@de.ibm.com> 4572 4573 * core-aout.c: Delete file. 4574 * Makefile.in (ALLDEPFILES): Remove core-aout.c. 4575 (core-aout.o): Delete rule. 4576 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove. 4577 4578 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove. 4579 4580 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove. 4581 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE, 4582 KERNEL_U_ADDR): Remove. 4583 4584 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove. 4585 (cannot_fetch_register, cannot_store_register): Remove. 4586 (fetch_register): Inline cannot_fetch_register and register_addr. 4587 (store_register): Inline cannot_store_register and register_addr. 4588 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o. 4589 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR, 4590 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): 4591 Remove. 4592 4593 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove. 4594 (fetch_register): Inline register_addr. 4595 (store_register): Inline register_addr. 4596 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o. 4597 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR, 4598 U_REGS_OFFSET, REGISTER_U_ADDR): Remove. 4599 4600 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove. 4601 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET, 4602 REGISTER_U_ADDR): Remove. 4603 4604 * hppa-linux-nat.c (register_addr): Rename to ... 4605 (hppa_linux_register_addr): ... this. Make static. 4606 (fetch_register, store_register): Adapt callers. 4607 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove. 4608 4609 * ppc-linux-nat.c (kernel_u_size): Remove. 4610 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove. 4611 4612 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static. 4613 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o. 4614 (NAT_FILE): Remove. 4615 * config/vax/nm-vax.h: Delete file. 4616 46172007-04-20 Mark Shinwell <shinwell@codesourcery.com> 4618 4619 * MAINTAINERS (Write After Approval): Add myself. 4620 46212007-04-20 Mark Shinwell <shinwell@codesourcery.com> 4622 4623 * Makefile.in: Adjust dependencies of m68klinux-tdep.c. 4624 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New. 4625 (m68k_linux_sigcontext_reg_offset): Fix typo. 4626 (target_is_uclinux): New. 4627 (m68k_linux_inferior_created): New. 4628 (m68k_linux_get_sigtramp_info): Check for uClinux or 4629 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for 4630 uClinux. 4631 (_initialize_m68k_linux_tdep): Register 4632 m68k_linux_inferior_created. 4633 46342007-04-19 Pedro Alves <pedro_alves@portugalmail.pt> 4635 4636 * win32-nat.c (win32_detach): Remove delete_command call. 4637 Resume inferior with win32_resume instead of win32_continue. 4638 46392007-04-19 Jerome Guitton <guitton@adacore.com> 4640 4641 * ser-mingw.c (fd_is_file): New function. 4642 (file_select_thread): New function. 4643 (ser_console_wait_handle): Add special handling for files. 4644 46452007-04-18 Denis Pilat <denis.pilat@st.com> 4646 4647 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type 4648 when missing from DW_TAG_subrange_type. Remove the handling of null 4649 return from die_type. 4650 46512007-04-18 Maciej W. Rozycki <macro@mips.com> 4652 4653 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last 4654 change to rearrange some brackets. 4655 (mips_n32n64_push_dummy_call): Likewise. 4656 (mips_o32_push_dummy_call): Likewise. 4657 (mips_o64_push_dummy_call): Likewise. 4658 46592007-04-18 Denis Pilat <denis.pilat@st.com> 4660 4661 * infcmd.c (post_create_inferior): Start with a call to 4662 target_terminal_ours. 4663 46642007-04-17 Maciej W. Rozycki <macro@mips.com> 4665 4666 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some 4667 brackets. 4668 (mips_n32n64_push_dummy_call): Likewise. Reformat some 4669 expressions. 4670 (mips_o32_push_dummy_call): Likewise. 4671 (mips_o64_push_dummy_call): Likewise. 4672 46732007-04-17 Maciej W. Rozycki <macro@mips.com> 4674 4675 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a 4676 comment. 4677 46782007-04-17 Maciej W. Rozycki <macro@mips.com> 4679 4680 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a 4681 comment. 4682 (mips_o32_push_dummy_call): Likewise. 4683 46842007-04-17 Andreas Schwab <schwab@suse.de> 4685 4686 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue 4687 sal to be bigger than the end of the function. 4688 46892007-04-17 Maciej W. Rozycki <macro@mips.com> 4690 Nigel Stephens <nigel@mips.com> 4691 4692 * mips-tdep.c (mips_o32_push_dummy_call): Take account of 4693 argument alignment requirements when calculating stack space 4694 required. When aligning an arg register to eight bytes 4695 boundary, align stack_offset too. Write floating-point 4696 arguments to the appropriate integer register if need go there. 4697 (mips_o64_push_dummy_call): Likewise. 4698 46992007-04-14 Ulrich Weigand <uweigand@de.ibm.com> 4700 4701 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and 4702 "sig" arguments, add "regcache" argument. 4703 * gdbarch.c, gdbarch.h: Regenerate. 4704 4705 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments. 4706 (handle_inferior_event): Call remove_single_step_breakpoints directly 4707 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints. 4708 4709 * alpha-tdep.c (alpha_software_single_step): Update argument list. 4710 Remove handling of !insert_breakpoints_p case. 4711 * arm-tdep.c (arm_software_single_step): Likewise. 4712 * cris-tdep.c (cris_software_single_step): Likewise. 4713 * mips-tdep.c (mips_software_single_step): Likewise. 4714 * rs6000-tdep.c (rs6000_software_single_step): Likewise. 4715 * sparc-tdep.c (sparc_software_single_step): Likewise. 4716 * spu-tdep.c (spu_software_single_step): Likewise. 4717 4718 * alpha-tdep.h (alpha_software_single_step): Update prototype. 4719 * mips-tdep.h (mips_software_single_step): Likewise. 4720 * rs6000-tdep.h (rs6000_software_single_step): Likewise. 4721 * sparc-tdep.h (sparc_software_single_step): Likewise. 4722 47232007-04-14 Ulrich Weigand <uweigand@de.ibm.com> 4724 4725 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc 4726 when removing single-step breakpoints. 4727 47282007-04-14 Vladimir Prus <vladimir@codesourcery.com> 4729 4730 * varobj.h (varobj_set_frozen): New 4731 (varobj_get_frozen): New. 4732 (varobj_update): New parameter explicit. 4733 * varobj.c (struct varobj): New fields frozen 4734 and not_fetched. 4735 (varobj_set_frozen, varobj_get_frozen): New. 4736 (install_new_value): Don't fetch values for 4737 frozen variable object, or children thereof. Allow 4738 a frozen variable object to have non-fetched value. 4739 (varobj_update): Allow updating child variables. 4740 Don't traverse frozen children. 4741 (new_variable): Initialize the frozen field. 4742 (c_value_of_variable): Return NULL for frozen 4743 variable without any value yet. 4744 * mi/mi-cmd-var.c (varobj_update_one): New parameter 4745 'explicit'. 4746 (mi_cmd_var_create): Output the 'frozen' field, 4747 as soon as testsuite is adjusted to expect that field. 4748 (mi_cmd_var_set_frozen): New. 4749 (mi_cmd_var_update): Pass the 'explicit' parameter to 4750 varobj_update_one. 4751 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'. 4752 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare. 4753 47542007-04-13 Paul Brook <paul@codesourcery.com> 4755 4756 * target-descriptions.c (tdesc_named_type): Add ieee_single and 4757 ieee_double. 4758 * doc/gdb.texinfo: Document ieee_single and ieee_double target types. 4759 47602007-04-13 Daniel Jacobowitz <dan@codesourcery.com> 4761 4762 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c, 4763 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h, 4764 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c, 4765 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete. 4766 * Makefile.in: Remove references to deleted files. 4767 * README: Do not mention deleted ROM monitor interfaces. 4768 * defs.h (enum language): Delete language_scm. 4769 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING. 4770 (dump_subexp_body_standard): Likewise. 4771 * parse.c (operator_length_standard): Likewise. 4772 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING. 4773 * remote-mips.c: Do not include remote-utils.h. 4774 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug 4775 throughout. 4776 * value.c: Do not include scm-lang.h. 4777 (unpack_long): Delete scm_unpack call. 4778 * config/h8300/h8300.mt, config/mips/embed.mt, 4779 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt, 4780 config/sh/embed.mt, config/sh/linux.mt: Remove references to 4781 deleted files. 4782 * NEWS: Mention removed files. 4783 47842007-04-13 Daniel Jacobowitz <dan@codesourcery.com> 4785 4786 * symfile.c (add_psymbol_with_dem_name_to_list): Remove. 4787 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype. 4788 47892007-04-13 Daniel Jacobowitz <dan@codesourcery.com> 4790 4791 * NEWS: Mention removal of HP aCC support. 4792 47932007-04-13 Daniel Jacobowitz <dan@codesourcery.com> 4794 4795 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the 4796 first entry for static executables. 4797 (breakpoint_addr): Delete unused variable. 4798 (elf_locate_base): Search for _r_debug in static executables. 4799 (enable_break): Do not set breakpoint_addr. Scan solib_break_names 4800 also. 4801 48022007-04-13 Daniel Jacobowitz <dan@codesourcery.com> 4803 4804 * breakpoint.c (update_breakpoints_after_exec, print_it_typical) 4805 (bpstat_what, print_one_breakpoint, allocate_bp_location) 4806 (mention): Remove bp_through_sigtramp support. 4807 * breakpoint.h (enum bptype): Remove bp_through_sigtramp. 4808 48092007-04-13 Daniel Jacobowitz <dan@codesourcery.com> 4810 4811 * breakpoint.c (bpstat_what): Give step-resume higher priority than 4812 shlib events. 4813 48142007-04-13 Daniel Jacobowitz <dan@codesourcery.com> 4815 4816 * infrun.c: Doc fixes. 4817 (handle_inferior_event): Clarify debug message. 4818 (insert_step_resume_breakpoint_at_sal): Print a debug message. 4819 48202007-04-12 Ulrich Weigand <uweigand@de.ibm.com> 4821 4822 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove. 4823 48242007-04-12 Ulrich Weigand <uweigand@de.ibm.com> 4825 4826 * config/m68k/tm-monitor.h: Delete file. 4827 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove. 4828 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break 4829 call moved to ... 4830 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ... 4831 * m68klinux-tdep.c (m68k_linux_init_abi): ... here. 4832 48332007-04-12 Luis Machado <luisgpm@br.ibm.com> 4834 4835 * gdbarch.sh (software_single_step): Change the return type 4836 from void to int and reformatted some comments to <= 80 4837 columns. 4838 * gdbarch.c, gdbarch.h: Regenerated. 4839 * alpha-tdep.c (alpha_software_single_step): Likewise. 4840 * alpha-tdep.h (alpha_software_single_step): Likewise. 4841 * arm-tdep.c (arm_software_single_step): Likewise. 4842 * cris-tdep.c (cris_software_single_step): Likewise. 4843 * mips-tdep.c (mips_software_single_step): Likewise. 4844 * mips-tdep.h (mips_software_single_step): Likewise. 4845 * rs6000-tdep.c (rs6000_software_single_step): Likewise. 4846 * rs6000-tdep.h (rs6000_software_single_step): Likewise. 4847 * sparc-tdep.c (sparc_software_single_step): Likewise. 4848 * sparc-tdep.h (sparc_software_single_step): Likewise. 4849 * spu-tdep.c (spu_software_single_step): Likewise. 4850 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP 4851 and act accordingly. 4852 48532007-04-11 Steve Ellcey <sje@cup.hp.com> 4854 4855 * configure.ac (build_warnings): Add -Wno-char-subscripts. 4856 * configure: Regenerate. 4857 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts. 4858 48592007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com> 4860 4861 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'. 4862 48632007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com> 4864 4865 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New 4866 macros. 4867 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now 4868 distinct on the TYPE_STUB_SUPPORTED debug targets. 4869 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED. 4870 48712007-04-11 Joel Brobecker <brobecker@adacore.com> 4872 4873 * sparc-tdep.c (X_RS2): New macro. 4874 (sparc_skip_stack_check): New function. 4875 (sparc_analyze_prologue): Adjust PC past stack probing 4876 sequence if necessary. 4877 48782007-04-10 Andreas Schwab <schwab@suse.de> 4879 4880 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR 4881 register. 4882 48832007-04-10 Daniel Jacobowitz <dan@codesourcery.com> 4884 4885 * breakpoint.c (gdb_breakpoint_query): Really return an 4886 enum gdb_rc. 4887 (gdb_breakpoint): Likewise. 4888 * thread.c (gdb_list_thread_ids): Likewise. 4889 (gdb_thread_select): Likewise. 4890 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc. 4891 (mi_cmd_thread_list_ids): Remove bogus initialization. 4892 48932007-04-10 Daniel Jacobowitz <dan@codesourcery.com> 4894 4895 * Makefile.in (SFILES): Remove hpacc-abi.c. 4896 (COMMON_OBS): Remove hpacc-abi.o. 4897 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE). 4898 (hpacc-abi.o, hpread.o): Delete rules. 4899 * somread.c: Delete extern declarations from hpread.c. 4900 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs. 4901 (som_symfile_finish): Do not call hpread_symfile_finish. 4902 (som_symfile_init): Do not call hpread_symfile_init. 4903 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o. 4904 * config/pa/hppahpux.mt (TDEPFILES): Likewise. 4905 * hpacc-abi.c, hpread.c: Deleted. 4906 49072007-04-10 Daniel Jacobowitz <dan@codesourcery.com> 4908 4909 * solib-svr4.c (enable_break): Simplify return value. 4910 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails. 4911 49122007-04-10 Andreas Schwab <schwab@suse.de> 4913 4914 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size, 4915 l_ld_size, l_next_size, l_prev_size, l_name_size. 4916 4917 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address 4918 to extract addresses from link map. 4919 (LM_DYNAMIC_FROM_LINK_MAP): Likewise. 4920 (LM_NEXT): Likewise. 4921 (LM_NAME): Likewise. 4922 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise. 4923 (elf_locate_base): Likewise. 4924 (open_symbol_file_object): Likewise. 4925 (svr4_fetch_objfile_link_map): Likewise. 4926 (SOLIB_EXTRACT_ADDRESS): Remove unused macro. 4927 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of 4928 l_ld_size. 4929 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members. 4930 (svr4_lp64_fetch_link_map_offsets): Likewise. 4931 4932 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set 4933 removed members. Set l_ld_offset to -1 if not present. 4934 49352007-04-08 Vladimir Prus <vladimir@codesourcery.com> 4936 4937 Pass stderr of program run with "target remote |" 4938 via gdb_stderr. 4939 * serial.c (serial_open): Set error_fd to -1. 4940 * serial.h (struct serial): New field error_fd. 4941 (struct serial_opts): New field avail. 4942 * ser-pipe.c (pipe_open): Create another pair 4943 of sockets. Pass stderr to gdb. 4944 * ser-mingw.c (pipe_windows_open): Pass 4945 PEX_STDERR_TO_PIPE to pex_run. Initialize 4946 sd->error_fd. 4947 (pipe_avail): New. 4948 (_initialize_ser_windows): Hook pipe_avail. 4949 * ser-base.c (generic_readchar): Check if there's 4950 anything in stderr channel and route that to gdb_stderr. 4951 49522007-04-03 Pedro Alves <pedro_alves@portugalmail.pt> 4953 4954 * dbxread.c (read_ofile_symtab): Move current_objfile 4955 clearing to after end_stabs. 4956 49572007-04-01 Andreas Schwab <schwab@suse.de> 4958 4959 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter 4960 gdbarch instead of current_gdbarch. 4961 49622007-04-01 Vladimir Prus <vladimir@codesourcery.com> 4963 4964 * varobj.c (varobj_create): Keep varobj value 4965 NULL when evaluating the type. 4966 49672007-03-31 Pedro Alves <pedro_alves@portugalmail.pt> 4968 4969 * NEWS: Mention new Windows CE support. 4970 49712007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> 4972 4973 * configure.tgt: Move mips*-*-pe and sh*-*-pe to 4974 the obsoletion stanza. 4975 * NEWS: Mention deleted targets. 4976 4977 * config/sh/tm-wince.h: Remove. 4978 * config/sh/wince.mt: Remove. 4979 * config/mips/tm-wince.h: Remove. 4980 * config/mips/wince.mt: Remove. 4981 4982 * wince.c: Remove. 4983 * wince-stub.c: Remove. 4984 * wince-stub.h: Remove. 4985 * Makefile.in (wince.o): Remove rule. 4986 (wince-stub.o): Likewise. 4987 4988 * mips-tdep.c (mips_next_pc): Make static. 4989 * mips-tdep.h (mips_next_pc): Remove declaration. 4990 * arm-tdep.c (arm_pc_is_thumb): Make static. 4991 (thumb_get_next_pc): Likewise. 4992 (arm_get_next_pc): Likewise. 4993 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration. 4994 (arm_pc_is_thumb): Likewise. 4995 (thumb_get_next_pc): Likewise. 4996 (arm_get_next_pc): Likewise. 4997 49982007-03-30 Daniel Jacobowitz <dan@codesourcery.com> 4999 5000 * MAINTAINERS: Remove d10v entry. 5001 * Makefile.in (SFILES): Remove dwarfread.c. 5002 (COMMON_OBS): Remove dwarfread.o. 5003 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o) 5004 (remote-est.o, rom68k-rom.o): Delete. 5005 * NEWS: Mention removal of d10v, target abug, target cpu32bug, 5006 target est, target rom68k, and DWARF 1. 5007 * configure.tgt: Mark d10v as removed. 5008 * dwarf2read.c: Doc update. 5009 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset, 5010 and lnsize. 5011 (elf_locate_sections): Do not set them. 5012 (elf_symfile_read): Do not call dwarf_build_psymtabs. 5013 * symfile.h (dwarf_build_psymtabs): Delete prototype. 5014 * config/m68k/monitor.mt (TDEPFILES): Prune. 5015 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c, 5016 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete. 5017 50182007-03-30 Daniel Jacobowitz <dan@codesourcery.com> 5019 5020 * doublest.c (convert_floatformat_to_doublest): Use 5021 floatformat_classify. 5022 (floatformat_is_nan): Rename to... 5023 (floatformat_classify): ...this. Return more information. 5024 * doublest.h (enum float_kind): New. 5025 (floatformat_is_nan): Replace prototype... 5026 (floatformat_classify): ...with this one. 5027 * valprint.c (print_floating): Use floatformat_classify. Handle 5028 infinity. 5029 50302007-03-30 Daniel Jacobowitz <dan@codesourcery.com> 5031 5032 * README: Mention ISO C library requirement. 5033 50342007-03-30 Daniel Jacobowitz <dan@codesourcery.com> 5035 5036 * Makefile.in (SFILES): Remove nlmread.c. 5037 (COMMON_OBS): Remove nlmread.o. 5038 (nlmread.o): Delete rule. 5039 * README: Delete reference to remote-st.c. 5040 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete. 5041 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and 5042 GDB_OSABI_LYNXOS. 5043 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete. 5044 (_initialize_i386_tdep): Do not reference them. 5045 * nlmread.c: Delete file. 5046 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS. 5047 * target.c: Doc update. 5048 * thread.c: Delete commented include. 5049 * config/alpha/tm-alpha.h: Doc update. 5050 50512007-03-30 Chris Dearman <chris@mips.com> 5052 5053 * utils.c (string_to_core_addr): Comment typo. 5054 50552007-03-30 Chris Dearman <chris@mips.com> 5056 5057 * mips-tdep.c: Comment typo. 5058 50592007-03-29 Ulrich Weigand <uweigand@de.ibm.com> 5060 5061 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove. 5062 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove. 5063 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove. 5064 * config/powerpc/nm-ppc64-linux.h: Remove file. 5065 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h. 5066 * inferior.h (PTRACE_ARG3_TYPE): Do not define. 5067 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3. 5068 * infptrace.c (call_ptrace): Likewise. 5069 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define. 5070 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3 5071 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET. 5072 (store_register): Likewise. 5073 50742007-03-29 Joel Brobecker <brobecker@adacore.com> 5075 5076 * Makefile.in (varobj.o): Add missing dependency. 5077 50782007-03-29 Michael Snyder <msnyder@access-company.com> 5079 5080 * MAINTAINERS: Update my email address. 5081 50822007-03-29 Joel Brobecker <brobecker@adacore.com> 5083 5084 Add support for exception handling with multiple versions of 5085 the Ada runtime: 5086 * ada-lang.c: Update general comments on how Ada exception catchpoints 5087 are implemented. 5088 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name) 5089 (__gnat_raise_nodefer_with_msg): Delete. 5090 (ada_unhandled_exception_name_addr_ftype): New type. 5091 (exception_support_info): New type. 5092 (ada_unhandled_exception_name_addr): Add forward declaration. 5093 (ada_unhandled_exception_name_addr_from_raise): Likewise. 5094 (default_exception_support_info): New constant. 5095 (exception_support_info_fallback): Likewise. 5096 (exception_info): New global variable. 5097 (ada_exception_support_info_sniffer): New function. 5098 (ada_executable_changed_observer): Likewise. 5099 (ada_unhandled_exception_name_addr_from_raise): Renamed from 5100 ada_unhandled_exception_name_addr. 5101 (ada_unhandled_exception_name_addr): Reimplement to match the 5102 latest Ada runtime implementation. 5103 (error_breakpoint_runtime_sym_not_found): Delete. 5104 (ada_exception_sym_name): Get the exception sym name from 5105 exception_info rather than hardcoding it. 5106 (ada_exception_sal): Add call to ada_exception_support_info_sniffer. 5107 Update error handling. 5108 * Makefile.in (ada-lang.o): Add dependency on observer.h. 5109 51102007-03-29 Daniel Jacobowitz <dan@codesourcery.com> 5111 5112 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o) 5113 (remote-st.o, uw-thread.o): Delete. 5114 (HFILES_NO_SRCDIR, ALLDEPFILES): Update. 5115 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*, 5116 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*, 5117 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*, 5118 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*, 5119 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and 5120 rs6000-*-lynxos* to an obsoletion stanza. 5121 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*, 5122 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*, 5123 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention 5124 i[34567]86-*-netware*. 5125 * NEWS: Mention deleted targets. 5126 5127 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c, 5128 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh, 5129 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh, 5130 config/i386/i386v4.mh, config/i386/i386v42mp.mh, 5131 config/i386/ncr3000.mh, config/i386/ncr3000.mt, 5132 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h, 5133 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h, 5134 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h, 5135 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt, 5136 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h, 5137 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt, 5138 config/rs6000/tm-rs6000ly.h: Delete files. 5139 51402007-03-29 Daniel Jacobowitz <dan@codesourcery.com> 5141 5142 * defs.h (deprecated_registers_changed_hook): Delete declaration. 5143 * interps.c (clear_interpreter_hooks): Do not clear 5144 deprecated_registers_changed_hook. 5145 * regcache.c (registers_changed): Do not call it. 5146 * top.c (deprecated_registers_changed_hook): Do not define it. 5147 * mi/mi-interp.c (mi_command_loop): Do not clear it. 5148 * tui/tui-hooks.c (tui_install_hooks): Do not install it. 5149 (tui_remove_hooks): Do not remove it. 5150 (tui_selected_frame_level_changed_hook): Check for negative level. 5151 Use get_selected_frame. 5152 (tui_registers_changed_hook): Deleted. 5153 51542007-03-29 Joel Brobecker <brobecker@adacore.com> 5155 5156 * stabsread.c (add_undefined_type): Add extra parameter. 5157 Now handles nameless types separately. 5158 (struct nat): New type. 5159 (noname_undefs, noname_undefs_allocated, noname_undefs_length): 5160 New static variables. 5161 (read_type): Update calls to add_undefined_type. 5162 (add_undefined_type_noname): New function. 5163 (add_undefined_type_1): Renames from add_undefined_type. 5164 (cleanup_undefined_types_noname): New function. 5165 (cleanup_undefined_types_1): Renames cleanup_undefined_types. 5166 (cleanup_undefined_types): New handles nameless types separately. 5167 (_initialize_stabsread): Initialize our new static constants. 5168 51692007-03-29 Denis Pilat <denis.pilat@st.com> 5170 5171 * configure.ac: Test for signal.h. 5172 * configure, config.in: Regenerate. 5173 51742007-03-29 Denis Pilat <denis.pilat@st.com> 5175 5176 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output. 5177 * infrun.c (normal_stop): Remove MI specific frame printing treatment. 5178 51792007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> 5180 5181 * arm-wince-tdep.c: New. 5182 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h. 5183 (MT_CFLAGS): Delete. 5184 (TM_CLIBS): Delete. 5185 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o, 5186 solib-legacy.o, solib-svr4.o, and remove wince.o. 5187 * configure.tgt (arm*-*-mingw32ce*): Add. 5188 * signals/signals.c [HAVE_SIGNAL_H]: Check. 5189 (do_target_signal_to_host): Silence 'not used' warning. 5190 * config/arm/tm-wince.h: Remove. 5191 51922007-03-28 Ulrich Weigand <uweigand@de.ibm.com> 5193 5194 * arch-utils.c (legacy_pc_in_sigtramp): Remove. 5195 * arch-utils.h (legacy_pc_in_sigtramp): Remove. 5196 5197 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove. 5198 * config/ia64/tm-linux.h: Remove file. 5199 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback. 5200 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of 5201 legacy_pc_in_sigtramp. 5202 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp. 5203 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static. 5204 Remove func_name argument. 5205 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp. 5206 5207 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine. 5208 * target.c (update_current_target): Add to_have_steppable_watchpoint. 5209 * target.h (struct target_ops): Add to_have_steppable_watchpoint. 5210 (HAVE_STEPPABLE_WATCHPOINT): Define. 5211 5212 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o. 5213 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET, 5214 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER, 5215 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT, 5216 STOPPED_BY_WATCHPOINT, target_stopped_data_address, 5217 target_insert_watchpoint, target_remove_watchpoint): Remove. 5218 (FETCH_INFERIOR_REGISTERS): Define. 5219 * ia64-linux-nat.c (ia64_register_addr): Make static. 5220 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise. 5221 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument. 5222 (ia64_linux_remove_watchpoint): Likewise. Add type argument. 5223 (ia64_linux_stopped_data_address): Make static. Add target_ops. 5224 (ia64_linux_stopped_by_watchpoint): Make static. 5225 (ia64_linux_can_use_hw_breakpoint): New function. 5226 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise. 5227 (ia64_linux_store_register, ia64_linux_store_registers): Likewise. 5228 (_initialize_ia64_linux_nat): Install register and watchpoint ops. 5229 52302007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> 5231 5232 * linespec.c: Include language.h. 5233 (find_methods): Add language parameter. Call 5234 lookup_symbol_in_language. Pass language down. 5235 (add_matching_methods): Likewise. Call 5236 lookup_symbol_in_language. 5237 (add_constructors): Likewise. 5238 (find_method): Pass sym_class to collect_methods. 5239 (collect_methods): Add sym_class parameter. Pass language 5240 down. 5241 * symtab.c (lookup_symbol): Rename to ... 5242 (lookup_symbol_in_language): ... this. Add language 5243 parameter. Use passed language instead of current_language. 5244 (lookup_symbol): New as wrapper around 5245 lookup_symbol_in_language. 5246 (lookup_symbol_aux): Add language parameter. Use passed 5247 language instead of current_language. 5248 (search_symbols): Indent. 5249 * symtab.h (enum language): Forward declare. 5250 (lookup_symbol_in_language): Declare. 5251 (lookup_symbol): Update description. 5252 * ada-lang.h (lookup_symbol_in_language): Remove declaration. 5253 * ada-lang.c (restore_language): Remove. 5254 (lookup_symbol_in_language): Remove. 5255 52562007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> 5257 5258 * breakpoint.c (bpstat_num): Add int *num parameter. 5259 * breakpoint.h (bpstat_num): Likewise. 5260 * infcmd.c (continue_command): Adjust to new bpstat_num 5261 interface. 5262 (program_info): Likewise. 5263 52642007-03-27 Ulrich Weigand <uweigand@de.ibm.com> 5265 5266 * config/sh/tm-sh.h: Remove file. 5267 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove. 5268 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove. 5269 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove. 5270 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h". 5271 52722007-03-27 Ulrich Weigand <uweigand@de.ibm.com> 5273 5274 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT, 5275 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove. 5276 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT, 5277 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT. 5278 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint 5279 sequence if target_shortname is "remote". 5280 52812007-03-27 Anton Blanchard <anton@samba.org> 5282 5283 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset 5284 instead of wordsize when looking for the LR in a stack frame. 5285 52862007-03-27 Andreas Schwab <schwab@suse.de> 5287 Daniel Jacobowitz <dan@codesourcery.com> 5288 5289 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to... 5290 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p 5291 argument. Update all callers. 5292 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum. 5293 (dwarf2_frame_set_eh_frame_regnum): Rename to... 5294 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type. 5295 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to... 5296 (dwarf2_frame_set_adjust_regnum): ...this. 5297 (dwarf2_frame_eh_frame_regnum): Delete prototype. 5298 * rs6000-tdep.c: Include "dwarf2-frame.h". 5299 (rs6000_adjust_frame_regnum): Define. 5300 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder. 5301 Register rs6000_adjust_frame_regnum. 5302 5303 * Makefile.in (rs6000-tdep.o): Update dependencies. 5304 53052007-03-27 Brooks Moses <brooks.moses@codesourcery.com> 5306 5307 * Makefile.in: Add support for a "pdf" target. 5308 53092007-03-27 Daniel Jacobowitz <dan@codesourcery.com> 5310 5311 * amd64-tdep.c (amd64_init_frame_cache): New function. 5312 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it. 5313 53142007-03-26 Nigel Stephens <nigel@mips.com> 5315 Maciej W. Rozycki <macro@mips.com> 5316 5317 * ui-out.c (ui_out_field_core_addr): Truncate address to 5318 TARGET_ADDR_BIT size before printing. 5319 53202007-03-22 Nigel Stephens <nigel@mips.com> 5321 Maciej W. Rozycki <macro@mips.com> 5322 5323 * remote-mips.c (mips_xfer_memory): Update prototype. 5324 53252007-03-22 Joel Brobecker <brobecker@adacore.com> 5326 5327 * symfile.h: #include "symtab.h" 5328 53292007-03-22 Denis Pilat <denis.pilat@st.com> 5330 5331 * utils.c (pagination_on_command, pagination_off_command): 5332 Remove useless prototypes. 5333 53342007-03-21 Pierre Muller <muller@ics.u-strasbg.fr> 5335 5336 Fix PR pascal/2232. 5337 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag 5338 instead of TYPE_NAME for object base class name. 5339 5340 53412007-03-19 Kevin Buettner <kevinb@redhat.com> 5342 5343 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id): 5344 Specify frame type in calls to frame_func_unwind(). 5345 53462007-03-13 Daniel Jacobowitz <dan@codesourcery.com> 5347 5348 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal. 5349 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer. 5350 (refine_prologue_limit): Delete. 5351 (skip_prologue): Don't call it. Use extract_unsigned_integer. 5352 Assume lim_pc is set. Correct check for incomplete prologues. 5353 Do not skip clobbers of the frame pointer. 5354 * symtab.c (skip_prologue_using_sal): Fail if there is only one 5355 sal. 5356 53572007-03-13 Nathan Froyd <froydnj@codesourcery.com> 5358 5359 * frame.c (frame_pop): Check to see whether there's a frame to 5360 which we can pop first. 5361 53622007-03-13 Nathan Froyd <froydnj@codesourcery.com> 5363 5364 * MAINTAINERS (Write After Approval): Add myself. 5365 53662007-03-09 Markus Deuling <deuling@de.ibm.com> 5367 5368 * infrun.c (breakpoints_failed): Remove unnecessary variable. 5369 (handle_inferior_event): Remove unnecessary braces. 5370 * breakpoint.c (bpstat_what): Remove wrong comment. 5371 53722007-03-09 Ulrich Weigand <uweigand@de.ibm.com> 5373 5374 * spu-tdep.c (spu_in_function_epilogue_p): New function. 5375 (spu_gdbarch_init): Install it. 5376 53772007-03-08 Ulrich Weigand <uweigand@de.ibm.com> 5378 5379 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported 5380 object types, not 0. 5381 53822007-03-08 Ulrich Weigand <uweigand@de.ibm.com> 5383 5384 * spu-tdep.c (spu_frame_align): New function. 5385 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK. 5386 53872007-03-08 Ulrich Weigand <uweigand@de.ibm.com> 5388 5389 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit. 5390 (spu_software_single_step): Likewise. 5391 (spu_read_pc, spu_write_pc): New functions. 5392 (spu_gdbarch_init): Install them. 5393 53942007-03-08 Ulrich Weigand <uweigand@de.ibm.com> 5395 5396 * cli/cli-dump.c (struct callback_data): load_offset needs to 5397 have signed long type. 5398 53992007-03-07 Joel Brobecker <brobecker@adacore.com> 5400 5401 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer): 5402 Revert the previous change that had some unexpected side-effects 5403 on mips32. 5404 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper 5405 function to get the address of the calling instruction. 5406 54072007-03-07 Denis Pilat <denis.pilat@st.com> 5408 5409 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace 5410 get_selected_frame by deprecated_safe_get_selected_frame. 5411 54122007-03-02 Mark Kettenis <kettenis@gnu.org> 5413 5414 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and 5415 "gdb_string.h". Don't include "nbsd-tdep.h". 5416 (SIZEOF_STRUCT_REG): Remove. 5417 (SHNBSD_SIZEOF_GREGS): New. 5418 (shnbsd_supply_gregset, shnbsd_collect_gregset) 5419 (shnbsd_regset_from_core_section): New functions. 5420 (fetch_core_registers, fetch_elfcore_registers): Remove functions. 5421 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call 5422 shnbsd_supply_gregset, shnbsd_collect_gregset. 5423 (shnbsd_gregset): New variable. 5424 (shnbsd_init_abi): Set regset_from_core_section. 5425 (GDB_OSABI_NETBSD_CORE): New define. 5426 (shnbsd_core_osabi_sniffer): New function. 5427 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer. 5428 * Makefile.in (shnbsd-tdep.o): Update dependencies. 5429 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove 5430 nbsd-tdep.o. 5431 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o. 5432 54332007-02-28 Joel Brobecker <brobecker@adacore.com> 5434 5435 * gdbtypes.c (replace_type): Fix typo that caused us to not update 5436 length of the types referenced by the new type CV ring. 5437 54382007-02-28 Daniel Jacobowitz <dan@codesourcery.com> 5439 5440 * frame.c (frame_pop, frame_observer_target_changed): Call 5441 reinit_frame_cache. 5442 (flush_cached_frames): Rename to reinit_frame_cache and delete 5443 old implementation. 5444 * frame.h (flush_cached_frames): Delete prototype and update comment. 5445 5446 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call 5447 reinit_frame_cache instead of flush_cached_frames. Do not call 5448 select_frame after reinit_frame_cache. 5449 * corelow.c (core_open): Likewise. 5450 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise. 5451 * infrun.c (prepare_to_proceed, context_switch) 5452 (handle_inferior_event): Likewise. 5453 * linux-fork.c (fork_load_infrun_state): Likewise. 5454 * ocd.c (ocd_start_remote): Likewise. 5455 * remote-e7000.c (e7000_start_remote): Likewise. 5456 * remote-mips.c (device): Likewise. 5457 * thread.c (switch_to_thread): Likewise. 5458 * tracepoint.c (finish_tfind_command): Likewise. 5459 * gdbarch.c: Regenerated. 5460 54612007-02-28 Jerome Guitton <guitton@adacore.com> 5462 Joel Brobecker <brobecker@adacore.com> 5463 5464 * gdbtypes.c (check_typedef): Do not replace stub type if 5465 the resolved type is not defined in the same objfile. 5466 54672007-02-28 Daniel Jacobowitz <dan@codesourcery.com> 5468 5469 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion. 5470 54712007-02-28 Joel Brobecker <brobecker@adacore.com> 5472 5473 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN 5474 symbol for Ada units when the symbol is defined using 't' rather 5475 than 'Tt' as symbol descriptor. 5476 54772007-02-28 Ulrich Weigand <uweigand@de.ibm.com> 5478 5479 * config/mips/tm-nbsd.h: Delete file. 5480 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove. 5481 * config/sh/tm-nbsd.h: Delete file. 5482 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h. 5483 54842007-02-28 Joel Brobecker <brobecker@adacore.com> 5485 5486 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to 5487 unused WRONG_PARAM value since it was recently deleted. 5488 54892007-02-28 Vladimir Prus <vladimir@codesourcery.com> 5490 5491 * varobj.c (varobj_update): Free temporary vectors. 5492 54932007-02-28 Ulrich Weigand <uweigand@de.ibm.com> 5494 5495 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h. 5496 * config/powerpc/tm-linux.h: Delete file. 5497 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h". 5498 (PROCESS_LINENUMBER_HOOK): Do not undefine. 5499 (TEXT_SEGMENT_BASE): Do not redefine. 5500 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here 5501 from config/rs6000/tm-rs6000.h. 5502 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise. 5503 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration. 5504 (TEXT_SEGMENT_BASE): Remove. 5505 (IN_SOLIB_RETURN_TRAMPOLINE): Remove. 5506 (rs6000_in_solib_return_trampoline): Remove. 5507 (SKIP_TRAMPOLINE_CODE): Remove. 5508 (rs6000_skip_trampoline_code): Remove. 5509 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h. 5510 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise. 5511 (FP0_REGNUM): Remove. 5512 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h. 5513 (rs6000_set_host_arch_hook): Remove. 5514 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h). 5515 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h). 5516 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base. 5517 * rs6000-aix-tdep.c: Include "ppc-tdep.h". 5518 (rs6000_aix_init_osabi): Set text_segment_base tdep field. 5519 * rs6000-nat.c: Include "rs6000-tdep.h". 5520 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field. 5521 (set_host_arch): Rename to ... 5522 (rs6000_create_inferior): ... this. Make public. 5523 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook. 5524 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove. 5525 (rs6000_create_inferior): Remove. 5526 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field. 5527 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum, 5528 set_gdbarch_in_solib_return_trampoline, and 5529 set_gdbarch_skip_trampoline_code. 5530 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here 5531 from config/rs6000/tm-rs6000.h. 5532 55332007-02-27 Joel Brobecker <brobecker@adacore.com> 5534 5535 * buildsym.c (record_producer): Do nothing if no producer is provided. 5536 55372007-02-27 Nick Roberts <nickrob@snap.net.nz> 5538 5539 * varobj.c (varobj_update): Remove unused local. Use gdb_assert 5540 to check changelist is non-NULL. Call error if the frontend tries 5541 to update a non-root variable. 5542 5543 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value. 5544 55452007-02-27 Daniel Jacobowitz <dan@codesourcery.com> 5546 5547 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id) 5548 (dwarf2_frame_sniffer): Update. 5549 (dwarf2_signal_frame_this_id): New function. 5550 (dwarf2_signal_frame_unwind): Use it. 5551 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block. 5552 * frame.c (frame_func_unwind): Add this_type argument. 5553 (get_frame_func): Update. 5554 (frame_unwind_address_in_block): Add this_type argument and check it. 5555 Fix a typo. 5556 (get_frame_address_in_block): Update. 5557 * frame.h (enum frame_type): Move higher in the file. 5558 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type 5559 argument. 5560 5561 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c, 5562 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c, 5563 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c, 5564 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c, 5565 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c, 5566 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c, 5567 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c, 5568 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c, 5569 xstormy16-tdep.c, xtensa-tdep.c: Update calls to 5570 frame_func_unwind and frame_unwind_address_in_block to specify 5571 the frame type. Use frame_unwind_address_in_block instead of 5572 frame_pc_unwind in sniffers. 5573 55742007-02-27 Daniel Jacobowitz <dan@codesourcery.com> 5575 5576 * frame.c (deprecated_selected_frame): Rename to... 5577 (selected_frame): ...this. Make static. 5578 (get_selected_frame, select_frame): Update. 5579 * frame.h (deprected_select_frame): Delete. 5580 (deprecated_safe_get_selected_frame): Update comments. 5581 5582 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c, 5583 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c, 5584 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c, 5585 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c, 5586 tui/tui.c: Replace references to deprecated_selected_frame. 5587 55882007-02-27 Fred Fish <fnf@specifix.com> 5589 5590 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that 5591 directly decrement the stack pointer, accumulate their operand into 5592 the stack offset, and mark the function as not being frameless. 5593 55942007-02-26 Daniel Jacobowitz <dan@codesourcery.com> 5595 5596 * arch-utils.c (selected_byte_order): New. 5597 * arch-utils.h (selected_byte_order): New prototype. 5598 * remote-sim.c (gdbsim_open): Use selected_byte_order. 5599 56002007-02-26 Daniel Jacobowitz <dan@codesourcery.com> 5601 5602 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA. 5603 (default_symfile_offsets): Check VMA here. Update section VMAs. 5604 56052007-02-26 Daniel Jacobowitz <dan@codesourcery.com> 5606 5607 * remote.c (init_remote_state): Add special handling for placeholder 5608 registers. 5609 56102007-02-26 Daniel Jacobowitz <dan@codesourcery.com> 5611 5612 * Makefile.in (XMLFILES): Include $(TDEP_XML). 5613 (filenames_h): New variable. 5614 (clean): Clean up xml-builtin.c and stamp-xml. 5615 (arm-linux-nat.o): Update. 5616 * config/arm/linux.mh (TDEP_XML): Define. 5617 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. 5618 (arm_linux_has_wmmx_registers): New. 5619 (GET_THREAD_ID): Fix typo. 5620 (IWMMXT_REGS_SIZE): Define. 5621 (fetch_wmmx_regs, store_wmmx_regs): New. 5622 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs. 5623 (arm_linux_store_inferior_registers): Use store_wmmx_regs. 5624 (super_xfer_partial, arm_linux_xfer_partial): New. 5625 (_initialize_arm_linux_nat): Use them. 5626 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT. 5627 (xml_builtin_xfer_partial): New function. 5628 * xml-support.h (xml_builtin_xfer_partial): New prototype. 5629 * NEWS: Update mention of iWMMXt support. 5630 56312007-02-26 Daniel Jacobowitz <dan@codesourcery.com> 5632 5633 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves 5634 if there are no FPA registers. 5635 (arm_dwarf_reg_to_regnum): New function. 5636 (arm_register_type, arm_register_name): Return minimal values for 5637 unsupported registers. 5638 (arm_register_sim_regno): Handle iWMMXt registers. 5639 (arm_gdbarch_init): Record missing FPA registers if indicated by 5640 a target description. Recognize iWMMXt registers. Only register 5641 "info float" for FPA. Use ARM_NUM_REGS. Register 5642 arm_dwarf_reg_to_regnum. 5643 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt 5644 constants. 5645 (struct gdbarch_tdep): Add have_fpa_registers. 5646 * features/xscale-iwmmxt.xml: Update capitalization. 5647 * regformats/arm-with-iwmmxt.dat: Regenerated. 5648 56492007-02-24 Kevin Buettner <kevinb@redhat.com> 5650 5651 * NEWS (New targets): Add entry for the Toshiba Media Processor. 5652 56532007-02-23 Kevin Buettner <kevinb@redhat.com> 5654 5655 * MAINTAINERS (mep): New target. 5656 56572007-02-23 Kevin Buettner <kevinb@redhat.com> 5658 5659 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and 5660 Richard Sandiford: 5661 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables. 5662 (mep-tdep.o): New rule. 5663 * configure.tgt (mep-*-*): New target. 5664 * mep-tdep.c: New file. 5665 * config/mep/mep.mt: New file. 5666 56672007-02-22 Markus Deuling <deuling@de.ibm.com> 5668 5669 * infrun.c (inferior_stop_reason, print_stop_reason): Remove 5670 BREAKPOINT_HIT and STOP_UNKNOWN. 5671 56722007-02-22 Markus Deuling <deuling@de.ibm.com> 5673 5674 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. 5675 56762007-02-20 Joel Brobecker <brobecker@adacore.com> 5677 5678 * gdb_expat.h (XMLCALL): Define if not already defined. 5679 56802007-02-20 Andreas Schwab <schwab@suse.de> 5681 5682 * Makefile.in (symfile.o): Update dependencies. 5683 56842007-02-20 Daniel Jacobowitz <dan@codesourcery.com> 5685 5686 * MAINTAINERS: Disable -Werror for cris simulator. Build 5687 sparc64-solaris2.10 instead of the broken sparc-elf. 5688 * solib-frv.c: Include "solib.h". 5689 * Makefile.in (solib-frv.o): Update. 5690 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch. 5691 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int. 5692 (xtensa_frame_this_id, xtensa_frame_prev_register) 5693 (xtensa_push_dummy_call): Use %p. 5694 56952007-02-16 Daniel Jacobowitz <dan@codesourcery.com> 5696 5697 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c, 5698 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c, 5699 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h". 5700 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o) 5701 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o) 5702 (sparc-linux-tdep.o): Update. 5703 57042007-02-15 Maxim Grigoriev <maxim2405@gmail.com> 5705 5706 * xtensa-tdep.h (xtensa_reg_mask_t): New. 5707 (xtensa_mask_t): Change mask field to be a separate array. 5708 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read) 5709 (xtensa_pseudo_register_write, xtensa_unwind_pc) 5710 (xtensa_unwind_dummy_id, xtensa_push_dummy_call) 5711 (xtensa_breakpoint_from_pc): Remove implicit type casting. 5712 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5) 5713 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13) 5714 (mask14, mask15): Rename to 5715 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3) 5716 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7) 5717 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11) 5718 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this. 5719 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3) 5720 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7) 5721 (xtensa_submask8, xtensa_submask9, xtensa_submask10) 5722 (xtensa_submask11, xtensa_submask12, xtensa_submask13) 5723 (xtensa_submask14, xtensa_submask15): New. 5724 (rmap): Follow strict aliasing rules doing static initialization. 5725 57262007-02-13 Daniel Jacobowitz <dan@codesourcery.com> 5727 5728 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr 5729 handling from here... 5730 (tdesc_register_type): ...to here. 5731 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr. 5732 * features/arm-core.xml: Use code_ptr and data_ptr. 5733 57342007-02-13 Denis Pilat <denis.pilat@st.com> 5735 5736 * varobj.h (enum varobj_update_error): New enum. 5737 * varobj.c (struct varobj_root): Add is_valid member. 5738 (varobj_get_type): Check for invalid varobj. 5739 (varobj_get_attributes): Likewise. 5740 (variable_editable):Likewise. 5741 (varobj_update): Likewise. Use varobj_update_error. 5742 (new_root_variable): Set root varobj as valid by default. 5743 (varobj_invalidate): New function. 5744 * symfile.c (clear_symtab_users): Use varobj_invalidate. 5745 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void. 5746 Use varobj_update_error. 5747 57482007-02-12 Pierre Muller <muller@ics.u-strasbg.fr> 5749 5750 Fix PR pascal/2223. 5751 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as 5752 Pascal language marker. 5753 * dwarf2read.c (set_cu_language): Likewise. 5754 57552007-02-12 Corinna Vinschen <vinschen@redhat.com> 5756 5757 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB. 5758 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp 5759 instead of target_terminal_init since inferior_ptid isn't set yet. 5760 57612007-02-10 Pedro Alves <pedro_alves@portugalmail.pt> 5762 5763 * MAINTAINERS (Write After Approval): Add myself. 5764 57652007-02-09 Fred Fish <fnf@specifix.com> 5766 5767 Based on work by Apple Computer, Inc. 5768 * event-top.c (async_request_quit): Call quit() whenever either 5769 quit_flag is set or immediate_quit is set. 5770 57712007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net> 5772 5773 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's 5774 type to a pointer to const struct block. 5775 (ada_lookup_symbol_list): Don't cast away constness when calling 5776 remove_out_of_scope_renamings. 5777 57782007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net> 5779 5780 * linux-nat.c (linux_nat_find_memory_regions): Don't check the 5781 address of 'filename'; it is always non null. 5782 57832007-02-09 Joel Brobecker <brobecker@adacore.com> 5784 5785 * exec.c (add_to_section_table): Do not discard empty sections. 5786 57872007-02-08 Daniel Jacobowitz <dan@codesourcery.com> 5788 5789 * features/Makefile, features/arm-with-iwmmxt.xml, 5790 features/gdbserver-regs.xsl, features/number-regs.xsl, 5791 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files. 5792 * regformats/arm-with-iwmmxt.dat: Generate. 5793 * NEWS: Mention iWMMXt. 5794 57952007-02-08 Daniel Jacobowitz <dan@codesourcery.com> 5796 5797 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o) 5798 (xml-tdesc.o): Update. 5799 * xml-support.c: Add a comment. 5800 (gdb_xml_enums_boolean): New variable. 5801 (gdb_xml_parse_attr_enum): Use strcasecmp. 5802 * xml-support.h (gdb_xml_enums_boolean): Declare. 5803 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature, 5804 next_regnum, and current_union. 5805 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union) 5806 (tdesc_end_union, tdesc_start_field, tdesc_start_vector) 5807 (field_attributes, union_children, reg_attributes, union_attributes) 5808 (vector_attributes, feature_attributes, feature_children): New. 5809 (target_children): Make static. Add <feature>. 5810 (tdesc_elements): Make static. 5811 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p) 5812 (struct tdesc_feature, tdesc_feature_p): New types. 5813 (struct target_desc): Add features member. 5814 (struct tdesc_arch_data, tdesc_data): New. 5815 (target_find_description): Clarify error message. Warn about 5816 ignored register descriptions. 5817 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name) 5818 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc) 5819 (tdesc_data_cleanup, tdesc_numbered_register) 5820 (tdesc_numbered_register_choices, tdesc_find_register) 5821 (tdesc_register_name, tdesc_register_type) 5822 (tdesc_remote_register_number, tdesc_register_reggroup_p) 5823 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type) 5824 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers) 5825 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature) 5826 (tdesc_create_feature, tdesc_record_type): New. 5827 (free_target_description): Free features. 5828 (_initialize_target_descriptions): Initialize tdesc_data. 5829 * arch-utils.c (default_remote_register_number): New. 5830 * arch-utils.h (default_remote_register_number): New prototype. 5831 * target-descriptions.h (set_tdesc_pseudo_register_name) 5832 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p) 5833 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup) 5834 (tdesc_numbered_register, tdesc_numbered_register_choices) 5835 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name) 5836 (tdesc_named_type, tdesc_create_feature, tdesc_record_type) 5837 (tdesc_create_reg): Declare. 5838 * gdbarch.sh (remote_register_number): New entry. 5839 * gdbarch.c, gdbarch.h: Regenerate. 5840 * remote.c (init_remote_state): Use gdbarch_remote_register_number. 5841 * features/gdb-target.dtd: Add feature, reg, vector, union, and field. 5842 5843 * arm-tdep.c (arm_register_aliases): New. 5844 (arm_register_name_strings): Rename to... 5845 (arm_register_names): ...this. Make const. Delete the old version. 5846 (current_option, arm_register_byte): Delete. 5847 (set_disassembly_style): Simplify. Do not adjust arm_register_names. 5848 (value_of_arm_user_reg): New. 5849 (arm_gdbarch_init): Verify any described registers. Call 5850 tdesc_use_registers. Don't use arm_register_byte. Create aliases 5851 for standard register names. 5852 (_initialize_arm_tdep): Do not adjust arm_register_names. 5853 * user-regs.c (struct user_reg): Add baton member. 5854 (append_user_reg, user_reg_add_builtin, user_regs_init) 5855 (user_reg_add, value_of_user_reg): Use a baton for user 5856 register functions. 5857 * std-regs.c: Update. 5858 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin) 5859 (user_reg_add): Add baton argument. 5860 * NEWS: Mention target description register support. 5861 * features/arm-core.xml, features/arm-fpa.xml: New. 5862 * eval.c (evaluate_subexp_standard): Allow ptype $register 5863 when the program is not running. 5864 58652007-02-09 Nick Roberts <nickrob@snap.net.nz> 5866 5867 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field. 5868 58692007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com> 5870 5871 * rs6000-tdep.c (gdb_print_insn_powerpc): Set 5872 info->disassembler_options to "any". 5873 58742007-02-08 Daniel Jacobowitz <dan@codesourcery.com> 5875 5876 * varobj.c (install_new_value): Only call value_get_print_value 5877 if changeable. 5878 58792007-02-08 Daniel Jacobowitz <dan@codesourcery.com> 5880 5881 Reported by timeless@gmail.com: 5882 * gdb/target.c (target_flash_erase): Do not return void value. 5883 (target_flash_done): Likewise. 5884 * gdb/cli/cli-cmds.c (source_command): Likewise. 5885 58862007-02-08 Fred Fish <fnf@specifix.com> 5887 5888 Based on work by Apple Computer, Inc. 5889 * event-top.c (handle_sigint): Set quit_flag. 5890 (async_request_quit): Don't set quit_flag. Avoid calling quit() 5891 if quit_flag has already been reset. 5892 58932007-02-08 Daniel Jacobowitz <dan@codesourcery.com> 5894 5895 * ser-mingw.c (pipe_windows_close): Move variable initialization back 5896 up. 5897 58982007-02-08 Fred Fish <fnf@specifix.com> 5899 5900 * defs.h (request_quit): Remove declaration. 5901 * utils.c (request_quit): Remove definition. 5902 59032007-02-08 Joel Brobecker <brobecker@gnat.com> 5904 Jan Kratochvil <jan.kratochvil@redhat.com> 5905 Daniel Jacobowitz <dan@codesourcery.com> 5906 5907 * rs6000-tdep.c (bl_to_blrl_insn_p): New function. 5908 (skip_prologue): Allow bl->blrl used by PIC code. 5909 59102007-02-08 Mark Kettenis <kettenis@gnu.org> 5911 Daniel Jacobowitz <dan@codesourcery.com> 5912 5913 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always 5914 initialize tmp_obstack. 5915 * p-valprint.c (pascal_object_print_value_fields) 5916 (pascal_object_print_value): Likewise. 5917 59182007-02-08 Daniel Jacobowitz <dan@codesourcery.com> 5919 5920 * features/feature_to_c.sh: Use %s to avoid problems with nawk. 5921 59222007-02-08 Mark Kettenis <kettenis@gnu.org> 5923 5924 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h". 5925 * Makefile.in (sparcnbsd-tdep.o): Update dependencies. 5926 59272007-02-07 Daniel Jacobowitz <dan@codesourcery.com> 5928 5929 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s) 5930 (xml_cache): New. 5931 (tdesc_parse_xml): Cache expanded descriptions. 5932 59332007-02-07 Daniel Jacobowitz <dan@codesourcery.com> 5934 5935 * Makefile.in (XMLFILES): New. 5936 (COMMON_OBS): Add xml-builtin.o. 5937 (xml-builtin.c, stamp-xml): New rules. 5938 (xml-tdesc.o): Update. 5939 * features/feature_to_c.sh: New file. 5940 * xml-support.c (MAX_XINCLUDE_DEPTH): Define. 5941 (struct gdb_xml_parser): Add dtd_name and is_xinclude. 5942 (gdb_xml_start_element): Initialize scope after possibly reallocating 5943 scopes. Move cleanup later. Handle the XInclude description 5944 specially. 5945 (gdb_xml_end_element): Only parse the body if there is a current element. 5946 Call XML_DefaultCurrent if there is no element. 5947 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New. 5948 (struct xinclude_parsing_data, xinclude_start_include) 5949 (xinclude_end_include, xml_xinclude_default) 5950 (xml_xinclude_start_doctype, xml_xinclude_end_doctype) 5951 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes) 5952 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New. 5953 * xml-support.h (xml_fetch_another, xml_process_xincludes) 5954 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations. 5955 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand 5956 XInclude directives. Use the compiled in DTD. 5957 (fetch_xml_from_file): Add baton argument. Treat it as a containing 5958 directory name. Do not warn here. 5959 (file_read_description_xml): Update call. Warn here instead. Pass 5960 a dirname as baton. 5961 (fetch_available_features_from_target): New. 5962 (target_read_description_xml): Use it. 5963 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd 5964 to handle XInclude. 5965 * features/xinclude.dtd: New file. 5966 59672007-02-05 Daniel Jacobowitz <dan@codesourcery.com> 5968 5969 * linux-thread-db.c (check_for_thread_db): Return early if we have 5970 no libthread_db support. 5971 59722007-02-05 Daniel Jacobowitz <dan@codesourcery.com> 5973 5974 * mi/mi-parse.h: Include <sys/time.h>. 5975 59762007-02-05 Nick Roberts <nickrob@snap.net.nz> 5977 5978 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print 5979 instead of print_variable_value to print values. 5980 59812007-02-03 Nick Roberts <nickrob@snap.net.nz> 5982 5983 * mi/mi-main.c: Numerous formatting changes. 5984 (mi_cmd_data_write_register_values): Replace clause inadvertantly 5985 removed in my previous change. 5986 59872007-02-03 Eli Zaretskii <eliz@gnu.org> 5988 5989 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now): 5990 Use 1000000L instead of 1000000. 5991 59922007-02-03 Nick Roberts <nickrob@snap.net.nz> 5993 5994 Based on work by Apple Computer, Inc. 5995 5996 * configure.ac: Test for sys/resource.h and getrusage. 5997 * configure, config.in: Regenerate. 5998 5999 * mi/mi-main.c: Include <sys/resource.h> if present. 6000 (rusage): Declare if HAVE_GETRUSAGE. 6001 (current_command_ts, do_timings): New static variables. 6002 (timestamp, print_diff_now, print_diff, timeval_diff): 6003 New static timing functions. 6004 (mi_cmd_enable_timings): New function for new MI command. 6005 (captured_mi_execute_command, mi_execute_async_cli_command): 6006 Call timing functions. 6007 6008 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command 6009 -enable-timings. 6010 6011 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern. 6012 6013 * mi/mi-parse.h: (mi_timestamp): New structure. 6014 (mi_parse): Add mi_timestamp* member. 6015 60162007-02-02 Denis Pilat <denis.pilat@st.com> 6017 6018 * thread.c (make_cleanup_restore_current_thread): New function. 6019 (info_threads_command): Use of make_cleanup_restore_current_thread 6020 to restore the current thread and the selected frame. 6021 (restore_selected_frame): New function. 6022 (struct current_thread_cleanup): Add frame_id field. 6023 (do_restore_current_thread_cleanup): Add restoring of the selected 6024 frame. 6025 (make_cleanup_restore_current_thread): Likewise. 6026 (thread_apply_all_command): backup the selected frame while 6027 entering the function and restore it at exit. 6028 (thread_apply_command): Likewise. 6029 60302007-02-02 Denis Pilat <denis.pilat@st.com> 6031 6032 * MAINTAINERS (Write After Approval): Add myself to the list. 6033 60342007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> 6035 6036 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask. 6037 (m32r_store_register): Ditto. 6038 60392007-01-30 Vladimir Prus <vladimir@codesourcery.com> 6040 6041 * ser-mingw.c (pipe_windows_open) 6042 (pipe_windows_read, pipe_windows_write): Declare 6043 variables at the top of the function. 6044 60452007-01-29 Daniel Jacobowitz <dan@codesourcery.com> 6046 6047 * doublest.c (floatformat_from_length): Use the right element from 6048 gdbarch floatformats. 6049 (floatformat_from_type, extract_typed_floating) 6050 (store_typed_floating): Likewise. 6051 * doublest.h: Remove declarations for undefined floatformat arrays. 6052 * gdbarch.sh (float_format, double_format, long_double_format): Change 6053 to pairs. 6054 (pformat): Update for pairs. 6055 * gdbarch.c, gdbarch.h: Regenerated. 6056 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double) 6057 (floatformats_ieee_double_littlebyte_bigword) 6058 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext) 6059 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f) 6060 (floatformats_vax_d): New variables. 6061 (builtin_type_ieee_single, builtin_type_ieee_double) 6062 (builtin_type_arm_ext, builtin_type_ia64_spill) 6063 (builtin_type_ia64_quad): Replace arrays with individual types. 6064 (builtin_type_ieee_single_big, builtin_type_ieee_single_little) 6065 (builtin_type_ieee_double_big, builtin_type_ieee_double_little) 6066 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext) 6067 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext) 6068 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword) 6069 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little) 6070 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete 6071 unused and endian-specific types. 6072 (recursive_dump_type): Update for floatformat pairs. 6073 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair. 6074 (build_gdbtypes): Use build_flt. 6075 (_initialize_gdbtypes): Update set of initialized types. 6076 * gdbtypes.h: Update declarations to match gdbtypes.c. 6077 (struct main_type): Store a pointer to two floatformats. 6078 * arch-utils.c (default_float_format, default_double_format): Delete. 6079 * arch-utils.h (default_float_format, default_double_format): Delete. 6080 6081 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c, 6082 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c, 6083 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c, 6084 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c, 6085 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update. 6086 60872007-01-29 Joel Brobecker <brobecker@adacore.com> 6088 6089 * target.c (maintenance_print_target_stack): New function. 6090 (initialize_targets): Add new "maintenance print target-stack" 6091 command. 6092 60932007-01-28 Mark Kettenis <kettenis@gnu.org> 6094 6095 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero. 6096 60972007-01-27 Daniel Jacobowitz <dan@codesourcery.com> 6098 6099 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long. 6100 (struct dwarf2_loclist_baton): Likewise. 6101 61022007-01-27 Eli Zaretskii <eliz@gnu.org> 6103 6104 * cli/cli-script.c: Include breakpoint.h. 6105 (build_command_line): Require arguments only for if and while 6106 commands. 6107 (get_command_line, execute_user_command, execute_control_command): 6108 Fix wording of warning messages. 6109 (print_command_lines): Print breakpoint commands. 6110 (execute_control_command): Call commands_from_control_command to 6111 handle the `commands' command inside a body of a flow-control 6112 command. 6113 (read_next_line): Recognize the `commands' command and build a 6114 command line structure for it. 6115 (recurse_read_control_structure, read_command_lines): Handle 6116 `commands' similarly to `if' and `while'. 6117 6118 * breakpoint.c (get_number_trailer): Document the special meaning 6119 of NULL as the first argument PP. 6120 (commands_from_control_command): New function. 6121 6122 * breakpoint.h (commands_from_control_command): Add prototype. 6123 6124 * defs.h (commands_control): New enumerated value for enum 6125 command_control_type. 6126 61272007-01-26 Joel Brobecker <brobecker@adacore.com> 6128 6129 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name. 6130 (ada_exception_sal): Update accordingly. 6131 61322007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com> 6133 6134 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs. 6135 * NEWS: Describe CHAR array vs. string identifcation rules. 6136 61372007-01-25 Paul Brook <paul@codesourcery.com> 6138 6139 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error. 6140 61412007-01-24 Jim Blandy <jimb@codesourcery.com> 6142 6143 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location 6144 expression is empty, bother to return the 'optimized out' value we 6145 construct. (Thanks to Carl Burch.) 6146 61472007-01-24 Vladimir Prus <vladimir@codesourcery.com> 6148 6149 * varobj.c (c_value_of_root, c_value_of_child) 6150 (cplus_describe_child): Don't call release_value. 6151 61522007-01-24 Thiemo Seufer <ths@mips.com> 6153 6154 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct 6155 initialization. 6156 61572007-01-24 Vladimir Prus <vladimir@codesourcery.com> 6158 6159 Refactor getting children name, value and type access 6160 for varobjs in C++. 6161 * varobj.c (get_type_deref): Remove. 6162 (adjust_value_for_child_access): New. 6163 (c_number_of_children): Use the above. 6164 (c_describe_child): Likewise. 6165 (enum accessibility): New. 6166 (match_accessibility): New function. 6167 (cplus_describe_child): New function. 6168 (cplus_name_of_child, cplus_value_of_child) 6169 (cplus_type_of_child): Reimplement in terms 6170 of cplus_describe_child. 6171 (cplus_number_of_children): Use 6172 adjust_value_for_child_access. 6173 61742007-01-24 Vladimir Prus <vladimir@codesourcery.com> 6175 6176 Fix computation of the 'editable' attribute and 6177 value changeability for for references. 6178 * varobj.c (get_value_type): New function. 6179 (c_variable_editable): Use get_value_type. 6180 (varobj_value_is_changeable): Likewise. 6181 61822007-01-24 Joel Brobecker <brobecker@adacore.com> 6183 6184 * source.c (find_and_open_source): Try rewriting the source 6185 path inside filename if dirname is NULL. 6186 61872007-01-24 Joel Brobecker <brobecker@adacore.com> 6188 6189 * dwarf2read.c (add_partial_symbol): Create an extra partial 6190 symbol in the VAR_DOMAIN for Ada structures, unions or enums. 6191 (new_symbol): Likewise for symbols. 6192 61932007-01-24 Nick Roberts <nickrob@snap.net.nz> 6194 6195 * mi/mi-main.c (mi_cmd_execute): Call free_all_values. 6196 61972007-01-23 Vladimir Prus <vladimir@codesourcery.com> 6198 6199 * value.c (value_primitive_field): Copy the full 'location' 6200 contents, instead of assuming that copying ADDRESS will 6201 bring over everything in the union. Remove obsolete comment. 6202 62032007-01-23 Masaki Muranaka <monaka@monami-software.com> 6204 6205 * m32c-tdep.c (make_regs, m32c_analyze_prologue) 6206 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer) 6207 (m32c_m16c_pointer_to_address): Separate code from declarations. 6208 62092007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com> 6210 6211 * target.c (update_current_target): Correct typo. 6212 62132007-01-22 Masaki Muranaka <monaka@monami-software.com> 6214 6215 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a 6216 declaration. 6217 62182007-01-11 Andrew Cagney <cagney@redhat.com> 6219 Daniel Jacobowitz <dan@codesourcery.com> 6220 Jan Kratochvil <jan.kratochvil@redhat.com> 6221 6222 * dwarf2-frame.c (execute_cfa_program): New support of 6223 `DW_CFA_GNU_negative_offset_extended'. 6224 62252007-01-21 Daniel Jacobowitz <dan@codesourcery.com> 6226 6227 * NEWS: Mention flash support for "load" and new remote packets. 6228 62292007-01-21 Markus Deuling <deuling@de.ibm.com> 6230 6231 * breakpoint.c (delete_command): Skip redundant loop iterations. 6232 62332007-01-21 Daniel Jacobowitz <dan@codesourcery.com> 6234 6235 * gdbarch.sh (register_type): Update comment. 6236 * gdbarch.h: Regenerated. 6237 * arch-utils.c (generic_register_size): Call register_type. 6238 * ia64-tdep.c (ia64_extract_return_value): Likewise. 6239 * m32c-tdep.c (check_for_saved): Likewise. 6240 * mips-tdep.c (mips_print_register, print_gp_register_row) 6241 (mips_print_registers_info): Likewise. 6242 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write): 6243 Likewise. 6244 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write) 6245 (sh64_do_register, sh64_print_register) 6246 (sh64_media_print_registers_info): Likewise. 6247 * tui/tui-regs.c (tui_register_format): Likewise. 6248 62492007-01-21 Daniel Jacobowitz <dan@codesourcery.com> 6250 6251 * objfiles.h (ALL_PRIMARY_SYMTABS): Define. 6252 6253 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list) 6254 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS. 6255 * cp-support.c (make_symbol_overload_list_qualified): Likewise. 6256 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs) 6257 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols) 6258 (make_symbol_completion_list): Likewise. 6259 62602007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com> 6261 Daniel Jacobowitz <dan@codesourcery.com> 6262 6263 * buildsym.c (end_symtab): Use preallocated symtab if available. 6264 Fill in SYMBOL_SYMTAB. 6265 * buildsym.h (struct subfile): Add symtab member. 6266 * dwarf2read.c (struct dwarf2_cu): Add line_header. 6267 (struct file_entry): Add symtab. 6268 (free_cu_line_header): New function. 6269 (read_file_scope): Use it. Save line_header in the cu. Process 6270 lines before DIEs. 6271 (add_file_name): Initialize new symtab member. 6272 (dwarf_decode_lines): Create symtabs for included files. 6273 (new_symbol): Set SYMBOL_SYMTAB. 6274 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB. 6275 (search_symbols): Likewise. 6276 * symtab.h (struct symbol): Add symtab member. 6277 (SYMBOL_SYMTAB): Define. 6278 62792007-01-20 Daniel Jacobowitz <dan@codesourcery.com> 6280 6281 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO. 6282 62832007-01-20 Daniel Jacobowitz <dan@codesourcery.com> 6284 6285 * arch-utils.c (show_endian): Correct reversed condition. 6286 62872007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com> 6288 6289 * MAINTAINERS (Write After Approval): Add myself. 6290 62912007-01-16 Daniel Jacobowitz <dan@codesourcery.com> 6292 Vladimir Prus <vladimir@codesourcery.com> 6293 6294 Fix 'selected frame' varobjs. 6295 * varobj.c (struct varobj): Remove the error field. 6296 (varobj_set_value): Don't check var->error. 6297 (install_new_value): Don't set var->error. 6298 (varobj_update): Always pass the new value 6299 of the root via install_new_value. 6300 (create_child): Don't set error field. 6301 (new_variable): Likewise. 6302 (c_value_of_root): Always reevaluate the value 6303 of selected frame varobjs in the selected frame. 6304 Don't call reinit_frame_cache. 6305 63062007-01-15 Joel Brobecker <brobecker@adacore.com> 6307 6308 * source.c (_initialize_source): Improve the help text of 6309 the substitute-path commands. 6310 63112007-01-14 Mark Kettenis <kettenis@gnu.org> 6312 6313 * frv-tdep.c (frv_gdbarch_init, frv_register_name) 6314 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address) 6315 (frv_skip_prologue): Remove prototypes. 6316 (frv_adjust_breakpoint_address): Renamed from 6317 frv_gdbarch_adjust_breakpoint_address. 6318 (frv_gdbarch_init): Adjust. 6319 63202007-01-13 Mark Kettenis <kettenis@gnu.org> 6321 6322 * gdbarch.sh (deprecated_extract_return_value) 6323 (deprecated_store_return_value): Remove. 6324 (extract_return_value, store_return_value): Remove default values. 6325 * gdbarch.c, gdbarch.h: Regenerate. 6326 * arch-utils.c, arch-utils.h (legacy_extract_return_value) 6327 (legacy_store_return_value): Remove. 6328 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers): 6329 Remove. 6330 6331 * mi/mi-main.c: Remove obsolete comment. 6332 6333 * regcache.c, regcache.h (deprecated_register_bytes) 6334 (deprecated_read_register_bytes) 6335 (deprecated_write_register_bytes): Remove. 6336 6337 * frame.c (get_frame_register_bytes, put_frame_register_bytes): 6338 Don't forget to move destination pointer. 6339 63402007-01-01 Mark Kettenis <kettenis@gnu.org> 6341 6342 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove. 6343 63442007-01-11 Ulrich Weigand <uweigand@de.ibm.com> 6345 6346 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace 6347 past entry function with recent newlib. 6348 63492007-01-11 Vladimir Prus <vladimir@codesourcery.com> 6350 6351 * gdb.texinfo (GDB/MI Variable Objects): Improve the 6352 introduction. Specify -var-update more exactly. 6353 63542007-01-11 Daniel Jacobowitz <dan@codesourcery.com> 6355 6356 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it. 6357 63582007-01-10 Jim Blandy <jimb@codesourcery.com> 6359 6360 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted 6361 the Global Maintainers' invitation to be a global maintainer. 6362 63632007-01-10 Daniel Jacobowitz <dan@codesourcery.com> 6364 6365 * infrun.c (singlestep_pc): New variable. 6366 (resume): Set singlestep_pc. 6367 (context_switch): Add a debugging message. Flush the frame cache. 6368 (handle_inferior_event): Add debugging messages. Handle thread 6369 hops when a software single step has completed. Let context_switch 6370 handle flushing the frame cache. 6371 63722007-01-09 Daniel Jacobowitz <dan@codesourcery.com> 6373 6374 * NEWS: Mention target descriptions, "set tdesc filename", 6375 "unset tdesc filename", "show tdesc filename", and 6376 qXfer:features:read. 6377 * arch-utils.c (choose_architecture_for_target): New function. 6378 (gdbarch_info_fill): Call it. 6379 * target-descriptions.c (struct property): Make members non-const. 6380 (struct target_desc): Add arch member. 6381 (target_description_filename): New variable. 6382 (target_find_description): Try via XML first. 6383 (tdesc_architecture): New. 6384 (free_target_description, make_cleanup_free_target_description): New. 6385 (set_tdesc_property): Call xstrdup. 6386 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist) 6387 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd) 6388 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd) 6389 (show_tdesc_filename_cmd, _initialize_target_descriptions): New. 6390 * target-descriptions.h (tdesc_architecture) 6391 (make_cleanup_free_target_description, set_tdesc_architecture): New 6392 prototypes. 6393 * Makefile.in (SFILES): Add xml-tdesc.c. 6394 (COMMON_OBS): Add xml-tdesc.o. 6395 (target-descriptions.o): Update. 6396 (xml-tdesc.o): New rule. 6397 * xml-tdesc.c, xml-tdesc.h: New files. 6398 * remote.c (PACKET_qXfer_features): New enum. 6399 (remote_protocol_features): Add qXfer:features:read. 6400 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES. 6401 (_initialize_remote): Register qXfer:features:read. 6402 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES. 6403 * features/gdb-target.dtd: New file. 6404 64052007-01-09 Daniel Jacobowitz <dan@codesourcery.com> 6406 6407 * copyright.sh: Clarify error. 6408 64092007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com> 6410 6411 * symtab.c (matching_bfd_sections): Fix VMA matching for 6412 prelinked objects. 6413 64142007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com> 6415 6416 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle 6417 nested symbols. 6418 64192007-01-09 Daniel Jacobowitz <dan@codesourcery.com> 6420 6421 Updated copyright notices for most files. 6422 64232007-01-09 Daniel Jacobowitz <dan@codesourcery.com> 6424 6425 * copyright.sh (prunes): Add step-line.inp and step-line.c. 6426 64272007-01-09 Daniel Jacobowitz <dan@codesourcery.com> 6428 6429 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside 6430 exec_prefix. 6431 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being 6432 '${prefix}'. 6433 * configure, config.in: Regenerate. 6434 * defs.h (debug_file_directory): Declare. 6435 * main.c (captured_main): Canonicalize gdb_sysroot. Assume 6436 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and 6437 relocate it if DEBUGDIR_RELOCATABLE. 6438 * symfile.c (debug_file_directory): Make non-static. 6439 (find_separate_debug_file): Look for debug info for SYSROOT/PATH 6440 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT. 6441 (_initialize_symfile): Don't initialize debug_file_directory here. 6442 64432007-01-09 Jim Blandy <jimb@codesourcery.com> 6444 6445 * score-tdep.c (score_push_dummy_call): Don't mix declarations and 6446 statements. 6447 64482007-01-09 Daniel Jacobowitz <dan@codesourcery.com> 6449 6450 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use 6451 frame_unwind_register to recurse. 6452 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise. 6453 (alpha_heuristic_frame_prev_register): Likewise. 6454 * h8300-tdep.c (h8300_frame_prev_register): Likewise. 6455 * m32c-tdep.c (m32c_prev_register): Likewise. 6456 * frame.c (frame_register_unwind_location): Remove FIXME. 6457 64582007-01-09 Daniel Jacobowitz <dan@codesourcery.com> 6459 Eli Zaretskii <eliz@gnu.org> 6460 6461 * copyright.sh: New file. 6462 64632007-01-09 Daniel Jacobowitz <dan@codesourcery.com> 6464 6465 * configure.ac: Check for XML_StopParser. 6466 * xml-support.c (gdb_xml_body_text): Check for an error. 6467 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser. 6468 (gdb_xml_end_element_wrapper): Likewise. 6469 * config.in, configure: Regenerated. 6470 64712007-01-08 Daniel Jacobowitz <dan@codesourcery.com> 6472 6473 * varobj.c (install_new_value): Always update print_value. 6474 (value_get_print_value): Immediately return NULL for missing 6475 values. 6476 64772007-01-08 Jim Blandy <jimb@codesourcery.com> 6478 6479 * configure.ac: Tighten pattern for extracting value of 6480 DEPRECATED_TM_FILE from the target makefile fragment. 6481 * configure: Regenerated. 6482 64832007-01-08 Daniel Jacobowitz <dan@codesourcery.com> 6484 6485 * linux-nat.c (struct simple_pid_list): Add status. 6486 (add_to_pid_list): Record the PID's status. 6487 (linux_record_stopped_pid): Likewise. Make static. 6488 (pull_pid_from_list): Return the saved status. 6489 (linux_nat_handle_extended): Deleted. 6490 (linux_handle_extended_wait): Combine with linux_nat_handle_extended. 6491 Make static. Handle non-SIGSTOP for a new thread's first signal. 6492 (flush_callback): Handle unexpected pending signals. 6493 (linux_nat_wait): Update calls to changed functions. 6494 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait): 6495 Remove prototypes for newly static functions. 6496 64972007-01-08 Ulrich Weigand <uweigand@de.ibm.com> 6498 6499 * gdbarch.sh (value_from_register): New gdbarch function. 6500 * gdbarch.c, gdbarch.h: Regenerate. 6501 * findvar.c (default_value_from_register): New function. 6502 (value_from_register): Use gdbarch_value_from_register. 6503 * value.h (default_value_from_register): Declare. 6504 * spu-tdep.c (spu_convert_register_p, spu_register_to_value, 6505 spu_value_to_register): Remove. 6506 (spu_value_from_register): New function. 6507 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p, 6508 set_gdbarch_register_to_value, set_gdbarch_value_to_register. 6509 Call set_gdbarch_value_from_register. 6510 * s390-tdep.c (s390_convert_register_p, s390_register_to_value, 6511 s390_value_to_register): Remove. 6512 (s390_value_from_register): New function. 6513 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p, 6514 set_gdbarch_register_to_value, set_gdbarch_value_to_register. 6515 Call set_gdbarch_value_from_register. 6516 65172007-01-08 Daniel Jacobowitz <dan@codesourcery.com> 6518 6519 * NEWS: Add "set sysroot" and "show sysroot". 6520 * solib.c (solib_absolute_prefix): Delete. Replace 6521 all uses with gdb_sysroot. 6522 (_initialize_solib): Add "set sysroot" and "show sysroot". 6523 Make "solib-absolute-prefix" an alias to it. 6524 65252007-01-08 Ulrich Weigand <uweigand@de.ibm.com> 6526 6527 * frame.c (get_frame_register_bytes): New function. 6528 (put_frame_register_bytes): Likewise. 6529 * frame.h (get_frame_register_bytes): Declare. 6530 (put_frame_register_bytes): Likewise. 6531 * findvar.c (value_from_register): Always construct lval_register 6532 values. Use get_frame_register_bytes. 6533 * valops.c (value_assign): Use get_frame_register_bytes and 6534 put_frame_register_bytes. 6535 65362007-01-08 Jim Blandy <jimb@codesourcery.com> 6537 6538 * MAINTAINERS: Update Stan Shebs' email address. 6539 65402007-01-07 Joel Brobecker <brobecker@adacore.com> 6541 6542 * ada-lang.c (is_known_support_routine): Improve the implementation. 6543 65442007-01-06 Joel Brobecker <brobecker@adacore.com> 6545 6546 * ada-lang.c: Add include of source.h. 6547 (is_known_support_routine): Improve the check verifying that the file 6548 associated to this frame exists. 6549 * Makefile.in (ada-lang.o): Add dependency on source.h. 6550 65512007-01-07 Jim Blandy <jimb@codesourcery.com> 6552 6553 * ax-general.c (ax_const_l): Select proper opcode for the given 6554 value. 6555 65562007-01-05 Vladimir Prus <vladimir@codesourcery.com> 6557 6558 * varobj.c (c_value_of_root): Don't select frame if variable 6559 object is out of scope. 6560 65612007-01-05 Nick Roberts <nickrob@snap.net.nz> 6562 6563 * varobj.c (struct varobj): New member print_value. 6564 (install_new_value): Compare last printed value with current one 6565 instead of contents. 6566 (new_variable): Initialize var->print_value to NULL. 6567 (free_variable): Free var->print_value. 6568 (value_get_print_value): New function derived from 6569 c_value_of_variable. 6570 (c_value_of_variable): Use value_get_print_value. 6571 65722007-01-05 Joel Brobecker <brobecker@adacore.com> 6573 6574 * i386-tdep.c (i386_analyze_stack_align): Add comment. 6575 65762007-01-05 Joel Brobecker <brobecker@adacore.com> 6577 6578 * NEWS: Add entries for new catch commands. 6579 65802007-01-05 Joel Brobecker <brobecker@adacore.com> 6581 6582 * dwarf2read.c (partial_die_info): Add field has_byte_size. 6583 (add_partial_symbol): Correct identification of external references. 6584 (process_structure_scope): Likewise. 6585 (read_partial_die): Handle DW_AT_byte_size attribute. 6586 65872007-01-05 Daniel Jacobowitz <dan@codesourcery.com> 6588 6589 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes. 6590 65912007-01-05 Nick Roberts <nickrob@snap.net.nz> 6592 6593 * varobj.c (get_type_deref): Fix variable objects for references to 6594 pointers. 6595 65962007-01-04 Daniel Jacobowitz <dan@codesourcery.com> 6597 6598 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs 6599 with no symbols. 6600 66012007-01-04 Daniel Jacobowitz <dan@codesourcery.com> 6602 6603 * memory-map.c (struct_memory_map_parsing_data): Remove most 6604 members. Make property_name an array. 6605 (free_memory_map_parsing_data, memory_map_start_element) 6606 (memory_map_end_element, memory_map_character_data): Delete. 6607 (memory_map_start_memory, memory_map_end_memory) 6608 (memory_map_start_property, memory_map_end_property): New functions. 6609 (property_attributes, memory_children, memory_type_enum) 6610 (memory_attributes, memory_map_children, memory_map_elements): New. 6611 (parse_memory_map): Rewrite. 6612 * xml-support.c (debug_xml): New. 6613 (xml_get_required_attribute, xml_get_integer_attribute) 6614 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser): 6615 Delete. 6616 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text) 6617 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup) 6618 (gdb_xml_start_element, gdb_xml_start_element_wrapper) 6619 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup) 6620 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse) 6621 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest) 6622 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support): 6623 New. 6624 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler) 6625 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute) 6626 (enum gdb_xml_element_flag, struct gdb_xml_element) 6627 (gdb_xml_element_start_handler, gdb_xml_element_end_handler) 6628 (struct gdb_xml_enum): New. 6629 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug) 6630 (gdb_xml_error, gdb_xml_parse_attr_ulongest) 6631 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes. 6632 (xml_get_required_attribute, xml_get_integer_attribute) 6633 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes. 6634 * Makefile.in (xml_support_h, xml-support.o): Update. 6635 66362007-01-04 Daniel Jacobowitz <dan@codesourcery.com> 6637 6638 * Makefile.in (eval.o): Update dependencies. 6639 * eval.c: Include "ui-out.h" and "exceptions.h". 6640 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable. 6641 Use value_zero if an error occurs when avoiding side effects. 6642 * varobj.c (c_value_of_root): Initialize new_val. 6643 66442007-01-04 Daniel Jacobowitz <dan@codesourcery.com> 6645 6646 * varobj.c (varobj_list_children): Stop if the number of children is 6647 unknown. 6648 (c_number_of_children): 6649 66502007-01-04 Mark Kettenis <kettenis@gnu.org> 6651 6652 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE. 6653 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start) 6654 (alpha_heuristic_frame_unwind_cache, alpha_next_pc) 6655 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and 6656 sizeof, instead of hardcoded constants. 6657 66582007-01-04 Daniel Jacobowitz <dan@codesourcery.com> 6659 6660 * CONTRIBUTE: Use sourceware.org. 6661 66622007-01-04 Daniel Jacobowitz <dan@codesourcery.com> 6663 6664 * buildsym.c (start_subfile): Handle producer. 6665 (record_producer): New function. 6666 * buildsym.h (struct subfile): Include producer. 6667 (record_producer): New prototype. 6668 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation. 6669 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and 6670 armcc_cfa_offsets_reversed. 6671 (execute_cfa_program): Handle armcc_cfa_offsets_sf. 6672 (dwarf2_frame_find_quirks): New function. 6673 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed. 6674 (decode_frame_entry_1): Record the CIE version. Record the 6675 augmentation. Skip armcc augmentations. 6676 * dwarf2read.c (read_file_scope): Save the producer. 6677 * symtab.h (struct symtab): Rename unused version member to 6678 producer. 6679 66802007-01-04 Daniel Jacobowitz <dan@codesourcery.com> 6681 6682 * configure.ac (build_warnings): Use -Wall and 6683 -Wdeclaration-after-statement. 6684 * configure: Regenerated. 6685 66862007-01-04 Vladimir Prus <vladimir@codesourcery.com> 6687 6688 Simplify access to variours properties of child 6689 variable objects in C. 6690 * varobj.c (value_struct_element_index): New function. 6691 (c_describe_child): New function. 6692 (c_name_of_child, c_value_of_child) 6693 (c_type_of_child): Rewrite to use c_describe_child. 6694 66952007-01-04 Vladimir Prus <vladimir@codesourcery.com> 6696 6697 gdb/ 6698 * varobj.c: Include "vec.h". 6699 (varobj_p): New typedef, declare vector of those. 6700 (struct varobj): Use vector for the 'children' member. 6701 (child_exists): Remove. 6702 (save_child_in_parent): Remove. 6703 (remove_child_from_parent): Remove. 6704 (struct varobj_child): Remove. 6705 (struct vstack): Remove. 6706 (vpush, vpop): Remove. 6707 (varobj_list_children): Adjust to work work vector. 6708 (varobj_update): Likewise. Use vectors for 6709 working stack and result. 6710 (delete_variable_1): Likewise. 6711 * Makefile.in (varobj.o): Update dependencies. 6712 67132007-01-04 Vladimir Prus <vladimir@codesourcery.com> 6714 6715 Port from Apple's version. 6716 gdb/ 6717 * varobj.c (type_changeable): Rename to... 6718 (varobj_value_is_changeable_p): ...this. Adjust all callers. 6719 (is_root_p): New function. Use it everywhere. 6720 67212007-01-04 Jim Blandy <jimb@codesourcery.com> 6722 6723 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup', 6724 then plain 'fixup'. 6725 67262007-01-04 Joel Brobecker <brobecker@adacore.com> 6727 6728 * hpread.c (hpread_start_psymtab): Remove unnecessary extern. 6729 67302007-01-04 Joel Brobecker <brobecker@adacore.com> 6731 6732 * hpread.c (hpread_type_lookup): Fix compilation failure. 6733 67342007-01-04 Qinwei <qinwei@sunnorth.com.cn> 6735 6736 * NEWS: New port to S+core. 6737 * MAINTAINERS (Write After Approval, Responsible Maintainers): 6738 Add myself. 6739 6740 * Makefile.in: Add dependencies for S+core files. 6741 * configure.tgt (score*, score-*-*): Add S+core target. 6742 * config/score/embed.mt: New file. 6743 * score-tdep.c: New file. 6744 * score-tdep.h: New file. 6745 67462007-01-04 Joel Brobecker <brobecker@adacore.com> 6747 6748 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with 6749 the appropriate type rather than a bogus void type. 6750 67512007-01-04 Joel Brobecker <brobecker@adacore.com> 6752 6753 * ada-lang.h (ada_find_printable_frame): Remove. 6754 (ada_exception_catchpoint_p, ada_decode_exception_location) 6755 (ada_decode_assert_location): Add declaration. 6756 * ada-lang.c: Add include of annotate.h and valprint.h. 6757 (exception_catchpoint_kind): New enum. 6758 (function_name_from_pc, is_known_support_routine) 6759 (ada_find_printable_frame, ada_unhandled_exception_name_addr) 6760 (ada_exception_name_addr_1, ada_exception_name_addr) 6761 (print_it_exception, print_one_exception, print_mention_exception) 6762 (print_it_catch_exception, print_one_catch_exception) 6763 (print_mention_catch_exception, catch_exception_breakpoint_ops) 6764 (print_it_catch_exception_unhandled) 6765 (print_one_catch_exception_unhandled) 6766 (print_mention_catch_exception_unhandled, print_it_catch_assert) 6767 (print_one_catch_assert, print_mention_catch_assert) 6768 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found) 6769 (ada_get_next_arg, catch_ada_exception_command_split) 6770 (ada_exception_sym_name, ada_exception_sym_name) 6771 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string) 6772 (ada_parse_catchpoint_condition, ada_exception_sal) 6773 (ada_decode_exception_location) 6774 (ada_decode_assert_location): New function. 6775 (catch_exception_unhandled_breakpoint_ops): New global variable. 6776 (catch_assert_breakpoint_ops): New global variable. 6777 * breakpoint.c: Add include of ada-lang.h. 6778 (print_one_breakpoint): Do not print the condition for Ada 6779 exception catchpoints. 6780 (create_ada_exception_breakpoint): New function. 6781 (catch_ada_exception_command, catch_assert_command): New function. 6782 (catch_command_1): Add support for the new "catch exception" and 6783 "catch assert" commands. 6784 (_initialize_breakpoint): Add help description for the new catch 6785 commands. 6786 * Makefile.in (ada-lang.o): Add dependency on annotate.h and 6787 valprint.h. 6788 (breakpoint.o): Add dependency on ada-lang.h. 6789 67902007-01-03 Pedro Alves <pedro_alves@portugalmail.pt> 6791 6792 * coffread.c (cs_to_section): If bfd_section is found, always 6793 return its section index. 6794 (coff_symtab_read): Determine the minimal_symbol_type using the 6795 bfd_section flags. 6796 67972007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com> 6798 Daniel Jacobowitz <dan@codesourcery.com> 6799 6800 * Makefile.in (top.o): Update. 6801 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result) 6802 (saved_after_char_processing_hook, gdb_readline_wrapper_line) 6803 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup): 6804 New. 6805 (gdb_readline_wrapper): Rewrite to use asynchronous readline. 6806 68072007-01-03 Mark Kettenis <kettenis@gnu.org> 6808 6809 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove. 6810 (arm_linux_init_abi): Don't set deprecated_extract_return_value. 6811 68122007-01-03 Daniel Jacobowitz <dan@codesourcery.com> 6813 6814 * ada-lang.c (find_struct_field): Initialize *byte_offset_p. 6815 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i. 6816 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length 6817 greater than or equal to zero. 6818 * m2-typeprint.c (m2_array): Likewise. 6819 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise. 6820 * gdbtypes.c (copy_type_recursive): Correct == typo. 6821 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon. 6822 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer 6823 greater than zero. 6824 * macroscope.c (sal_macro_scope): Don't name a local variable "main". 6825 (default_macro_scope): Remove unused variable. 6826 * prologue-value.h (pv_area_find_reg): Don't name an argument 6827 "register". 6828 * remote-fileio.c (remote_fio_func_map): Add missing braces. 6829 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change 6830 type. 6831 (cleanup_sigint_signal_handler): Remove casts. 6832 * valprint.c (val_print): Use a volatile local for the modified 6833 argument. 6834 * varobj.c (languages): Remove extra array dimension. 6835 (varobj_create): Correct access to languages array. 6836 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add 6837 missing braces. 6838 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. 6839 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise. 6840 * mi/mi-getopt.c (mi_valid_noargs): Likewise. 6841 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise. 6842 (mi_cmd_data_write_memory): Likewise. 6843 * signals/signals.c (target_signal_to_string): Cast to int before 6844 comparing. 6845 * tui/tui-layout.c (init_and_make_win): Take and return a void *. 6846 Update all callers. 6847 68482007-01-03 Daniel Jacobowitz <dan@codesourcery.com> 6849 6850 * NEWS: Mention pointer to member improvements. 6851 * Makefile.in (gnu-v3-abi.o): Delete special rule. 6852 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update. 6853 * ada-valprint.c (ada_print_scalar): Update for new type codes. 6854 * c-typeprint.c (c_print_type): Update for new type codes. 6855 (c_type_print_varspec_prefix, c_type_print_varspec_suffix) 6856 (c_type_print_base): Likewise. 6857 (c_type_print_args): Rewrite. 6858 * c-valprint.c (c_val_print): Update for new type codes. Remove 6859 support for references to members. Treat methods like functions. 6860 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size) 6861 (cplus_make_method_ptr, cplus_method_ptr_to_value): New. 6862 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size) 6863 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes. 6864 (struct cp_abi_ops): Add corresponding members. 6865 * cp-valprint.c (cp_print_class_method): Delete. 6866 (cp_find_class_member): New function. 6867 (cp_print_class_member): Use it. Simplify support for bogus 6868 member pointers. 6869 * dwarf2read.c (quirk_gcc_member_function_pointer): Use 6870 lookup_methodptr_type. 6871 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type. 6872 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for 6873 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member 6874 pointer support. 6875 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle 6876 references returned by user defined operators. 6877 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix) 6878 (f_type_print_varspec_suffix): Remove support for member pointers. 6879 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type 6880 and adjusted. 6881 (smash_to_memberptr_type): Likewise, from smash_to_member_type. 6882 (lookup_methodptr_type): New. 6883 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR. 6884 (recursive_dump_type): Update for new types. 6885 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with 6886 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR. 6887 (lookup_memberptr_type, lookup_methodptr_type) 6888 (smash_to_memberptr_type): New prototypes. 6889 (smash_to_method_type): Formatting fix. 6890 (lookup_member_type, smash_to_member_type): Delete prototypes. 6891 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New. 6892 Do not rely on debug information for the vptr or the method's 6893 enclosing type. Handle function descriptors for IA64. 6894 (gnuv3_virtual_fn_field): Rewrite using the new functions. 6895 (gnuv3_find_method_in, gnuv3_print_method_ptr) 6896 (gnuv3_method_ptr_size, gnuv3_make_method_ptr) 6897 (gnuv3_method_ptr_to_value): New. 6898 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops. 6899 * hpread.c (hpread_type_lookup): Update for new types. 6900 * infcall.c (value_arg_coerce): Likewise. 6901 * m2-typeprint.c (m2_print_type): Remove explicit support 6902 for member pointers. 6903 * m2-valprint.c (m2_val_print): Likewise. 6904 * p-typeprint.c (pascal_type_print_varspec_prefix) 6905 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise. 6906 * p-valprint.c (pascal_val_print): Likewise. 6907 (pascal_object_print_class_method, pascal_object_print_class_member): 6908 Delete. 6909 * p-lang.h (pascal_object_print_class_method) 6910 (pascal_object_print_class_member): Delete prototypes. 6911 * stabsread.c (read_type): Update for new types. 6912 * typeprint.c (print_type_scalar): Likewise. 6913 * valops.c (value_struct_elt_for_reference, value_namespace_elt) 6914 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address 6915 argument. Construct a pointer to member if the address of a 6916 function or data member is requested. 6917 (value_cast_pointers): Don't modify the input value. 6918 (value_cast): Adjust pointer to member handling for new types. 6919 Allow null pointer to member constants. Don't modify the input 6920 value. 6921 (value_ind): Remove pointer to member check. Handle function 6922 descriptors for function pointers. 6923 (value_struct_elt, value_find_oload_method_list, check_field): 6924 Remove pointer to member checks. 6925 * value.c (unpack_long): Allow pointers to data members. 6926 (value_from_longest): Allow member pointers. 6927 * value.h (value_aggregate_elt): Add want_address. 6928 * varobj.c (c_variable_editable): Remove check for members. 6929 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta. 6930 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors 6931 in virtual tables. 6932 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors. 6933 * c-lang.h (cp_print_class_method): Delete prototype. 6934 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta. 6935 * mips-tdep.c (mips_gdbarch_init): Likewise. 6936 * gdbarch.c, gdbarch.h: Regenerated. 6937 69382007-01-01 Mark Kettenis <kettenis@gnu.org> 6939 6940 * rs6000-tdep.c (rs6000_use_struct_convention) 6941 (rs6000_extract_return_value, rs6000_store_return_value) 6942 (rs6000_extract_struct_value_address): Remove. 6943 (rs6000_return_value): New function. 6944 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value, 6945 store_return_value, deprecated_extract_struct_value_address and 6946 deprecated_use_struct_convention. Use rs6000_return_value 6947 instead. 6948 69492007-01-02 Nick Roberts <nickrob@snap.net.nz> 6950 6951 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete, 6952 -display-disable, -display-enable, -display-insert and 6953 -display-list. 6954 69552007-01-01 Joel Brobecker <brobecker@adacore.com> 6956 6957 * breakpoint.c (remove_breakpoint): Remove dead code. 6958 69592007-01-01 Nick Roberts <nickrob@snap.net.nz> 6960 6961 * varobj.c: Include block.h. 6962 (c_value_of_root): Check scope within nested statements. 6963 69642007-01-01 Mark Kettenis <kettenis@gnu.org> 6965 6966 * mi/mi-main.c (mi_cmd_data_write_register_values): Use 6967 regcache_cooked_write_signed instead of 6968 deprecated_write_register_bytes. 6969 69702007-01-01 Joel Brobecker <brobecker@adacore.com> 6971 6972 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006. 6973 69742007-01-01 Joel Brobecker <brobecker@adacore.com> 6975 6976 Followed the Start of New Year Procedure: 6977 * ChangeLog-2006: New file, containing all the entries for 2006. 6978 * ChangeLog: Removed all 2006 entries, and changed the reference 6979 to the previous ChangeLog to point to ChangeLog 2006. 6980 * top.c (print_gdb_version): Update copyright year. 6981 69822007-01-01 Mark Kettenis <kettenis@gnu.org> 6983 6984 * Makefile.in (remote-sds.o): Remove. 6985 * remote-sds.c: Delete. 6986 6987For older changes see ChangeLog-2006. 6988 6989Local Variables: 6990mode: change-log 6991left-margin: 8 6992fill-column: 74 6993version-control: never 6994coding: utf-8 6995End: 6996