public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* ./configure --with-dwarf3
@ 2016-08-04 18:49 Basin Ilya
  2016-08-22 12:54 ` Basin Ilya
  0 siblings, 1 reply; 2+ messages in thread
From: Basin Ilya @ 2016-08-04 18:49 UTC (permalink / raw)
  To: gcc-help

Hi.

I recently built `Fedora-14` gcc SRPM on `RHEL-6.8` to have
`AddressSanitizer`. Everything works except that old gdb there doesn't
show me local variables and source listing. This can be fixed by
compiling my programs with -gdwarf-3.

Is it possible to make DWARF version 3 default, like it was in gcc 4x? I
saw the configure option '--with-dwarf2', but no equivalent '--with-dwarf3'.

Do I need version 3 at all or is version 2 also good?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ./configure --with-dwarf3
  2016-08-04 18:49 ./configure --with-dwarf3 Basin Ilya
@ 2016-08-22 12:54 ` Basin Ilya
  0 siblings, 0 replies; 2+ messages in thread
From: Basin Ilya @ 2016-08-22 12:54 UTC (permalink / raw)
  To: gcc-help

Will it be enough to change "Init(4)" to "Init(3)" in gcc/common.opt in
block:

    gdwarf-
    Common Joined UInteger Var(dwarf_version) Init(4) Negative(gstabs)
    Generate debug information in DWARF v2 (or later) format.

?

On 04.08.2016 21:49, Basin Ilya wrote:
> Hi.
> 
> I recently built `Fedora-14` gcc SRPM on `RHEL-6.8` to have
> `AddressSanitizer`. Everything works except that old gdb there doesn't
> show me local variables and source listing. This can be fixed by
> compiling my programs with -gdwarf-3.
> 
> Is it possible to make DWARF version 3 default, like it was in gcc 4x? I
> saw the configure option '--with-dwarf2', but no equivalent '--with-dwarf3'.
> 
> Do I need version 3 at all or is version 2 also good?
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-22 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-04 18:49 ./configure --with-dwarf3 Basin Ilya
2016-08-22 12:54 ` Basin Ilya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).