From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id tu0QGbtDr2jgog0AWB0awg (envelope-from ) for ; Wed, 27 Aug 2025 13:43:23 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=nGznPPx7; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 4E5AF1E04C; Wed, 27 Aug 2025 13:43:23 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 800DD1E023 for ; Wed, 27 Aug 2025 13:43:22 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0D4883839E08 for ; Wed, 27 Aug 2025 17:43:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D4883839E08 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1756316602; bh=k4L1AB0FEyqaeQezVipF2q2lbMgOrBFyTt8yL4hBB5k=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=nGznPPx7a6LQEjpwnjlzsrvtl0Ngta67XPKQL7SkKFMH/mU/ghpiFOPC9BmEApFlM YxdLyJCZGZZ//imRWQJ/TCnczx2dSP/BQLb7s0d+Jfhp0xn41WvwhT5i/7cx3Dkw7l CBF9/dwpI3GSO3quDLNBDBTL3eYDshKVcelr/jCk= Received: from mta-102a.earthlink-vadesecure.net (mta-102a.earthlink-vadesecure.net [51.81.61.66]) by sourceware.org (Postfix) with ESMTPS id D488D38515C0 for ; Wed, 27 Aug 2025 17:42:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D488D38515C0 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D488D38515C0 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1756316536; cv=none; b=H0fShGeG/jxvmASWnsJJ52WkUC0tvYW2OSsVZ5VN/fLIfm3XR+Uz34RzQqdIFM/Xmkp+2Jggl2oiFw3dCZoKNYc+5/gFvFDeg6TSLxqD8Go83q9oxsQHPnRGQAv61kGkkEOHEkJlmVyEh1GA8F/kB/GcUHbNS50/i4nBxtgWI7s= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1756316536; c=relaxed/simple; bh=ajmRbsZ/JF1+ItTHr8O7NU6yf1uNIwAxwZIFP21lloQ=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=wAcD9EM7QWhIY2VVdnMGWjDWcsfZ3zrBkOEjxW8o8OL9rP4YPT75aQjM6uBKi9en06uXutWgfX58CLr9OXW1H0QCGH7QWByAcaeAcjqM2TNLG7n2s37DwfJMFtEPdNqT7Tqn9TlyYa7lbDchkw+DYXnPb+W5wV0OH3eEui493Zc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D488D38515C0 Received: from [192.168.0.4] ([172.221.42.149]) by vsel1nmtao02p.internal.vadesecure.com with ngmta id 427f963e-185fb0955b63f8d7; Wed, 27 Aug 2025 17:42:15 +0000 Message-ID: Date: Wed, 27 Aug 2025 10:42:15 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: COBOL support in GDB To: gdb@sourceware.org References: <055c01dc1230$fe0c2050$fa2460f0$@symas.com> Content-Language: en-US In-Reply-To: <055c01dc1230$fe0c2050$fa2460f0$@symas.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: Norton (VPS 250827-4, 8/27/2025), Outbound message X-Antivirus-Status: Clean X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Thomas Dineen via Gdb Reply-To: Thomas Dineen Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" COBOL you must be kidding! On 8/20/2025 5:17 PM, Robert Dubner wrote: > My name is Bob Dubner. I live in upstate New York, in the United States. > I work for the Symas Corporation, which has an interest in COBOL-based > systems. For the last several years I have been working along with my > colleagues Marty Herman and Jim Lowden to develop a COBOL front end for > the GCC compiler collection. > > > > That front end, with much gratefully received assistance and support from > the GCC community during the incorporation phase, was released back in > March as part of GCC-15.1. > > > > So, with GCC now able to compile COBOL, a natural next step is the > capability of debugging COBOL code. > > > > About three years ago, we forked binutils-gdb on > https://gitlab.cobolworx.com/COBOLworx/gdb-cobol. That's where I have > been developing support in GDB for the COBOL language as implemented in > GCC's COBOL front end. I regularly merge the master branch of > git://sourceware.org/git/binutils-gdb.git into our fork, most recently > today. > > > > I have the COBOL-aware debugger actually working. Somebody who can > navigate the multiple gates of > > > > 1) Access to an Ubuntu 22 or 24 system, > > 2) A willingness to download and install the leading-edge COBOL compiler > from https://gitlab.cobolworx.com/COBOLworx/gcc-cobol/-/packages, > > 3) A matching willingness to download and install the leading-edge > GDB-COBOL debugger from > https://gitlab.cobolworx.com/COBOLworx/gdb-cobol/-/packages > > 4) Actually caring enough about COBOL to go through steps 1 through 3 > > > > can then use the resulting installed gcobol compiler to compile a COBOL > program and then use gdb-cobol to debug it. My intent, so far, is that > GDB users will not be surprised by what ordinary GDB commands do when > debugging a COBOL program. > > > > I am writing here because it is my belief that we can at least start > talking about incorporating my cobol_language work into GDB. > > > > It involves eight new files in the gdb directory, all named > "cobol-". There are some changes to code elsewhere in the gdb > subdirectory. > > > > I anticipate that there will be a fair amount of polite interaction about > some of my changes that will, nonetheless, come from a place of "Why in > the name of all that is holy did you do THAT??!!" > > > > The answers to those perfectly valid questions will be rooted in two > places. > > > > First, COBOL is weird. > > > > Second, I didn't know any better. > > > > So, I need guidance on how to proceed. Perhaps I should come up with a > patch that just installs the some of the cobol-xxx files, so that my work > can be evaluated? I am sure there will be questions, and comments, and > protests that I will have to address. > > > > Or what? > > > > Thank you very much for your consideration. > > > > Bob Dubner >