From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5065 invoked by alias); 17 Mar 2002 17:07:24 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4947 invoked from network); 17 Mar 2002 17:07:22 -0000 Received: from unknown (HELO dberlin.org) (64.246.6.106) by sources.redhat.com with SMTP; 17 Mar 2002 17:07:22 -0000 Received: from localhost (pool-151-204-232-2.bos.east.verizon.net [151.204.232.2]) (authenticated (0 bits)) by dberlin.org (8.11.6/8.11.6) with ESMTP id g2HH7Lm18895; Sun, 17 Mar 2002 12:07:21 -0500 Date: Sun, 17 Mar 2002 09:07:00 -0000 Subject: Re: RFC: C/C++ preprocessor macro support for GDB Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v481) Cc: gdb-patches@sources.redhat.com, gcc@gcc.gnu.org To: Jim Blandy From: Daniel Berlin In-Reply-To: <20020317062306.CC96D5E9DE@zwingli.cygnus.com> Message-Id: <6FD71526-39C9-11D6-A7C8-000393575BCC@dberlin.org> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.481) X-SW-Source: 2002-03/txt/msg00281.txt.bz2 On Sunday, March 17, 2002, at 01:23 AM, Jim Blandy wrote: > > The following patch adds support for C/C++ preprocessor macros to GDB. > It's tentative: > > - There are no ChangeLog entries. > - It's not broken up into relatively independent changes. > - There's no documentation. > - There are no tests. > - There are some unimplemented features. > > I'll put it in proper form and re-post it soon, but I'm putting it out > now in hopes that folks will try it out and send me bug reports and > suggestions. > > The patch reads Dwarf 2 macro information, which GCC doesn't currently > generate. (In fact, I don't know if any compiler generates it at the > moment.) Umm, Actually, we've been generating it for quite a while. Try -gdwarf-2 -g3. I can't remember when exactly I added it, but it was certainly a while ago. > So the debugger side of pre-processor macro support is pretty much > done. I hope someone in GCC-land gets the itch and adds the > compiler-side support needed. > Beat you to it by a long time. I had it done before I had started rewriting the dwarf2 reader (so if you look at the earliest patch I had submitted to gdb, and subtract a few months, you'll get when it was added to gcc).