aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-12-02gdb/Jan Kratochvil15-7/+764
* Makefile.in (XMLFILES): Add library-list-svr4.dtd. * features/library-list-svr4.dtd: New file. * remote.c (PACKET_qXfer_libraries_svr4): New. (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4. (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4. * solib-svr4.c (struct svr4_library_list): New. [HAVE_LIBEXPAT]: Include xml-support.h. [HAVE_LIBEXPAT] (svr4_library_list_start_library) [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes) [HAVE_LIBEXPAT] (svr4_library_list_children) [HAVE_LIBEXPAT] (svr4_library_list_attributes) [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries) [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries) [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New. (svr4_read_so_list): Extend the corruption message by addresses. (svr4_current_sos): New variable library_list, call svr4_current_sos_via_xfer_libraries. * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4. gdb/gdbserver/ * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug) (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4): New. (struct linux_target_ops): Install linux_qxfer_libraries_svr4. * linux-low.h (struct process_info_private): New member r_debug. * server.c (handle_qxfer_libraries): Call the_target->qxfer_libraries_svr4. (handle_qxfer_libraries_svr4): New function. (qxfer_packets): New entry "libraries-svr4". (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4. * target.h (struct target_ops): New member qxfer_libraries_svr4. * remote.c (remote_xfer_partial): Call add_packet_config_cmd for PACKET_qXfer_libraries_svr4. gdb/doc/ * gdb.texinfo (Requirements, Remote Protocol): Reference also `Library List Format for SVR4 Targets'. (General Query Packets): New item qXfer:libraries-svr4:read. (Library List Format for SVR4 Targets): New node. gdb/testsuite/ * gdb.base/solib-corrupted.exp: Suppress test on is_remote target. (corrupted list): Adjust the expectation.
2011-12-02 * readelf.c (ia64_process_unwind): Turn into a void funtion.Nick Clifton2-68/+132
(hppa_process_unwind): Likewise. (arm_process_unwind): Likewise. (process_unwind): Likewise. (arm_get_section_word): Rename to get_unwind_section_word. Add sym_name parameter to return the offset into the string table of the symbol associated with the reloc applied to the word. (decode_tic6x_unwind_regmask): Add NULL argument to invocation of get_unwind_section_word. (dump_arm_unwind): Likewise. (decode_arm_unwind_bytecode): Prepend a comma when *not* the first register in a list. (decode_arm_unwind): If the returned function address is 0 and a valid symname offset is provided use that to compute the name associated with the entry. Add extra checks of the compact model index entry.
2011-12-02gdb/Jan Kratochvil8-1/+230
PR threads/13448 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u. For DW_OP_GNU_push_tls_address increment the value, new comment for it. gdb/testsuite/ PR threads/13448 * gdb.dwarf2/dw2-var-zero-addr.S: New file. * gdb.dwarf2/dw2-var-zero-addr.exp: New file. * gdb.threads/tls-var-main.c: New file. * gdb.threads/tls-var.c: New file. * gdb.threads/tls-var.exp: New file.
2011-12-02gdb/testsuite/Jan Kratochvil4-16/+29
PR testsuite/12649 * gdb.trace/collection.exp (gdb_collect_return_test): Import gdb_prompt. Protect gdb_test_multiple by final $gdb_prompt match. * gdb.trace/tspeed.exp (gdb_fast_trace_speed_test): Likewise. * gdb.trace/tstatus.exp (run_trace_experiment): Likewise. (test_tracepoints): Likewise.
2011-12-02gdb/Jan Kratochvil8-2/+471
PR breakpoints/13346 * dwarf2read.c (process_psymtab_comp_unit): Set PSYMTABS_ADDRMAP_SUPPORTED. * psympriv.h (struct partial_symtab): Comment textlow and texthigh validity. New field psymtabs_addrmap_supported. * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on psymtabs_addrmap_supported. (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for !PSYMTABS_ADDRMAP_SUPPORTED. (dump_psymtab, maintenance_info_psymtabs): Print also psymtabs_addrmap_supported. gdb/testsuite/ PR breakpoints/13346 * gdb.dwarf2/dw2-objfile-overlap-inner.S: New file. * gdb.dwarf2/dw2-objfile-overlap-outer.S: New file. * gdb.dwarf2/dw2-objfile-overlap.exp: New file.
2011-12-02 * python/py-type.c (type_object_methods): Fix "array" doc string.Doug Evans2-2/+8
2011-12-02*** empty log message ***gdbadmin1-1/+1
2011-12-01Make sure all types in gdb.ada/homonym testcase are used...Joel Brobecker4-0/+56
Otherwise, the compiler does not generate any debug info for them. This fixes 3 FAILs: FAIL: gdb.ada/homonym.exp: ptype local_type_subtype at BREAK_1 FAIL: gdb.ada/homonym.exp: ptype int_type at BREAK_1 FAIL: gdb.ada/homonym.exp: ptype local_type_subtype at BREAK_2 gdb/testsuite/ChangeLog: * gdb.ada/homonym/pck.ads, gdb.ada/homonym/pck.adb: New files. * gdb.ada/homonym/homonym.adb: For use of all types defined locally inside both Get_Value subprograms.
2011-12-01daily updateAlan Modra1-1/+1
2011-12-01gdb/testsuite/Jan Kratochvil2-1/+7
Fix racy FAILs. * gdb.base/foll-exec.exp (zap_session): Use gdb_test_no_output instead of send_gdb.
2011-12-01 * gdb.texinfo (Writing a Pretty-Printer): Use append method, notTom Tromey2-1/+6
add.
2011-12-01 * elf32-m68k.c (elf_m68k_check_relocs) <R_68K_8, R68K_16, R_68K_32>: ForNick Clifton2-2/+11
non-SEC_ALLOC sections break before GOT and PLT accounting.
2011-12-01 * emultempl/spuelf.em (spu_elf_relink): Use pex_one in placeNick Clifton2-3/+19
of execvp.
2011-12-01http://sourceware.org/ml/gdb-patches/2011-11/msg00778.htmlAndrew Burgess2-4/+11
* source.c (print_source_lines_base): Fix missing braces on else clause leading to additional output.
2011-12-01 * elf32-cris.c (cris_elf_check_relocs) <plt accounting forHans-Peter Nilsson2-5/+12
R_CRIS_8, R_CRIS_16, and R_CRIS_32>: Move early break for non-SEC_ALLOC sections before GOT and PLT accounting.
2011-12-01*** empty log message ***gdbadmin1-1/+1
2011-11-30daily updateAlan Modra1-1/+1
2011-11-30ChangeLog:Ulrich Weigand11-142/+319
* s390-nat.c (SUBOFF): Remove. (s390_native_supply, s390_native_collect): New functions. (supply_gregset, supply_fpregset): Use s390_native_supply. (fill_gregset, fill_fpregset): Use s390_native_collect. * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment. (s390_unwind_pseudo_register): New function. (s390_prologue_frame_unwind_cache): Unwind PSW address and mask registers instead of PC and CC. (s390_backchain_frame_unwind_cache): Likewise. (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or full GPR pseudos. (s390_trad_frame_prev_register): New function. (s390_frame_prev_register): Use it. (s390_sigtramp_frame_prev_register): Likewise. (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register. (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use special callback to unwind any pseudo. * features/s390-core32.xml: Add pswm/pswa to save/restore group. * features/s390-core64.xml: Likewise. * features/s390x-core64.xml: Likewise. * features/s390-linux32.c: Regenerate. * features/s390-linux64.c: Likewise. * features/s390x-linux64.c: Likewise. gdbserver/ChangeLog: * linux-s390-low.c (s390_collect_ptrace_register): Fully convert PSW address/mask between 8-byte and 16-byte formats. (s390_supply_ptrace_register): Likewise. (s390_get_pc, s390_set_pc): 4-byte PSW address always includes basic addressing mode bit.
2011-11-30 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.Ulrich Weigand2-0/+6
2011-11-30 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARLUlrich Weigand2-3/+15
instruction. Add more diagnostic output.
2011-11-30 * gdb.base/testenv.exp: Skip on remote targets. Unset globalUlrich Weigand2-0/+13
environment variable after test completed.
2011-11-30 * gdb.base/solib-nodir.exp: Skip if remote target.Ulrich Weigand4-3/+12
* gdb.base/gdb.fortran.exp: Use shlib= flag when linking main application. Call gdb_load_shlibs. * gdb.mi/mi-solib.exp: Use mi_load_shlibs instead of gdb_load_shlibs.
2011-11-30*** empty log message ***gdbadmin1-1/+1
2011-11-29daily updateAlan Modra1-1/+1
2011-11-29opcode/Andrew Pinski19-17/+221
2011-11-29 Andrew Pinski <apinski@cavium.com> * mips-dis.c (mips_arch_choices): Add Octeon+. * mips-opc.c (IOCT): Include Octeon+. (IOCTP): New macro. (mips_builtin_opcodes): Add "saa" and "saad". bfd/ 2011-11-29 Andrew Pinski <apinski@cavium.com> * archures.c (bfd_mach_mips_octeonp): New macro. * bfd-in2.h: Regenerate. * bfd/cpu-mips.c (I_mipsocteonp): New enum value. (arch_info_struct): Add bfd_mach_mips_octeonp. * elfxx-mips.c (mips_set_isa_flags): Add bfd_mach_mips_octeonp. (mips_mach_extensions): Add bfd_mach_mips_octeonp. include/opcodes/ 2011-11-29 Andrew Pinski <apinski@cavium.com> * mips.h (INSN_CHIP_MASK): Update according to INSN_OCTEONP. (INSN_OCTEONP): New macro. (CPU_OCTEONP): New macro. (OPCODE_IS_MEMBER): Add Octeon+. (M_SAA_AB, M_SAAD_AB, M_SAA_OB, M_SAAD_OB): New enum values. gas/ 2011-11-29 Andrew Pinski <apinski@cavium.com> * config/tc-mips.c (CPU_IS_OCTEON): New macro function. (CPU_HAS_SEQ): Change to use CPU_IS_OCTEON. (NO_ISA_COP): Likewise. (macro) <ld_st>: Add support when off0 is true. Add support for M_SAA_AB, M_SAA_OB, M_SAAD_OB and M_SAAD_AB. (mips_cpu_info_table): Add octeon+. * doc/c-mips.texi: Document octeon+ as an acceptable value for -march=. gas/testsuite/ 2011-11-29 Andrew Pinski <apinski@cavium.com> * gas/mips/mips.exp: Add octeon+ for an architecture. Run octeon-saa-saad test. (run_dump_test_arch): For Octeon architectures, also try octeon@. * gas/mips/octeon-pref.d: Remove -march=octeon from command line. * gas/mips/octeon.d: Likewise. * gas/mips/octeon-saa-saad.d: New file. * gas/mips/octeon-saa-saad.s: New file
2011-11-29 * ar.c (ranlib_usage): Describe -D.Roland McGrath3-10/+35
(ranlib_main): Parse -D. (ranlib_touch): Set BFD_DETERMINISTIC_OUTPUT under -D. * doc/binutils.texi (ranlib): Describe -D, and also --help/-h/-H.
2011-11-29New gdb.base/infoline.exp testcase.Joel Brobecker3-0/+64
gdb/testsuite/ChangeLog: * gdb.base/infoline.c, gdb.base/infoline.exp: New files.
2011-11-29 PR ld/10144Maciej W. Rozycki10-4/+228
* lib/ld-lib.exp (run_ld_link_tests): Handle sources from other directories. (run_ld_link_exec_tests): Likewise. (run_cc_link_tests): Likewise. * ld-elf/comm-data1.sd: New test. * ld-elf/comm-data1.s: Source for the new test. * ld-elf/comm-data2.sd: New test. * ld-elf/comm-data2.rd: Likewise. * ld-elf/comm-data2.xd: Likewise. * ld-elf/comm-data2.s: Source for the new tests. * ld-elf/comm-data.exp: New file. * ld-mips-elf/comm-data.exp: Likewise.
2011-11-29 * MAINTAINERS (Write After Approval): Add myself to the list.Andrey Smirnov2-0/+5
2011-11-29gdb/Sanjoy Das2-4/+10
* jit.c (add_objfile_entry, jit_reader_try_read_symtab) (jit_bfd_try_read_symtab): Fix comments.
2011-11-29Record Mike Frysinger as a sim Global Maintainer.Joel Brobecker2-0/+9
sim/ChangeLog: * maintainers (global maintainers): new section. add mike frysinger.
2011-11-29[sim]DJ Delorie20-0/+8649
* configure.tgt: Add rl78 support. * configure: Regenerate. * rl78: New directory. * MAINTAINERS: Add myself as RL78 maintainer. [gdb] * NEWS: Mention RL78 simulator.
2011-11-29Further fix the documentation in struct quick_symbol_functionsJoel Brobecker2-7/+13
gdb/ChangeLog: * symfile.h (struct quick_symbol_functions): Fix the documentation of field map_matching_symbols, as symbols are sorted using strcmp_iw_ordered, not strcmp_iw.
2011-11-29Update documentation in struct quick_symbol_functionsJoel Brobecker2-4/+9
Paul sent me this documentiion update when I asked him a question about compare_names in ada-lang.c. gdb/ChangeLog: * symfile.h (struct quick_symbol_functions): Update the documentation for field map_matching_symbols.
2011-11-29wrong value returned by ada-lang.c:compare_namesJoel Brobecker9-1/+163
The ada-lang.c:compare_names function returns the wrong value when the first string starts with the same contents as the second string, followed by '_' and then some characters that do not make a symbol name suffix. For instance: string1 = "generics__test_generics__instance__print" string2 = "generics__test_generics" In that case, compare_names (string1, string2) return -1, when clearly, string1 is greater than string2. A consequence of this problem is that GDB may fail to lookup "generics.test_generics" from our partial symtabs, because partial symbols are ordered by strcmp_iw_ordered: (gdb) b generics.test_generics Function "generics.test_generics" not defined. Make breakpoint pending on future shared library load? (y or [n]) gdb/ChangeLog: * ada-lang.c (compare_names): Fix wrong return value in case string1 starts with the same contents as string2, followed by an underscore that do not start a symbol name suffix. gdb/testsuite/ChangeLog: * gdb.ada/fullname_bp: New testcase.
2011-11-29*** empty log message ***gdbadmin1-1/+1
2011-11-28daily updateAlan Modra1-1/+1
2011-11-28 PR binutils/13421Nick Clifton2-61/+96
* readelf.c (arm_section_get_word): Add descriptive comments. Initliase the rel_type field of the arm_sec structure. (expand_prel31): Rename to arm_expand_prel31. (dump_arm_unwind): Use new name. Print the function name based on the function address entry.
2011-11-282011-11-28 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon7-21/+57
PR python/13369 PR python/13374 * python/python.c (gdbpy_decode_line): Do not acquire GIL. * python/py-inferior.c (inferior_to_inferior_object): Ditto. * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB exceptions. * python/py-type.c (typy_strip_typedefs): Ditto. (typy_legacy_template_argument): Ditto. * python/py-inferior.c (inferior_to_inferior_object): Ditto. * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
2011-11-28*** empty log message ***gdbadmin1-1/+1
2011-11-27daily updateAlan Modra1-1/+1
2011-11-27remove use of sprintf_vma in remote_get_tracepoint_statusJoel Brobecker2-5/+8
This function takes a VMA and was forcing us to perform a cast to compile without warning on one platform. Except that the cast caused a warning on sparc-solaris. This patch fixes the problem by using phex_nz instead. gdb/ChangeLog: * remote.c (remote_get_tracepoint_status): Delete addrbuf local variable. Avoid use of sprintf_vma.
2011-11-27gdb/Sanjoy Das2-7/+19
Fix regression in jit.exp. * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab) (jit_register_code): Set the jit_objfile_data field to the correct value.
2011-11-27*** empty log message ***gdbadmin1-1/+1
2011-11-26daily updateAlan Modra1-1/+1
2011-11-26*** empty log message ***gdbadmin1-1/+1
2011-11-25gdb/testsuite/Jan Kratochvil2-5/+9
Code cleanup. * gdb.reverse/i386-sse-reverse.exp (continue to end of sse4_test): Convert send_gdb and gdb_expect to gdb_test_multiple.
2011-11-25gdb/testsuite/Jan Kratochvil2-1/+9
PR testsuite/12649 * gdb.reverse/i386-sse-reverse.exp (continue to end of sse_test #2): Wrap send_gdb into a new gdb_test.
2011-11-25gdb/testsuite/Jan Kratochvil2-1/+5
* gdb.base/jit-so.exp (one_jit_test): Add testcase name to log message.
2011-11-25daily updateAlan Modra1-1/+1