aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2008-09-05 * target.c (update_current_target): Do not inherit to_openUlrich Weigand2-5/+13
or to_close. (pop_target): Call target_close on target_stack instead of current_target. (pop_all_targets_above): Likewise.
2008-09-05 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.Ulrich Weigand2-30/+49
(gnuv3_print_method_ptr): Use it. (gnuv3_method_ptr_to_value): Likewise.
2008-09-05 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter toUlrich Weigand4-5/+14
register_area callback function. * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter. Use it instead of current_gdbarch. * nto-procfs.c (procfs_store_registers): Update call.
2008-09-05 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): UseUlrich Weigand2-3/+9
regcache architecture instead of current_gdbarch.
2008-09-05 * mep-tdep.c (struct mep_prologue): Add gdbarch member.Ulrich Weigand2-9/+26
(check_for_saved): Use it instead of current_gdbarch. (is_arg_spill): Add gdbarch paramter. Use it instead of current_gdbarch. (mep_analyze_prologue): Add gdbarch parameter. Pass it to is_arg_spill and check_for_saved. (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
2008-09-05 * hppa-tdep.c (internalize_unwinds): Use objfile architectureUlrich Weigand2-3/+9
instead of current_gdbarch.
2008-09-05 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.Ulrich Weigand4-6/+20
* m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter. Use it instead of current_gdbarch. (m68kbsd_supply_fpregset): Update call. * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise. (m68kbsd_collect_fpregset): Likewise.
2008-09-05 * cris-tdep.c (cris_version, cris_mode): Remove.Ulrich Weigand2-25/+30
(crisv32_single_step_through_delay): Use tdep->cris_mode. (cris_breakpoint_from_pc): Likewise. (cris_frame_unwind_cache): Use tdep->cris_version. (crisv32_scan_prologue): Likewise. (cris_spec_reg_applicable): Add gdbarch argument. Use tdep->cris_version. (cris_register_size, cris_special_register_name): Update calls. (cris_special_register_name): Add gdbarch argument. (cris_register_name, crisv32_register_name): Update calls.
2008-09-05 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->archUlrich Weigand5-33/+48
instead of current_gdbarch. * sh64-tdep.c (gdb_print_insn_sh64): Remove. (sh64_gdbarch_init): Install print_insn_sh64 directly. * sh-tdep.c (gdb_print_insn_sh): Remove. (sh_gdbarch_init): Install print_insn_sh directly. * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi from current_gdbarch. (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions. (mips_gdbarch_init): Install them instead of gdb_print_insn_mips depending on mips_abi.
2008-09-05 * gdbarch.sh (addr_bits_remove): Change type to 'm'.Ulrich Weigand11-21/+44
(smash_text_address): Likewise. * gdbarch.c, gdbarch.h: Regenerate. * arch-utils.c (core_addr_identity): Add gdbarch parameter. * arch-utils.h (core_addr_identity): Likewise. * arm-tdep.c (arm_addr_bits_remove): Likewise. (arm_smash_text_address): Likewise. * hppa-tdep.c (hppa_smash_text_address): Likewise. * m88k-tdep.c (m88k_addr_bits_remove): Likewise. * s390-tdep.c (s390_addr_bits_remove): Likewise. * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter. Use it instead of current_gdbarch. * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc, arm_dwarf2_prev_register): Update calls. * m88k-tdep.c (m88k_unwind_pc): Update call.
2008-09-05 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.Ulrich Weigand5-26/+44
* dwarf2expr.c (dwarf2_read_address): Add gdbarch argument. Call gdbarch_integer_to_address directly instead of converting to value and back. Update comment. (execute_stack_op): Update call site. * dwarf2loc.c (find_location_expression): Likewise. (locexpr_describe_location): Update * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member. * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch. * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise. (dwarf2_loc_desc_needs_frame): Likewise.
2008-09-05 * breakpoint.h (struct bp_location): Change type of sectionUlrich Weigand26-276/+336
member to "struct obj_section *". * tracepoint.h (struct tracepoint): Likewise. * symtab.h (struct general_symbol_info): Replace bfd_section member with obj_section. (struct symtab_and_line): Change type of section member to "struct obj_section *". (SYMBOL_BFD_SECTION): Remove macro, replace by ... (SYMBOL_OBJ_SECTION): ... this. * minsym.c (prim_record_minimal_symbol_and_info): Record symbol section as obj_section instead of bfd_section. * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section directly instead of looking of obj_section from bfd_section. * objfiles.h (find_pc_sect_section): Remove. * objfiles.c (find_pc_sect_section): Remove. (find_pc_section): Inline find_pc_sect_section code. * symfile.h (find_pc_overlay): Return struct obj_section *. (find_pc_mapped_section): Likewise. (section_is_overlay, section_is_mapped): Change type of section argument to struct obj_section *. (pc_in_mapped_range, pc_in_unmapped_range): Likewise. (overlay_mapped_address, overlay_unmapped_address): Likewise. (symbol_overlayed_address): Likewise. * symtab.h (symbol_overlayed_address): Likewise. * symfile.c (overlay_is_mapped): Remove. (section_is_mapped): Inline overlay_is_mapped code. Update. (overlay_invalidate_all): Update. (section_is_overlay): Change section argument to type "struct obj_section *". Use bfd_ methods. (pc_in_unmapped_range): Likewise. Handle relocated sections. (pc_in_mapped_range): Likewise. Handle relocated sections. (sections_overlap): Likewise. (overlay_unmapped_address): Likewise. (overlay_mapped_address): Likewise. (symbol_overlayed_address): Likewise. (find_pc_overlay): Return struct obj_section *. (find_pc_mapped_section): Likewise. (list_overlays_command): Update. (map_overlay_command, unmap_overlay_command): Update. (simple_overlay_update): Update. * block.h (blockvector_for_pc_sect): Change section argument to type "struct obj_section *". (block_for_pc_sect): Likewise. * block.c (blockvector_for_pc_sect): Change section argument to type "struct obj_section *". (block_for_pc_sect): Likewise. * symtab.h (find_pc_sect_function, find_pc_sect_psymtab, find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line, lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise. (matching_bfd_sections): Rename to ... (matching_obj_sections): ... this. Update argument types. * blockframe.c (find_pc_sect_function): Likewise. * breakpoint.c (describe_other_breakpoints): Likewise. (breakpoint_has_pc, check_duplicates_for): Likewise. * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise. (lookup_minimal_symbol_by_pc_section): Likewise. * symtab.c (find_pc_sect_psymtab_closer): Likewise. (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab, find_pc_sect_line, find_function_start_pc): Likewise. (matching_bfd_sections): Rename to ... (matching_obj_sections): ... this. Update argument types. * blockframe.c (find_pc_partial_function): Update to section type changes. No longer call find_pc_sect_section. (cache_pc_function_section): Change to type "struct obj_section *". * breakpoint.c (resolve_sal_pc): Update to section type changes. * exec.c (xfer_memory): Likewise. * findvar.c (read_var_value): Likewise. * infcmd.c (jump_command): Likewise. * linespec.c (minsym_found): Likewise. * maint.c (maintenance_translate_address): Likewise. * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise. (lookup_solib_trampoline_symbol_by_pc): Likewise. * parse.c (write_exp_msymbol): Likewise. * printcmd.c (build_address_symbolic): Likewise. (address_info, sym_info): Likewise. * symmisc.c (dump_msymbols, print_symbol): Likewise. * symtab.c (fixup_section): Likewise. (fixup_symbol_section, fixup_psymbol_section): Likewise. (find_pc_line, find_function_start_sal): Likewise. * target.c (memory_xfer_partial): Likewise. * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise. * spu-tdep.c (spu_overlay_update): Likewise.
2008-09-05*** empty log message ***gdbadmin1-1/+1
2008-09-04 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.Doug Evans11-56/+68
Change argument of pulongest from CORE_ADDR to ULONGEST. All callers updated. * utils.c (plongest): Renamed from paddr_d. (pulongest): Renamed from paddr_u, change arg type to ULONGEST. * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in `CORE_ADDR addr' arg of error message.
2008-09-042008-09-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+6
* lib/gdb.exp (gdb_continue_to_breakpoint): Accept "in" as well as "at" (for non-debug functions such as _start).
2008-09-04 * configure.srv: Merge MIPS and MIPS64.Daniel Jacobowitz2-11/+9
2008-09-04 * gdb.base/value-double-free.exp: Respect gdb,no_hardware_watchpoints.Ulrich Weigand4-9/+27
* gdb.base/watchpoint-solib.exp: Likewise. Update tests to handle software watchpoints. * gdb.base/watch_thread_num.exp: Likewise.
2008-09-04*** empty log message ***gdbadmin1-1/+1
2008-09-032008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>Michael Snyder6-5/+25
* ser-tcp.c (ser_tcp_send_break): New function. (_initialize_ser_tcp): Use ser_tcp_send_break. * ser-tcp.h (ser_tcp_send_break): New prototype. 2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com> * gdb.texinfo (Interrupts): Mention TCP interface for sending BREAK.
2008-09-03 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slotsUlrich Weigand2-2/+14
when allocating stack frame for inferior call.
2008-09-03 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwindUlrich Weigand2-0/+9
SP or return address if we failed to find a valid frame.
2008-09-03 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted onlyAleksandar Ristovski5-2/+176
non-permanent breakpoints. (bpstat_stop_status): Change enable_state to bp_disabled only for non-permanent breakpoints. (bp_loc_is_permanent): New function. (create_breakpoint): Check if the location points to a permanent breakpoint and if it does, make breakpoint permanent. (update_breakpoint_locations): Make sure new locations of permanent breakpoints are properly initialized. * i386-tdep.c (i386_skip_permanent_breakpoint): New function. (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint. * gdb.arch/i386-bp_permanent.exp: New test.
2008-09-03*** empty log message ***gdbadmin1-1/+1
2008-09-02 * breakpoint.c (insert_breakpoints, update_global_location_list):Pedro Alves2-2/+10
Check breakpoints_always_inserted_mode instead of always_inserted_mode directly.
2008-09-02(ia64_get_dyn_info_list): Use obj_section_addr.Andreas Schwab2-1/+5
2008-09-02*** empty log message ***gdbadmin1-1/+1
2008-09-01 Stay compatible after the GCC PR fortran/29635 fix.Jan Kratochvil2-3/+10
* dwarf2read.c (process_die <DW_TAG_imported_module>) (process_die <DW_TAG_imported_module>): Do not assert anything about these unsupported tags.
2008-09-01*** empty log message ***gdbadmin1-1/+1
2008-08-31*** empty log message ***gdbadmin1-1/+1
2008-08-30revert previous change, like interpreting English is obvious ...Doug Evans2-6/+2
2008-08-30*** empty log message ***gdbadmin1-1/+1
2008-08-29 * cli/cli-decode.c (help_cmd): Fix thinko in pre/post hook help output.Doug Evans2-6/+8
2008-08-29 * maint.c (_initialize_maint_cmds): Fix typo.Tom Tromey2-2/+6
2008-08-29 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname onTom Tromey2-1/+8
obstack.
2008-08-29*** empty log message ***gdbadmin1-1/+1
2008-08-28*** empty log message ***gdbadmin1-1/+1
2008-08-27 * remote.c: Include "gdb_stat.h".Ulrich Weigand2-0/+5
2008-08-27*** empty log message ***gdbadmin1-1/+1
2008-08-26 * dummy-frame.h (dummy_frame_pop): Add prototype.Ulrich Weigand8-109/+124
* dummy-frame.c: Include "observer.h". (dummy_frame_push): Do not check for stale frames. (dummy_frame_pop): New function. (cleanup_dummy_frames): New function. (_initialize_dummy_frame): Install it as inferior_created observer. * frame.h (struct frame_id): Update comments. (frame_id_inner): Remove prototype. * frame.c (frame_id_inner): Make static. Add comments. (frame_find_by_id): Update frame_id_inner safety net check to avoid false positives for targets using non-contiguous stack ranges. (get_prev_frame_1): Update frame_id_inner safety net check. (frame_pop): Call dummy_frame_pop when popping a dummy frame. * stack.c (return_command): Directly pop the selected frame. * infrun.c (handle_inferior_event): Remove dead code. * i386-tdep.c (i386_push_dummy_call): Update comment.
2008-08-26 * breakpoint.c (remove_breakpoint): Do not fail if unable to removeUlrich Weigand2-0/+12
breakpoint from shared library.
2008-08-26 * solib-svr4.c (read_program_header): New function.Ulrich Weigand2-16/+205
(scan_dyntag_auxv): New function. (elf_locate_base): Use it if scan_dyntag fails. (find_program_interpreter): New function. (enable_break): Use it instead of .interp section.
2008-08-26ChangeLog:Ulrich Weigand11-86/+263
* remote.h (remote_filename_p, remote_bfd_open): Add prototypes. * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close, remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p, remote_bfd_open): New functions. (remote_hostio_send_command): Fail safely if remote connection is not set up. * solist.h (solib_open): Remove prototype. (solib_bfd_open): Add prototype. * solib.c: Include "remote.h". (solib_open): Remove, replace by ... (solib_bfd_open): ... this new function. Handle remote BFDs. (solib_map_sections): Replace solib_open by solib_bfd_open. * solib-frv.c: Include "exceptions.h". (enable_break2): Replace solib_open by solib_bfd_open. * solib-svr4.c: Include "exceptions.h". (enable_break): Replace solib_open by solib_bfd_open. * symfile.c: Include "remote.h". (build_id_verify): Handle remote BFDs. (separate_debug_file_exists): Use BFD to access file. Handle remote BFDs. (symfile_bfd_open): Handle remote BFDs. (reread_symbols): Handle remote BFDs. * NEWS: Mention "remote:" argument prefix to "set sysroot". doc/ChangeLog: * gdb.texinfo (Commands to Specify Files): Document "remote:" argument prefix to "set sysroot".
2008-08-26 * gdbarch.sh (target_gdbarch): New global variable.Ulrich Weigand21-83/+130
(deprecated_current_gdbarch_select_hack): Set it. * gdbarch.c, gdbarch.h: Regenerate. * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead of current_gdbarch. * target-descriptions.c (target_find_description): Likewise. * arm-tdep.c (arm_update_current_architecture): Likewise. (show_fp_model, arm_show_abi, arm_show_fallback_mode, arm_show_force_mode): Likewise. * mips-tdep.c (show_mask_address, show_mipsfpu_command, show_mips_abi): Likewise. * mep-tdep.c (me_module_register_set, current_me_module): Likewise. * target.c (target_translate_tls_address): Use target_gdbarch instead of current_gdbarch. * remote.c (struct packet_reg): Likewise. (get_remote_arch_state, packet_reg_from_regnum, packet_reg_from_pnum, remote_check_symbols, remote_wait, remote_address_masked, remote_insert_breakpoint, remote_insert_hw_breakpoint, remote_read_description): Likewise. * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise. * remote-mips.c (mips_open, mips_common_breakpoint): Likewise. * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise. * solib.c (solib_open, solib_map_sections, solib_read_symbols, solib_add, info_sharedlibrary_command, solib_address, solib_create_inferior_hook, in_solib_dynsym_resolve_code, solib_global_lookup): Likewise. * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise. * solib-irix.c (irix_current_sos, irix_open_symbol_file_object): Likewise. * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise. * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so, set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets): Likewise. * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix, nto_truncate_ptr): Likewise. * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
2008-08-26 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.Luis Machado2-2/+32
(ppc_linux_vmx_regset_sections): New structure. (ppc_linux_fp_regset_sections): New structure. (ppc_linux_init_abi): Select core-file regset based on target features.
2008-08-26 * target.c (debug_print_register): Use regcache_raw_collectUlrich Weigand2-3/+7
instead of regcache_cooked_read. Only handle raw registers.
2008-08-26*** empty log message ***gdbadmin1-1/+1
2008-08-25 * cp-name-parser.y: Include config.h before system headers.Pedro Alves2-1/+6
2008-08-25 * m88k-tdep.c: Update for unwinder changes.Ulrich Weigand2-47/+37
2008-08-25*** empty log message ***gdbadmin1-1/+1
2008-08-24 * s390-tdep.c (s390_address_class_type_flags): UseTom Tromey2-3/+10
TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1. (s390_address_class_type_flags_to_name): Likewise. (s390_address_class_name_to_type_flags): Likewise.