aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-02-09*** empty log message ***gdbadmin1-1/+1
2012-02-08daily updateAlan Modra1-1/+1
2012-02-08 * gdb.python/py-symbol.exp: Use lookup_global_symbol for testsTom Tromey2-4/+10
before inferior is started.
2012-02-08Rename la_get_symbol_name_match_p into la_get_symbol_name_cmpJoel Brobecker13-26/+42
The la_get_symbol_name_match_p language hook was poorly named, as it suggested that the function should return nonzero if the names match, whereas it is the exact opposite. This patch therefore renames the hook and associated typedef, as well some of the code that uses that hook. gdb/ChangeLog: * language.h (symbol_name_cmp_ftype): Renames symbol_name_match_p_ftype. (struct language_defn)[la_get_symbol_name_cmp]: Renames la_get_symbol_name_match_p. * ada-lang.c (ada_get_symbol_name_cmp): Renames ada_get_symbol_name_match_p. Update comment. (ada_language_defn)[la_get_symbol_name_cmp]: Update value. * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]: Renames symbol_name_match_p. Update field type. (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust. * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by "la_get_symbol_name_cmp" in comments. * language.c: Likewise.
2012-02-08 * gas/i386/x86-64-disp32.d: Fix lable-pattern.Kai Tietz2-1/+5
2012-02-08Implement Intel Transactional Synchronization ExtensionsH.J. Lu30-7256/+19332
gas/ 2012-02-08 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (HLE_PREFIX): New. (check_hle): Likewise. (_i386_insn): Add have_hle. (cpu_arch): Add .hle and .rtm. (md_assemble): Call check_hle if i.have_hle isn't zero. (parse_insn): Set i.have_hle to 1 for HLE prefix. (output_jump): Support up to 2 byte opcode. * doc/c-i386.texi: Document hle/.hle and rtm/.rtm. gas/testsuite/ 2012-02-08 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/hle-intel.d: New. * gas/i386/hle.d: Likewise. * gas/i386/hle.s: Likewise. * gas/i386/hlebad.l: Likewise. * gas/i386/hlebad.s: Likewise. * gas/i386/rtm-intel.d: Likewise. * gas/i386/rtm.d: Likewise. * gas/i386/rtm.s: Likewise. * gas/i386/x86-64-hle-intel.d: Likewise. * gas/i386/x86-64-hle.d: Likewise. * gas/i386/x86-64-hle.s: Likewise. * gas/i386/x86-64-hlebad.l: Likewise. * gas/i386/x86-64-hlebad.s: Likewise. * gas/i386/x86-64-rtm-intel.d: Likewise. * gas/i386/x86-64-rtm.d: Likewise. * gas/i386/x86-64-rtm.s: Likewise. * gas/i386/i386.exp: Run hle, hle-intel, hlebad x86-64-hle, rtm, rtm-intel, x86-64-hle-intel, x86-64-hlebad, x86-64-rtm and x86-64-rtm-intel. include/opcode/ 2012-02-08 H.J. Lu <hongjiu.lu@intel.com> * i386.h (XACQUIRE_PREFIX_OPCODE): New. (XRELEASE_PREFIX_OPCODE): Likewise. opcodes/ 2012-02-08 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (HLE_Fixup1): New. (HLE_Fixup2): Likewise. (HLE_Fixup3): Likewise. (Ebh1): Likewise. (Evh1): Likewise. (Ebh2): Likewise. (Evh2): Likewise. (Ebh3): Likewise. (Evh3): Likewise. (MOD_C6_REG_7): Likewise. (MOD_C7_REG_7): Likewise. (RM_C6_REG_7): Likewise. (RM_C7_REG_7): Likewise. (XACQUIRE_PREFIX): Likewise. (XRELEASE_PREFIX): Likewise. (dis386): Use Ebh1/Evh1 on add, adc, and, btc, btr, bts, cmpxchg, dec, inc, neg, not, or, sbb, sub, xor and xadd. Use Ebh2/Evh2 on xchg. Use Ebh3/Evh3 on mov. (reg_table): Use Ebh1/Evh1 on add, adc, and, dec, inc, neg, not, or, sbb, sub and xor. Use Ebh3/Evh3 on mov. Use MOD_C6_REG_7 and MOD_C7_REG_7. (mod_table): Add MOD_C6_REG_7 and MOD_C7_REG_7. (rm_table): Add RM_C6_REG_7 and RM_C7_REG_7. Add xend and xtest. (prefix_name): Handle XACQUIRE_PREFIX and XRELEASE_PREFIX. (CMPXCHG8B_Fixup): Handle HLE prefix on cmpxchg8b. * i386-gen.c (cpu_flag_init): Add CPU_HLE_FLAGS and CPU_RTM_FLAGS. (cpu_flags): Add CpuHLE and CpuRTM. (opcode_modifiers): Add HLEPrefixOk. * i386-opc.h (CpuHLE): New. (CpuRTM): Likewise. (HLEPrefixOk): Likewise. (i386_cpu_flags): Add cpuhle and cpurtm. (i386_opcode_modifier): Add hleprefixok. * i386-opc.tbl: Add HLEPrefixOk=3 to mov. Add HLEPrefixOk to add, adc, and, btc, btr, bts, cmpxchg, dec, inc, neg, not, or, sbb, sub, xor and xadd. Add HLEPrefixOk=2 to xchg with memory operand. Add xacquire, xrelease, xabort, xbegin, xend and xtest. * i386-init.h: Regenerated. * i386-tbl.h: Likewise.
2012-02-08 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): CorrectRainer Orth3-3/+10
%eflags offset. * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs) (amd64_sol2_gregset32_reg_offs): Likewise.
2012-02-08 * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.Alan Modra2-11/+21
(_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear the correct h->u.weakdef.
2012-02-082012-02-08 Joel Brobecker <brobecker@adacore.com>Tristan Gingold2-0/+11
* solib-darwin.c (darwin_bfd_open): Make sure that the filename of the returned BFD is allocated by GDB.
2012-02-08*** empty log message ***gdbadmin1-1/+1
2012-02-07daily updateAlan Modra1-1/+1
2012-02-07 PR python/12027:Tom Tromey10-5/+137
* python/python-internal.h (frame_object_type): Declare. * python/py-symbol.c (sympy_needs_frame): New function. (sympy_value): New function. (symbol_object_getset): Add "needs_frame". (symbol_object_methods): Add "value". * python/py-frame.c (frame_object_type): No longer static. gdb/doc * gdb.texinfo (Symbols In Python): Document Symbol.needs_frame and Symbol.value. gdb/testsuite * gdb.python/py-symbol.exp: Test Symbol.needs_frame and Symbol.value. * gdb.python/py-symbol.c (qq): Set default value.
2012-02-07 PR python/13599:Tom Tromey9-2/+51
* python/py-symbol.c (sympy_line): New function. (symbol_object_getset): Add "line". gdb/doc * gdb.texinfo (Symbols In Python): Document Symbol.line. gdb/testsuite * gdb.python/py-symbol.c (qq): New global. * gdb.python/py-symbol.exp: Add test for frame-less lookup_symbol. * gdb.python/py-symtab.exp: Fix line number.
2012-02-07 * charset.c (find_charset_names): Check 'in' against NULL.Tom Tromey2-1/+5
2012-02-07 * elf.c (elf_find_function): Don't use internal_elf_sym.Alan Modra4-43/+42
(_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type parameter with asymbol. * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise. * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype. (struct elf_backend_data <maybe_function_sym>): Likewise.
2012-02-07 * gdbtypes.h (struct main_type): Change type of name,tag_name,Doug Evans64-266/+367
and fields.name members from char * to const char *. All uses updated. (struct cplus_struct_type): Change type of fn_fieldlists.name member from char * to const char *. All uses updated. (type_name_no_tag): Update. (lookup_unsigned_typename, lookup_signed_typename): Update. * gdbtypes.c (type_name_no_tag): Change result type from char * to const char *. All callers updated. (lookup_unsigned_typename, lookup_signed_typename): Change type of name parameter from char * to const char *. * symtab.h (struct cplus_specific): Change type of demangled_name member from char * to const char *. All uses updated. (struct general_symbol_info): Change type of name and mangled_lang.demangled_name members from char * to const char *. All uses updated. (symbol_get_demangled_name, symbol_natural_name): Update. (symbol_demangled_name, symbol_search_name): Update. * symtab.c (symbol_get_demangled_name): Change result type from char * to const char *. All callers updated. (symbol_natural_name, symbol_demangled_name): Ditto. (symbol_search_name): Ditto. (completion_list_add_name): Change type of symname,sym_text, text,word parameters from char * to const char *. (completion_list_objc_symbol): Change type of sym_text, text,word parameters from char * to const char *. * ada-lang.c (find_struct_field): Change type of name parameter from char * to const char *. (encoded_ordered_before): Similarly for N0,N1 parameters. (old_renaming_is_invisible): Similarly for function_name parameter. (ada_type_name): Change result type from char * to const char *. All callers updated. * ada-lang.h (ada_type_name): Update. * buildsym.c (hashname): Change type of name parameter from char * to const char *. * buildsym.h (hashname): Update. * dbxread.c (end_psymtab): Change type of include_list parameter from char ** to const char **. * dwarf2read.c (determine_prefix): Change result type from char * to const char *. All callers updated. * f-lang.c (find_common_for_function): Change type of name, funcname parameters from char * to const char *. * f-lang.c (find_common_for_function): Update. * f-valprint.c (list_all_visible_commons): Change type of funcname parameters from char * to const char *. * gdbarch.sh (static_transform_name): Change type of name parameter and result from char * to const char *. * gdbarch.c: Regenerate. * gdbarch.h: Regenerate. * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type of name parameter from char * to const char *. * jv-lang.c (java_primitive_type_from_name): Ditto. (java_demangled_signature_length): Similarly for signature parameter. (java_demangled_signature_copy): Ditto. (java_demangle_type_signature): Ditto. * jv-lang.h (java_primitive_type_from_name): Update. (java_demangle_type_signature): Update. * objc-lang.c (specialcmp): Change type of a,b parameters from char * to const char *. * p-lang.c (is_pascal_string_type): Change type of arrayname parameter from char * to const char *. All callers updated. * p-lang.h (is_pascal_string_type): Update. * solib-frv.c (find_canonical_descriptor_in_load_object): Change type of name parameter from char * to const char *. * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto. * utils.c (fprintf_symbol_filtered): Ditto. * defs.h (fprintf_symbol_filtered): Update. * sparc-tdep.h (sparc_sol2_static_transform_name): Update. * stabsread.h (end_psymtab): Update. * stack.c (find_frame_funname): Change type of funname parameter from char ** to const char **. * stack.h (find_frame_funname): Update. * typeprint.c (type_print): Change type of varstring parameter from char * to const char *. * value.h (type_print): Update. * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter from char * to const char *. All callers updated. (xcoff_end_psymtab): Change type of include_list parameter from char ** to const char **. All callers updated. (swap_sym): Similarly for name parameter. All callers updated. * coffread.c (patch_type): Add (char*) cast to xfree parameter. Use xstrdup. (process_coff_symbol): Use xstrdup. * stabsread.c (stabs_method_name_from_physname): Renamed from update_method_name_from_physname. Change result type from void to char *. All callers updated. (read_member_functions): In has_destructor case, store name in objfile obstack instead of malloc space. In !has_stub case, fix mem leak.
2012-02-07*** empty log message ***gdbadmin1-1/+1
2012-02-06daily updateAlan Modra1-1/+1
2012-02-062012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>Tom Tromey3-2/+8
* configure: Rebuild. * configure.ac: Put -L../bfd and -L../libiberty at the front of LDFLAGS.
2012-02-06 * po/sr.po: New Serbian translation.Nick Clifton4-2/+600
* configure.in (ALL_LINGUAS): Add sr. * configure: Regenerate.
2012-02-06*** empty log message ***gdbadmin1-1/+1
2012-02-05daily updateAlan Modra1-1/+1
2012-02-05*** empty log message ***gdbadmin1-1/+1
2012-02-04daily updateAlan Modra1-1/+1
2012-02-04Add support to GDB for the Renesas rl78 architecture.Kevin Buettner8-0/+1705
2012-02-04*** empty log message ***gdbadmin1-1/+1
2012-02-03daily updateAlan Modra1-1/+1
2012-02-03The remote stub can implement monitor commands which are notPhilippe Waroquiers2-1/+15
known by gdb. Such monitor commands can take a long time to execute. An example of this is the "leak_search" monitor command implemented in the Valgrind gdbserver. Currently, gdb will timeout on such a monitor command. The remote stub however will continue to execute the command and send the output later. Gdb and the remote stub can then be desynchronised : gdb sends a packet, and the reply read from the stub is a previous packet. The change committed uses getpkt_sane to detect a timeout. In this case, it continues the loop. A QUIT; is inserted in the loop to allow the user to stop handling the current command. possibly still creating a desynchronisation between gdb and the stub but that will be upon user request.
2012-02-032012-02-03 Doug Kwan <dougkwan@google.com>Doug Kwan3-16/+21
* arm.cc (Arm_relocate_functions::abs8, Arm_relocate_functions::abs16): Use Bits::has_signed_unsigned_overflow32. (Arm_relocate_functions::thm_abs8): Correct range of overflow check. * reloc.h (Bits class): Change minimum number of bits from 0 to 1 in assertions.
2012-02-03 PR gdb/13596:Tom Tromey3-6/+14
* solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from bfd_lookup_symbol_from_symtab. * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_lookup_symbol_from_symtab.
2012-02-03GDB/MI: crash printing "_task" (Ada) argumentJoel Brobecker5-1/+133
In GDB/MI mode, trying to print the arguments of the frame corresponding to the body of a task ("-stack-list-arguments 1") causes the debugger to crash. This is because the compiler adds an implicit argument to that task body called "_task". mi/mi-cmd-stack.c:list_args_or_locals, which is responsible for printing the value of our arguments, finds that our "_task" symbol is an argument, and thus tries to fing the non-argument equivalent: if (SYMBOL_IS_ARGUMENT (sym)) sym2 = lookup_symbol (SYMBOL_NATURAL_NAME (sym), block, VAR_DOMAIN, (int *) NULL); Unfortunately, it tries using the natural name, which doesn't always work for Ada parameters, in particular those who are internally- generated. In our case, The "_task" parameter's natural name is "<_task>", and that symbol does not exist. So sym2 is NULL, thus causing the crash a little later on when trying to dereference it. We should be using the symbol linkage name in this case, the same way iterate_over_block_arg_vars already does. gdb/ChangeLog: * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols, use SYMBOL_LINKAGE_NAME to find the corresponding non-argument symbol. Add assertion that sym2 is never NULL. gdb/testsuite/ChangeLog: * gdb.ada/mi_task_arg: New testcase.
2012-02-03*** empty log message ***gdbadmin1-1/+1
2012-02-02daily updateAlan Modra1-1/+1
2012-02-022012-02-02 Doug Kwan <dougkwan@google.com>Doug Kwan2-5/+12
* arm.cc (Reloc_stub::stub_type_for_reloc): Use PIC stubs in all position independent outputs, not just shared objects.
2012-02-02 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type ofDoug Evans60-89/+127
"name" parameter to const char ** from char **. All callers updated. (find_pc_partial_function): Ditto. (cache_pc_function_name): Change type to const char * from char *. * symtab.h ((find_pc_partial_function_gnu_ifunc): Update. (find_pc_partial_function): Update. * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change type of "name" parameter to const char * from char *. All uses updated. * arch-utils.c (generic_in_solib_return_trampoline): Change type of "name" parameter to const char * from char *. * arch-utils.h (generic_in_solib_return_trampoline): Update. * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change type of "name" parameter to const char * from char *. * gdbarch.sh (in_solib_return_trampoline): Ditto. * gdbarch.c: Regenerate. * gdbarch.h: Regenerate. * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update. * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update. * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change type of "name" parameter to const char * from char *. * skip.c (skip_function_pc): Ditto. * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto. * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update. * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto. * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto. * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto. * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto. * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto. * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name". * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
2012-02-022012-02-02 Pedro Alves <palves@redhat.com>Pedro Alves2-1/+7
* gdb.reverse/until-precsave.exp: Also put "record save" under the extended timeout.
2012-02-022012-02-02 Pedro Alves <palves@redhat.com>Pedro Alves3-10/+30
* gdb.gdb/complaints.exp: Skip if gdb,noinferiorio is set. * gdb.gdb/selftest.exp (test_with_self): Handle gdb,noinferiorio.
2012-02-022012-02-02 Pedro Alves <palves@redhat.com>Pedro Alves3-36/+45
* gdb.base/term.exp: Rewrite. * gdb.base/term.c: New.
2012-02-022012-02-02 Pedro Alves <palves@redhat.com>Pedro Alves2-5/+52
Try SIGKILL first, then PTRACE_KILL. * linux-low.c (linux_kill_one_lwp): New. (linux_kill_one_lwp): Rename to ... (kill_one_lwp_callback): ... this. Use the new linux_kill_one_lwp.
2012-02-022012-02-02 Pedro Alves <palves@redhat.com>Pedro Alves2-0/+9
* gdb.base/default.exp (run "r" abbreviation, run): Add extended-remote expected output.
2012-02-02gdbserver/Pedro Alves4-0/+26
2012-02-02 Pedro Alves <palves@redhat.com> * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current inferior. gdb/ 2012-02-02 Pedro Alves <palves@redhat.com> * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if the current inferior has no execution. Make sure the current remote process matches gdb's current inferior.
2012-02-022012-02-02 Vidya Praveen (vidya.praveen@atmel.com)Eric B. Weddington2-9/+29
PR bfd/13410 * bfd/elf32-avr.c (elf32_avr_relax_section): Correct the condition that qualifies the candidates for relaxation.
2012-02-02 PR gdb/13405:Tom Tromey2-4/+13
* tui/tui-win.c (parse_scrolling_args): Don't write to possibly read-only memory.
2012-02-022012-02-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+4
* bfdio.c (real_fopen): Remove unused vms_modes variable.
2012-02-02 PR gdb/9307:Tom Tromey5-1/+94
* symtab.c (lookup_language_this): Set block_found. gdb/testsuite * gdb.cp/dispcxx.exp: New file. * gdb.cp/dispcxx.cc: New file.
2012-02-02bfd/Tristan Gingold4-1/+13
2012-02-02 Tristan Gingold <gingold@adacore.com> * mach-o.c (bfd_mach_o_read_header): Silent uninitialized variable warning. gas/ 2012-02-02 Tristan Gingold <gingold@adacore.com> * config/obj-macho.c (obj_mach_o_zerofill): Silent uninitialized variable warning.
2012-02-022012-02-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+5
* archive.c (bfd_slurp_armap): Fix thinko in cast.
2012-02-02 PR gas/13224Nick Clifton2-10/+17
* config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone' to 'is_clone' to avoid shadowing a gloabl. (obj_elf_section): Likewise.
2012-02-02 * binutils-all/readelf.n: Add #pass to cope with targets that addNick Clifton2-0/+6
their own notes.
2012-02-02*** empty log message ***gdbadmin1-1/+1