aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-11-302012-11-30 Oleg Raikhman <oleg@adapteva.com>Joern Rennecke6-149/+173
Joern Rennecke <joern.rennecke@embecosm.com> cpu: * epiphany.cpu (keyword gr-names): Move sb/sl/ip after r9/r10/r12. (load_insn): Add NO-DIS attribute to x, p, d, dpm, dl0, dl0.l. (testset-insn): Add NO_DIS attribute to t.l. (store-insn): Add NO-DIS attribute to x.l, p.l, d.l, dpm.l, dl0.l. (move-insns): Add NO-DIS attribute to cmov.l. (op-mmr-movts): Add NO-DIS attribute to movts.l. (op-mmr-movfs): Add NO-DIS attribute to movfs.l. (op-rrr): Add NO-DIS attribute to .l. (shift-rrr): Add NO-DIS attribute to .l. (op-shift-rri): Add NO-DIS attribute to i32.l. (bitrl, movtl): Add NO-DIS attribute. (op-iextrrr): Add NO-DIS attribute to .l (op-two_operands-float, op-fabs-float): Add NO-DIS attribute to f32.l. (op-fix2float-float, op-float2fix-float, op-fextop-float): Likewise. opcodes: * epiphany-desc.c, epiphany-desc.h, epiphany-opc.c: Regenerate.
2012-11-30Merge g++/xg++ changes from GCCJan-Benedict Glaw5-4/+11
* configure.ac: Merge from GCC. * Makefile.tpl: Dito. * Makefile.in: Dito. * configure: Dito.
2012-11-30gdb/Yao Qi2-5/+13
2012-11-30 Yao Qi <yao@codesourcery.com> * breakpoint.c (print_one_breakpoint_location): Combine two blocks handling 'hit count' together.
2012-11-30gdb/Yao Qi4-20/+27
2012-11-30 Yao Qi <yao@codesourcery.com> * infrun.c (error_is_running, ensure_not_running): Move them to ... * infcmd.c (error_is_running, ensure_not_running): ... here. Make them 'static'. * inferior.h: Remove declarations of error_is_running and ensure_not_running.
2012-11-30gdb/Yao Qi2-1/+6
2012-11-30 Yao Qi <yao@codesourcery.com> * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't check REGNUM >= 0.
2012-11-30gdb/Yao Qi2-2/+8
2012-11-30 Yao Qi <yao@codesourcery.com> * infrun.c: Make the declaration of 'init_infwait_state' static. (init_infwait_state): Make it 'static'.
2012-11-30 * powerpc.c (Target_powerpc::Scan::global): Don't emit relativeAlan Modra2-5/+14
relocs against protected symbols when building 32-bit shared libs.
2012-11-30 * powerpc.cc (Target_powerpc::make_plt_section): Add symtabAlan Modra2-14/+29
param. Call got_section() to make .got. Update all callers and their callers and so on.
2012-11-30 * powerpc.cc (Powerpc_relobj::do_scan_relocs): Make STB_LOCALAlan Modra2-10/+24
_GLOBAL_OFFSET_TABLE_ rather than STB_WEAK. (Output_data_got_powerpc::make_header): Update _GLOBAL_OFFSET_TABLE_ value if it already exists.
2012-11-30*** empty log message ***gdbadmin1-1/+1
2012-11-29opcodes/Roland McGrath2-5/+9
* s390-mkopc.c (file_header): Add const.
2012-11-29daily updateAlan Modra1-1/+1
2012-11-29opcodes/Changelog:Michael Eager5-11/+21
* microblaze-opc.h: Rename INST_TYPE_RD_R1_SPECIAL to INST_TYPE_R1_R2_SPECIAL * microblaze-dis.c (print_insn_microblaze): Same. gas/Changelog * gas/config/tc-microblaze.c: Rename INST_TYPE_RD_R1_SPECIAL to INST_TYPE_R1_R2_SPECIAL, don't set RD for wic.
2012-11-29 * gdb.base/gnu-debugdata.exp (run, pipeline): Don't use lassign.Tom Tromey2-2/+11
2012-11-29 * python/python.c (finalize_python): Cast unused PyGILState_EnsureUlrich Weigand2-1/+6
return value to void to avoid compiler warning.
2012-11-29bfd/Roland McGrath2-4/+8
* elf-nacl.c (segment_eligible_for_headers): Disallow writable segments.
2012-11-29ChangeLog:Ulrich Weigand7-297/+330
* opencl-lang.c (opencl_print_type): New function. (opencl_language_arch_info): Install it. testsuite/ChangeLog: * gdb.opencl/convs_casts.exp: Always expect standard vector type names. * gdb.opencl/datatypes.exp: Likewise. * gdb.opencl/operators.exp: Likewise. * gdb.opencl/vec_comps.exp: Likewise.
2012-11-29 * gdb.texinfo (SVR4 Process Information): Document missingTom Tromey2-0/+20
"info proc" subcommands.
2012-11-29 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf andTom Tromey4-43/+7
xvasprintf. * common/common-utils.c (xasprintf, xvasprintf): Remove. * common/common-utils.h (xasprintf, xvasprintf): Remove.
2012-11-29New testcase for interface type printing.Jerome Guitton5-0/+153
gdb/testsuite/ChangeLog: * gdb.ada/iwide: New testcase.
2012-11-29Strip interface tags from visible fieldsJerome Guitton2-2/+23
The following Ada type: type Circle is new Shape and Drawable with record Center : Point; Radius : Natural; end record; ...is displayed as follow in GDB: (gdb) ptype circle type = new classes.shape with record V51s: ada.tags.interface_tag; center: classes.point; radius: natural; end record V51s is an internal field that is of no interest for the user. It should not be displayed. gdb/ChangeLog: * ada-lang.c (ada_is_interface_tag): New function. (ada_is_ignored_field): Add interface tags to the list of ignored fields.
2012-11-29Full view of interface-wide typesJerome Guitton6-22/+165
For displaying the full view of a class-wide object, GDB relies on the assumption that this view will have the same address as the address of the object. In the case of simple inheritance, this assumption is correct; the proper type is deduced by decoding the tag of the object and converting the result to this full-view type. Consider for example an abstract class Shape, a child Circle which implements an interface Drawable, and the corresponding following objects: My_Circle : Circle := ((1, 2), 3); My_Shape : Shape'Class := Shape'Class (My_Circle); My_Drawable : Drawable'Class := Drawable'Class (My_Circle); To display My_Shape, the debugger first extracts the tag (an internal field, usually the first one of the record): (gdb) p my_shape'address $2 = (system.address) 0x8063e28 (gdb) x/x my_shape'address 0x8063e28 <classes__my_shape>: 0x08059ec4 Then the type specific data and the expanded name of the tag is read from there: (gdb) p my_shape'tag $3 = (access ada.tags.dispatch_table) 0x8059ec4 (classes.circle) To get the full view, the debugger converts to the corresponding type: (gdb) p {classes.circle}0x8063e28 $4 = (center => (x => 1, y => 2), radius => 3) Now, in the case of multiple inheritance, the assumption does not hold anymore. The address that we have usually points to some place lower. The offset to the original address is saved in the field Offset_To_Top of the metadata that are above the tag, at address obj'tag - 8. In the case of my_shape, this offset is 0: (gdb) x/x my_shape'tag - 8 0x8059ebc <classes__circleT+12>: 0x00000000 ...but in the case of an interface-wide object, it is not null: (gdb) x/x my_drawable'tag - 8 0x8063b28 <classes__classes__circle_classes__drawable1T56s+12>: 0x00000004 (gdb) p {classes.circle}(my_drawable'address - 4) $7 = (center => (x => 1, y => 2), radius => 3) The following change handles this relocation in the most common cases. Remaining cases that are still to be investigated are signaled by comments. gdb/ChangeLog: * ada-lang.h (ada_tag_value_at_base_address): New function declaration. * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address): New functions. (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address relocate the class-wide value if need be. (ada_value_struct_elt, ada_value_ind, ada_coerce_ref): Let ada_tag_value_at_base_address relocate the class-wide access/ref before dereferencing it. * ada-valprint.c (ada_val_print_1): Relocate to base address before displaying the content of an interface-wide ref. gdb/testsuite/ChangeLog: * gdb.ada/ptype_tagged_param.exp: Adjust expected output in ptype test.
2012-11-29Update gdb.ada/variant_record_packed_arrayJerome Guitton2-0/+12
gdb/testsuite/ChangeLog: * gdb.ada/variant_record_packed_array.exp: Test expressions of the form {VARIANT_TYPE}ADDRESS.
2012-11-29Handle other cases than EVAL_NORMAL in the default caseJerome Guitton2-1/+7
In the evaluation of an expression in Ada mode, the default case unwraps the argument unconditionally. For an object of a variant record type, this unwrapping builds a fixed type from the specification of the variant type and the actual values of the object's discriminants. It means that unwrapping needs the "proper" value for the object, not just a zero value with the proper type. When not in EVAL_NORMAL, we cannot assume that the evaluation returns such a proper value; it may well return a zero value of the appropriate type e.g in EVAL_AVOID_SIDE_EFFECTS. It is wrong to try to unwrap in that case. In particular, a problem shows up when using expression of the form {VARIANT_TYPE}OBJ. GDB first evaluates this expression in EVAL_AVOID_SIDE_EFFECTS to compute the type, the evaluation of OBJ in most cases returns a zero value of its type, and as UNOP_MEMVAL is mapped to the default case its evaluation ends up trying to read memory around address 0. gdb/ChangeLog: * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
2012-11-29Fix attribution for old patch:Hans-Peter Nilsson1-1/+2
2009-10-19 Edgar E. Iglesias <edgar@axis.com> Hans-Peter Nilsson <hp@axis.com> * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_DTPREL>: Don't subtract the size of the TLS block for non-shared objects from the relocation.
2012-11-29GDB 7.5.1 released.gdbadmin1-0/+4
2012-11-29 * Makefile.in: Regenerate.Maciej W. Rozycki2-0/+6
2012-11-29gdb/Yao Qi2-1/+9
2012-11-29 Yao Qi <yao@codesourcery.com> Tom Tromey <tromey@redhat.com> * eval.c (evaluate_subexp_standard): Get the correct pointer type for TYPE_CODE_MEMBERPTR.
2012-11-29gdb/doc/Yao Qi2-1/+7
2012-11-29 Yao Qi <yao@codesourcery.com> PR gdb/1477. * gdb.texinfo (Print Settings): Correct the default 'demangle-style' to 'auto' instead of 'gnu'.
2012-11-29*** empty log message ***gdbadmin1-1/+1
2012-11-28daily updateAlan Modra1-1/+1
2012-11-282012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>Edjunior Barbosa Machado2-15/+5
* rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking, since now it is being done by binutils' powerpc_init_dialect().
2012-11-28 PR gdb/14290:Tom Tromey4-17/+68
* solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function. (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open): Use it. * gdb_bfd.h (gdb_bfd_mark_parent): Declare. * gdb_bfd.c (gdb_bfd_mark_parent): New function. (gdb_bfd_openr_next_archived_file): Use it.
2012-11-28 gas/Julian Brown5-7/+79
* config/tc-arm.c (md_apply_fix): Fix conversion of BL to BLX for local targets in Thumb mode. gas/testsuite/ * gas/arm/bl-local-2.s: New test. * gas/arm/bl-local-2.d: New.
2012-11-282012-11-28 Markus Metzger <markus.t.metzger@intel.com>Markus Metzger8-4/+23
gdb/ * configure.ac: Check for linux/perf_event.h. * config.in: Regenerated. * configure: Regenerated. gdb/gdbserver/ * configure.ac: Check for linux/perf_event.h. * config.in: Regenerated. * configure: Regenerated.
2012-11-28 * resbin.c (bin_to_res_version): Correct offsetKai Tietz2-9/+11
and length calculation of resource. (get_version_header): Apply alignement of 4 to len.
2012-11-28gdb/Yao Qi4-0/+12
2012-11-28 Yao Qi <yao@codesourcery.com> * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to abbreviate 'delete tracepoints' to 'delete tr'. * corefile.c (_initialize_core): Call add_alias_cmd to abbreviate 'set gnutarget' to 'set g'. * value.c (_initialize_values): Call add_alias_cmd to abbreviate 'show convenience' to 'show conv'.
2012-11-28Disable libsanitizer for non-C++ builds.Jan-Benedict Glaw3-4/+9
* configure.ac (noconfigdirs): Merge from GCC. * configure: Regenerate.
2012-11-28*** empty log message ***gdbadmin1-1/+1
2012-11-27daily updateAlan Modra1-1/+1
2012-11-27binutils/testsuite/Roland McGrath11-38/+114
* lib/binutils-common.exp (is_zlib_supported): New function. * lib/utils-lib.exp (run_dump_test): If as options include --compress-debug-sections and zlib is not available, report the test as unsupported. * binutils-all/compress.exp: Bail out if zlib is not available. * binutils-all/objdump.exp (objdump compressed debug): Mark unsupported if zlib is not available. * binutils-all/readelf.exp (readelf_compressed_wa_test): Likewise. gas/testsuite/ * lib/gas-defs.exp (run_dump_test): If as options include --compress-debug-sections and zlib is not available, report the test as unsupported. ld/testsuite/ * ld-elf/compress.exp: Bail out if zlib is not supported. * lib/ld-lib.exp (run_dump_test): If as options include --compress-debug-sections and zlib is not available, report the test as unsupported.
2012-11-27ld/testsuite/Roland McGrath3-5/+11
* ld-elf/flags1.d: Add *-*-nacl* to xfail list. * ld-elf/orphan-region.d: Likewise.
2012-11-27 PR ld/14776Nick Clifton2-14/+19
* ld.texinfo: Fix spelling mistakes.
2012-11-27Fix sparc-solaris build failure (sparc-sol2-nat.c)Joel Brobecker2-2/+9
Hello, The recent patch for %fsr handling had a couple of tiny mistakes that cause the build to fail on sparc-solaris. Fixed thusly. gdb/ChangeLog: * sparc-sol2-nat.c (supply_gregset): Fix first parameter in call to sparc_supply_fpregset. (fill_fpregset): Fix first parameter in call to sparc_collect_fpregset. Tested on sparc-solaris by rebuilding GDB. Will check it in. Thanks, -- Joel
2012-11-27gdb/Yao Qi4-17/+36
2012-11-27 Daniel Jacobowitz <dan@codesourcery.com> Kazu Hirata <kazu@codesourcery.com> Yao Qi <yao@codesourcery.com> * objfiles.c (init_entry_point_info): Call gdbarch_convert_from_func_ptr_addr and gdbarch_addr_bits_remove here ... (entry_point_address_query): ... instead of here. * solib-svr4.c (exec_entry_point): Call gdbarch_addr_bits_remove. * symfile.c (generic_load): Call gdbarch_addr_bits_remove on the entry address.
2012-11-27gdb/Yao Qi5-13/+85
2012-11-27 Daniel Jacobowitz <dan@codesourcery.com> Yao Qi <yao@codesourcery.com> * eval.c (evaluate_subexp_standard): Add handling of TYPE_CODE_MEMBERPTR when calling functions. Correct the result of ptype for calling a TYPE_CODE_METHODPTR. gdb/testsuite/ 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com> * gdb.cp/member-ptr.cc (class Diamond): Add func_ptr. (func): New function. (main): Initialize diamond.func_ptr and add diamond_pfunc_ptr. * gdb.cp/member-ptr.exp: Add new tests for ptype and for pointers to members with pointer-to-function type.
2012-11-27gdb/Yao Qi2-5/+12
2012-11-27 Yao Qi <yao@codesourcery.com> * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args warning. Add i18n markup.
2012-11-27*** empty log message ***gdbadmin1-1/+1
2012-11-26ld/Roland McGrath5-14/+26
* emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse): Copy last elf32.em here too. * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise. * emultempl/mmixelf.em (gld${EMULATION_NAME}_before_parse): Likewise. * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
2012-11-26daily updateAlan Modra1-1/+1