aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-05-28gdb/Jan Kratochvil2-1/+13
* linux-nat.c (linux_nat_wait_1): Do not call linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or TARGET_WAITKIND_SIGNALLED.
2010-05-28gdb/testsuite/Jan Kratochvil2-1/+6
* gdb.base/sepdebug.exp (info silent break bp_location1): Fix racy excessive newline.
2010-05-28Revert accidentally committed changes that aren't ready yet.Kevin Buettner1-7/+0
2010-05-28 * gdb-if.c (sim_do_command): Add a "sim verbose noisy" command.Kevin Buettner2-1/+14
2010-05-28 * opcodes/arm-dis.c (print_insn_neon): Ensure disassembly of NeonMatthew Gretton-Dann2-1/+7
constants is the same on 32-bit and 64-bit hosts.
2010-05-28 * gas/config/tc-arm.c (do_t_mov_cmp): In unified syntax encode movs asMatthew Gretton-Dann6-6/+17
lsls and not adds. * gas/testsuite/gas/arm/thumb2_it_auto.d: Update for change in movs encoding. gas/arm/thumb2_it.d: Likewise. gas/arm/thumb32.d: Likewise.
2010-05-28 * Makefile.am (eshlelf_fd.c): Fix typo in rule.Nick Clifton3-2/+7
* Makefile.in: Regenerate.
2010-05-28bfd/Jan Kratochvil2-10/+8
Workaround GCC PR middle-end/4210. * vms-misc.c (vms_time_t_to_vms_time): Use ternary operator for val[2] and val[3].
2010-05-28Cache the TSD type in inferior-data (performance).Joel Brobecker2-2/+90
This is something I noticed while looking at ada_find_any_type. Use of that function is expensive, since it causes a global lookup. Reviewing some of the uses, I found that we were calling it to get a specific type everytime we print a tagged type (the equivalent of classes in C++); and not only that, we did it 4 times [1]! Since the type in question (ada__tags__type_specific_data) is guarantied to remain the same througout the entire life of the inferior, the solution was to cache that type in inferior private data. This patch creates an ada-land private-data area, and uses it to store that type after the first time we look it up. [1]: The problem is mitigated in AdaCore's tree because we use an Ada symbol cache which we are thinking of contributing to the FSF tree. But that's still pretty bad, regardless. 2010-05-27 Joel Brobecker <brobecker@adacore.com> * ada-lang.c (ada_inferior_data): New struct. (ada_inferior_data): New static global. (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit) (ada_get_tsd_type): New functions. (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type to look the tsd type up. (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit event. Set ada_inferior_data.
2010-05-28*** empty log message ***gdbadmin1-1/+1
2010-05-28daily updateAlan Modra1-1/+1
2010-05-272010-05-27 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder19-1086/+449
* gdb.base/relational.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/relocate.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/restore.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/return.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/return2.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/sepdebug.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/setshow.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/setvar.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/shlib-call.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/shreloc.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/sigall.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/sigbpt.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/signull.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/so-impl-ld.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/varargs.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/volatile.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/watch_thread_num.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/watchpoint.exp: Replace uses of send_gdb / gdb_expect.
2010-05-272010-05-27 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder2-372/+208
* gdb.base/break.exp: Replace uses of send_gdb / gdb_expect.
2010-05-27 * remote.c (unpack_varlen_hex): Remove forward declaration.Pedro Alves4-22/+16
(remote_console_output): Make static, and add forward declaration. * remote.h: Drop FIXME comment. (unpack_varlen_hex): Declare. (remote_console_output, remote_cisco_objfile_relocate) (deprecated_target_resume_hook, deprecated_target_wait_loop_hook): Delete declarations. * tracepoint.c: Include "remote.h". (unpack_varlen_hex): Delete declaration.
2010-05-27 * dwarf2loc.c (struct piece_closure) <refc>: New field.Tom Tromey2-3/+19
(allocate_piece_closure): Initialize refc. (copy_pieced_value_closure): Use refc. (free_pieced_value_closure): Likewise.
2010-05-27 * arm-tdep.c (push_stack_item): 'contents' now const.Tom Tromey2-5/+12
(arm_push_dummy_call): Make 'val' const. Use value_contents, not value_contents_writeable. Introduce new temporary.
2010-05-27 * findcmd.c (parse_find_args): Use value_contents, notTom Tromey2-1/+6
value_contents_raw.
2010-05-27 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contentsTom Tromey2-3/+8
const. Use value_contents, not value_contents_writeable.
2010-05-27Replace call to value_contents_raw by call to value_contents.Joel Brobecker2-1/+6
This is something that Tom spotted. It shouldn't make much of a difference in practice with the current code, but Tom is planning on making some changes (bitwise optimized-out tracking) in value_contents... 2010-05-27 Joel Brobecker <brobecker@adacore.com> * ada-lang.c (ensure_lval): Replace call to value_contents_raw by call to value_contents.
2010-05-272010-05-27 Ozkan Sezer <sezeroz@gmail.com>Ozkan Sezer2-0/+5
* gdb/MAINTAINERS: Add myself for write after approval privileges.
2010-05-272010-05-27 Tristan Gingold <gingold@adacore.com>Tristan Gingold3-15/+131
* vms-misc.c: Define __NEW_STARLET. Remove trailing spaces. (VMS_TIME_FACTOR, VMS_TIME_OFFSET): New macros. (vms_time_to_time_t): Use them instead of local const. (vms_time_t_to_vms_time): New function. (vms_get_time): Likewise. (vms_raw_get_time): Likewise. * vms.h (vms_time_t_to_vms_time): New declaration. (vms_get_time): Likewise. (vms_raw_get_time): Likewise.
2010-05-27Fix typo in ChangeLog entry.Nick Clifton1-1/+1
2010-05-27 * m68k-dis.c (print_insn_m68k): Emit undefined instructions asNick Clifton2-1/+6
.short directives so that they can be reassembled.
2010-05-27 * config/tc-arm.c (encode_thumb2_ldmstm): Make warning aboutNick Clifton9-12/+130
writeback when base register is in register list an error, and correct check. (do_t_ldmstm): Change warnings. * gas/arm/thumb2_ldmstm.d: Add new testcases. * gas/arm/thumb2_ldmstm.s: Likeiwse. * gas/arm/thumb2_ldmstm_bad.d: Add testcases to check for UNPREDICTABLE ldm/stm. * gas/arm/thumb2_ldmstm_bad.l: Likewise. * gas/arm/thumb2_ldmstm_bad.s: Likewise.
2010-05-272010-05-27 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-2/+8
* lbr.h: Improve comments.
2010-05-27 Allow python to find its files if moved from original location.Doug Evans8-33/+183
* acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function. (GDB_AC_WITH_DIR): Call it. * configure.ac: Define WITH_PYTHON_PATH if we can find the python installation directory. * config.in: Regenerate. * configure: Regenerate. * defs.h (python_libdir): Declare. * main.c (python_libdir): Define. (captured_main): Initialize python_libdir. * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH, call Py_SetProgramName to make sure python can find its libraries and modules.
2010-05-27 * configure.ac: Try to use python's distutils to fetch compilationDoug Evans4-92/+452
parameters. * configure: Regenerate. * python/python-config.py: New file.
2010-05-27daily updateAlan Modra1-1/+1
2010-05-27*** empty log message ***gdbadmin1-1/+1
2010-05-262010-05-26 Ozkan Sezer <sezeroz@gmail.com>Ozkan Sezer15-17/+57
gdb/ * ser-tcp.c (net_open): Check error return from socket() call by its equality to -1 not by it being negative. (net_close): Likewise. gdb/gdbserver/ * gdbreplay.c (remote_open): Check error return from socket() call by its equality to -1 not by it being negative. * remote-utils.c (remote_open): Likewise. sim/arm/ * communicate.c (MYread_char): Check error return from accept() call by its equality to -1 not by it being negative. (MYread_charwait): Likewise. * main.c (main): Likewise for both socket() and accept() calls. sim/common/ * dv-sockser.c (dv_sockser_init): Check error return from socket() call by its equality to -1 not by it being negative. (connected_p): Likewise for accept() call. sim/cris/ * dv-rv.c (hw_rv_init_socket): Check error return from socket() call by its equality to -1 not by it being negative. (hw_rv_write): Likewise. (hw_rv_handle_incoming): Likewise. (hw_rv_poll_once): Likewise. * rvdummy.c (setupsocket): Likewise. (main): Likewise for accept() call as returned from setupsocket(). sim/m32c/ * main.c (setup_tcp_console): Check error return from socket() call by its equality to -1 not by it being negative.
2010-05-262010-05-26 Catherine Moore <clm@codesourcery.com>Catherine Moore4-3/+14
David Ung <davidu@mips.com> * mips-opc.c: Change membership to I1 for instructions ssnop and ehb. 2010-05-26 Catherine Moore <clm@codesoucery.com> Maxim Kuvyrkov <maxim@codesourcery.com> * gas/mips/set-arch.d: Expect ehb.
2010-05-262010-05-27 Doug Kwan <dougkwan@google.com>Doug Kwan2-3/+19
* object.cc (Sized_relobj::do_finalize_local_symbols): Use offset from start of output section instead of address for a local symbol in a merged or relaxed section when doing a relocatable link.
2010-05-262010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder3-29/+18
* gdb.java/jmisc.exp: Replace send_gdb with gdb_test. * gdb.java/jprint.exp: Replace send_gdb with gdb_test.
2010-05-262010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder4-138/+39
* gdb.gdb/complaints.exp: Replace send_gdb with gdb_test. * gdb.gdb/selftest.exp: Replace send_gdb with gdb_test. * gdb.gdb/xfullpath.exp: Replace send_gdb with gdb_test.
2010-05-26gdb/Pedro Alves10-9/+406
2010-05-26 Pedro Alves <pedro@codesourcery.com> * NEWS: Mention the `qRelocInsn' feature. * gdbarch.sh (relocate_instruction): New. * amd64-tdep.c (rip_relative_offset): New. (append_insns): New. (amd64_relocate_instruction): New. (amd64_init_abi): Install it. * i386-tdep.c (append_insns): New. (i386_relocate_instruction): New. (i386_gdbarch_init): Install it. * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests. * gdbarch.h, gdbarch.c: Regenerate. gdb/doc/ 2010-05-26 Pedro Alves <pedro@codesourcery.com> * gdb.texinfo (General Query Packets) <qSupported>: Describe the `qRelocInsn' feature. (Relocate instruction reply packet): New subsection of `Tracepoint Packets'. (Tracepoint Packets): Mention that packets QTDP and QTStart support the qRelocInsn request, and add cross reference to new subsection.
2010-05-26merge from gccDJ Delorie3-1/+21
2010-05-262010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder16-222/+116
* gdb.reverse/consecutive-reverse.exp: Replace send_gdb with gdb_test. * gdb.reverse/consecutive-precsave.exp: Replace send_gdb with gdb_test. * gdb.mi/mi-basics.exp: * gdb.mi/mi-nonstop-exit.exp: Replace send_gdb with gdb_test. * gdb.mi/mi-nonstop.exp: Replace send_gdb with gdb_test. * gdb.mi/mi-ns-stale-regcache.exp: Replace send_gdb with gdb_test. * gdb.mi/mi-nsintrall.exp: Replace send_gdb with gdb_test. * gdb.mi/mi-nsmoribund.exp: Replace send_gdb with gdb_test. * gdb.mi/mi-nsthrexec.exp: Replace send_gdb with gdb_test. * gdb.mi/mi-return.exp: Replace send_gdb with gdb_test. * gdb.mi/mi-var-display.exp: Replace send_gdb with gdb_test. * gdb.mi/mi2-basics.exp: Replace send_gdb with gdb_test. * gdb.mi/mi2-console.exp: Replace send_gdb with gdb_test. * gdb.mi/mi2-return.exp: Replace send_gdb with gdb_test. * gdb.mi/mi2-var-display.exp: Replace send_gdb with gdb_test.
2010-05-262010-05-25 Michael Snyder <msnyder@vmware.com>Michael Snyder12-1320/+518
* gdb.ada/formatted_ref.exp: Replace send_gdb with gdb_test. * gdb.asm/asm-source.exp: Replace send_gdb with gdb_test. * gdb.base/a2-run.exp: Replace send_gdb with gdb_test. * gdb.base/all-bin.exp: Replace send_gdb with gdb_test. * gdb.base/annota1.exp: Replace send_gdb with gdb_test. * gdb.base/annota3.exp: Replace send_gdb with gdb_test. * gdb.base/assign.exp: Replace send_gdb with gdb_test. * gdb.base/attach.exp: Replace send_gdb with gdb_test. * gdb.base/bitfields.exp: Replace send_gdb with gdb_test. * gdb.base/bitfields2.exp: Replace send_gdb with gdb_test. * gdb.base/bitops.exp: Replace send_gdb with gdb_test.
2010-05-26Add SIB.H.J. Lu2-4/+35
2010-05-26 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (sib): New. (get_sib): Likewise. (print_insn): Call get_sib. OP_E_memory): Use sib.
2010-05-262010-05-26 Rafael Espindola <espindola@google.com>Rafael Ávila de Espíndola7-10/+211
PR 11604 * gold/object.cc(Sized_relobj::do_layout_deferred_sections): Avoid adding sections the garbage collector removed. * gold/testsuite/Makefile.am: Add test. * gold/testsuite/Makefile.in: Regenerate. * gold/testsuite/plugin_test_7.sh: New. * gold/testsuite/plugin_test_7_1.c: New. * gold/testsuite/plugin_test_7_2.c: New.
2010-05-26 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.Tom Tromey3-9/+20
(struct dwarf2_loclist_baton) <data>: Likewise. * dwarf2loc.c (find_location_expression): Constify return type. (dwarf2_evaluate_loc_desc): Make 'data' argument const. (dwarf2_loc_desc_needs_frame): Likewise. (loclist_read_variable): Constify. (loclist_describe_location): Likewise. (loclist_tracepoint_var_ref): Likewise.
2010-05-262010-05-26 Rafael Espindola <espindola@google.com>Rafael Ávila de Espíndola2-7/+21
* script-sections.cc (Output_section_definition::set_section_addresses): Check for --section-start.
2010-05-26Warn if value of SEGMENT_START isn't multiple of maximum page size.H.J. Lu8-0/+52
ld/ 2010-05-26 H.J. Lu <hongjiu.lu@intel.com> PR ld/11628 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't multiple of maximum page size. ld/testsuite/ 2010-05-26 H.J. Lu <hongjiu.lu@intel.com> PR ld/11628 * ld-elf/textaddr3.d: New. * ld-elf/textaddr4.d: Likewise. * ld-elf/textaddr5.d: Likewise. * ld-elf/textaddr6.d: Likewise. * ld-elf/textaddr7.d: Likewise.
2010-05-26 gas/Catherine Moore13-27/+64
* config/tc-mips.c (is_opcode_valid): Remove expansionp. (macro_build): Change invocation of is_opcode_valid. (mips_ip): Likewise. gas/testsuite/ * gas/mips/mips-no-jalx.l: Delete. * gas/mips/mips-no-jalx.s: Delete. * gas/mips/mips-jalx-2.d: New. * gas/mips/mips-jalx-2.s: New. * gas/mips/mips.exp (mips-jalx-2): Run new test. (mips-no-jalx): Remove deleted test. include/ * opcode/mips.h (INSN_MIPS16): Remove. opcodes/ * mips-dis.c (mips_arch): Remove INSN_MIPS16. * mips-opc.c (I16): Remove. (mips_builtin_op): Reclassify jalx.
2010-05-262010-05-26 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-8/+169
* vms-alpha.c: Update comments. (alpha_vms_write_exec): Set lnkflags. Write the GST. (alpha_vms_link_output_symbol): New function. (alpha_vms_bfd_final_link): Generate the VMS symbol table. Set dst_section private field. (alpha_vms_bfd_final_link): Remove code that set dst_section.
2010-05-262010-05-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold8-125/+200
* bfdio.c: Declare and define _bfd_memory_iovec. (bfd_bread): Move code for BFD_IN_MEMORY... (bfd_bwrite): ... Ditto ... (bfd_tell): ... Ditto ... (bfd_flush): ... Ditto ... (bfd_stat): ... Ditto ... (bfd_seek): ... Ditto ... (bfd_get_size): ... Ditto ... (bfd_mmap): ... Ditto ... (memory_bread): ... to these new functions. (memory_bwrite): Ditto. (memory_btell): Ditto. (memory_bseek): Ditto. (memory_bflush): Ditto. (memory_bstat): Ditto. (memory_bmmap): Ditto. (memory_bclose): New function. * peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY. * xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto. * opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case. (bfd_make_writable): Use _bfd_memory_iovec. * elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec. * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use _bfd_memory_iovec. (alpha_ecoff_openr_next_archived_file): Use proxy_origin instead of origin. * libbfd.h: Regenerate.
2010-05-26Merge from gcc:Dave Korn3-101/+141
2010-05-18 Steven Bosscher <steven AT gcc.gnu.org> * configure.ac (--enable-lto): All *-apple-darwin* now support LTO. * configure: Regenerate. 2010-05-07 Steven Bosscher <steven AT gcc.gnu.org> * configure.ac (--enable-lto): Add x86_64-apple-darwin* as a platform that supports LTO. * configure: Regenerate. 2010-04-27 Dave Korn <dave.korn.cygwin AT gmail.com> PR lto/42776 * configure.ac (--enable-lto): Refactor handling so libelf tests are only performed inside then-clause of ACX_ELF_TARGET_IFELSE, and allow LTO to be explicitly enabled on non-ELF platforms that are known to support it inside else-clause. * configure: Regenerate.
2010-05-262010-05-26 Doug Kwan <dougkwan@google.com>Doug Kwan4-9/+443
* arm.cc (Arm_scan_relocatable_relocs): New class. (Target_arm::relocate_special_relocatable): New method. (Arm_relocate_functions::arm_branch_common): Handle relocatable link. (Arm_relocate_functions::thumb_branch_common): Same. (Target_arm::scan_relocatable_relocs): Use Arm_scan_relocatable_relocs instead of Default_scan_relocatable_relocs. * target-reloc.h (relocate_for_relocatable): Let target handle relocation strategy Relocatable_relocs::RELOC_SPECIAL. * target.h (Sized_target::relocate_special_relocatable): New method.
2010-05-26 * timer.cc: Only #include <sys/times.h> if HAVE_TIMES is defined.Ian Lance Taylor2-1/+7
2010-05-26*** empty log message ***gdbadmin1-1/+1