From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25007 invoked by alias); 25 Oct 2013 15:27:49 -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 24988 invoked by uid 89); 25 Oct 2013 15:27:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: hermes.synopsys.com Received: from us01smtp3.synopsys.com (HELO hermes.synopsys.com) (198.182.44.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 25 Oct 2013 15:27:47 +0000 Received: from WBSNus01mta2 (us01secmta2.synopsys.com [10.9.203.102]) by hermes.synopsys.com (Postfix) with ESMTP id 3CAD972E8; Fri, 25 Oct 2013 08:27:46 -0700 (PDT) Received: from us01secmta2.internal.synopsys.com (us01secmta2.internal.synopsys.com [127.0.0.1]) by us01secmta2.internal.synopsys.com (Service) with ESMTP id 30C8CA4112; Fri, 25 Oct 2013 08:27:46 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by us01secmta2.internal.synopsys.com (Service) with ESMTP id 10502A4102; Fri, 25 Oct 2013 08:27:46 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 04FA0342; Fri, 25 Oct 2013 08:27:46 -0700 (PDT) Received: from us01wehtc1.internal.synopsys.com (us01wehtc1-vip.internal.synopsys.com [10.12.239.236]) by mailhost.synopsys.com (Postfix) with ESMTP id EAABB341; Fri, 25 Oct 2013 08:27:45 -0700 (PDT) Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.27) by us01wehtc1.internal.synopsys.com (10.12.239.235) with Microsoft SMTP Server (TLS) id 14.2.298.4; Fri, 25 Oct 2013 08:27:45 -0700 Received: from DE02WEMBXA.internal.synopsys.com ([fe80::a014:7216:77d:d55c]) by DE02WEHTCA.internal.synopsys.com ([::1]) with mapi id 14.02.0298.004; Fri, 25 Oct 2013 17:27:43 +0200 From: Anton Kolesov To: Pedro Alves CC: "gdb-patches@sourceware.org" , "Jeremy.bennett@embecosm.com" Subject: RE: [PATCH] testsuite: Fix gdb.base/bang.exp for remote stubs without exit Date: Fri, 25 Oct 2013 15:27:00 -0000 Message-ID: <39A54937CC95F24AA2F794E2D2B66B1356BDC3B3@de02wembxa.internal.synopsys.com> References: <1381309094-24410-1-git-send-email-Anton.Kolesov@synopsys.com> <52553DEE.5090009@redhat.com> <39A54937CC95F24AA2F794E2D2B66B1356BDC197@de02wembxa.internal.synopsys.com> <526A628A.7060805@redhat.com> <526A65C0.2050102@redhat.com> In-Reply-To: <526A65C0.2050102@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg00800.txt.bz2 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBQZWRybyBB bHZlcyBbbWFpbHRvOnBhbHZlc0ByZWRoYXQuY29tXQ0KPiBTZW50OiAyNSBP Y3RvYmVyIDIwMTMgMTY6MzYNCj4gVG86IEFudG9uIEtvbGVzb3YNCj4gQ2M6 IGdkYi1wYXRjaGVzQHNvdXJjZXdhcmUub3JnOyBKZXJlbXkuYmVubmV0dEBl bWJlY29zbS5jb20NCj4gU3ViamVjdDogUmU6IFtQQVRDSF0gdGVzdHN1aXRl OiBGaXggZ2RiLmJhc2UvYmFuZy5leHAgZm9yIHJlbW90ZSBzdHVicw0KPiB3 aXRob3V0IGV4aXQNCj4gDQo+IA0KPiBEb25lLCBhcyBiZWxvdy4gIFRoYW5r cyBmb3IgdGhlIHBhdGNoLg0KDQoNCj4gDQo+IE5vdGUgSSBmaXhlZCBhIHNw dXJpb3VzIHdoaXRlc3BhY2U6DQo+ICAkIGdpdCBhbSAvdG1wL21ib3gNCj4g IEFwcGx5aW5nOiB0ZXN0c3VpdGU6IEZpeCBnZGIuYmFzZS9iYW5nLmV4cCBm b3IgcmVtb3RlIHN0dWJzIHdpdGhvdXQgZXhpdA0KPiAgL2hvbWUvcGVkcm8v Z2RiL215Z2l0L3NyYy8uZ2l0L3JlYmFzZS1hcHBseS9wYXRjaDoyMzogdHJh aWxpbmcNCj4gd2hpdGVzcGFjZS4NCj4gIGdkYl9jb250aW51ZV90b19lbmQg IiIgY29udGludWUgMQ0KPiAgd2FybmluZzogMSBsaW5lIGFkZHMgd2hpdGVz cGFjZSBlcnJvcnMuDQo+IA0KPiBBbmQgYWxzbyBmaXhlZCBDaGFuZ2VMb2cg ZW50cnkgZm9ybWF0dGluZyAtLSBzaG91bGQgYmUgdHdvIHNwYWNlcw0KPiBi ZXR3ZWVuIG5hbWUgYW5kIGVtYWlsLg0KPiANCj4gKCJ0aW55IGNoYW5nZSIg aXMganVzdCBob3cgd2UgbWFyayBwYXRjaGVzIHRoYXQgZG9uJ3QgYWRkIHVw DQo+IHRvIHNvbWV0aGluZyBsZWdhbGx5IHNpZ25pZmljYW50LikNCg0KVGhh bmtzLiBJIHdpbGwgdGFsayB0byBtYW5hZ2VtZW50IGFuZCBsZWdhbCBkZXBh cnRtZW50IHRvIHNvcnQgb3V0IGNvcHlyaWdodCBpc3N1ZXMuIEkgd2lsbCBw YXkgZ3JlYXRlciBhdHRlbnRpb24gdG8gdGhvc2UgZGV0YWlscy4NCg0KQW50 b24gS29sZXNvdg0KDQoNCg0K >From gdb-patches-return-106688-listarch-gdb-patches=sources.redhat.com@sourceware.org Fri Oct 25 15:36:19 2013 Return-Path: Delivered-To: listarch-gdb-patches@sources.redhat.com Received: (qmail 32613 invoked by alias); 25 Oct 2013 15:36:19 -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 Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 32603 invoked by uid 89); 25 Oct 2013 15:36:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 25 Oct 2013 15:36:18 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9PFaBjF003932 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 25 Oct 2013 11:36:11 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r9PFa9ml005294; Fri, 25 Oct 2013 11:36:10 -0400 Message-ID: <526A8FE8.70701@redhat.com> Date: Fri, 25 Oct 2013 15:36:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Yao Qi CC: "ILG.Robert" , "gdb-patches@sourceware.org" Subject: Re: WG: Extending RSP with vCont;n and vCont;f References: <7E3A266F5548C442BC08FA3038B5197C684495C0@ATFKEX06.bachmann.at> <525117AF.60703@codesourcery.com> <7E3A266F5548C442BC08FA3038B5197C68449C77@ATFKEX06.bachmann.at> <52678559.6040004@codesourcery.com> In-Reply-To: <52678559.6040004@codesourcery.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-10/txt/msg00801.txt.bz2 Content-length: 1222 On 10/23/2013 09:14 AM, Yao Qi wrote: > Sorry for the delayed reply. > > On 10/09/2013 07:37 PM, ILG.Robert wrote: >> "Next" does not skip a whole line. It only skips a possible function call. Such no DWARF2 information is needed - only the stack and the a few assembler instructions need to be evaluated. But really that is solving the problem at the wrong place. If the user does "si" himself and that gets into one of those assembly functions, and then the user does "backtrace", he should see the real caller of the assembly function. If that doesn't work, then the unwind info of the assembly functions should be fixed. vCont;n is just solving one symptom of a more fundamental problem, not the root issue. > Generally, hardware breakpoints can be used for read-only regions. If > your hardware has hw breakpoints, GDB or your stub can switch breakpoint > to hw breakpoint if the region is read-only or the address is within > your system code. Looks it is easier to do it inside your stub. People > who familiar with breakpoint can give comments too. Agreed. Robert, for the GDB side, see "set breakpoint auto-hw on" at: https://sourceware.org/gdb/onlinedocs/gdb/Set-Breaks.html -- Pedro Alves