From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8422 invoked by alias); 4 Sep 2013 13:02:44 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 8404 invoked by uid 9364); 4 Sep 2013 13:02:44 -0000 Date: Wed, 04 Sep 2013 13:02:00 -0000 Message-ID: <20130904130243.8382.qmail@sourceware.org> From: gary@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] gbenson/pr14963: reverse-20080717-branchpoint-15649-ga2511b1 X-Git-Refname: refs/heads/gbenson/pr14963 X-Git-Reftype: branch X-Git-Oldrev: 0000000000000000000000000000000000000000 X-Git-Newrev: a2511b1121c3e656e2a0c06b707442af2fa7ac73 X-SW-Source: 2013-q3/txt/msg00031.txt.bz2 List-Id: The branch, gbenson/pr14963 has been created at a2511b1121c3e656e2a0c06b707442af2fa7ac73 (commit) - Log ----------------------------------------------------------------- commit a2511b1121c3e656e2a0c06b707442af2fa7ac73 Author: Gary Benson Date: Wed Sep 4 13:48:43 2013 +0100 Actually just write the input and output every time commit 8a1492207c0337dfa9d596736bdf57c5f9f67355 Author: Gary Benson Date: Wed Sep 4 13:42:21 2013 +0100 Put the mangled symbol in an external file commit 4927cf7f60e76cc3b0e85e24ae8749da8be7c31b Author: Gary Benson Date: Wed Sep 4 13:39:05 2013 +0100 Oops commit 0b110ea35aa0fa4243c7dbbf11d817fb1611243a Author: Gary Benson Date: Wed Sep 4 13:38:48 2013 +0100 Fill in functions commit 0e873781ab080e090bfc7337333c5767e84bb43f Author: Gary Benson Date: Wed Sep 4 13:38:06 2013 +0100 Discard this commit 5492acd902145bc0dc437877457502bbe8800753 Author: Gary Benson Date: Wed Sep 4 11:55:08 2013 +0100 More tweaks, and some prototypes commit 704f8b050bbca67db344a0f0828a5a339b31bcf1 Author: Gary Benson Date: Wed Sep 4 11:45:57 2013 +0100 Another tweak commit 8eef45c31d225d351550123ab8ce8959a7826c33 Author: Gary Benson Date: Wed Sep 4 11:41:12 2013 +0100 Tweak commit a4444cdd0026ca9d128f13ffd17bd33117eb2d2e Author: Gary Benson Date: Wed Sep 4 11:40:38 2013 +0100 Restore remainder of yesterday's failed patch commit 3643475f3b52bca2be818bb3735ef38e46339541 Author: Gary Benson Date: Wed Sep 4 11:30:43 2013 +0100 Basics of scope capture commit e5162f1d1db222994650a5e4ba7c07ec6108fe41 Author: Gary Benson Date: Wed Sep 4 09:54:00 2013 +0100 New session commit ba594aba7bbb826617c340c5a7c8526e76c1b4d3 Author: Gary Benson Date: Wed Sep 4 09:52:02 2013 +0100 Infinite loop detector commit ed20256cf75e795fcb7dc639355440238957fa66 Author: Gary Benson Date: Tue Sep 3 15:43:48 2013 +0100 New session commit 10086f92a25f46a7bf8bb14db99f2a283df46d94 Author: Gary Benson Date: Tue Sep 3 13:22:19 2013 +0100 New session commit 5c39cc3124eb18428b8b84242b1f2df33712fb32 Author: Gary Benson Date: Tue Sep 3 12:18:14 2013 +0100 Add substitution dump commit ed365e744816ce74439b878e6bdf66de9e0adfa9 Author: Gary Benson Date: Tue Sep 3 12:08:14 2013 +0100 Example from spec commit 313fecd50bca8c06e830a08263b160aa3c9f0bc9 Author: Gary Benson Date: Tue Sep 3 11:17:55 2013 +0100 Print substitutions commit 3eef166271107ff829404ef28aa02903c4a1bd8b Author: Gary Benson Date: Tue Sep 3 10:32:59 2013 +0100 More commit 7b31f631ae3573dff5bb7da5f67bbdca14538af5 Author: Gary Benson Date: Tue Sep 3 10:26:42 2013 +0100 More commit 2f04f114ae2bad7bcd5754e672d313bda9035d2f Author: Gary Benson Date: Tue Sep 3 09:44:14 2013 +0100 Start commit 5d900bfa80e0254a4bb304f149bd4b364971322b Author: Gary Benson Date: Tue Sep 3 09:31:36 2013 +0100 Let's take this apart commit dabfe95d712f9053bd960bdb118ca025f4aae1d3 Author: Gary Benson Date: Tue Sep 3 09:21:58 2013 +0100 Today's session commit 28ddfb0ca85c8f09e2c84f2e0ea927a366043074 Author: Gary Benson Date: Tue Sep 3 09:20:57 2013 +0100 Yesterday's session, before the power cut commit d46eb2ba24722e8ed9b96802b4f0f7623e7d4c6c Author: Gary Benson Date: Tue Sep 3 09:16:52 2013 +0100 Don't need these now commit e4f7e08e46dded3bef4ff00a1f8a201140fccda9 Author: Gary Benson Date: Mon Sep 2 14:12:33 2013 +0100 Find the loop commit b190da1c5f5db0e783b589881649ec9c9c6c9fba Author: Gary Benson Date: Mon Sep 2 13:54:44 2013 +0100 Longer trace commit 6c317e8055c3e14fe55517b6768266bcaa9e350e Author: Gary Benson Date: Mon Sep 2 13:08:08 2013 +0100 Trace commit 29fd0a2260d347d9473a0d321bcae502d949b697 Author: Gary Benson Date: Fri Aug 30 13:23:54 2013 +0100 Reproducer commit 2c03274196ee59aaaba3d2888a3cd6c28b82a952 Author: pmuldoon Date: Fri Aug 30 10:12:18 2013 +0000 2013-08-30 Phil Muldoon PR python/15461 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro. (archpy_name): Check for valid architecture. (archpy_disassemble): Ditto. 2013-08-30 Phil Muldoon * gdb.python/py-arch.exp: Tests for invalid architecture. commit 2cf5c604390fdd6886e4d960265315552721afb4 Author: Alan Modra Date: Fri Aug 30 00:00:04 2013 +0000 daily update commit 75d11e22a0124bd14262e701082b351c8ec79e81 Author: Joel Brobecker Date: Thu Aug 29 21:02:14 2013 +0000 thread support broken on ppc-aix. Thread support got broken when adding 64bit support on ppc-aix. Upon digging further, I found that the following patch... | * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64 | is defined. | * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb. | (rs6000_ptrace32): Call ptrace64 instead of ptrace if present. | (rs6000_ptrace64): Call ptace64 instead of ptracex if present. | * configure.ac: Check for ptrace64. | * configure, config.in: Regenerate. ... is responsible for this regression: (gdb) x /x &__n_pthreads 0xf06a8258 <__n_pthreads>: Cannot access memory at address 0xf06a8258 Prior to the patch, we have: (gdb) x /x &__n_pthreads 0xf06a8258 <__n_pthreads>: 0x00000003 The problem occurs inside rs6000_ptrace32, while calling ptrace64. The address is given to rs6000_ptrace32 as an "int *", while ptrace64 takes a "long long". The cast causes the address to be sign-extended, which results in GDB trying to read the wrong address. This patch fixes the issue by casting the address to a "uintptr_t" instead, and letting the compiler do the implicit conversion to "long long" in the function call. gdb/ChangeLog: * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t" instead of "long long" in call to ptrace64. commit d28f3c739fa17e393d3dde53b9a890f118d9d968 Author: sterling Date: Thu Aug 29 19:22:06 2013 +0000 2013-08-29 Sterling Augustine * boards/remote-stdio-gdbserver.exp: Set rcp_prog and rsh_prog in new conditional. Move use of REMOTE_PORTNUM into said conditional. commit 8387cc0ddf5cfd3200b2d59a1c17e1eea1217e04 Author: aburgess Date: Thu Aug 29 16:59:48 2013 +0000 Remove use of deprecated_command_loop_hook from mi code. https://sourceware.org/ml/gdb-patches/2013-08/msg00605.html gdb/ChangeLog * mi/mi-interp.c (mi_command_loop): Change signature to match interp_command_loop_ftype. (mi1_command_loop): Remove. (mi2_command_loop): Remove. (mi3_command_loop): Remove. (mi_interpreter_resume): Remove setting of deprecated_command_loop_hook. (_initialize_mi_interp): Set mi_command_loop as the command loop callback. commit 00bd2a115b46d73be000cc3ef1e98496c7d15904 Author: sagovic Date: Thu Aug 29 14:25:22 2013 +0000 2013-08-29 Sanimir Agovic * valops.c (do_search_struct_field): Pass v2 instead of base_type to value_type. commit c176f5728ce2feb816d67de90d9cee68accdbf86 Author: sagovic Date: Thu Aug 29 12:26:59 2013 +0000 cleanup: make allocate_value_contents static 2013-08-29 Sanimir Agovic * value.c (allocate_value_contents): Make static. * value.h (allocate_value_contents): Remove prototype. commit 29a0cbd83632f1d154f7266370daa8bcee6631f5 Author: sagovic Date: Thu Aug 29 12:25:03 2013 +0000 cleanup: use value_lazy_at instead of allocate_value_lazy/attribute setter I came across a pattern used to construct a value in the following way: struct value *val = allocate_value_lazy (type); VALUE_LVAL (val) = lval_memory; set_value_address (val, address); Instead we fold the above call into: value_at_lazy (type, addr); 2013-08-27 Sanimir Agovic * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead of assembling value via allocate_value_lazy and attribute setter. * findvar.c (default_read_var_value): Use value_at_lazy instead of assembling value via allocate_value_lazy and attribute setter. * valops.c (do_search_struct_field): Use value_at_lazy instead of assembling value via allocate_value_lazy and attribute setter. commit 938a2058bcf10a90b30f8c54ca870b59102418cd Author: sagovic Date: Thu Aug 29 12:21:29 2013 +0000 cleanup: replace allocate_value and memcpy with value_from_contents 2013-08-29 Sanimir Agovic * value.c (value_from_contents_and_address): Replace allocate_value and memcpy with value_from_contents. commit 3754919259d056ae190050a7ac8845b4c563da75 Author: Jakub Jelinek Date: Thu Aug 29 10:25:26 2013 +0000 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow 64-bit -mcmodel=large -fpic TLS GD and LD sequences. (elf_x86_64_relocate_section): Handle -mcmodel=large -fpic TLS GD and LD sequences in GD->LE, GD->IE and LD->LE transitions. ld/testsuite/ * ld-x86-64/x86-64.exp: Add tlsld3, tlsgd7 and tlsgd8 tests. * ld-x86-64/tlspic1.s: Add -mcmodel=large -fpic TLS GD and LD sequences. * ld-x86-64/tlspic.dd: Adjusted. * ld-x86-64/tlspic.rd: Adjusted. * ld-x86-64/tlspic-nacl.rd: Adjusted. * ld-x86-64/tlsld3.dd: New test. * ld-x86-64/tlsld3.s: New file. * ld-x86-64/tlsgd7.dd: New test. * ld-x86-64/tlsgd7.s: New file. * ld-x86-64/tlsgd8.dd: New test. * ld-x86-64/tlsgd8.s: New file. commit 6ecba0b8187d96237ecf16b5b7cb01e06e40dfa6 Author: pmuldoon Date: Thu Aug 29 10:20:03 2013 +0000 2013-08-29 Phil Muldoon * gdb.python/py-arch.exp: Load gdb-python.exp. commit 4e724798347fb81ed3dd3efddf2d52ef99486f13 Author: pmuldoon Date: Thu Aug 29 10:06:17 2013 +0000 2013-08-29 Phil Muldoon * python/py-framefilter.c (py_print_frame): Remove usage of PyString_AsString. Use python_string_to_host_string instead. Refactor function to work with a string as a new allocation instead of a pointer. (py_print_frame): Ditto. * python/lib/gdb/frames.py (return_list): Cain iterators together instead of adding them as a list. (_sort_list): Call return_list, and remove duplicate code. (execute_frame_filters): Convert iterator to a list with list(). * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority._set_filter_priority): Convert priority attribute to an integer. * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define wrapper function __next__. * python/lib/gdb/FrameDecorator.py: If basestring not defined, define as "str". 2013-08-29 Phil Muldoon * gdb.python/py-framefilter.py (FrameFilter.filter): Check itertools for imap attribute. Otherwise use map(). (ElidingIterator): Define wrapper function __next__. * gdb.python/py-framefilter-mi.exp: Do not use execfile, use exec (open (read ())) instead. * gdb.python/py-framefilter.exp: Ditto. * gdb.python/py-arch.exp: Update print based test to Python 3.x compliance. * gdb.python/py-frame.exp: Ditto. * gdb.python/py-type.exp: Ditto. commit b2e52a5125f49e0cb83b24cf763a114023fa2b36 Author: pmuldoon Date: Thu Aug 29 09:36:02 2013 +0000 2013-08-29 Phil Muldoon * ChangeLog: Remove blank lines between PR and ChangeLog description. commit a416d61d0bf5908e45956f19f96f89ecdc80797f Author: pmuldoon Date: Thu Aug 29 09:24:33 2013 +0000 2013-08-29 Phil Muldoon PR python/15752 * python/py-framefilter.c (apply_frame_filter): Check gdb_python_initialized. Exit if the Python frame-filter code cannot be initialized. commit f697cdb5ffae569ebb7d3db5b31cff4c088a1325 Author: pmuldoon Date: Thu Aug 29 09:09:22 2013 +0000 2013-08-29 Phil Muldoon PR cli/15842 * top.c (print_gdb_version): Remove erroneous newline after help text. commit 2fbc877101b76cf461073afc1ddf95b6ffdcfa51 Author: qiyao Date: Thu Aug 29 04:58:25 2013 +0000 gdb/ * varobj.c (install_dynamic_child): Remove trailing space. Add one blank line after variable declaration. commit 7f1046f39b793d6fbe633c279fbb8f0cdd6294c2 Author: Alan Modra Date: Thu Aug 29 00:00:04 2013 +0000 daily update commit f863b373957343fa4fdfd8f00548925a8af73413 Author: Jan Kratochvil Date: Wed Aug 28 17:52:02 2013 +0000 PR gdb/15415 gdb/ 2013-08-27 Jan Kratochvil PR gdb/15415 * corefile.c (get_exec_file): Use exec_filename. * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment. * exec.c (exec_close): Free EXEC_FILENAME. (exec_file_attach): New variable canonical_pathname. Use OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set EXEC_FILENAME. * exec.h (exec_filename): New. * inferior.c (print_inferior, inferior_command): Use PSPACE_EXEC_FILENAME. * mi/mi-main.c (print_one_inferior): Likewise. * progspace.c (clone_program_space, print_program_space): Likewise. * progspace.h (struct program_space): New field pspace_exec_filename. * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it. gdb/testsuite/ 2013-08-27 Jan Kratochvil PR gdb/15415 * gdb.base/argv0-symlink.c: New file. * gdb.base/argv0-symlink.exp: New file. commit 24af3f3f3f4baab0815a8b1093bbc01842b837a3 Author: Jan Kratochvil Date: Wed Aug 28 17:40:58 2013 +0000 PR server/15604 gdb/gdbserver/ 2013-08-28 Jan Kratochvil PR server/15604 * linux-low.c: Include filestuff.h. (linux_create_inferior) : Call close_most_fds. * lynx-low.c: Include filestuff.h. (lynx_create_inferior) : Call close_most_fds. * server.c: Include filestuff.h. (main): Call notice_open_fds. * spu-low.c: Include filestuff.h. (spu_create_inferior) : Call close_most_fds. commit dce3f541677b884d78533c0ddf473b6461799c3a Author: Tom Tromey Date: Wed Aug 28 14:20:43 2013 +0000 * gdb.dwarf2/gdb-index.exp (add_gdb_index): Use explicit test name when saving index. commit 437bf2c75f6735dc405530acf79dfdc1fbdb1350 Author: willnewton Date: Wed Aug 28 14:09:31 2013 +0000 gdb/common/linux-ptrace.c: Fix build on non-Intel architectures. As uintptr_t is used stdint.h must be included on all architectures. 2013-08-28 Will Newton * common/linux-ptrace.c: Include stdint.h unconditionally. commit aa8d949fea586df2ae849e36bbdf32aef7cbea35 Author: Jan Kratochvil Date: Wed Aug 28 13:07:11 2013 +0000 gdb/ Code cleanup. * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST. commit 97c7c9bb8c77d519ba87b9c9b2be362d334087b4 Author: qiyao Date: Wed Aug 28 12:25:05 2013 +0000 gdb/ * event-top.c (gdb_setup_readline): Call stderr_fileopen instead of stdio_fileopen. * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered. .Call stderr_fileopen instead of stdio_fileopen. * ui-file.c [__MINGW32__] (stderr_file_write): New function. [__MINGW32__] (stderr_file_fputs): New function. (stderr_fileopen): New function. * ui-file.h (stderr_fileopen): Declare. commit 64c0bdc1fa9e2290f94327b90b7c7dd19828154e Author: Nick Clifton Date: Wed Aug 28 10:25:36 2013 +0000 * aarch64-opc.c (aarch64_logical_immediate_p): Return FALSE if the immediate is not suitable for the 32-bit ABI. * gas/aarch64/illegal.s: Add illegal constant for logical operation. * gas/aarch64/illegal.l: Add expected error message. commit e1f18033fac7da0f76d5456150390e9a6643ebcc Author: Alan Modra Date: Wed Aug 28 00:00:05 2013 +0000 daily update commit 79cb0fde4fb1edad19a72ae892b92ab7f1c43465 Author: Doug Evans Date: Tue Aug 27 21:38:05 2013 +0000 * dwarf2read.c (struct dwarf2_cu): Tweak comment. (struct dwarf2_per_cu_data): Ditto. (maybe_queue_comp_unit): Delete forward decl. Add comment. (process_imported_unit_die): Ditto. (follow_die_sig_1): Simplify assert. commit 058c440369a3c68ea952c4e4836e7d8d30333c18 Author: Pedro Alves Date: Tue Aug 27 11:36:09 2013 +0000 windows-nat.c: Don't install a deprecated_xfer_memory method. This stops another target from installing a target_ops->deprecated_xfer_memory method. Tested on native MinGW. gdb/ 2013-08-27 Pedro Alves * windows-nat.c (windows_xfer_memory): Adjust prototype to follow xfer_partial's interface. Return TARGET_XFER_E_IO on error. (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to windows_xfer_memory directly. (init_windows_ops): Don't install a deprecated_xfer_memory method. commit 2c6be25db1ddcc56406eb1660cb37d3140b25ddc Author: Pedro Alves Date: Tue Aug 27 11:05:38 2013 +0000 darwin-nat.c: Don't install a deprecated_xfer_memory method. darwin_xfer_partial already handles TARGET_OBJECT_MEMORY, so this method is not necessary. gdb/ 2013-08-27 Pedro Alves * darwin-nat.c (darwin_xfer_memory): Delete. (_initialize_darwin_inferior): Don't install a deprecated_xfer_memory method. commit 6c9125356b197ff5256c1a7ac700f60c283245ff Author: qiyao Date: Tue Aug 27 05:20:56 2013 +0000 Add options to skip unavailable locals This is the patch to add new option '--skip-unavailable' to MI commands '-stack-list-{locals, arguments, variables}'. This patch extends list_args_or_locals to add a new parameter 'skip_unavailable', and don't list locals or arguments if values are unavailable and 'skip_unavailable' is true. This is inspecting a trace frame (tfind mode), where only a few locals have been collected. -stack-list-locals, no switch vs new switch: -stack-list-locals --simple-values ^done,locals=[{name="array",type="unsigned char [2]"},{name="i",type="int",value=""}] -stack-list-locals --skip-unavailable --simple-values ^done,locals=[{name="array",type="unsigned char [2]"}] -stack-list-arguments, no switch vs new switch: -stack-list-arguments --simple-values ^done,stack-args=[frame={level="0",args=[{name="j",type="int",value="4"},{name="s",type="char *",value=""}]},frame={level="1",args=[]}] -stack-list-arguments --skip-unavailable --simple-values ^done,stack-args=[frame={level="0",args=[{name="j",type="int",value="4"}]},frame={level="1",args=[]}] -stack-list-variables, no switch vs new switch: -stack-list-variables --simple-values ^done,variables=[{name="j",arg="1",type="int",value="4"},{name="s",arg="1",type="char *",value=""},{name="array",type="unsigned char [2]"},{name="i",type="int",value=""}] -stack-list-variables --skip-unavailable --simple-values ^done,variables=[{name="j",arg="1",type="int",value="4"},{name="array",type="unsigned char [2]"}] tests are added to test these new options. gdb: 2013-08-27 Pedro Alves Yao Qi * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype. (parse_no_frames_option): Remove. (mi_cmd_stack_list_locals): Handle --skip-unavailable. (mi_cmd_stack_list_args): Adjust. (mi_cmd_stack_list_variables): Handle --skip-unavailable. (list_arg_or_local): Add new parameter 'skip_unavailable'. Return early if SKIP_UNAVAILABLE is true and ARG->val is unavailable. Caller update. (list_args_or_locals): New parameter 'skip_unavailable'. Handle it. * valprint.c (scalar_type_p): Rename to ... (val_print_scalar_type_p): ... this. Make extern. (val_print, value_check_printable): Adjust. * valprint.h (val_print_scalar_type_p): Declare. * value.c (value_entirely_unavailable): New function. * value.h (value_entirely_unavailable): Declare. * NEWS: Mention the new option "--skip-unavailable" to MI commands '-stack-list-locals', '-stack-list-arguments' and '-stack-list-variables'. gdb/doc: 2013-08-27 Pedro Alves Yao Qi * gdb.texinfo (GDB/MI Stack Manipulation) <-stack-list-locals>: Document new --skip-unavailable option. <-stack-list-variables>: Document new --skip-unavailable option. gdb/testsuite: 2013-08-27 Yao Qi * gdb.trace/entry-values.exp: Test unavailable entry value is not shown when option '--skip-unavailable' is specified. * gdb.trace/mi-trace-unavailable.exp (test_trace_unavailable): Add tests for new option '--skip-unavailable'. commit 7fa182d4c1748bd69eb4b96eb9b589c14b084964 Author: qiyao Date: Tue Aug 27 03:04:45 2013 +0000 Add mi_getopt_allow_unknown This patch is to add a new function mi_getopt_allow_unknown, which returns -1 silently (without throwing error) when unknown option is met, and use this function to parse options for command '-stack-list-arguments'. gdb/ * mi/mi-cmd-stack.c (parse_no_frames_option): Remove. (mi_cmd_stack_list_args): Use mi_getopt_silent to handle options. * mi/mi-getopt.c (mi_getopt): Remove. (mi_getopt_1): Renamed from mi_getopt. Add one parameter 'error_on_unknown'. (mi_getopt): Call mi_getopt_1. (mi_getopt_silent): New. * mi/mi-getopt.h (mi_getopt_silent): Declare. commit 4cdd3e4fb53e0a063adcab590eda10530ba0dc0d Author: Alan Modra Date: Tue Aug 27 01:06:43 2013 +0000 * elf-bfd.h (struct elf_backend_data): Remove as_needed_cleanup. Add notice_as_needed. * elf64-ppc.c (elf_backend_as_needed_cleanup): Don't define. (elf_backend_notice_as_needed): Define. (ppc64_elf_as_needed_cleanup): Rename and adjust.. (ppc64_elf_notice_as_needed): ..to this. * elflink.c (_bfd_elf_notice_as_needed): New function, extracted.. (elf_link_add_object_symbols): ..from here. * elfxx-target.h (elf_backend_as_needed_cleanup): Don't define. (elf_backend_notice_as_needed): Define.. (elfNN_bed): ..and use here. commit 6f7534eb19a89e01f58cefdfc2eb075425eef5db Author: qiyao Date: Tue Aug 27 00:19:02 2013 +0000 gdb/testsuite/ * lib/gdb.exp (gdb_remote_download): Don't pass $tofile to remote_download if it is empty. commit d9dadd49f32fbe808f5b410233d10375c500b5ea Author: Alan Modra Date: Tue Aug 27 00:00:04 2013 +0000 daily update commit 74084ede934db4d06a67385cf3b4291f9aa92fcb Author: Roland McGrath Date: Mon Aug 26 22:18:05 2013 +0000 bfd/ * archures.c (bfd_mach_i386_nacl, bfd_mach_i386_i386_nacl): New macros. (bfd_mach_x86_64_nacl, bfd_mach_x64_32_nacl): New macros. * cpu-i386.c (bfd_arch_i386_onebyte_nop_fill): New function. (bfd_i386_nacl_arch): New variable. (bfd_x86_64_nacl_arch, bfd_x64_32_nacl_arch): New variables. (bfd_x64_32_arch_intel_syntax): Link them into the list. * bfd-in2.h: Regenerate. ld/ * emulparams/elf_i386_nacl.sh (ARCH): Set to i386:nacl. * emulparams/elf_x86_64_nacl.sh (ARCH): Set to i386:x86-64:nacl. * emulparams/elf32_x86_64_nacl.sh (ARCH): Set to i386:x64-32:nacl. ld/testsuite/ * ld-x86-64/x86-64.exp (Mixed x86_64 and i386 input test 1): Loosen string match to admit i386:x86-64*. (Mixed x86_64 and i386 input test 2): Likewise. * ld-x86-64/ilp32-2.d: Likewise. * ld-x86-64/ilp32-3.d: Likewise. * ld-x86-64/lp64-2.d: Likewise. * ld-x86-64/lp64-3.d: Likewise. * ld-x86-64/ia32-2.d: Likewise, and i386.* too. * ld-x86-64/ia32-3.d: Likewise. commit 96c0d4263870ca33f79e81f1c9915fcfebf38458 Author: Roland McGrath Date: Mon Aug 26 19:27:24 2013 +0000 bfd/ * elf-nacl.c (nacl_modify_segment_map): Fix logic reordering the elf_segment_map list. If an executable segment is page-aligned but does not end with a full page, then append a fake section into the segment map entry that pads out the page. (nacl_final_write_processing): New function. Write the code fill laid out in nacl_modify_segment_map. * elf-nacl.h: Declare it. * elf32-arm.c (elf32_arm_nacl_final_write_processing): New function. (elf_backend_final_write_processing): Define it for NaCl backend. * elf32-i386.c (elf_backend_final_write_processing): Likewise. * elf64-x86-64.c (elf_backend_final_write_processing): Likewise. * elf-nacl.c (segment_eligible_for_headers): Rename MAXPAGESIZE parameter to MINPAGESIZE. (nacl_modify_segment_map): Use minpagesize instead of maxpagesize. * elf32-arm.c (ELF_MINPAGESIZE, ELF_COMMONPAGESIZE): Set to 0x10000 for NaCl targets. ld/testsuite/ * ld-x86-64/ilp32-4-nacl.d: Loosen .shstrtab line regexp to match any file offset. * ld-x86-64/tlsbin-nacl.rd: Update expected code segment PT_LOAD. * ld-x86-64/tlsbindesc-nacl.rd: Likewise. * ld-scripts/rgn-at3.d: XFAIL for *-*-nacl* targets. * ld-scripts/rgn-over8-ok.d: Likewise. commit 52b65f1205ec3cf4aa6186b21773a195514ac5f5 Author: Doug Evans Date: Mon Aug 26 18:43:39 2013 +0000 PR symtab/15885 * dwarf2read.c (dw2_dump): Print some minimal information indicating .gdb_index is in use. * symfile.c (reread_symbols): Reset objfile->sf. testsuite/ * gdb.dwarf2/Makefile.in (EXECUTABLES): Add gdb-index. (clean): rm -f *.gdb-index *.with-index. * gdb.dwarf2/gdb-index.exp: New testcase. commit 12b928a0ea6e44543794108788fe0f192c0ebb4c Author: Doug Evans Date: Mon Aug 26 18:41:30 2013 +0000 * NEWS: Document "mt print objfiles" now takes optional regexp. * symmisc.c (maintenance_print_objfiles): Argument is now an optional regexp of objfiles to print. (_initialize_symmisc): Update doc string for "mt print objfiles". doc/ * gdb.texinfo (Maintenance Commands): "maint print objfiles" now takes an optional regexp. commit 0cf29e3b390ef454beab3d5534a5b1a671631eb4 Author: Doug Evans Date: Mon Aug 26 18:38:36 2013 +0000 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of missing debug info checks. commit cf5f8fe476e99de7fcaa6215e85ddb986c2d0cec Author: Doug Evans Date: Mon Aug 26 18:30:02 2013 +0000 * lib/gdb.exp (run_on_host): Moved here from gnu-debugdata.exp. * gdb.base/gnu-debugdata.exp (run): Moved to gdb.exp and renamed to run_on_host. All callers updated. commit 601929966be9a53ce639d6aaa83bf7d5a1356f3a Author: Ulrich Weigand Date: Mon Aug 26 15:28:28 2013 +0000 2013-08-26 Raunaq Bathija Ulrich Weigand * xcoffread.c (arrange_linetable): Add fix to correctly handle line tables generated by XLC compiled binaries. commit 064e47eab74ce25793ed32763460e12583815ebf Author: Alan Modra Date: Mon Aug 26 00:00:04 2013 +0000 daily update commit 8a1c589cf53c64029de50e44ebe0594948933cb4 Author: Alan Modra Date: Sun Aug 25 00:00:04 2013 +0000 daily update commit 7bf9d995937aaa1dd251dc0b6b362066ddbe33b8 Author: Maciej W. Rozycki Date: Sat Aug 24 22:16:41 2013 +0000 * elf32-tilepro.c (tilepro_elf_finish_dynamic_sections): Don't set GOT's entry size if there is no ELF section data. * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_sections): Likewise. commit 9a23c3d6b2383859606dfb7eec68bba23a65cccb Author: qiyao Date: Sat Aug 24 01:54:59 2013 +0000 gdb/testsuite/ * gdb.trace/entry-values.c (end): New (main): Call end. * gdb.trace/entry-values.exp: Load trace-support.exp. Set tracepoint and collect data. Test entry value is unavailable. commit 13355b70bbb85fcd26f839b68ad0bc5571a46e2b Author: qiyao Date: Sat Aug 24 01:53:05 2013 +0000 gdb/testsuite/ * lib/dwarf.exp (_location): Handle DW_OP_deref_size. * gdb.trace/entry-values.c: New. * gdb.trace/entry-values.exp: New. commit b9e26e7c0526e8ce91df1cbee9020907ce164ba5 Author: Doug Evans Date: Sat Aug 24 00:29:13 2013 +0000 * symmisc.c (dump_symtab): Delete prototype. (dump_msymbols, dump_objfile): Ditto. (maintenance_info_symtabs): Mark as dont_repeat. (_initialize_symmisc): Improve doc string for "mt info symtabs". commit a39f2adfce301bda747944612ed309ec018af712 Author: Doug Evans Date: Sat Aug 24 00:12:25 2013 +0000 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols" debugging printf to better location. commit 6450b2aa357e9d100a91a36b4dbdf5e0f7e4ba85 Author: Alan Modra Date: Sat Aug 24 00:00:04 2013 +0000 daily update commit aff9141946e9b0e502fe51f4a271965797b1b113 Author: H.J. Lu Date: Fri Aug 23 19:29:13 2013 +0000 Add get_elf_x86_64_arch_data * elf64-x86-64.c (get_elf_x86_64_arch_data): New. (get_elf_x86_64_backend_data): Use it. (elf_x86_64_size_dynamic_sections): Likewise. commit c7d13474d9a0663d577edfb770eeb547222778ad Author: Maciej W. Rozycki Date: Fri Aug 23 14:12:59 2013 +0000 opcodes/ * micromips-opc.c (micromips_opcodes): Use RD_4 for "alnv.ps", replacing NODS. gas/testsuite/ * gas/testsuite/gas/mips/micromips-insn32.d: Adjust for delay slot scheduling of ALNV.PS. * gas/testsuite/gas/mips/micromips-noinsn32.d: Likewise. * gas/testsuite/gas/mips/micromips-trap.d: Likewise. * gas/testsuite/gas/mips/micromips.d: Likewise. * gas/testsuite/gas/mips/micromips@alnv_ps-swap.d: Likewise. commit eb1355aeff5bbb06236e2a609d2537528c7a2c52 Author: Pedro Alves Date: Fri Aug 23 14:03:24 2013 +0000 target.c:target_read_live_memory: Fix type of local. 'ret' is used to hold the return of target_read, and pass it on. Both target_read and target_read_live_memory return LONGEST. gdb/ 2013-08-23 Pedro Alves * target.c (target_read_live_memory): Change type of 'ret' local to LONGEST. commit 8a46681423f5a55e569d4d913c479862495210c5 Author: Pedro Alves Date: Fri Aug 23 13:12:16 2013 +0000 remote.c: don't install a deprecated_xfer_memory hook. There's no need for deprecated_xfer_memory nowadays. Memory access goes through target_xfer_partial/TARGET_OBJECT_MEMORY, etc. In fact, the remote target already handles that, and is deferring to the same helpers the deprecated_xfer_memory hook is. Basically, only a few adjustments to make these helper routines's interfaces closer to target_xfer_partial's were necessary. Tested on x86_64 Fedora 17 w/ gdbserver. gdb/ 2013-08-23 Pedro Alves * remote.c (remote_write_bytes_aux, remote_write_bytes) (remote_read_bytes): Change return type to LONGEST, and adjust to return a target_xfer_error on error. (remote_xfer_memory): Delete. (remote_flash_write): Change type of 'ret' local to LONGEST. (remote_xfer_partial, remote_xfer_partial): Adjust. (init_remote_ops): Don't install a deprecated_xfer_memory hook. commit f6d2041a3117aed09e88587b6ec4a02edf945b7f Author: Nick Clifton Date: Fri Aug 23 07:54:17 2013 +0000 PR binutils/15834 Fix typos: --- bfd/bfdio.c | 2 +- bfd/elf32-spu.c | 2 +- bfd/elfnn-aarch64.c | 2 +- binutils/od-xcoff.c | 2 +- config/tcl.m4 | 2 +- gas/config/tc-ia64.c | 2 +- gas/config/tc-sparc.c | 2 +- gas/config/tc-z80.c | 12 ++++++------ gas/doc/c-i386.texi | 6 +++--- gas/doc/c-m32r.texi | 2 +- gas/testsuite/gas/d10v/instruction_packing.d | 2 +- gas/testsuite/gas/z80/atend.d | 2 +- gold/object.h | 2 +- include/gdb/remote-sim.h | 2 +- include/opcode/ChangeLog | 2 +- include/opcode/i960.h | 2 +- ld/testsuite/ld-mips-elf/mips16-pic-1.inc | 2 +- opcodes/aarch64-asm.c | 2 +- opcodes/aarch64-dis.c | 2 +- opcodes/msp430-dis.c | 2 +- commit 57a3b802c2d0fe2a7048f2a314d69c39df0e0781 Author: Pierre Muller Date: Fri Aug 23 06:51:18 2013 +0000 ARI fix: Push # directives to start of line. * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied. commit b890ed92fb4f010e5b843faf049a7827a0b826e6 Author: mwaqas Date: Fri Aug 23 06:22:09 2013 +0000 2013-08-12 Muhammad Waqas PR gdb/15501 * breakpoint.c (enable_command, disable_command): Iterate over all specified breakpoint locations. 2013-07-12 Muhammad Waqas PR gdb/15501 * gdb.base/ena-dis-br.exp: Add test to verify enable/disable commands work correctly with multiple arguments that include multiple locations. commit b47f30e2b43887c9ff363bf7db10c51a68437765 Author: Luis Machado Date: Fri Aug 23 02:34:34 2013 +0000 * common/linux-ptrace.c (linux_fork_to_function): Push # directives to the start of the line. (linux_check_ptrace_features): Fix warning message to use the "_" markup. commit 3a222053788b924a0623b6eab2ec84dffe54b6ce Author: Alan Modra Date: Fri Aug 23 00:00:04 2013 +0000 daily update commit f7fc28008a4d76dd6e55eb77070eb18e956406a9 Author: Luis Machado Date: Thu Aug 22 23:46:27 2013 +0000 Unify ptrace options discovery code and make both GDB and gdbserver use it. gdb/ * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and nat/linux-waitpid.h. (linux-waitpid.o): New object file rule. * common/linux-ptrace.c: Include nat/linux-waitpid.h. (current_ptrace_options): Moved from linux-nat.c. (linux_ptrace_test_ret_to_nx): Use type casts for ptrace parameters. (linux_fork_to_function): New function. (linux_grandchild_function): Likewise. (linux_child_function): Likewise. (linux_check_ptrace_features): New function, heavily based on linux-nat.c:linux_test_for_tracefork. (linux_enable_event_reporting): New function. (ptrace_supports_feature): Likewise. (linux_supports_tracefork): Likewise. (linux_supports_traceclone): Likewise. (linux_supports_tracevforkdone): Likewise. (linux_supports_tracesysgood): Likewise. * common/linux-ptrace.h (HAS_NOMMU): Moved from gdbserver/linux-low.c. (linux_enable_event_reporting): New declaration. (linux_supports_tracefork): Likewise. (linux_supports_traceclone): Likewise. (linux_supports_tracevforkdone): Likewise. (linux_supports_tracesysgood): Likewise. * config.in (PTRACE_TYPE_ARG4): Regenerate. * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o. * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise. * config/arm/linux.mh (NATDEPFILES): Likewise. * config/i386/linux.mh (NATDEPFILES): Likewise. * config/i386/linux64.mh (NATDEPFILES): Likewise. * config/ia64/linux.mh (NATDEPFILES): Likewise. * config/m32r/linux.mh (NATDEPFILES): Likewise. * config/m68k/linux.mh (NATDEPFILES): Likewise. * config/mips/linux.mh (NATDEPFILES): Likewise. * config/pa/linux.mh (NATDEPFILES): Likewise.. * config/powerpc/linux.mh (NATDEPFILES): Likewise.. * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise. * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise. * config/sparc/linux.mh (NATDEPFILES): Likewise. * config/sparc/linux64.mh (NATDEPFILES): Likewise. * config/tilegx/linux.mh (NATDEPFILES): Likewise. * config/xtensa/linux.mh (NATDEPFILES): Likewise. * configure.ac (AC_CACHE_CHECK): Add void * to the list of ptrace's 4th argument's types. Check the type of PTRACE_TYPE_ARG4. * configure: Regenerate. * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h. (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h. (linux_supports_tracefork_flag): Remove. (linux_supports_tracesysgood_flag): Likewise. (linux_supports_tracevforkdone_flag): Likewise. (current_ptrace_options): Moved to common/linux-ptrace.c. (linux_tracefork_child): Remove. (my_waitpid): Remove. (linux_test_for_tracefork): Renamed to linux_check_ptrace_features and moved to common/linux-ptrace.c. (linux_test_for_tracesysgood): Remove. (linux_supports_tracesysgood): Remove. (linux_supports_tracefork): Remove. (linux_supports_tracevforkdone): Remove. (linux_enable_tracesysgood): Remove. (linux_enable_event_reporting): Remove. (linux_init_ptrace): New function. (linux_child_post_attach): Call linux_init_ptrace. (linux_child_post_startup_inferior): Call linux_init_ptrace. (linux_child_follow_fork): Call linux_supports_tracefork and linux_supports_tracevforkdone. (linux_child_insert_fork_catchpoint): Call linux_supports_tracefork. (linux_child_insert_vfork_catchpoint): Likewise. (linux_child_set_syscall_catchpoint): Call linux_supports_tracesysgood. (lin_lwp_attach_lwp): Call linux_supports_tracefork. * nat/linux-nat.h: New file. * nat/linux-waitpid.c: New file. * nat/linux-waitpid.h: New file. gdb/gdbserver/ * Makefile.in: Explain why ../target and ../nat are not listed as include file search paths. (linux-waitpid.o): New object file rule. * configure.srv (srv_native_linux_obj): New variable. Replace all occurrences of linux native object files with $srv_native_linux_obj. * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h. (HAS_NOMMU): Move defining logic to common/linux-ptrace.c. (linux_enable_event_reporting): Remove declaration. (my_waitpid): Moved to common/linux-waitpid.c. (linux_wait_for_event): Pass ptid when calling linux_enable_event_reporting. (linux_supports_tracefork_flag): Remove. (linux_enable_event_reporting): Likewise. (linux_tracefork_grandchild): Remove. (STACK_SIZE): Moved to common/linux-ptrace.c. (linux_tracefork_child): Remove. (linux_test_for_tracefork): Remove. (linux_look_up_symbols): Call linux_supports_traceclone. (initialize_low): Remove call to linux_test_for_tracefork. * linux-low.h (PTRACE_TYPE_ARG3): Move to common/linux-ptrace.h. (PTRACE_TYPE_ARG4): Likewise. Include linux-ptrace.h. commit 04e50c5c85504e879f91a6960de8dff68f2e7f19 Author: sergiodj Date: Thu Aug 22 22:06:11 2013 +0000 Adding missing files from my last commit. commit a364bc69aa057e0be4c99774525a3cf3274682cd Author: sergiodj Date: Thu Aug 22 20:32:53 2013 +0000 [Committing the `catch syscall' patch for ARM, from Samuel Bronson.] This time, it passes all the tests and comes with a nearly complete XML file (plus a script that can nearly regenerate the XML file). (I elected to leave out __ARM_NR_cmpxchg, since it has dire warnings to the effect that the only pieces of code that should be aware of it are the implementation and the __kuser_cmpxchg code in entry-armv.S.) gdb/ 2013-08-14 Samuel Bronson ARM Linux support for `catch syscall'. * syscalls/arm-linux.py: New file. * syscalls/arm-linux.xml: Likewise. * arm-linux-tdep.c (arm_linux_get_syscall_number): New function. (arm_linux_init_abi): Register the new function and syscall xml file. * data-directory/Makefile.in: Install the new syscall xml file. * NEWS: Brag about this. gdb/testsuite/ 2013-08-14 Samuel Bronson ARM Linux support for `catch syscall'. * gdb.base/catch-syscall.exp: Test this on ARM now. (fill_all_syscalls_numbers): ARM has close/chroot on 6/61, too. commit 7cc24819c743d6174e3d6423ade9c9fd2214936b Author: Tom Tromey Date: Thu Aug 22 14:01:04 2013 +0000 fix dwz.exp on 32-bit targets This fixes dwz.exp on 32-bit targets. It does so by introducing a new "default" setting for the address size in the DWARF assembler. Built and regtested on x86-64 Fedora 18. I also ran the gdb.dwarf2 tests on an x86 machine (gcc45). * lib/dwarf.exp (cu, tu): Handle addr_size of "default". Change default addr_size. * lib/gdb.exp (is_64_target): New gdb_caching_proc. commit 127cc513295a2cb670cbe7d481e6f4ed6eff147f Author: Tom Tromey Date: Thu Aug 22 13:59:55 2013 +0000 convert one more caching proc I noticed that skip_btrace_tests is a classic "caching proc" that I missed when I added gdb_caching_proc. This patch converts it. Built and regtested on x86-64 Fedora 18. * lib/gdb.exp (skip_btrace_tests): Use gdb_caching_proc and standard_temp_file. commit 50dcec67c5637a6a09fd9e2457300018750b6f38 Author: Tom Tromey Date: Thu Aug 22 13:54:14 2013 +0000 fix gdb.arch to be parallel-safe This fixes parts of gdb.arch to be parallel-safe. I only changed the bits I could test on this machine. I don't have access to many of the machines needed to fully switch gdb.arch; but I am happy to provide advice to others attempting this. Or, I can send an untested patch to convert it all. Tested on x86-64 Fedora 18. * gdb.arch/amd64-byte.exp: Use standard_testfile, clean_restart. * gdb.arch/amd64-disp-step.exp: Use standard_testfile. * gdb.arch/amd64-dword.exp: Use standard_testfile, clean_restart. * gdb.arch/amd64-entry-value-param.exp: Use standard_testfile. * gdb.arch/amd64-entry-value.exp: Use standard_testfile. * gdb.arch/amd64-prologue-xmm.exp: Use standard_testfile. * gdb.arch/amd64-word.exp: Use standard_testfile, clean_restart. * gdb.arch/i386-avx.exp: Use standard_testfile, clean_restart. * gdb.arch/i386-byte.exp: Use standard_testfile, clean_restart. * gdb.arch/i386-disp-step.exp: Use standard_testfile. * gdb.arch/i386-dr3-watch.exp: Use standard_testfile. * gdb.arch/i386-permbkpt.exp: Use standard_testfile, clean_restart. * gdb.arch/i386-signal.exp: Use standard_testfile. * gdb.arch/i386-size-overlap.exp: Use standard_testfile, clean_restart. * gdb.arch/i386-sse.exp: Use standard_testfile, clean_restart. * gdb.arch/i386-unwind.exp: Use standard_testfile. * gdb.arch/i386-word.exp: Use standard_testfile, clean_restart. commit e72ae2219f5ee66107bb22f5bfd9d3a3629a3e5e Author: Tom Tromey Date: Thu Aug 22 13:51:07 2013 +0000 fix gdb.python to be parallel-safe This fixes gdb.python to be parallel-safe, mostly by changing it to use gdb_remote_download. Tested on x86-64 Fedora 18. * gdb.python/py-error.exp: Use gdb_remote_download. * gdb.python/py-mi.exp: Use gdb_remote_download. * gdb.python/py-objfile-script.exp: Use standard_output_file. * gdb.python/py-prettyprint.exp: Use gdb_remote_download. (run_lang_tests): Likewise. * gdb.python/py-section-script.c: Use SCRIPT_FILE rather than filename. * gdb.python/py-section-script.exp: Set SCRIPT_FILE when compiling. Use gdb_remote_download. Update some tests. * gdb.python/py-strfns.exp (test_strfns_core_file): Use standard_output_file. * gdb.python/py-typeprint.exp: Use gdb_remote_download. * gdb.python/py-frame-args.exp: Use gdb_remote_download. * gdb.python/py-framefilter-mi.exp: Use gdb_remote_download. * gdb.python/py-framefilter.exp: Use gdb_remote_download, standard_output_file. commit 9668b9fd28fdde7939197a5c156db0deed6fc7bc Author: Tom Tromey Date: Thu Aug 22 13:46:21 2013 +0000 use standard_temp_file in another caching proc In an earlier patch I forgot to change the caching proc in cell.exp to use standard_temp_file. This fixes the oversight. Tested on x86-64 Fedora 18. * lib/cell.exp (skip_cell_tests): Use standard_temp_file. commit 24e2932804d6d8e275c6b71733a3f91cc0756051 Author: Tom Tromey Date: Thu Aug 22 13:44:15 2013 +0000 introduce gdb_remote_download and finish parallel fixes in gdb.dwarf2 This finishes making gdb.dwarf2 parallel-safe. To do this, this patch introduces a new gdb_remote_download proc, that works somewhat differently in the one specific case where it matters: for a copy to "host", if no destination was given, and the host is not actually remote, then standard_output_file is used. In parallel mode this guarantees that the resulting file will end up in a parallel-safe location. Tested on x86-64 Fedora 18. * gdb.dwarf2/dw2-basic.exp: Use gdb_remote_download. * gdb.dwarf2/dw2-compressed.exp: Use gdb_remote_download. * gdb.dwarf2/dw2-intercu.exp: Use gdb_remote_download. * gdb.dwarf2/dw2-intermix.exp: Use gdb_remote_download. * gdb.dwarf2/dw2-producer.exp: Use gdb_remote_download. * gdb.dwarf2/mac-fileno.exp: Use gdb_remote_download. * lib/gdb.exp (gdb_remote_download): New proc. commit c18a2996a254ec0f05b3bc4c8b2800641fe26682 Author: Tom Tromey Date: Thu Aug 22 13:39:12 2013 +0000 fix some gdb.dwarf2 tests for parallel safety This fixes a few gdb.dwarf2 tests to be more parallel-safe. This mostly amounts to changing them to write their files into the directory designated by standard_output_file. Built and regtested on x86-64 Fedora 18. * gdb.dwarf2/clztest.exp: Use standard_testfile. * gdb.dwarf2/dw2-minsym-in-cu.exp: Use standard_testfile. * gdb.dwarf2/fission-base.S: Remove directory from DW_AT_GNU_dwo_name. * gdb.dwarf2/fission-base.exp: Use build_executable. Set debug-file-directory. * gdb.dwarf2/fission-reread.S: Remove directory from DW_AT_GNU_dwo_name. * gdb.dwarf2/fission-reread.exp: Use build_executable. Set debug-file-directory. commit ed22b566840461c8d980c2568010b84eca320a84 Author: Pedro Alves Date: Thu Aug 22 10:00:04 2013 +0000 PR gdb/15871: Unavailable entry value is not shown correctly In entry-values.exp, we have a test where the entry value of 'j' is unavailable, so it is expected that printing j@entry yields "". However, the actual output is: (gdb) frame #0 0x0000000000400540 in foo (i=0, i@entry=2, j=2, j@entry=) The error is thrown here: #0 throw_it (reason=RETURN_ERROR, error=MEMORY_ERROR, fmt=0x8cd550 "Cannot access memory at address %s", ap=0x7fffffffc8e8) at ../../src/gdb/exceptions.c:373 #1 0x00000000005e2f9c in throw_error (error=MEMORY_ERROR, fmt=0x8cd550 "Cannot access memory at address %s") at ../../src/gdb/exceptions.c:422 #2 0x0000000000673a5f in memory_error (status=5, memaddr=6293992) at ../../src/gdb/corefile.c:204 #3 0x0000000000673aea in read_memory (memaddr=6293992, myaddr=0x7fffffffca60 "\200\316\377\377\377\177", len=4) at ../../src/gdb/corefile.c:223 #4 0x00000000006784d1 in dwarf_expr_read_mem (baton=0x7fffffffcd50, buf=0x7fffffffca60 "\200\316\377\377\377\177", addr=6293992, len=4) at ../../src/gdb/dwarf2loc.c:334 #5 0x000000000067645e in execute_stack_op (ctx=0x1409480, op_ptr=0x7fffffffce87 "\237<\005@", op_end=0x7fffffffce88 "<\005@") at ../../src/gdb/dwarf2expr.c:1045 #6 0x0000000000674e29 in dwarf_expr_eval (ctx=0x1409480, addr=0x7fffffffce80 "\003\350\t`", len=8) at ../../src/gdb/dwarf2expr.c:364 #7 0x000000000067c5b2 in dwarf2_evaluate_loc_desc_full (type=0x10876d0, frame=0xd8ecc0, data=0x7fffffffce80 "\003\350\t`", size=8, per_cu=0xf24c40, byte_offset=0) at ../../src/gdb/dwarf2loc.c:2236 #8 0x000000000067cc65 in dwarf2_evaluate_loc_desc (type=0x10876d0, frame=0xd8ecc0, data=0x7fffffffce80 "\003\350\t`", size=8, per_cu=0xf24c40) at ../../src/gdb/dwarf2loc.c:2407 #9 0x000000000067a5d4 in dwarf_entry_parameter_to_value (parameter=0x13a7960, deref_size=18446744073709551615, type=0x10876d0, caller_frame=0xd8ecc0, per_cu=0xf24c40) at ../../src/gdb/dwarf2loc.c:1160 #10 0x000000000067a962 in value_of_dwarf_reg_entry (type=0x10876d0, frame=0xd8de70, kind=CALL_SITE_PARAMETER_DWARF_REG, kind_u=...) at ../../src/gdb/dwarf2loc.c:1310 #11 0x000000000067aaca in value_of_dwarf_block_entry (type=0x10876d0, frame=0xd8de70, block=0xf1c2d4 "Q", block_len=1) at ../../src/gdb/dwarf2loc.c:1363 #12 0x000000000067e7c9 in locexpr_read_variable_at_entry (symbol=0x13a7540, frame=0xd8de70) at ../../src/gdb/dwarf2loc.c:3326 #13 0x00000000005daab6 in read_frame_arg (sym=0x13a7540, frame=0xd8de70, argp=0x7fffffffd0e0, entryargp=0x7fffffffd100) at ../../src/gdb/stack.c:362 #14 0x00000000005db384 in print_frame_args (func=0x13a7470, frame=0xd8de70, num=-1, stream=0xea3890) at ../../src/gdb/stack.c:669 #15 0x00000000005dc338 in print_frame (frame=0xd8de70, print_level=1, print_what=SRC_AND_LOC, print_args=1, sal=...) at ../../src/gdb/stack.c:1199 #16 0x00000000005db8ee in print_frame_info (frame=0xd8de70, print_level=1, print_what=SRC_AND_LOC, print_args=1) at ../../src/gdb/stack.c:851 #17 0x00000000005da2bb in print_stack_frame (frame=0xd8de70, print_level=1, print_what=SRC_AND_LOC) at ../../src/gdb/stack.c:169 #18 0x00000000005de236 in frame_command (level_exp=0x0, from_tty=1) at ../../src/gdb/stack.c:2265 dwarf2_evaluate_loc_desc_full (frame #7) knows to handle NOT_AVAILABLE_ERROR errors, but read_memory always throws a generic error. Presently, only the value machinery knows to handle unavailable memory. We need to push the awareness down to the target_xfer layer, making it return a finer grained error indication. We can only return a generic -1 nowadays, which leaves the upper layers with no clue on why the xfer failed. Use target_xfer_partial directly, rather than propagating the error through target_read_memory so as to get a better address to display in the error message. (target_read_memory & friends build on top of target_read (thus the target_xfer machinery), but turn all errors to EIO, an errno value. I think this is a mistake, and we'd better convert all these to return a target_xfer_error too, but that can be done separately. I looked around a bit over memory_error calls, and the need to handle random errno values, other than the EIOs gdb itself hardcodes, probably comes (only) from deprecated_xfer_memory, which uses errno for error indication, but I didn't look exhaustively. We should really get rid of deprecated_xfer_memory and of passing down errno values as error indication in target_read & friends methods). Tested on x86_64 Fedora 17, native and gdbserver. Fixes the test in the PR, which will be added to the testsuite later. gdb/ 2013-08-22 Pedro Alves PR gdb/15871 * corefile.c (target_xfer_memory_error): New function. (memory_error): Defer EIO to target_memory_error. (read_memory): Use target_xfer_partial, and handle finer-grained target xfer errors. * target.c (target_xfer_error_to_string): New function. (memory_xfer_partial_1): If memory is known to be unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1. (target_xfer_partial): Make extern. * target.h (enum target_xfer_error): New enum. (target_xfer_error_to_string): Declare function. (target_xfer_partial): Declare function. (struct target_ops) : Adjust describing comment. commit 9434e80c7ee088c789e0c2325d601ccb0f8e8a0b Author: Alan Modra Date: Thu Aug 22 01:01:31 2013 +0000 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts. * configure.tgt: Likewise as targets. commit 584213c60f274b9b324f8a6f3ca41cee16e7ad79 Author: Alan Modra Date: Thu Aug 22 00:00:04 2013 +0000 daily update commit e30bf8cb4fc570bff589d514bc6aa1efc60afc5f Author: Pedro Alves Date: Wed Aug 21 21:32:42 2013 +0000 Renegerate gdbserver/config.in. In: gdb/gdbserver/ 2013-07-03 Pedro Alves * Makefile.in (config.status): Depend on development.sh. * acinclude.m4: Include libmcheck.m4. * configure: Regenerate. I missed regenerating config.in... Tested on x86_64 Fedora 17. gdb/gdbserver/ 2013-08-21 Pedro Alves * config.in: Renegerate. commit 22e36e75238fc6c558cb804dbc63c13d1f62b336 Author: Pedro Alves Date: Wed Aug 21 21:31:45 2013 +0000 Fix whitespace. commit bff6c67af3aec1b266c997a2b2299e2920974ef9 Author: Tristan Gingold Date: Wed Aug 21 08:15:23 2013 +0000 2013-08-21 Tristan Gingold * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Also count .ovrflo sections. * coffcode.h (coff_compute_section_file_positions): Force match between file offset and vma offset. commit cb673cb34ded88537006c84e783f9d49c43d175b Author: Nick Clifton Date: Wed Aug 21 07:28:37 2013 +0000 Fix typo commit a3caf600506466f458e83818058c34dbf29d5de8 Author: Alan Modra Date: Wed Aug 21 04:09:30 2013 +0000 * elflink.c (_bfd_elf_merge_symbol): Set *poldbfd, *poldweak, and *poldalignment before exiting when !relocs_compatible. commit 72371c5ce3490437d6b47aeb9090529611415f53 Author: Alan Modra Date: Wed Aug 21 03:45:43 2013 +0000 * elflink.c (_bfd_elf_define_linkage_sym): Don't set STV_INTERNAL symbols to STV_HIDDEN. commit 33c592e735c7e79c7f4425a22df8389f129d7495 Author: Alan Modra Date: Wed Aug 21 00:00:05 2013 +0000 daily update commit 622685115cb850489f823886f3146c2cfbff9a99 Author: Doug Evans Date: Tue Aug 20 18:57:00 2013 +0000 * buildsym.c (subfile_stack): Move here from buildsym.h. (pending_macros): Ditto. (get_macro_table): New function. (buildsym_init): Initialize subfile_stack. * coffread.c (type_vector,type_vector_length): Moved here from buildsym.h. (INITIAL_TYPE_VECTOR_LENGTH): Ditto. (coff_symtab_read): Use it. * dbxread.c (read_ofile_symtab): Delete init of subfile_stack. * dwarf2read.c (macro_start_file): Replace uses of pending_macros with call to get_macro_table. * stabsread.c (type_vector,type_vector_length): Moved here from buildsym.h. (INITIAL_TYPE_VECTOR_LENGTH): Ditto. * buildsym.h (get_macro_table): Declare. commit 3a7c0567a6b65a1c4afb5a7bea66fb55f06862d3 Author: Tom Tromey Date: Tue Aug 20 18:25:12 2013 +0000 * dbxread.c (record_minimal_symbol): Make 'name' argument const. Update. (read_dbx_dynamic_symtab): Make 'name' const. Remove casts. commit 5dcbe80dfa25db6ff69561e4c13213d555fa5870 Author: Doug Evans Date: Tue Aug 20 16:30:19 2013 +0000 * blockframe.c: Remove #include "psymtab.h". * cp-support.c: Ditto. * source.c: Ditto. * stack.c: Ditto. commit 356f33e36a0c597769f03dc2ce7b6e5953cab85c Author: Tom Tromey Date: Tue Aug 20 15:12:53 2013 +0000 fix PR python/15816 This fixes PR python/15816. The bug here is that python-selftest.exp can fail: No symbol "RETURN_MASK_ALL" in current context. RETURN_MASK_ALL is a macro, so if macros do not end up in the debuginfo (very typical) then the test fails. It seemed simplest to me to simply turn the RETURN_MASK_ defines into enum constants. This way they end up in the debuginfo and all is well. PR python/15816: * exceptions.h (return_mask): Now an enum. (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now enum constants. Built and regtested on x86-64 Fedora 18. commit c68c091dc292c9df749bfdbc9f9e455c4768dfcf Author: Tom Tromey Date: Tue Aug 20 15:04:50 2013 +0000 move gdbarch object from objfile to per-BFD This moves the "gdbarch" field from the objfile into the BFD. This field's value is derived from the BFD and is immutable over the lifetime of the BFD. This makes it a reasonable candidate for pushing into the per-BFD object. This is part of the long-term objfile splitting project. In the long run I think this patch will make it simpler to moves types from the objfile to the per-BFD object; but the patch makes sense as a minor cleanup by itself. Built and regtested on x86-64 Fedora 18. * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use get_objfile_arch. * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache) (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch. * jit.c (jit_object_close_impl): Update. * jv-lang.c (get_dynamics_objfile): Update. * linespec.c (add_minsym): Use get_dynamics_objfile. * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field. (allocate_objfile): Don't initialize 'gdbarch' field. (get_objfile_arch): Update. * objfiles.h (struct objfile_per_bfd_storage) : New field, moved from... (struct objfile) : ... here. Remove. * stap-probe.c (stap_can_evaluate_probe_arguments): Use get_objfile_arch. * symfile.c (init_entry_point_info): Use get_objfile_arch. commit d2d590480e6b5fe0f4eb65b98faf337290a4ba8e Author: Alan Modra Date: Tue Aug 20 06:42:19 2013 +0000 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half for IBM long double nan and inf. (floatformat_is_negative, floatformat_classify, floatformat_mantissa): Similarly. (floatformat_ieee_single, floatformat_ieee_double, floatformat_ieee_quad, floatformat_arm_ext, floatformat_ia64_spill): Delete unused vars. (_initialize_doublest): Delete unused function. * gdbtypes.c (floatformats_ibm_long_double): Use new big- and little-endian variants of floatformat_ibm_long_double. commit 4f5b788afee21f1333c3acc207b4940af960f6da Author: DJ Delorie Date: Tue Aug 20 06:02:49 2013 +0000 merge from gcc commit 1e38c501312eff37a31c1a288273ece115179aee Author: Alan Modra Date: Tue Aug 20 00:00:04 2013 +0000 daily update commit 97371cb2a4b357281259fcf3d050b2a58aeccc4f Author: Richard Sandiford Date: Mon Aug 19 19:56:44 2013 +0000 include/opcode/ * mips.h: Remove references to "+I" and imm2_expr. gas/ * config/tc-mips.c (imm2_expr): Delete. (md_assemble, match_insn, imm2_expr.X_op, mips_ip): Update accordingly. commit 2d55e44be67124b3ec003795171f9cbc03d8155f Author: Richard Sandiford Date: Mon Aug 19 19:54:40 2013 +0000 include/opcode/ * mips.h (M_DEXT, M_DINS): Delete. opcodes/ * micromips-opc.c (micromips_opcodes): Replace "dext" and "dins" macro entries with "dextm", "dextu", "dinsm" and "dinsu" aliases. Use +H rather than +C for the real "dext". * mips-opc.c (mips_builtin_opcodes): Likewise. gas/ * config/tc-mips.c (report_bad_range, report_bad_field): Delete. (macro): Remove M_DEXT and M_DINS handling. gas/testsuite/ * gas/mips/ext-ill.l, gas/mips/mips64r2-ill.l: Expect DEXT and DINS error messages to have the same form as the EXT and INS ones. * gas/mips/micromips-insn32.d, gas/mips/micromips-noinsn32.d, gas/mips/micromips-trap.d, gas/mips/micromips.d, gas/mips/micromips@mips64r2.d, gas/mips/mips64r2.d: Expect "dext" and "dins" instead of "dextm", "dextu", "dinsm" and "dinsu". commit 7366de51e99df23255a6076cf99a760553772f88 Author: Richard Sandiford Date: Mon Aug 19 18:56:59 2013 +0000 include/opcode/ * mips.h (OP_OPTIONAL_REG): New mips_operand_type. (mips_optional_operand_p): New function. opcodes/ * mips-formats.h (OPTIONAL_REG, OPTIONAL_MAPPED_REG): New macros. * micromips-opc.c (decode_micromips_operand): Use OPTIONAL_REG and OPTIONAL_MAPPED_REG. * mips-opc.c (decode_mips_operand): Likewise. * mips16-opc.c (decode_mips16_operand): Likewise. * mips-dis.c (print_insn_arg): Handle OP_OPTIONAL_REG. gas/ * config/tc-mips.c (operand_reg_mask, match_operand): Handle OP_OPTIONAL_REG. (mips_ip, mips16_ip): Use mips_optional_operand_p to check for optional operands. commit b9df521b0b9c5ec5920b070016ecdcbc1557c075 Author: Luis Machado Date: Mon Aug 19 16:54:10 2013 +0000 gdb/ * Makefile.in (SFILES): Remove common/target-common.c and add target/waitstatus.c. (HFILES_NO_SRCDIR): Remove common/target-common.h and add target/resume.h, target/wait.h and target/waitstatus.h. (COMMON_OBS): Remove target-common.o and add waitstatus.o. (target-common.o): Remove. (waitstatus.o): New target object file. * common/target-common.c: Move contents to target/waitstatus.c and remove. * common/target-common.h: Move contents to other files and remove. (enum resume_kind: Move to target/resume.h. (TARGET_WNOHANG): Move to target/wait.h. (enum target_waitkind): Move to target/waitstatus.h. (struct target_waitstatus): Likewise. * target.h: Do not include target-common.h and include target/resume.h, target/wait.h and target/waitstatus.h. * target/resume.h: New file. * target/wait.h: New file. * target/waitstatus.h: New file. * target/waitstatus.c: New file. gdb/gdbserver/ * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../. (SFILES): Remove $(srcdir)/common/target-common.c and add $(srcdir)/target/waitstatus.c. (OBS): Remove target-common.o and add waitstatus.o. (server_h): Remove $(srcdir)/../common/target-common.h and add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h and $(srcdir)/../target/waitstatus.h. (target-common.o): Remove. (waitstatus.o): New target object file. * target.h: Do not include target-common.h and include target/resume.h, target/wait.h and target/waitstatus.h. commit ba41d457d36a40a522b6b3a563bd3e3f2266ad24 Author: H.J. Lu Date: Mon Aug 19 15:58:51 2013 +0000 Remove PREFIX_EVEX_0F3A3E and PREFIX_EVEX_0F3A3F * i386-dis.c (PREFIX_EVEX_0F3A3E): Removed. (PREFIX_EVEX_0F3A3F): Likewise. * i386-dis-evex.h (evex_table): Updated. commit 3e59540b2c325b6d3bf9badeb8d3f4a6a8a2f0f2 Author: Pedro Alves Date: Mon Aug 19 13:44:40 2013 +0000 linux-nat.c: no need to block child signals so aggressively. In http://sourceware.org/ml/gdb-patches/2013-08/msg00174.html , the issue of child signal handling around ptrace option support discovery being different between GDB and GDBserver came up. I recalled adding these block_child_signals calls, and the "We don't want those ptrace calls to be interrupted" comment, but not exactly why. So I looked into it. My first guess is that I got confused. The patch that added this rewrote the linux native async support completely, and the old async support code had the SIGCHLD handler itself do waitpid, so in places that we'd want a blocking waitpid, we'd have to have the signal handler blocked. That was probably the mindset I had at the time. Anyway, whatever the case, looks like I was wrong on the need for this blocking. Given GDBserver doesn't block like this, I investigated why this is currently needed on GDB but not on GDBserver. I removed the block_child_signals (and restore) calls, and hacked linux-nat.c to call linux_test_for_tracefork in a loop, like: @@ -534,7 +534,10 @@ static int linux_supports_tracefork (int pid) { if (linux_supports_tracefork_flag == -1) - linux_test_for_tracefork (pid); + { + while (1) + linux_test_for_tracefork (pid); + } return linux_supports_tracefork_flag; } Running the resulting GDB, I then saw bad things happening. Specifically, I'd end up with a bunch of zombies, and eventually, the machine would refuse to spawn new processes, claming insufficient resources. The issue is that linux_test_for_tracefork test forks, and has the child fork again. If we don't block SIGCHLD on entry to the function, the children will inherit SIGCHLD's action/disposition (meaning, SIGCHLD will be unblocked in the child). When the first child forks again a second child, and that child exits, the first child gets a SIGCHLD. Now, when we try to wrap up for the whole options test, we kill the first child, and collect the waitstatus. Here, when SIGCHLD isn't blocked, GDB will first see the child reporting a stop with SIGCHLD. gdbserver's ptrace options test does a PTRACE_KILL loop at the end, which catches the SIGCHLD, and retries the kill. The GDB version did not do that. So the GDB version would proceed, leaving the child zombie (until GDB exists), as nothing collected its final waitstatus. So this patch makes the GDB version of linux_test_for_tracefork do the exact same as the GDBserver version, removes all this unnecessary blocking throughout, and adds a couple comments at places that do need it -- namely: places where we'll use sleep with sigsuspend; and linux_async_pipe, as that destroys the pipe the signal handler touches. Tested on x86_64 Fedora 17, sync and async. gdb/ 2013-08-19 Pedro Alves * linux-nat.c (linux_test_for_tracefork) (linux_test_for_tracesysgood, linux_child_follow_fork) (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals. (linux_nat_wait_1): Extend comment. (linux_async_pipe): Add comment. commit 4315d6c8f8fa9ba730d25e021f7e65d40a382b8c Author: Alan Modra Date: Mon Aug 19 00:00:04 2013 +0000 daily update commit a84acd2d6c8726841e70ad640b4e643f34977bb8 Author: Alan Modra Date: Sun Aug 18 00:00:04 2013 +0000 daily update commit a2a2f8a23fd0edee777c96f65b48a93e5b9551ac Author: Joel Brobecker Date: Sat Aug 17 01:07:52 2013 +0000 src-release: Strip "-cvs" from GDB source dir and tarball. The nightly snapshots we have been creating in the past did not include the "-cvs" suffix at the end of the version number. Snapshot packaging started breaking ever since GDB switched to using BFD's version number. Things got partially fixed with the previous change to this file, but the change missed the fact that the "-cvs" suffix in the tarball name (Eg: gdb-7.6.50-20130816-cvs.tar) is undesirable. This patch removes it. ChangeLog: * src-release (VER): When using $(TOOL)/common/create-version.sh, strip the "-cvs" suffix from the version number if present. commit 916b0a5a3b910780762f6aa41d109f49ed553739 Author: Alan Modra Date: Sat Aug 17 00:00:04 2013 +0000 daily update commit f6ab5fbdcdf54d0d7528b0e2e50940b2fa3fc4b8 Author: Doug Evans Date: Fri Aug 16 17:44:21 2013 +0000 * lib/prelink-support.exp (prelink_yes): Flag test as unsupported if prelink complains about an unhandled DWARF version. commit 542a48acaa5da3064cefd930640fee9386ca3a9d Author: Kevin Buettner Date: Fri Aug 16 04:30:22 2013 +0000 Make RL78_PC_REGNUM a pseudo-register in rl78-tdep.c. commit 4ba84d93a56d76c1362c767590c5127b74737b74 Author: Alan Modra Date: Fri Aug 16 00:00:04 2013 +0000 daily update commit b544581812efb1f3aa109fe43f555dc766acd101 Author: mbilal Date: Thu Aug 15 08:18:31 2013 +0000 2013-08-15 Muhammad Bilal PR cli/15841 * top.c (quit_force): Skip writing history file if input is not from terminal. commit 69899c5df2bde087ef011aaf95a55da163191a2c Author: Alan Modra Date: Thu Aug 15 00:00:04 2013 +0000 daily update commit ce50b5e4ae0464cc33c66db1f1f59579936b5e24 Author: Doug Evans Date: Wed Aug 14 20:39:32 2013 +0000 * boards/fission.exp: Add -fdebug-types-section to debug_flags. commit 8abaf51ae72af403e4007ded6c0169750347d27d Author: Tom Tromey Date: Wed Aug 14 18:17:50 2013 +0000 move some static thread state into remote_state This moves a few static variables from thread-info functions into remote_state. Pedro said on irc that these functions implement the ancient thread-discovery method and that he wouldn't be surprised if they had rotted; nevertheless it seems safer to me to make them explicitly per-remote. This necessitated moving a couple of macros and a typedef earlier in the file. * remote.c (struct remote_state) : New fields. (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier. (remote_get_threadlist, remote_threadlist_iterator): Use new fields. Remove static variables. commit 5c0146f05a0e2dbb22ee9d8fa15c694416d1b0dd Author: Tom Tromey Date: Wed Aug 14 18:17:12 2013 +0000 move remote_stopped_by_watchpoint_p and remote_watch_data_address into remote_state This moves the globals remote_stopped_by_watchpoint_p and remote_watch_data_address into remote_state. * remote.c (struct remote_state) : New fields. (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove. (process_stop_reply, remote_wait_as) (remote_check_watch_resources, remote_stopped_data_address): Update. commit c4ff6240497bed84d87ad36114762fbe6749e390 Author: Tom Tromey Date: Wed Aug 14 18:16:30 2013 +0000 move async_client_callback and async_client_context into remote_state This moves async_client_callback and async_client_context into remote_state. * remote.c (struct remote_state) : New fields. (async_client_callback, async_client_context): Remove. (remote_async_serial_handler, remote_async): Update. commit 314476b193adb1ccc41f8a8580961e76a5a5c354 Author: Tom Tromey Date: Wed Aug 14 18:15:48 2013 +0000 move sizeof_pkt into remote_trace_find The global sizeof_pkt is only used in remote_trace_find, like so: reply = remote_get_noisy_reply (&(rs->buf), &sizeof_pkt); I think in this situation it is more correct to use the recorded size of the buffer. Otherwise it seems that some skew could result. * remote.c (sizeof_pkt): Remove. (remote_trace_find): Use rs->buf_size, not sizeof_pkt. commit 19b9b724623256b7ff6412a37f8919641e585c96 Author: Tom Tromey Date: Wed Aug 14 18:15:00 2013 +0000 move use_threadinfo_query and use_threadextra_query into struct remote_state This moves the use_threadextra_query and use_threadinfo_query globals into remote_state. * remote.c (struct remote_state) : New fields. (remote_threads_info, remote_threads_extra_info) (remote_open_1): Update. ----------------------------------------------------------------------- hooks/post-receive -- Repository for Project Archer.