From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 82922 invoked by alias); 19 Apr 2016 07:50:42 -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 82906 invoked by uid 89); 19 Apr 2016 07:50:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=sk:fno-asy, sk:fnoasy, HX-Received:10.98.72.153, HERE X-HELO: mail-pf0-f179.google.com Received: from mail-pf0-f179.google.com (HELO mail-pf0-f179.google.com) (209.85.192.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 19 Apr 2016 07:50:40 +0000 Received: by mail-pf0-f179.google.com with SMTP id 184so4321216pff.0 for ; Tue, 19 Apr 2016 00:50:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=6XWvnQmUWr4UgxqBle1tAOgrMmrkev8I20dGGHgw0f4=; b=HdPFff19Fvw1Hvs9EuAXjBThdjPsWXeUjdhh1dhHleseBjW2LaO0QSsu1d9zuIFBL1 ZdfakXRUziXtGoYOyb18nGvRXWsg7vKPxNav2l6Ymeu2QUKY9/DOIdOoxYnzDkUfwEQm DHzWqCUtun7B0Pm0vLsdnr2CNam0Ffj3GCBHtzNcdVHc0Y3MuciigFbZlq8PUvTwZ9OY h1ETqrCpTSs2JLtQzFfP0BU/r14A6ndMzbgnnhnxg1GGzAghc9YIXtY8M8EoaEXcFKza hDHrSK+9ONmPDqe6g93BsKdbhaY2r+Usl21qtbvWEk6HEAlEuPx5j38Krw3As6R+E+pf XFnA== X-Gm-Message-State: AOPr4FXpn64rM4J79t2mmOJxJhZ/CzYEseczrEku6zMy7agyKLTu1PIjQskBaMrjAYhJwg== X-Received: by 10.98.72.153 with SMTP id q25mr2079674pfi.29.1461052239150; Tue, 19 Apr 2016 00:50:39 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id p128sm10125574pfp.59.2016.04.19.00.50.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Apr 2016 00:50:38 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH 0/2] PR 19947: throw right exception in read_code and read_stack Date: Tue, 19 Apr 2016 07:50:00 -0000 Message-Id: <1461052220-10149-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00428.txt.bz2 Hi, Patch 1 triggers PR 19947, because it uses -fno-asynchronous-unwind-tables in the compilation of test case, so that there is no DWARF info, and GDB has to choose prologue unwinder. In this way, the prologue unwinder can be tested under the situation that memory/register is not available. Patch 2 is the fix, by throwing the right exception in read_code and read_stack. See details in patch 2. Regression tested on x86_64-linux. *** BLURB HERE *** Yao Qi (2): Use -fno-asynchronous-unwind-tables if C program is compiled without debug info on x86 Throw NOT_AVAILABLE_ERROR in read_stack and read_code gdb/corefile.c | 29 +++++++++++++++-------------- gdb/testsuite/lib/gdb.exp | 9 +++++++++ 2 files changed, 24 insertions(+), 14 deletions(-) -- 1.9.1