aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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-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-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*** empty log message ***gdbadmin1-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-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 * 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-29[sim]DJ Delorie2-0/+8
* 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-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-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-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-252011-11-25  Uros Bizjak  <ubizjak@gmail.com>Ulrich Weigand2-0/+100
* alpha-tdep.c (br_opcode): New. (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto. (alpha_deal_with_atomic_sequence): New function. (alpha_gdbarch_init): Handle single stepping of atomic sequences with alpha_deal_with_atomic_sequence.
2011-11-252011-11-24 Stan Shebs <stan@codesourcery.com>Stan Shebs2-2/+6
* tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
2011-11-25*** empty log message ***gdbadmin1-1/+1
2011-11-242011-11-24 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-281/+483
* machoread.c (oso_el): Remove num_Sections, symbols, offsets fields. Add oso_sym, end_sym and nbr_syms. (macho_register_oso): Change interface. (macho_symtab_add_minsym): New function. (macho_symtab_read): Rewritten. (get_archive_prefix_len): Remove trailing blanks. (oso_el_compare_name): Add comment. (struct macho_sym_hash_entry): New structure. (macho_relocate_common_syms): Remove. (macho_sym_hash_newfunc): New function. (macho_resolve_oso_sym_with_minsym): Likewise. (macho_add_oso_symfile): Rewritten. (macho_symfile_read_all_oso): Remove trailing blanks. Adjust code to free oso vector. (macho_symfile_read): Likewise. Move code to initialize minimal symbol
2011-11-24 * mips-tdep.c (extended_offset): Fix formatting.Maciej W. Rozycki2-3/+9
2011-11-24*** empty log message ***gdbadmin1-1/+1
2011-11-23 * lib/mi-support.exp (varobj_tree): New namespace and procs.Keith Seitz2-0/+316
(mi_varobj_tree_test_children_callback): New proc. (mi_walk_varobj_tree): New proc.
2011-11-23 * dwarf2read.c (dw2_lookup_symtab): Add comment.Doug Evans2-0/+12
(dw2_expand_symtabs_with_filename): Ditto. (dw2_expand_symtabs_matching): Ditto. (dw2_map_symbol_filenames): Ditto.
2011-11-23Minor reformatting in ada-lang.c:assign_aggregateJoel Brobecker2-16/+20
No code change. gdb/ChangeLog: From Andrey Smirnov <andrew.smirnov@gmail.com>: * ada-lang.c (assign_aggregate): Minor reformatting.
2011-11-23fix -Wshadow warning inside ada-lang.c:assign_aggregateJoel Brobecker2-2/+6
gdb/ChangeLog: From Andrey Smirnov <andrew.smirnov@gmail.com>: * ada-lang.c (assign_aggregate): Remove declaration of local variable `i' which is shadowing another variable with the same name declared in the outer scope.
2011-11-23ada-lang.c: Rename function base_type into get_base_typeJoel Brobecker2-7/+12
This avoids shadowing issues with variables named base_type. gdb/ChangeLog: * ada-lang.c (get_base_type): Renames base_type. Adjust all calls throughout this file.
2011-11-23Fix compilation error in gdb-dlfcn.c (on Windows)Joel Brobecker2-1/+6
gdb/ChangeLog: * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to FormatMessage.
2011-11-23*** empty log message ***gdbadmin1-1/+1
2011-11-22gdbTom Tromey14-41/+288
PR mi/8444: * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK) (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY) (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants. * mi/mi-common.c (async_reason_string_lookup): Add new reasons. * breakpoint.c (print_it_catch_fork, print_it_catch_vfork) (print_it_catch_syscall, print_it_catch_exec) (internal_bkpt_print_it): Use ui_out. Emit stop reason. (bpstat_print): Add 'kind' argument. Handle TARGET_WAITKIND_LOADED. * infrun.c (normal_stop): Update for bpstat_print change. Don't handle TARGET_WAITKIND_LOADED here. * breakpoint.h (bpstat_print): Update. gdb/testsuite * lib/mi-support.exp (mi_run_cmd_full): Rename from mi_run_cmd. Add "use_mi_command" argument. (mi_run_cmd, mi_run_with_cli): New procs. * gdb.mi/solib-lib.c: New file. * gdb.mi/solib-main.c: New file. * gdb.mi/mi-solib.exp: New file. gdb/doc * gdb.texinfo (GDB/MI Async Records): Document new *stopped reasons.
2011-11-22 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.Tom Tromey2-0/+5
2011-11-22 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.Tom Tromey3-11/+16
Use static_assert to check the size of async_reason_string_lookup. * common/gdb_assert.h (static_assert): New macro.
2011-11-22 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branchAlan Modra2-8/+13
destination calculation. Don't expect >> to sign extend. Don't add a break if branch lands inside the sequence anywhere.