aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-02-17 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.Pedro Alves8-82/+255
(ALL_TARGET_OBS): Add dicos-tdep.o. (ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c. * configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to gdb_target_obs. (x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to gdb_target_obs. * dicos-tdep.h, dicos-tdep.c: New. * amd64-dicos-tdep.c: New. * i386-dicos-tdep.c: Don't include solib.h, solib-target.h or inferior.h. Include dicos-tdep.h. (i386_dicos_init_abi): Call dicos_init_abi. (i386_dicos_bfd_has_symbol_p): Delete. (i386_dicos_osabi_sniffer): Use dicos_load_module_p. * NEWS: Mention x86-64 DICOS target support.
2009-02-17 * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.Doug Evans8-58/+271
All callers updated. (amd64_get_insn_details): Handle more 3-byte opcode insns. (amd64_breakpoint_p): Delete. (amd64_displaced_step_fixup): When fixing up after stepping an int3, don't back up pc to the start of the int3. * i386-tdep.c: #include opcode/i386.h. (i386_skip_prefixes): New function. (i386_absolute_jmp_p): Constify argument. (i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto. (i386_breakpoint_p): Delete. (i386_displaced_step_fixup): Handle unnecessary or redundant prefixes. When fixing up after stepping an int3, don't back up pc to the start of the int3. * gdb.arch/amd64-disp-step.S (test_int3): New test. * gdb.arch/amd64-disp-step.exp (test_int3): New test. * gdb.arch/i386-disp-step.S (test_prefixed_abs_jump): New test. (test_prefixed_syscall,test_int3): New tests. * gdb.arch/i386-disp-step.exp (test_prefixed_abs_jump): New test. (test_prefixed_syscall,test_int3): New tests.
2009-02-17*** empty log message ***gdbadmin1-1/+1
2009-02-17daily updateAlan Modra1-1/+1
2009-02-16 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emitDave Korn2-2/+7
inadvertent .reloc sections caused by refactoring accident.
2009-02-16 * gas/mips/e32-rel2.d: Adjust expected output to remove the 0x4000Nick Clifton14-114/+131
offset. * gas/mips/e32el-rel2.d: Likewise. * gas/mips/elf-rel2.d: Likewise. * gas/mips/elf-rel9-mips16.d: Likewise. * gas/mips/elf-rel9.d: Likewise. * gas/mips/elfel-rel2.d: Likewise. * gas/mips/lb.d: Likewise. * gas/mips/mips-abi32.d: Likewise. * gas/mips/mips-gp32-fp32.d: Likewise. * gas/mips/mips-gp32-fp64.d: Likewise. * gas/mips/mips-gp64-fp32.d: Likewise. * gas/mips/mips-gp64-fp64.d: Likewise. * gas/mips/mips32-sf32.d: Likewise.
2009-02-16 * ldlang.c (process_insert_statements): ASSERT that output sectionAlan Modra2-1/+9
statements are in order.
2009-02-16 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.Alan Modra9-69/+98
(stat_save, stat_save_ptr): New variables. (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr. (load_symbols): Likewise. Delete dead "bad_load" code. (open_input_bfds): Warn on script containing output sections. (lang_enter_output_section_statement): Use push_stat_ptr. (lang_enter_group): Likewise. (lang_leave_output_section_statement): Use pop_stat_ptr. (lang_leave_group): Likewise. * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare. * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr. * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise. * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise. * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise. * emultempl/spuelf.em (spu_place_special_section): Likewise. * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
2009-02-16 * corelow.c (core_close): Don't hardcode the core's pid.Pedro Alves9-8/+98
(core_open): Find core threads before calling post_create_inferior. (add_to_thread_list, get_core_register_section): Take into account systems where the regset section names encode the pid of the inferior. * gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting. * gdbarch.h, gdbarch.c: Regenerate. * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it. * i386-sol2-tdep.c (i386_sol2_init_abi): Set it. * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it. * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
2009-02-16daily updateAlan Modra1-1/+1
2009-02-16*** empty log message ***gdbadmin1-1/+1
2009-02-15 * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value usedDave Anglin2-2/+8
in branch offset check.
2009-02-15 * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,Alan Modra3-160/+190
add toc.symndx and toc.add. (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here. Set up toc.add. (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all callers. (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd. (branch_reloc_hash_match): New function, extracted from.. (ppc64_elf_tls_optimize): ..here. (ppc64_elf_relocate_section): Properly set addends when optimizing tls sequences. Avoid unnecessary reading and writing of insns. Only redo reloc when symbol changed. Bypass symbol checks when using tlsld_got. * elf32-ppc.c (ppc_elf_tls_setup): Correct comment. (branch_reloc_hash_match): New function, extracted from.. (ppc_elf_tls_optimize): ..here. (ppc_elf_relocate_section): Avoid unnecessary reading of insns. Don't clear addend on zapped __tls_get_addr reloc.
2009-02-15daily updateAlan Modra1-1/+1
2009-02-15*** empty log message ***gdbadmin1-1/+1
2009-02-14Adding gdb.python/python-cmd.exp which I forgot to commit earlier.Thiago Jung Bauermann1-0/+107
2009-02-14 Include frame information for *stopped due to CLI commands.Vladimir Prus10-32/+78
* ada-tasks.c (ada_normal_stop_observer): Adjust prototype. * infcmd.c (finish_command_continuation): Pass '1' for 'print_frame' parameter to the observer. * infrun.c (normal_stop): Don't print mi-specific information here. Pass 'stop_print_frame' to the 'print_frame' parameter of the observer. * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype. If we need to print frame, and current uiout is not the MI one, print frame again.
2009-02-14 * lib/gdb.exp (get_hexadecimal_valueof): New procedure.Pierre Muller3-17/+24
* gdb.base/pc-fp.exp (get_valueofx): Remove. Replace calls to get_valueofx by get_hexadecimal_valueof.
2009-02-14 * remote-utils.c (getpkt): Also generate remote-debugPierre Muller2-0/+13
information if noack_mode is set.
2009-02-14*** empty log message ***gdbadmin1-1/+1
2009-02-14daily updateAlan Modra1-1/+1
2009-02-13 * lib/gdb.exp (get_valueof): Accept anything as a return value.Pierre Muller3-7/+32
(get_integer_valueof): New procedure. (get_sizeof): Use new get_integer_value_of. * gdb.base/sizeof.exp: Replace all uses of get_valueof by get_integer_valueof.
2009-02-132009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2-4/+8
* xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro. Replace BSZ macro uses by XTENSA_ISA_BSZ macro.
2009-02-13 (From Rafael Espindola)Cary Coutant9-120/+49
* archive.cc (Archive::include_member): Update calls to add_symbols. * dynobj.cc (Sized_dynobj<size, big_endian>::make_version_map): Add the Layout argument. * dynobj.h (do_add_symbols): Add the Layout argument. * object.cc (Sized_relobj<size, big_endian>::do_add_symbols): Add the Layout argument. * object.h (Object::add_symbols): Add the Layout argument. (Object::do_add_symbols): Add the Layout argument. (Sized_relobj::do_add_symbols): Add the Layout argument. * plugin.cc (Sized_pluginobj<size, big_endian>::do_add_symbols): Unify the two versions. (Add_plugin_symbols): Remove. * plugin.h (Pluginobj::add_symbols, Pluginobj::do_add_symbols): Remove. (Sized_pluginobj::do_add_symbols): Unify the two versions. (Add_plugin_symbols): Remove. * readsyms.cc (Read_symbols::do_read_symbols): Update call to Add_symbols. Use Add_symbols instead of Add_plugin_symbols. (Add_symbols::run): Make it work with Pulginobj.
2009-02-13 * gdb.base/remote.exp (get_sizeof): Remove.Tom Tromey6-74/+32
* gdb.base/long_long.exp (get_valueof, get_sizeof): Remove. * gdb.base/dfp-test.exp (get_valueof, get_sizeof): Remove. * gdb.base/sizeof.exp (get_valueof, get_sizeof): Remove. * lib/gdb.exp (get_valueof): Move from long_long.exp. (get_sizeof): Likewise.
2009-02-13*** empty log message ***gdbadmin1-1/+1
2009-02-12daily updateAlan Modra1-1/+1
2009-02-12Fix a typo.Joel Brobecker1-1/+1
2009-02-12 PR 9827Nick Clifton2-2/+14
* elflink.c (bfd_elf_final_link): When counting the relocations, if the header size has not been set yet then assume that it will match the output section's reloc type.
2009-02-12 * corefile.c (core_create_function_syms): Remove "<locore>" andAlan Modra9-96/+89
"<hicore>" sentinels. * gprof.c: Likewise. * cg_print.c (cg_print_function_ordering): Likewise. * alpha.c (alpha_find_call): Add check for return value of sym_lookup. * mips.c (mips_find_call): Likewise. * sparc.c (sparc_find_call): Likewise. * tahoe.c (tahoe_find_call): Likewise. * vax.c (vax_find_call): Likewise.
2009-02-12gdb/Jan Kratochvil5-1/+111
PR fortran/9806 * dwarf2read.c (process_die <DW_TAG_module>, read_module) (scan_partial_symbols <DW_TAG_module>, add_partial_module): New. gdb/testsuite/ PR fortran/9806 * gdb.fortran/module.exp, gdb.fortran/module.f90: New.
2009-02-12 gas/Nathan Sidwell8-10/+79
* config/tc-m68k.c (mcf51qe_ctrl): Add CPUCR. (mcf52259_ctrl, mcf52277_ctrl, mcf53017_ctrl): New. (mcf5307_ctrl): Add VBR. (no_mac): New variable. (m68k_extensions): Refer to no_mac mask. (m68k_cpus): Add 51, 51ac, 51cn, 51em, 51jm, 52274, 52277, 52252..52259, 53011..53017. (m68k_ip): Process CPUCR. (init_table): Add cpucr entry. (m68k_set_extension): Allow negated mask to refer to a variable. (md_show_usage): Use '%s' to silence fprintf warning. * config/m68k-parse.h (CPUCR): New control register. gas/testsuite/ * m68k/br-isac.d, m68k/br-isac.s: Add stldsr test. opcodes/ * m68k-opc.c (m68k_opcodes): Add stldsr instruction.
2009-02-12 * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset forNathan Sidwell2-1/+6
relocatable link.
2009-02-12*** empty log message ***gdbadmin1-1/+1
2009-02-11daily updateAlan Modra1-1/+1
2009-02-112009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2-2/+10
* dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR for DW_ATE_signed_char and DW_ATE_unisgned_char for pascal language.
2009-02-11 Avoid NULL dereference.Jan Kratochvil2-4/+14
* stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun). New variable func_type.
2009-02-11 * gdbarch.c: Regenerate.Pedro Alves2-2/+6
2009-02-11*** empty log message ***gdbadmin1-1/+1
2009-02-10daily updateAlan Modra1-1/+1
2009-02-10merge from gccDJ Delorie2-2/+6
2009-02-10 * config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' forNathan Sidwell2-3/+8
as_bad calls to silence compiler warning.
2009-02-102009-02-06 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-0/+5
* gdb.cp/pr9594.cc: Prevent GCC from optimizing 'a' out.
2009-02-102009-02-10 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller3-19/+43
* p-lang.c (is_pascal_string_type): Fix comment. Determine exact size of char elements for GPC strings. (pascal_printstr): Handle char width of 2 or 4. * p-valprint.c (pascal_val_print): Handle char of width 2 or 4.
2009-02-10*** empty log message ***gdbadmin1-1/+1
2009-02-09daily updateAlan Modra1-1/+1
2009-02-092009-02-09 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-1/+5
* windres.c (set_endianess): Copy name without leading '-'.
2009-02-09 Missing piece of 2009-01-26 commitNathan Sidwell2-4/+7
* ldlang.c (lang_process): Don't consider relocatable flag when checking for overlap.
2009-02-09 * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.Alan Modra2-8/+22
(find_function): Likewise. (pasted_function): Don't error if no prior function found. (discover_functions): Revert 2008-12-10 change. Extend first function range to start of section.
2009-02-092009-02-09 Tristan Gingold <gingold@adacore.com>Tristan Gingold7-172/+247
* NEWS: Mention feature match between objdump and readelf for dumping dwarf info. * doc/binutils.texi (objdump): Document -W/--dwarf improvments to objdump. * objdump.c (usage): Update documentation for -W/--dwarf. (enum option_values): Add OPTION_DWARF. (long_options): --dwarf can accept arguments. (dump_dwarf_section): Also check enabled field. (main): Option -W can accept arguments, code moved to dwarf.c and call dwarf_select_sections_all instead. * readelf.c (process_section_headers): Remove do_debug_lines_decoded. (parse_args): Move code to... * dwarf.c (dwarf_select_sections_by_letters, dwarf_select_sections_by_names): : ...here (new functions). (do_debug_lines_decoded): Remove and replaced by ... (FLAG_DEBUG_LINES_RAW, FLAG_DEBUG_LINES_DECODED): ... new macros. (display_debug_lines): Adjust for previous change. (dwarf_select_sections_all): New function. (debug_displays): Add initializer for enabled field. * dwarf.h (do_debug_lines_decoded): Remove. Add prototypes for the new functions. (struct dwarf_section_display): Add enabled field.