From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32259 invoked by alias); 21 Nov 2011 21:06:59 -0000 Received: (qmail 32250 invoked by uid 22791); 21 Nov 2011 21:06:58 -0000 X-SWARE-Spam-Status: No, hits=-7.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 21 Nov 2011 21:06:24 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pALL613d008736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 21 Nov 2011 16:06:01 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pALL60t4011078; Mon, 21 Nov 2011 16:06:00 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id pALL5wfH031528; Mon, 21 Nov 2011 16:05:59 -0500 From: Tom Tromey To: Gyula Gubacsi Cc: Joel Brobecker , gdb@sourceware.org Subject: Re: Support of the D programming language References: <20111108164128.GH335@adacore.com> Date: Mon, 21 Nov 2011 21:06:00 -0000 In-Reply-To: (Gyula Gubacsi's message of "Mon, 21 Nov 2011 14:27:52 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00103.txt.bz2 >>>>> "Gyula" == Gyula Gubacsi writes: Gyula> I've contacted with Mihail however he said that the support is failing Gyula> due to some conflict with the DWARF4. (The 3 D-specific DWARF Gyula> extensions are overlapping with some DWARF4 extensions Gyula> http://d.puremagic.com/issues/show_bug.cgi?id=4180). Gyula> As this should be resolved within the compiler development community, Gyula> I would like to get comfortable to contribute to GDB the necessary D Gyula> specific interface. I read the development resources however I still Gyula> feel kinda lost in the GDB dev environment, I would appreciate if Gyula> someone could help me out with some specific blog entries or similar, Gyula> so I could catch up faster. (For first I would like to learn how to Gyula> add reasonable test suites for testing the D interface.) There's no easy way to learn a lot of this stuff. You will end up having to read a lot of code. I looked at the bug. For DWARF extensions, I highly recommend coordinating with GNU and putting the extension opcodes in the GNU part of the vendor space. Specifically I would recommend a page on the GCC wiki describing the extension, plus a patch to include/dwarf2.h sent to gcc-patches. It is also friendly to also submit a proposal to DWARF itself. The DWARF reader in gdb is mostly in gdb/dwarf2read.c. Your work would probably be here, but may spill over to other places, depending on exactly what support is needed to handle the various extensions. For writing test cases, there is some documentation on dejagnu on the web; and also some gdb-specific advice on the gdb wiki. Since D support is new, you would probably have to do more than is usual to get the first test case written. Tom