From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18365 invoked by alias); 5 May 2003 09:57:22 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18356 invoked from network); 5 May 2003 09:57:21 -0000 Received: from unknown (HELO gate.algorithm.aelita.com) (212.176.18.2) by sources.redhat.com with SMTP; 5 May 2003 09:57:21 -0000 Received: from bagman.edm.com ([10.0.0.4]) by gate.algorithm.aelita.com (Post.Office MTA v3.5.3 release 223 ID# 0-12345L500S10000V35) with ESMTP id com for ; Mon, 5 May 2003 13:51:19 +0400 content-class: urn:content-classes:message Subject: RE: DWARF problem - newbie question MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable Date: Mon, 05 May 2003 09:57:00 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Message-ID: <3F6F4712B759A34ABD453A8B39C10D6260E145@bagman.edm.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Lev Assinovsky" To: "Lev Assinovsky" , "Jim Blandy" Cc: X-SW-Source: 2003-05/txt/msg00048.txt.bz2 Sorry, I made a mistake compiling task. It was -g -g3 -gdwarf-2. With -g3 -gdwarf-2=20 "info macro M" works. What else can I have with dwarf-2. Can I step in macro and see it's content on the screen? Thanks,=20 ---- Lev Assinovsky Aelita Software Corporation O&S Core Division, Programmer ICQ# 165072909 > -----Original Message----- > From: Lev Assinovsky=20 > Sent: Friday, May 02, 2003 2:10 PM > To: Jim Blandy > Cc: gdb@sources.redhat.com > Subject: RE: DWARF problem - newbie question >=20 >=20 > Nop, I do see .debug_info but don't see .stab > gdb command "info macro M" > still complains. > My platform is Solaris 8 Intel. >=20 > Thanks, > ---- > Lev Assinovsky > Aelita Software Corporation > O&S Core Division, Programmer > ICQ# 165072909 >=20 >=20 > > -----Original Message----- > > From: Jim Blandy [mailto:jimb@redhat.com] > > Sent: Friday, May 02, 2003 3:30 AM > > To: Lev Assinovsky > > Cc: gdb@sources.redhat.com > > Subject: Re: DWARF problem - newbie question > >=20 > >=20 > >=20 > > "Lev Assinovsky" writes: > >=20 > > > Hi! > > > I use gcc 3.2 and gdb+dejagnu-20030228. > > > Compile my code with -ggdb option which promises=20 > > > the most expressive extra debug info. > > > But when in gdb I request "" > > > I get: > > > GDB has no preprocessor macro information for that code, though > > > I do have macro M defined in my source. > > >=20 > > > What am I doing wrong? > >=20 > > At the moment, to get macro information, you need to: > > - use the Dwarf 2 debugging format, and > > - pass GCC the -g3 flag, to ask it to include macro information. > >=20 > > You don't say which platform you're using. On=20 > i686-pc-linux-gnu, GCC > > 3.2 defaults to using Dwarf 2. You can check for sure by running > > 'readelf -S foo.o' on one of your .o files, compiled with plain -g: > > - If it has a section named '.debug_info', then that's Dwarf 2. > > - If it has a section named '.stab', then that's STABS. > >=20 > > If Dwarf 2 isn't the default, then you can request it with=20 > -gdwarf-2. > > So altogether, you'd need to say '-gdwarf-2 -g3'. > >=20 > > I don't really know how -ggdb decides which format is 'the most > > expressive'. I think it's better to spell out what you want than to > > use that flag. > >=20 >=20