From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103033 invoked by alias); 20 Jul 2015 11:35:46 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 103020 invoked by uid 89); 20 Jul 2015 11:35:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f169.google.com Received: from mail-pd0-f169.google.com (HELO mail-pd0-f169.google.com) (209.85.192.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 20 Jul 2015 11:35:44 +0000 Received: by pdbbh15 with SMTP id bh15so55153630pdb.1 for ; Mon, 20 Jul 2015 04:35:42 -0700 (PDT) X-Received: by 10.66.146.132 with SMTP id tc4mr59227057pab.124.1437392142734; Mon, 20 Jul 2015 04:35:42 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id db1sm21335338pdb.50.2015.07.20.04.35.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Jul 2015 04:35:42 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH 0/8] Fix various issues in --wrapper in GDBserver Date: Mon, 20 Jul 2015 11:35:00 -0000 Message-Id: <1437392126-29503-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00551.txt.bz2 The original goal of this patch series is to fix GDBserver bug that it creates target description too early. The real fix and details can be found in patch #7. Patch #5 and #6 are refactor patch, and do preparations for patch #7. Patch #8 is a cleanup patch. When I fix this target description issue, I see some other problems, so I fix them together within this patch series. Patch #1 - #4 are not strictly related to this target description creation issue. Patch #1 lets GDBserver to complain when --attach and --wrapper are used together. Patch #2 adds a test for --wrapper in extended mode. Patch #3 adds a test about restarting process, and includes a fix to a problem exposed by the test. Patch #4 adds a test for --wrapper to restart process. With these tests added, I can make sure my following changes/patches don't break anything. The whole series are tested on 86_64-linux both native and gdbserver. OK for mainline and 7.10 branch? *** BLURB HERE *** Yao Qi (8): Disallow using --attach and --wrapper together. Test --wrapper in extended-remote Set general_thread after restart Test --wrapper when restarting process. Refactor start_inferior Set proc->priv->new_inferior out of linux_add_process Initialise target descrption after skipping extra traps for --wrapper Remove proc->priv->new_inferior gdb/gdbserver/linux-low.c | 77 +++++++++++++++++++++++++------- gdb/gdbserver/linux-low.h | 5 --- gdb/gdbserver/lynx-low.c | 1 + gdb/gdbserver/nto-low.c | 1 + gdb/gdbserver/server.c | 40 +++++++++++------ gdb/gdbserver/spu-low.c | 1 + gdb/gdbserver/target.h | 10 +++++ gdb/gdbserver/win32-low.c | 1 + gdb/testsuite/gdb.server/ext-restart.exp | 65 +++++++++++++++++++++++++++ gdb/testsuite/gdb.server/ext-wrapper.exp | 72 +++++++++++++++++++++++++++++ gdb/testsuite/lib/gdbserver-support.exp | 16 ++++--- 11 files changed, 251 insertions(+), 38 deletions(-) create mode 100644 gdb/testsuite/gdb.server/ext-restart.exp create mode 100644 gdb/testsuite/gdb.server/ext-wrapper.exp -- 1.9.1