{"push_id":680356824,"size":74,"distinct_size":4,"ref":"refs/heads/users/hjl/linux/master","head":"158b75db757eae5ea2d8b9da1af129863164cf5e","before":"b1db663641c88c75a00635931b0f70bad99d12c7","commits":[{"sha":"931e5bc3e19d1e279fc28c5cf5571f812c79b8d3","author":{"email":"83c6c717b81de6af9945371cb7d361cdf9403609@adacore.com","name":"Jerome Guitton"},"message":"Non bit-packed packed arrays as variable-length fields\n\nIn the case of non bit-packed arrays, GNAT does not generate its\ntraditional XP encoding; it is not needed. However, it still generates\nthe so-called \"implementation type\" with a P suffix. This\nimplementation type shall be skipped when looking for other\ndescriptive types such as XA encodings for variable-length\nfields.\n\nNote also that there may be an intermediate typedef between the\nimplementation type and its XA description. It shall be skipped\nas well.\n\ngdb/ChangeLog:\n\n        Jerome Guitton  <guitton@adacore.com>\n\t* ada-lang.c (find_parallel_type_by_descriptive_type):\n\tGo through typedefs during lookup.\n\t(to_fixed_array_type): Add support for non-bit packed arrays\n\tas variable-length fields.\n\ngdb/testsuite/ChangeLog:\n\n        * gdb.ada/byte_packed_arr: New testcase.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/931e5bc3e19d1e279fc28c5cf5571f812c79b8d3"},{"sha":"aa7151351ed16c5a4eb1334c9a1af1b06dbb7a99","author":{"email":"83c6c717b81de6af9945371cb7d361cdf9403609@adacore.com","name":"Jerome Guitton"},"message":"Array indexed by non-contiguous enumeration types\n\nIn Ada, index types of arrays can be enumeration types, and enumeration\ntypes can be non-contiguous. In which case the address of elements is\nnot given by the value of the index, but by its position in the enumeration\ntype.\n\nIn other words, in this example:\n\n type Color is (Blue, Red);\n for Color use (Blue => 8, Red => 12, Green => 16);\n\n type A is array (Color) of Integer;\n type B is array (1 .. 3) of Integer;\n\nArrays of type A and B will have the same layout in memory, even if\nthe enumeration Color has a hole in its set of integer value.\n\nSince recently support for such a feature was in ada-lang.c, where the\narray was casted to a regular continuous index range. We were losing\nthe information of index type. And this was not quite working for\nsubranges in variable-length fields; their bounds are expressed using\nthe integer value of the bounds, not its position in the enumeration,\nand there was some confusion all over ada-lang.c as to whether we had\nthe position or the integer value was used for indexes.\n\nThe idea behind this patch is to clean this up by keeping the real\nrepresentation of these array index types and bounds when representing\nthe value, and only use the position when accessing the elements or\ncomputing the length. This first patch fixes the printing of such\nan array.\n\nTo the best of my knowledge, this feature only exists in Ada so it\nshould only affect this language.\n\ngdb/ChangeLog:\n\n        Jerome Guitton  <guitton@adacore.com>:\n        * ada-lang.c (ada_value_ptr_subscript): Use enum position of\n        index to get element instead of enum value.\n        (ada_value_slice_from_ptr, ada_value_slice): Use enum position\n        of index to compute length, but enum values to compute bounds.\n        (ada_array_length): Use enum position of index instead of enum value.\n        (pos_atr): Move position computation to...\n        (ada_evaluate_subexp): Use enum values to compute bounds.\n        * gdbtypes.c (discrete_position): ...this new function.\n        * gdbtypes.h (discrete_position): New function declaration.\n        * valprint.c (val_print_array_elements): Call discrete_position\n        to handle array indexed by non-contiguous enumeration types.\n\ngdb/testsuite/ChangeLog:\n\n        * gdb.ada/arr_enum_with_gap: New testcase.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/aa7151351ed16c5a4eb1334c9a1af1b06dbb7a99"},{"sha":"24da9638e206f9d83c0aa0bd419e16c9d97dd76f","author":{"email":"46ff6e41b02a6ff6bd50cc64faab96b75208d63d@sourceware.org","name":"GDB Administrator"},"message":"Automatic date update in version.in","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/24da9638e206f9d83c0aa0bd419e16c9d97dd76f"},{"sha":"b6de3f9642c58439c31690255c3a4326728da88d","author":{"email":"bb271a05043db396cc975a0c35ecf24f1f8ce1ab@redhat.com","name":"Jan Kratochvil"},"message":"compile: Add one debug message\n\ngdb/ChangeLog\n2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>\n\n\t* compile/compile-object-load.c (compile_object_load): Add\n\tCOMPILE_DEBUG message.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/b6de3f9642c58439c31690255c3a4326728da88d"},{"sha":"0b738f2744178ad33eeb60bcd9bdfb77adb5605b","author":{"email":"bb271a05043db396cc975a0c35ecf24f1f8ce1ab@redhat.com","name":"Jan Kratochvil"},"message":"Add forgotten ChangeLog entry for the previous commit.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/0b738f2744178ad33eeb60bcd9bdfb77adb5605b"},{"sha":"1c88ceb1bedc81dbfd1d076e4a49bbf533b4e238","author":{"email":"bb271a05043db396cc975a0c35ecf24f1f8ce1ab@redhat.com","name":"Jan Kratochvil"},"message":"Code cleanup: Make parts of print_command_1 public\n\nThe later 'compile print' command should share its behavior with the existing\n'print' command.  Make the needed existing parts of print_command_1 public.\n\ngdb/ChangeLog\n2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>\n\n\t* printcmd.c (struct format_data): Move it to valprint.h.\n\t(print_command_parse_format, print_value): New functions from ...\n\t(print_command_1): ... here.  Call them.\n\t* valprint.h (struct format_data): Move it here from printcmd.c.\n\t(print_command_parse_format, print_value): New declarations.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/1c88ceb1bedc81dbfd1d076e4a49bbf533b4e238"},{"sha":"5c65b58a58a4c77b1ec38b4e31549aaa090b4845","author":{"email":"bb271a05043db396cc975a0c35ecf24f1f8ce1ab@redhat.com","name":"Jan Kratochvil"},"message":"compile: Distribute scope, add scope_data\n\nProvide a way to access current 'scope' during the do_module_cleanup stage and\nassociate more data with it.\n\ngdb/ChangeLog\n2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>\n\n\t* cli/cli-script.c (execute_control_command): Update\n\teval_compile_command caller.\n\t* compile/compile-object-load.c (compile_object_load): Add parameters\n\tscope and scope_data.  Set them.\n\t* compile/compile-object-load.h (struct compile_module): Add fields\n\tscope and scope_data.\n\t(compile_object_load): Add parameters scope and scope_data.\n\t* compile/compile-object-run.c (struct do_module_cleanup): Add fields\n\tscope and scope_data.\n\t(compile_object_run): Propagate the fields scope and scope_data.\n\t* compile/compile.c (compile_file_command, compile_code_command):\n\tUpdate eval_compile_command callers.\n\t(eval_compile_command): Add parameter scope_data.  Pass it plus scope.\n\t* compile/compile.h (eval_compile_command): Add parameter scope_data.\n\t* defs.h (struct command_line): Add field scope_data.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/5c65b58a58a4c77b1ec38b4e31549aaa090b4845"},{"sha":"3a9558c494e9b461f752ce26382701d4446f0958","author":{"email":"bb271a05043db396cc975a0c35ecf24f1f8ce1ab@redhat.com","name":"Jan Kratochvil"},"message":"compile: Use -Wall, not -w\n\nFor a reason unknown to me GDB was using -w instead of -Wall for 'compile code'.\nThe problem is later patch for 'compile printf' really needs some warnings to\nbe able to catch for example missing format string parameters:\n\t(gdb) compile printf \"%d\\n\"\nGCC does not seem to be able to cancel -w (there is nothing like -no-w).\n\nBesides that I think even 'compile code' can benefit from -Wall.\n\nThat #ifndef change in print_one_macro() is needed otherwise we get\nmacro-redefinition warnings for the GCC built-in macros (as -w is no\nlonger in effect).  For example, without the #ifndef/#endif one gets:\n\n\tcompile -r -- void _gdb_expr(){int i = 5;}^M\n\t/tmp/gdbobj-xpU1yB/out4.c:4:0: warning: \"__FILE__\" redefined [-Wbuiltin-macro-redefined]^M\n\t/tmp/gdbobj-xpU1yB/out4.c:5:0: warning: \"__LINE__\" redefined^M\n\t...\n\nIt makes more sense to pick the inferior's version of the macros, hence\n#ifndef instead of #undef.\n\nThat new testsuite XFAIL is there as if one changes the struct definition to be\ncompliant with cv-qualifiers (to prevent the warnings):\nstruct struct_type {\n-  struct struct_type *selffield;\n+  volatile struct struct_type *selffield;\nonly then GCC/GDB will hit the crash, described in that GDB PR 18202.\n\n\ngdb/ChangeLog\n2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>\n\n\t* compile/compile-c-support.c (print_one_macro): Use #ifndef.\n\t(generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.\n\t(c_compute_program): Call generate_register_struct after typedefs.\n\t* compile/compile-loc2c.c (push, pushf_register_address)\n\t(pushf_register): Cast to GCC_UINTPTR.\n\t(do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after\n\ttype.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.\n\t(compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.\n\t* compile/compile.c (_initialize_compile): Enable warnings for\n\tCOMPILE_ARGS.\n\ngdb/testsuite/ChangeLog\n2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>\n\n\t* gdb.compile/compile-ops.exp: Cast param to void.\n\t* gdb.compile/compile.exp: Complete type for _gdb_expr.\n\t(compile code struct_object.selffield = &struct_object): Add xfail.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/3a9558c494e9b461f752ce26382701d4446f0958"},{"sha":"83d3415ef530c41af7e1ae98a7add97adb0cf5e0","author":{"email":"bb271a05043db396cc975a0c35ecf24f1f8ce1ab@redhat.com","name":"Jan Kratochvil"},"message":"Code cleanup: compile: func_addr -> func_sym\n\nCurrently the code fetches _gdb_expr address/types at multiple places, guessing\nits parameters at multiple places etc.\n\nFetch it once, verify it has expected type and then rely on it.\n\nWhile the patch tries to clean up the code it is still horrible due to the\nmissing C++ sub-classing.\n\n\ngdb/ChangeLog\n2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>\n\n\t* compile/compile-object-load.c (get_regs_type): Add parameter func_sym.\n\tRely on its parameter count.\n\t(compile_object_load): Replace lookup_minimal_symbol_text by\n\tlookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the\n\treturn value.\n\t* compile/compile-object-load.h (struct compile_module): Replace\n\tfunc_addr by func_sym.\n\t* compile/compile-object-run.c: Include block.h.\n\t(compile_object_run): Reset module variable after it is freed.  Use\n\tFUNC_SYM instead of FUNC_ADDR.  Rely on it.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/83d3415ef530c41af7e1ae98a7add97adb0cf5e0"},{"sha":"36de76f9cc2eea0bd5f1b7ce74ef60e1aa0b27c2","author":{"email":"bb271a05043db396cc975a0c35ecf24f1f8ce1ab@redhat.com","name":"Jan Kratochvil"},"message":"compile: New 'compile print'\n\nIt is planned the existing GDB command 'print' will be able to evaluate its\nexpressions using the compiler.  There will be some option to choose between\nthe existing GDB evaluation and the compiler evaluation.  But as an\nintermediate step this patch provides the expression printing feature as a new\ncommand.\n\nI can imagine it could be also called 'maintenance compile print' as in the\nfuture one should be able to use its functionality by the normal 'print'\ncommand.\n\nThere was a discussion with Eli about the command name:\n\thttps://sourceware.org/ml/gdb-patches/2015-03/msg00880.html\nAs there were no other comments yet I haven't renamed it yet, before there is\nsome confirmation about settlement on the final name.\n\nSupport for the GDB '@' operator to create arrays has been submitted for GCC:\n\t[gcc patch] libcc1: '@' GDB array operator\n\thttps://gcc.gnu.org/ml/gcc-patches/2015-03/msg01451.html\n\n\ngdb/ChangeLog\n2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>\n\t    Phil Muldoon  <pmuldoon@redhat.com>\n\n\t* NEWS (Changes since GDB 7.9): Add compile print.\n\t* compile/compile-c-support.c (add_code_header, add_code_footer)\n\t(c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and\n\tCOMPILE_I_PRINT_VALUE_SCOPE.\n\t* compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)\n\t(COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):\n\tNew.\n\t* compile/compile-object-load.c: Include block.h.\n\t(get_out_value_type): New function.\n\t(compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and\n\tCOMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and\n\tOUT_VALUE_TYPE.\n\t* compile/compile-object-load.h (struct compile_module): Add fields\n\tout_value_addr and out_value_type.\n\t* compile/compile-object-run.c: Include valprint.h and compile.h.\n\t(struct do_module_cleanup): Add fields out_value_addr and\n\tout_value_type.\n\t(do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and\n\tCOMPILE_I_PRINT_VALUE_SCOPE.\n\t(compile_object_run): Propagate out_value_addr and out_value_type.\n\tPass OUT_VALUE_ADDR.\n\t* compile/compile.c: Include valprint.h.\n\t(compile_print_value, compile_print_command): New functions.\n\t(eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.\n\t(_initialize_compile): Update compile code help text.  Install\n\tcompile_print_command.\n\t* compile/compile.h (compile_print_value): New prototype.\n\t* defs.h (enum compile_i_scope_types): Add\n\tCOMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.\n\ngdb/doc/ChangeLog\n2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>\n\n\t* gdb.texinfo (Compiling and Injecting Code): Add compile print.\n\ngdb/testsuite/ChangeLog\n2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>\n\n\t* gdb.compile/compile-print.c: New file.\n\t* gdb.compile/compile-print.exp: New file.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/36de76f9cc2eea0bd5f1b7ce74ef60e1aa0b27c2"},{"sha":"bbec1a5db7d3de1322cdc5a859d0c2a44ae1231f","author":{"email":"64b285df2af30b39a5c8967bdd7812e31d1a9397@gmail.com","name":"Alan Modra"},"message":"[GOLD] Add PowerPC64 -fsplit-stack support\n\nPowerPC64 ELFv1 requires a tweak to find_functions in order to return\ncode addresses, rather than OPD entry addresses.\n\n\t* reloc.cc (Sized_relobj_file::find_functions): Use function_location.\n\t* powerpc.cc (Target_powerpc::do_calls_non_split): New function.\n\t(addi_12_1, addis_2_12, addis_12_1, cmpld_7_12_0): New constants.\n\t(lis_0): Rename from lis_0_0.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/bbec1a5db7d3de1322cdc5a859d0c2a44ae1231f"},{"sha":"4d18dfad9edf822df205edc2c1fe3fe9f1e467b8","author":{"email":"bb271a05043db396cc975a0c35ecf24f1f8ce1ab@redhat.com","name":"Jan Kratochvil"},"message":"compile: Fix detected inferior type\n\ngdb/ChangeLog\n2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>\n\n\t* compile/compile-object-load.c (get_out_value_type): Fix returned type.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/4d18dfad9edf822df205edc2c1fe3fe9f1e467b8"},{"sha":"25070364b0ce33eed46aa5d78ebebbec6accec7e","author":{"email":"e6b730070cb8ff71eb70dcaf29e26324d883b33b@gmail.com","name":"H.J. Lu"},"message":"Don't generate PLT relocations for now binding\n\nThere is no need for PLT relocations with -z now. We can use GOT\nrelocations, which take less space, instead and replace 16-byte .plt\nentres with 8-byte .plt.got entries.\n\nbfd/\n\n\t* elf32-i386.c (elf_i386_check_relocs): Create .plt.got section\n\tfor now binding.\n\t(elf_i386_allocate_dynrelocs): Use .plt.got section for now\n\tbinding.\n\t* elf64-x86-64.c (elf_x86_64_check_relocs): Create .plt.got\n\tsection for now binding.\n\t(elf_x86_64_allocate_dynrelocs): Use .plt.got section for now\n\tbinding.\n\nld/testsuite/\n\n\t* ld-i386/i386.exp: Run PR ld/17689 tests with -z now.\n\t* ld-x86-64/x86-64.exp: Likewise\n\t* ld-i386/pr17689now.rd: New file.\n\t* ld-x86-64/pr17689now.rd: Likewise","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/25070364b0ce33eed46aa5d78ebebbec6accec7e"},{"sha":"d976bace1c68aed43311651c1033c23b3c983094","author":{"email":"bb271a05043db396cc975a0c35ecf24f1f8ce1ab@redhat.com","name":"Jan Kratochvil"},"message":"compile: Fix uninitialized variable compiler warnings\n\ngdb/ChangeLog\n2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>\n\n\t* compile/compile-object-load.c (get_out_value_type): Fix uninitialized\n\tvariable compiler warnings.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/d976bace1c68aed43311651c1033c23b3c983094"},{"sha":"37442ce10aaa2f84d245631d38e25ee47e5057aa","author":{"email":"7682e325dfbe607fe8f2bd25716e01834baa91b9@gmail.com","name":"Doug Evans"},"message":"Add support for unbuffered and zero sized Guile ports.\n\ngdb/ChangeLog\n\n\t* NEWS: Mention support for unbuffered Guile memory ports.\n\t* scm-ports.c (ioscm_memory_port): Update comments on end, size.\n\t(ioscm_lseek_address): Improve overflow calculation.\n\t(gdbscm_memory_port_fill_input): Add assert.\n\t(gdbscm_memory_port_write): Handle unbuffered ports.\n\tHandle large writes identical to Guile's fport_write.\n\t(gdbscm_memory_port_seek): Fix seeking past end check.\n\t(gdbscm_memory_port_close): Handle closing unbuffered port.\n\t(ioscm_parse_mode_bits): Recognize \"0\" for unbuffered ports.\n\t(ioscm_init_memory_port): Handle unbuffered ports.\n\t(ioscm_reinit_memory_port): Ditto.\n\t(ioscm_init_memory_port): Update size calculation.\n\t(gdbscm_open_memory): Support zero sized ports.\n\ngdb/testsuite/ChangeLog\n\n\t* gdb.guile/scm-ports.c: New file.\n\t* gdb.guile/scm-ports.exp: Add memory port tests.\n\ngdb/doc/ChangeLog\n\n\t* guile.texi (Memory Ports in Guile): Document support for unbuffered\n\tmemory ports.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/37442ce10aaa2f84d245631d38e25ee47e5057aa"},{"sha":"20ef91414ed2272cc379dcf8364f5f48eeff6362","author":{"email":"46ff6e41b02a6ff6bd50cc64faab96b75208d63d@sourceware.org","name":"GDB Administrator"},"message":"Automatic date update in version.in","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/20ef91414ed2272cc379dcf8364f5f48eeff6362"},{"sha":"68880f311c1d5629c47c3ab9749061fe3138be63","author":{"email":"691496484cfb0da0184c1396328b8f907a34aa88@codesourcery.com","name":"Chung-Lin Tang"},"message":"ELF options may be missing from `ld --help' output\n\nnios2-linux has an emulation named \"nios2linux\", and happens to not include\nanother extra emulation with a name matching *elf*.  This makes nios2-linux\nleft out of the ELF options printing targets, which is unintended.\n\n\t* configure.ac (AC_PROG_GREP): Check for grep program.\n\t(elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):\n\tEnable ELF option printing for emulations containing\n\t'TEMPLATE_NAME=elf32'.\n\t* configure: Regenerate.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/68880f311c1d5629c47c3ab9749061fe3138be63"},{"sha":"296730a52b06fe7dd658924acae1269a54015d52","author":{"email":"8f3f75c74bd5184edcfa6534cab3c13a00a2f794@gentoo.org","name":"Mike Frysinger"},"message":"sim: erc32: restore attribution","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/296730a52b06fe7dd658924acae1269a54015d52"},{"sha":"4412c033caac38b5bad1bddffc40173a9de694cf","author":{"email":"8c5ea195856807f4f02a6e0749c87ea6b7375f38@gmail.com","name":"Max Filippov"},"message":"Add myself to write-after-approval list\n\ngdb/\n\t* MAINTAINERS (Write After Approval): Add Max Filippov.","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/4412c033caac38b5bad1bddffc40173a9de694cf"},{"sha":"df4227e4c6ec085abe2ca4d2a71889d7df023cb4","author":{"email":"46ff6e41b02a6ff6bd50cc64faab96b75208d63d@sourceware.org","name":"GDB Administrator"},"message":"Automatic date update in version.in","distinct":false,"url":"https://api.github.com/repos/Distrotech/binutils/commits/df4227e4c6ec085abe2ca4d2a71889d7df023cb4"}]}