From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15252 invoked by alias); 25 Jun 2014 13:00:40 -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 15229 invoked by uid 89); 25 Jun 2014 13:00:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: na01-by2-obe.outbound.protection.outlook.com Received: from mail-by2lp0244.outbound.protection.outlook.com (HELO na01-by2-obe.outbound.protection.outlook.com) (207.46.163.244) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 25 Jun 2014 13:00:37 +0000 Received: from BL2FFO11FD043.protection.gbl (10.173.160.30) by BL2FFO11HUB035.protection.gbl (10.173.161.115) with Microsoft SMTP Server (TLS) id 15.0.969.12; Wed, 25 Jun 2014 13:00:34 +0000 Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2FFO11FD043.mail.protection.outlook.com (10.173.161.139) with Microsoft SMTP Server (TLS) id 15.0.969.12 via Frontend Transport; Wed, 25 Jun 2014 13:00:34 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-smtp1) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1WzmoU-0002mi-9Z; Wed, 25 Jun 2014 06:00:34 -0700 From: Ajit Kumar Agarwal To: Michael Eager , Pedro Alves CC: "gdb-patches@sourceware.org" , Michael Eager , Vinod Kathail , Vidhumouli Hunsigida , Nagaraju Mekala Subject: RE: [Patch, microblaze]: Fix for remote G Packet message too long error for baremetal. Date: Wed, 25 Jun 2014 13:00:00 -0000 References: <53A023B1.5000105@redhat.com> <859f27cb-8c46-46c1-9625-7287c60f3ae9@BY2FFO11FD007.protection.gbl> <53A1ABF0.9080004@redhat.com> <74281fd5-518a-4d7f-977a-6fa1320f6db9@BY2FFO11FD016.protection.gbl> <53A1B61F.9080803@redhat.com> <736c2e0d-6ff1-40c3-8120-dc6f5d91e6b1@BL2FFO11FD052.protection.gbl> <53A8290A.1050701@redhat.com> <53A94147.4050700@redhat.com> <57ebe4b0-83eb-4208-9778-472ecf0048d4@BY2FFO11FD038.protection.gbl> <53A96993.5040804@redhat.com> <53A986EC.4040005@eagerm.com> In-Reply-To: <53A986EC.4040005@eagerm.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-RCIS-Action: ALLOW Message-ID: <11d733f8-9839-4f92-a54d-ca907a28f026@BL2FFO11FD043.protection.gbl> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;IPV:NLI;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(6009001)(438002)(199002)(189002)(479174003)(51704005)(13464003)(377454003)(24454002)(21056001)(53416004)(85306003)(106116001)(81542001)(23676002)(99396002)(77096002)(77982001)(76482001)(46102001)(74316001)(64706001)(79102001)(4396001)(83322001)(74502001)(33646001)(80022001)(19580395003)(19580405001)(50986999)(92566001)(92726001)(31696002)(6806004)(31966008)(2656002)(54356999)(44976005)(76176999)(20776003)(95666004)(50466002)(87936001)(83072002)(47776003)(81342001)(70736001)(86362001)(104016002)(106466001)(85852003)(1496007)(93886003)(74662001)(107046001);DIR:OUT;SFP:;SCL:1;SRVR:BL2FFO11HUB035;H:xsj-pvapsmtpgw01;FPR:;MLV:sfv;PTR:unknown-60-83.xilinx.com;A:1;MX:1;LANG:en; X-OriginatorOrg: xilinx.onmicrosoft.com X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 02530BD3AA Received-SPF: Pass (: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=ajit.kumar.agarwal@xilinx.com; X-SW-Source: 2014-06/txt/msg00879.txt.bz2 DQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBNaWNoYWVs IEVhZ2VyIFttYWlsdG86ZWFnZXJAZWFnZXJtLmNvbV0gDQpTZW50OiBUdWVz ZGF5LCBKdW5lIDI0LCAyMDE0IDc6NDEgUE0NClRvOiBQZWRybyBBbHZlczsg QWppdCBLdW1hciBBZ2Fyd2FsDQpDYzogZ2RiLXBhdGNoZXNAc291cmNld2Fy ZS5vcmc7IE1pY2hhZWwgRWFnZXI7IFZpbm9kIEthdGhhaWw7IFZpZGh1bW91 bGkgSHVuc2lnaWRhOyBOYWdhcmFqdSBNZWthbGENClN1YmplY3Q6IFJlOiBb UGF0Y2gsIG1pY3JvYmxhemVdOiBGaXggZm9yIHJlbW90ZSBHIFBhY2tldCBt ZXNzYWdlIHRvbyBsb25nIGVycm9yIGZvciBiYXJlbWV0YWwuDQoNCk9uIDA2 LzI0LzE0IDA1OjA1LCBQZWRybyBBbHZlcyB3cm90ZToNCj4gT24gMDYvMjQv MjAxNCAxMToyOCBBTSwgQWppdCBLdW1hciBBZ2Fyd2FsIHdyb3RlOg0KPj4+ PiBBcyBJIG1lbnRpb25lZCBiZWZvcmUsIHBsZWFzZSBkb24ndCBmb3JnZXQg dG8gZG9jdW1lbnQgdGhlIG5ldyB0YXJnZXQgZmVhdHVyZXMgaW4gdGhlIG1h bnVhbC4NCj4+DQo+PiBXb3VsZCB5b3UgbWluZCBpbiBleHBsYWluaW5nIHdo aWNoIG1hbnVhbCBuZWVkIHRvIGJlIGNoYW5nZWQgZm9yIHRoZSBuZXcgdGFy Z2V0Lg0KPg0KPiBUaGUgR0RCIG1hbnVhbCwgZ2RiL2RvYy9nZGIudGV4aW5m bywgZGVzY3JpYmVzIGFsbCB0aGUgc3RhbmRhcmQgWE1MIA0KPiB0YXJnZXQg ZmVhdHVyZXMuICBTZWUgdGhlICJTdGFuZGFyZCBUYXJnZXQgRmVhdHVyZXMi IG5vZGUsIGFuZCBhZGQgYSANCj4gbmV3IHN1YnNlY3Rpb24gZm9yIE1pY3Jv QmxhemUuDQoNCj4+bWljcm9ibGF6ZS1nZGIgY29ubmVjdHMgdG8gdGhlIHRh cmdldCB1c2luZyBhIEpUQUcgaW50ZXJmYWNlIHdoaWNoIHRhbGtzIHRvIGEg WGlsaW54LXByb3ByaWV0YXJ5IHByb2dyYW0gY2FsbGVkIFhNRC4gIFhNRCBp bXBsZW1lbnRzIHRoZSBnZGJzZXJ2ZXIgcHJvdG9jb2wuICBBcyBmYXIgYXMg SSdtIGF3YXJlLCA+PlhNRCBkb2VzIG5vdCBwcm92aWRlIHRhcmdldCBmZWF0 dXJlIGRlc2NyaXB0aW9ucy4NCg0KWE1EIGdkYiBzZXJ2ZXIgZG9lcyBub3Qg aGF2ZSB0YXJnZXQgZmVhdHVyZSBkZXNjcmlwdGlvbnMuIA0KLS0gDQpNaWNo YWVsIEVhZ2VyCSBlYWdlckBlYWdlcmNvbi5jb20NCjE5NjAgUGFyayBCbHZk LiwgUGFsbyBBbHRvLCBDQSA5NDMwNiAgNjUwLTMyNS04MDc3DQo= >From gdb-patches-return-113808-listarch-gdb-patches=sources.redhat.com@sourceware.org Wed Jun 25 14:09:44 2014 Return-Path: Delivered-To: listarch-gdb-patches@sources.redhat.com Received: (qmail 1170 invoked by alias); 25 Jun 2014 14:09:43 -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 1151 invoked by uid 89); 25 Jun 2014 14:09:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 25 Jun 2014 14:09:40 +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 s5PE9XVA027853 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Jun 2014 10:09:34 -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 s5PE9VJk002041; Wed, 25 Jun 2014 10:09:31 -0400 Message-ID: <53AAD81A.9000707@redhat.com> Date: Wed, 25 Jun 2014 14:09:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Michael Eager , Ajit Kumar Agarwal CC: "gdb-patches@sourceware.org" , Michael Eager , Vinod Kathail , Vidhumouli Hunsigida , Nagaraju Mekala Subject: Re: [Patch, microblaze]: Fix for remote G Packet message too long error for baremetal. References: <53A023B1.5000105@redhat.com> <859f27cb-8c46-46c1-9625-7287c60f3ae9@BY2FFO11FD007.protection.gbl> <53A1ABF0.9080004@redhat.com> <74281fd5-518a-4d7f-977a-6fa1320f6db9@BY2FFO11FD016.protection.gbl> <53A1B61F.9080803@redhat.com> <736c2e0d-6ff1-40c3-8120-dc6f5d91e6b1@BL2FFO11FD052.protection.gbl> <53A8290A.1050701@redhat.com> <53A94147.4050700@redhat.com> <57ebe4b0-83eb-4208-9778-472ecf0048d4@BY2FFO11FD038.protection.gbl> <53A96993.5040804@redhat.com> <53A986EC.4040005@eagerm.com> In-Reply-To: <53A986EC.4040005@eagerm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-06/txt/msg00880.txt.bz2 Content-length: 1584 On 06/24/2014 03:10 PM, Michael Eager wrote: > On 06/24/14 05:05, Pedro Alves wrote: >> On 06/24/2014 11:28 AM, Ajit Kumar Agarwal wrote: >>>>> As I mentioned before, please don't forget to document the new target features in the manual. >>> >>> Would you mind in explaining which manual need to be changed for the new target. >> >> The GDB manual, gdb/doc/gdb.texinfo, describes all the standard XML target >> features. See the "Standard Target Features" node, and add a new subsection >> for MicroBlaze. > > microblaze-gdb connects to the target using a JTAG interface which talks > to a Xilinx-proprietary program called XMD. XMD implements the gdbserver > protocol. As far as I'm aware, XMD does not provide target feature > descriptions. It's expected that XMD does not provide target descriptions, because the support on the GDB side was missing. Ajit's patch teaches the microblaze port about a couple new standard features. All standard xml target features are defined by GDB, and should be documented. Nothing stops GDB from talking to servers other than XMD after all. After the patch is in, if future XMDs (or other servers) want to expose random microblaze registers to GDB, like, e.g., I/O control registers, it just needs to send in a target description that includes them, and GDB will present them (without GDB changes). Meanwhile, Ajit's patch keeps compatibility with current XMDs by adding a G packet size to target description mapping (a standard transitioning mechanism also used by ARM and MIPS). Hope that clarifies things. Thanks, -- Pedro Alves