aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-07-13 * archive.cc (Archive::include_member): Unlock an external memberIan Lance Taylor2-6/+14
of a thin archive. Don't bother to delete an object we know is NULL.
2010-07-13*** empty log message ***gdbadmin1-1/+1
2010-07-13daily updateAlan Modra1-1/+1
2010-07-12Re-indent elf32-i386.c.H.J. Lu2-4/+8
2010-07-12 H.J. Lu <hongjiu.lu@intel.com> * elf32-i386.c (elf_i386_check_relocs): Re-indent. (elf_i386_relocate_section): Likewise.
2010-07-12Restore fall through patch for O_multiply.H.J. Lu2-0/+8
2010-07-12 H.J. Lu <hongjiu.lu@intel.com> PR gas/11806 * config/tc-i386-intel.c (i386_intel_simplify): Restore fall through patch for O_multiply.
2010-07-12 * compressed_output.cc (zlib_decompress): New function.Cary Coutant11-17/+358
(get_uncompressed_size): New function. (decompress_input_section): New function. * compressed_output.h (get_uncompressed_size): New function. (decompress_input_section): New function. * dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info) Handle compressed debug sections. * layout.cc (is_compressed_debug_section): New function. (Layout::output_section_name): Map compressed section names to canonical names. * layout.h (is_compressed_debug_section): New function. (is_debug_info_section): Recognize compressed debug sections. * merge.cc: Include compressed_output.h. (Output_merge_data::do_add_input_section): Handle compressed debug sections. (Output_merge_string::do_add_input_section): Handle compressed debug sections. * object.cc: Include compressed_output.h. (Sized_relobj::Sized_relobj): Initialize new data members. (build_compressed_section_map): New function. (Sized_relobj::do_read_symbols): Handle compressed debug sections. * object.h (Object::section_is_compressed): New method. (Object::do_section_is_compressed): New method. (Sized_relobj::Compressed_section_map): New type. (Sized_relobj::do_section_is_compressed): New method. (Sized_relobj::compressed_sections_): New data member. * output.cc (Output_section::add_input_section): Handle compressed debug sections. * reloc.cc: Include compressed_output.h. (Sized_relobj::write_sections): Handle compressed debug sections.
2010-07-12Add is_ilp32_target/is_lp64_target.H.J. Lu19-19/+126
2010-07-12 Ulrich Weigand <uweigand@de.ibm.com> H.J. Lu <hongjiu.lu@intel.com> * lib/gdb.exp (is_ilp32_target): New. (is_lp64_target): Likewise. * gdb.arch/amd64-byte.exp: Use is_lp64_target to check 64bit target. * gdb.arch/amd64-disp-step.exp: Likewise. * gdb.arch/amd64-dword.exp: Likewise. * gdb.arch/amd64-i386-address.exp: Likewise. * gdb.arch/amd64-word.exp: Likewise. * gdb.arch/i386-avx.exp: Use is_ilp32_target to check for 32bit target. * gdb.arch/i386-bp_permanent.exp: Likewise. * gdb.arch/i386-byte.exp: Likewise. * gdb.arch/i386-disp-step.exp: Likewise. * gdb.arch/i386-gnu-cfi.exp: Likewise. * gdb.arch/i386-prologue.exp: Likewise. * gdb.arch/i386-size-overlap.exp: Likewise. * gdb.arch/i386-size.exp: Likewise. * gdb.arch/i386-sse.exp: Likewise. * gdb.arch/i386-unwind.exp: Likewise. * gdb.arch/i386-word.exp: Likewise. * gdb.arch/ppc64-atomic-inst.exp: Use is_lp64_target to execute test only when building 64-bit executables. Do not hard-code -m64 option.
2010-07-12gdb/Jan Kratochvil3-1/+12
* dwarf2read.c (read_subrange_type): Call read_subrange_type. * p-lang.c (pascal_printstr): Likewise.
2010-07-12*** empty log message ***gdbadmin1-1/+1
2010-07-12daily updateAlan Modra1-1/+1
2010-07-11Fix a typo.H.J. Lu1-1/+1
2010-07-112010-07-11 Kai Tietz <kai.tietz@onevision.com>Kai Tietz6-15/+28
PR ld/11612 * config/obj-coff.c (obj_common_parse): Quote symbol-name. 2010-07-11 Kai Tietz <kai.tietz@onevision.com> * gas/pe/aligncomm-b.d: Regenerated content dump. * gas/pe/aligncomm-d,d: Regenerated content dump. * gas/i386/i386.exp: Disable for mingw 64-bit the intel-got64 test.
2010-07-11*** empty log message ***gdbadmin1-1/+1
2010-07-11daily updateAlan Modra1-1/+1
2010-07-10daily updateAlan Modra1-1/+1
2010-07-10*** empty log message ***gdbadmin1-1/+1
2010-07-09 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't useTom Tromey2-3/+10
'hint' if it is NULL.
2010-07-092010-07-04 Hui Zhu <teawater@gmail.com>Hui Zhu2-2/+8
* source.c (print_source_lines_base): Add check for noprint.
2010-07-09 * resolve.cc (Symbol_table::resolve): Remember whether undef wasCary Coutant7-19/+127
weak when resolving to a dynamic def. (Symbol_table::should_override): Add adjust_dyndef flag; set it for weak undef/dynamic def cases. Adjust callers. * symtab.cc (Symbol::init_fields): Initialize undef_binding_set_ and undef_binding_weak_. (Symbol_table::sized_write_globals): Adjust symbol binding. (Symbol_table::sized_write_symbol): Add binding parameter. * symtab.h (Symbol::set_undef_binding): New method. (Symbol::is_undef_binding_weak): New method. (Symbol::undef_binding_set_, Symbol::undef_binding_weak_): New members. (Symbol_table::should_override): Add new parameter. (Symbol_table::sized_write_symbol): Add new parameter. * testsuite/weak_undef_file1.cc: Add new test case. * testsuite/weak_undef_file2.cc: Fix header comment. * testsuite/weak_undef_test.cc: Add new test case.
2010-07-09*** empty log message ***gdbadmin1-1/+1
2010-07-09daily updateAlan Modra1-1/+1
2010-07-082010-07-08 Tejas Belagod <tejas.belagod@arm.com>Richard Earnshaw15-28/+469
gas/testsuite * gas/arm/barrier.s: New file. * gas/arm/barrier.d: New file. * gas/arm/barrier-thumb.s: New file. * gas/arm/barrier-thumb.d: New file. * gas/arm/barrier-bad.s: New file. * gas/arm/barrier-bad.d: New file. * gas/arm/barrier-bad.l: New file. * gas/arm/barrier-bad-thumb.s: New file. * gas/arm/barrier-bad-thumb.d: New file. * gas/arm/barrier-bad-thumb.l: New file. gas/config * tc-arm.c (OP_oBARRIER): Remove. (OP_oBARRIER_I15): Add. (po_barrier_or_imm): Add macro. (parse_operands): Improve OP_oBARRIER_I15 operand parsing. (do_barrier): Check correct immediate range. (do_t_barrier): Likewise. (barrier_opt_names): Add entries for more symbolic operands. (insns): Replace OP_oBARRIER with OP_oBARRIER_I15 for barriers. opcodes/ * arm-dis.c (print_insn_arm): Add cases for printing more symbolic operands. (print_insn_thumb32): Likewise.
2010-07-08Resync python-config.py with Python-2.7 version.Joel Brobecker2-29/+37
This is just a copy of the Python 2.7 version of python-config.py. Tested with versions 2.5 and 2.6. It's nearly identical to the previous version, except it's written in a more pythonic way, so it should be fine for 2.4 as well. gdb/ChangeLog: * python/python-config.py: Resync with Python 2.7 version of this script.
2010-07-08Fix typo in NEWS file (introduced in previous commit).Joel Brobecker2-1/+5
gdb/ChangeLog: * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2010-07-08 * config/tc-arm.c (tc_gen_reloc): Add BFD_RELOC_ARM_T32_OFFSET_IMMNathan Sidwell6-0/+22
error message. testsuite/ * gas/arm/reloc-bad.d: New. * gas/arm/reloc-bad.s: New. * gas/arm/reloc-bad.l: New.
2010-07-08daily updateAlan Modra1-1/+1
2010-07-08*** empty log message ***gdbadmin1-1/+1
2010-07-07 * gdb-if.c (sim_store_register): Add case for sim_rx_acc_regnum.Kevin Buettner2-0/+8
2010-07-07 * lib/gdb.exp (gdb_test_list_exact): New function.Doug Evans3-1/+71
* gdb.base/default.exp (show convenience): Call it, add tests for $_sdata = void, $_thread = 0.
2010-07-07 * NEWS: Create a new section for the next release branch.Joel Brobecker2-1/+9
Rename the section of the current branch, now that it has been cut.
2010-07-07Record GDB 7.2 branch creation. Bump version number to 7.2.50.20100707-cvs.gdbadmin2-1/+6
2010-07-07 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create aTom Tromey6-26/+96
LOC_COMPUTED symbol. * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field. (dwarf2_loc_desc_needs_frame): Likewise. (compile_dwarf_to_ax) <DW_OP_addr>: Use offset. * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field. * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset. * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add 'offset' argument. (struct dwarf2_frame_cache) <text_offset>: New field. (dwarf2_frame_cache): Set new field. (dwarf2_frame_prev_register): Update. (dwarf2_frame_sniffer): Update. (dwarf2_frame_base_sniffer): Update. (dwarf2_frame_find_fde): Add 'out_offset' argument.
2010-07-072010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>gdb_7_2-branchpointThiago Jung Bauermann18-132/+503
Thiago Jung Bauermann <bauerman@br.ibm.com> Support for hw accelerated condition watchpoints in booke powerpc. * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value and move to eval.c. Change callers. (insert_bp_location): Pass watchpoint condition in target_insert_watchpoint. (remove_breakpoint_1) Pass watchpoint condition in target_remove_watchpoint. (watchpoint_locations_match): Call target_can_accel_watchpoint_condition. * eval.c: Include wrapper.h. (fetch_subexp_value): Moved from breakpoint.c. * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Formatting fix. (can_use_watchpoint_cond_accel): New function. (calculate_dvc): Likewise. (num_memory_accesses): Likewise. (check_condition): Likewise. (ppc_linux_can_accel_watchpoint_condition): Likewise (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel, check_condition and calculate_dvc. (ppc_linux_remove_watchpoint): Likewise. (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to ppc_linux_can_accel_watchpoint_condition * target.c (debug_to_insert_watchpoint): Add argument for watchpoint condition. (debug_to_remove_watchpoint): Likewise. (debug_to_can_accel_watchpoint_condition): New function. (update_current_target): Set to_can_accel_watchpoint_condition. (setup_target_debug): Set to_can_accel_watchpoint_condition. * target.h: Add opaque declaration for struct expression. (struct target_ops) <to_insert_watchpoint>, <to_remove_watchpoint>: Add new arguments to pass the watchpoint <to_can_accel_watchpoint_condition>: New member. condition. Update all callers and implementations. (target_can_accel_watchpoint_condition): New macro. * value.c (free_value_chain): New function. * value.h (fetch_subexp_value): New prototype. (free_value_chain): Likewise.
2010-07-07[PATCH] Unexpected EOF read from connection with GDB after inferior exits.Joel Brobecker2-0/+14
This is on GNU/Linux. GDBserver does not exit properly when the inferior exits, as demonstrated with any program using the procedure below: % gdbserver-head :4444 simple_main Process simple_main created; pid = 25681 Listening on port 4444 Then, in another terminal, start GDB, connect to GDBserver, and run the program to completion: % gdb-head simple_main (gdb) tar rem :4444 (gdb) cont Continuing. Program exited normally. Going back to the terminal where GDBserver is running, we see the following output: Child exited with status 0 readchar: Got EOF Remote side has terminated connection. GDBserver will reopen the connection. Listening on port 4444 The problem is that we're missing a call to mourn_inferior. As a result, after we've handled the vCont packet, we fail to notice that there are no process left to debug (target_running() returns true), and thus try to continue reading from the remote socket. However, since GDB just disconnected after having received the "exit with status 0" reply to the vCont request, the read triggers the EOF exception. gdb/gdbserver/ChangeLog: * server.c (handle_v_cont): Call mourn_inferior if process just exited. (myresume): Likewise.
2010-07-07 * linux-nat.c (linux_nat_do_thread_registers): Use section sizeUlrich Weigand4-43/+98
from gdbarch_core_regset_sections also for .reg if present. * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect section size for .reg. * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. (ppc_linux_vmx_regset_sections): Likewise. (ppc_linux_fp_regset_sections): Likewise. (ppc64_linux_vsx_regset_sections): New variable. (ppc64_linux_vmx_regset_sections): Likewise. (ppc64_linux_fp_regset_sections): Likewise. (ppc_linux_init_abi): Install core_regset_section lists appropriate for current word size.
2010-07-07daily updateAlan Modra1-1/+1
2010-07-07*** empty log message ***gdbadmin1-1/+1
2010-07-06Make server.c:myresume static.Joel Brobecker2-1/+5
I just happened to notice that this function was exclusively used in server.c, and thus could be made static. 2010-07-06 Joel Brobecker <brobecker@adacore.com> * server.c (myresume): Make static.
2010-07-06Initialize prev_line.H.J. Lu2-0/+5
2010-07-06 H.J. Lu <hongjiu.lu@intel.com> * dwarf2.c (add_line_info): Initialize prev_line.
2010-07-06 * configure, config.in: Rebuild.Tom Tromey5-2/+20
* configure.ac (HAVE_LIBPYTHON2_7): New define. * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2010-07-06* breakpoint.c (_initialize_breakpoint): Add "cl" as alias forAndreas Schwab2-0/+6
"clear".
2010-07-06include/ChangeLog:Ulrich Weigand11-8/+110
2010-07-06 Ken Werner <ken.werner@de.ibm.com> * floatformat.h (floatformat_ieee_half_big): Add declaration. (floatformat_ieee_half_little): Likewise. libiberty/ChangeLog: 2010-07-06 Ken Werner <ken.werner@de.ibm.com> * floatformat.c (floatformat_ieee_half_big): New variable. (floatformat_ieee_half_little): Likewise. gdb/ChangeLog: 2010-07-06 Ken Werner <ken.werner@de.ibm.com> * gdbtypes.h (floatformats_ieee_half): Add declaration. * gdbtypes.c (floatformats_ieee_half): New variable. * doublest.c (floatformat_from_length): Set format to gdbarch_half_format if length matches. * gdbarch.sh (half_bit): New architecture method. (half_format): Likewise. * gdbarch.h: Regenerate. * gdbarch.c: Likewise.
2010-07-06bfd/Alan Modra6-8/+27
* elf32-ppc.c (ppc_elf_relax_section): Insert branch around trampolines only for .init and .fini sections. ld/testsuite/ * ld-powerpc/relax.s: Add branch back to _start. * ld-powerpc/relax.d: Update. * ld-powerpc/relaxr.d: Update.
2010-07-06 * readelf.c (uncompress_section_contents): Avoid gcc-4.6 warning.Alan Modra2-4/+6
2010-07-06 gas/Maciej W. Rozycki6-6/+63
* config/tc-mips.c (mips_frob_file): Use symbol_same_p to match symbols. gas/testsuite/ * gas/mips/elf-rel27.d: New test for HI16/LO16 relocation pairing. * gas/mips/elf-rel27.s: Source for the new test. * gas/mips/mips.exp: Create "mips16" architecture. Adjust conditions involving negated properties throughout to require "mips1" as appropriate. Run the new test. (mips_arch_destroy): New procedure.
2010-07-06 * mips-dis.c (print_insn_mips): Correct branch instruction typeMaciej W. Rozycki2-2/+8
determination.
2010-07-06 gas/Maciej W. Rozycki7-19/+51
* config/tc-mips.c (nops_for_insn_or_target): Replace MIPS16_INSN_BRANCH with MIPS16_INSN_UNCOND_BRANCH and MIPS16_INSN_COND_BRANCH. include/opcode/ * mips.h (MIPS16_INSN_UNCOND_BRANCH): New macro. (MIPS16_INSN_BRANCH): Rename to... (MIPS16_INSN_COND_BRANCH): ... this. opcodes/ * mips-dis.c (print_mips16_insn_arg): Remove branch instruction type and delay slot determination. (print_insn_mips16): Extend branch instruction type and delay slot determination to cover all instructions. * mips16-opc.c (BR): Remove macro. (UBR, CBR): New macros. (mips16_opcodes): Update branch annotation for "b", "beqz", "bnez", "bteqz" and "btnez". Add branch annotation for "jalrc" and "jrc".
2010-07-06daily updateAlan Modra1-1/+1
2010-07-06*** empty log message ***gdbadmin1-1/+1
2010-07-05 * gas/mips/mips.exp (run_dump_test_arch): Check for the presenceMaciej W. Rozycki2-1/+12
of an architecture-specific test first and use it if found, before falling back to the generic one.