From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 694 invoked by alias); 6 May 2003 08:15:33 -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 687 invoked from network); 6 May 2003 08:15:32 -0000 Received: from unknown (HELO gate.algorithm.aelita.com) (212.176.18.2) by sources.redhat.com with SMTP; 6 May 2003 08:15:32 -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 ; Tue, 6 May 2003 12:13: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: Tue, 06 May 2003 08:15:00 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Message-ID: <3F6F4712B759A34ABD453A8B39C10D6260E2C0@bagman.edm.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Lev Assinovsky" To: "Jim Blandy" Cc: X-SW-Source: 2003-05/txt/msg00065.txt.bz2 Seems, you didn't read my latest post. The matter is 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? ---- Lev Assinovsky Aelita Software Corporation O&S Core Division, Programmer ICQ# 165072909 > -----Original Message----- > From: Jim Blandy [mailto:jimb@redhat.com] > Sent: Monday, May 05, 2003 9:39 PM > To: Lev Assinovsky > Cc: gdb@sources.redhat.com > Subject: Re: DWARF problem - newbie question >=20 >=20 >=20 > Okay --- so, did you compile with -g3? Does readelf -S show a > ".debug_macinfo" section? >=20 > "Lev Assinovsky" writes: >=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=20 > 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=20 > with -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=20 > want than to > > > use that flag. > > >=20 >=20