Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: Phasing out Dwarf 1?
@ 2004-05-05  5:24 Michael Elizabeth Chastain
  2004-05-05 14:31 ` Andrew Cagney
  0 siblings, 1 reply; 19+ messages in thread
From: Michael Elizabeth Chastain @ 2004-05-05  5:24 UTC (permalink / raw)
  To: cagney, mec.gnu; +Cc: ezannoni, gdb, jimb

Hi Andrew,

> I believe that you've already demonstrated that there are no dwarf-1 
> cross compilers left (they've all migrated to dwarf-2).

I'm a bit confused by the "cross compiler" part.  For gcc I looked at
the config/ bits for all the targets without regard to hosts, so I've
always been looking at both natives and crosses.  For diab and absoft I
read their online manuals and release notes.

> That just leaves us with dwarf-1 systems.  How many dwarf-1 systems does 
> GDB still support?  If we've also eliminated all our dwarf-1 systems, 
> there's little sense in retaining dwarf-1 support.

What do you mean by 'dwarf-1 system'?  If you include systems that
support both dwarf-1 and dwarf-2, even if dwarf-1 is not the default,
then up to gcc 3.3.3, that includes most ELF-based systems.  But all
those users have upgrade paths to dwarf-2.

If you mean, 'systems where prefer dwarf-1 is the preferred debugging
format', here's a table.

  gcc 3.4.0
    none

  gcc 3.3.2
    i[34567]86-sequent-ptx4*	no longer supported by gdb
    i[34567]86-sequent-sysv4*	no longer supported by gdb
    mips-sni-sysv4		no longer supported by gdb
    sparc-hal-solaris2*		still supported by gdb (i think)

  gcc 3.2.2
    all targets from gcc 3.3.3, plus
     i[34567]86-dg-dgux*	still supported by gdb
     m88k-dg-dgux*		no longer supported by gdb

  gcc 2.95.3
    all targets from gcc 3.2.2, plus
     i[34567]86-ncr-sysv4*	still supported by gdb
     i[34567]86-*-osf1*		no longer supported by gdb
     i[34567]86-*-sco3.2v5*	still supported by gdb
     i[34567]86-*-sysv4*	still supported by gdb
     i860-alliant-*		no longer supported by gdb
     i860-*-sysv4*		no longer supported by gdb
     m68k-atari-sysv4*		no longer supported by gdb
     m68k-cbm-sysv4*		no longer supported by gdb
     m68k-*-sysv4*		no longer supported by gdb
     m88k-*-sysv4*		no longer supported by gdb
     mips-*-gnu*		no longer supported by gdb
     sh-*-elf*			still supported by gdb
     sh-*-rtemself*		still supported by gdb
     sparc-*-sysv4*		still supported by gdb

That's just gcc.  It doesn't include systems with non-gcc compilers
that still emit dwarf-1.  I don't know if any such systems exist.

So if somebody has an i386-dg-dgux system, they could still be
using gcc 3.2.2 and dwarf-1.  Or i686-unknown-sco3.2v5 and
gcc 2.95.3.  Or sparc-*-sysv4* and gcc 2.95.3.

I'm not sure what the thrust of your question is so I don't know
if this is the info that you're looking for.

Michael C


^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Phasing out Dwarf 1?
@ 2004-05-06 15:00 Michael Elizabeth Chastain
  2004-05-07  1:19 ` Andrew Cagney
  0 siblings, 1 reply; 19+ messages in thread
From: Michael Elizabeth Chastain @ 2004-05-06 15:00 UTC (permalink / raw)
  To: cagney, jkj, mec.gnu; +Cc: ezannoni, gdb, jimb

For gdb 6.1, I get some noise, but the backtrace looks okay:

  (top-gdb) backtrace
  #0  captured_main (data=0xbffff690) at /tmp/chastain/d1/gdb-6.1/gdb/main.c:117
  During symbol reading, DIE @ 0x1df "interpreter_p", type modifier 'const' ignored.
  During symbol reading, DIE @ 0x1d25 "", array subscript format 0x1 not handled yet.
  During symbol reading, DIE @ 0x14d7d "pthread_spinlock_t", type modifier 'volatile' ignored.
  #1  0x08080321 in do_catch_errors (uiout=0x82b72a0, data=0xbffff648)
      at /tmp/chastain/d1/gdb-6.1/gdb/top.c:523
  #2  0x08080124 in catcher (func=0x8080305 <do_catch_errors>,
      func_uiout=0x82b72a0, func_args=0xbffff648, func_val=0xbffff654,
      func_caught=0xbffff650, errstring=0x822a7c8 "", gdberrmsg=0x0, mask=6)
      at /tmp/chastain/d1/gdb-6.1/gdb/top.c:430
  #3  0x0808035c in catch_errors (func=0x807aa66 <captured_main>,
      func_args=0xbffff690, errstring=0x822a7c8 "", mask=6)
      at /tmp/chastain/d1/gdb-6.1/gdb/top.c:535
  #4  0x0807b87a in gdb_main (args=0xbffff690)
      at /tmp/chastain/d1/gdb-6.1/gdb/main.c:814
  #5  0x0807aa21 in main (argc=1, argv=0xbffff734)
      at /tmp/chastain/d1/gdb-6.1/gdb/gdb.c:35

This is on a native i686-pc-linux-gnu, red hat enterprise linux 3,
gdb compiled with gcc 3.2.3-24-rh.  "make CFLAGS=-gdwarf"

I get similar three messages "During symbol reading ..." with gdb 6.0
operating on gdb 6.0, and also gdb 5.3 operating on gdb 5.3.

> What are the results if the testsuite is run?

I already posted this link from February 2003:

  http://sources.redhat.com/ml/gdb-patches/2003-02/msg00293.html

I will do it again with gdb 6.1 but it will take some time.

> Or to look at it another way, when was the last time (other than SCO's 
> 5.1) that anyone saw a working dwarf-1 GDB?

It looks like gdb is working, with some glitches, and the test suite
has been busted for a while.

Michael C


^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Phasing out Dwarf 1?
@ 2004-05-05 22:01 Michael Elizabeth Chastain
  2004-05-06 14:02 ` Andrew Cagney
  2004-05-06 20:11 ` Mark Kettenis
  0 siblings, 2 replies; 19+ messages in thread
From: Michael Elizabeth Chastain @ 2004-05-05 22:01 UTC (permalink / raw)
  To: cagney, jkj; +Cc: ezannoni, gdb, jimb, mec.gnu

Kean Johnston writes:
> At least 3 I know of: SCO, UnixWare ans Solaris x86. DG-UX may as well,
> but I cant swear to its native debugging format.

OpenServer and UnixWare:
  AFAIK, it's still FSF's policy to support SCO's platforms.  I disagree
  with this policy but if dwarf-1 is needed for OpenServer and UnixWare
  then gdb has to keep supporting dwarf-1.

Solaris X86:
  Mark, can you say anything about this?  What debug format does "cc -g"
  produce on a solaris x86 machine?

DG-UX:
  I looked into this in February 2003.  Takis Psarogiannakopoulus
  developed a native toolchain for this platform based on dwarf-2.
  Takis said that his port is based on dwarf-2.  More importantly,
  Takis said that the FSF version of gdb has *never* worked on dg-ux
  (his emphasis) and might as well just be removed.

    http://sources.redhat.com/ml/gdb/2003-02/msg00074.html

  The FSF sent Takis a copyright assignment.  I don't know if he
  executed it or not, but he balked at getting a disclaimer from
  his employer.  And nobody has done any work to merge Takis's
  work back into FSF gdb.

  Since last year, EMC (the owner of Data General) has put all
  their web pages for dg-ux support behind a login barrier and
  requires a support contract to read them.  So I can't say what
  has happened with dg-ux lately.  As of 2003-02, the most recent
  version of dg-ux was DG/UX 4.20MU07, released 2001-04.

Michael C


^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Phasing out Dwarf 1?
@ 2004-05-05 21:33 Michael Elizabeth Chastain
  0 siblings, 0 replies; 19+ messages in thread
From: Michael Elizabeth Chastain @ 2004-05-05 21:33 UTC (permalink / raw)
  To: cagney, mec.gnu; +Cc: ezannoni, gdb, jimb

Andrew Cagney writes:
> If you installed operating system X, including the vendor compiler, and 
> typed `cc -g ..` would the debug format be dwarf-1?
> 
> Of those, how many do we still support.

It's kinda difficult to answer any question about "for all operating
system X ...".  I don't know!

For the question "for all operating system X such that gdb HEAD has
configuration machinery", someone could in principle answer that
question by checking all the systems in configure.host.  However we
don't even check that all those systems build before releasing gdb (or,
if someone does check, nobody publishes a report on gdb@ or gdb-testers@
about it).  I don't know how many of the systems in configure.host
come with a non-gcc vendor compiler that emits dwarf-1.

For the question "for all operating system X such that someone has
mailed a test report to gdb-testers about that OS in the past N years",
I could research that.  But it would take a lot of time, and I'd rather
drop my proposal and keep dwarf-1 as-is until somebody draws up an
explicit list of supported operating systems and compilers for gdb.

Michael C


^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Phasing out Dwarf 1?
@ 2004-05-05  5:03 Michael Elizabeth Chastain
  0 siblings, 0 replies; 19+ messages in thread
From: Michael Elizabeth Chastain @ 2004-05-05  5:03 UTC (permalink / raw)
  To: jkj, shebs; +Cc: cagney, ezannoni, gdb, jimb, mec.gnu, nathanw

Stan Shebs writes:
> But how is it going to get tested? Experience shows that untested parts
> of GDB bitrot pretty quickly, and without any volunteers to let us know
> when things break and/or fix them when they do, the claim of support
> is just misleading to users.

On this subject, the last time I tried dwarf-1 with the gdb test suite,
I got 46 ERROR, 39 UNRESOLVED, and 3463 FAIL.  This was in February 2003.

  http://sources.redhat.com/ml/gdb-patches/2003-02/msg00293.html

IIRC, the test suite took about nine hours to run, compared to fifteen
minutes for dwarf-2 or stabs+.

I don't know if this is systemic failure in the test suite or
systemic failure in gdb.

Michael C


^ permalink raw reply	[flat|nested] 19+ messages in thread
* Phasing out Dwarf 1?
@ 2004-05-03 15:56 Michael Elizabeth Chastain
  2004-05-04 15:37 ` Andrew Cagney
  0 siblings, 1 reply; 19+ messages in thread
From: Michael Elizabeth Chastain @ 2004-05-03 15:56 UTC (permalink / raw)
  To: ezannoni, gdb, jimb

I would like to phase out support for the Dwarf 1 debug format.

I did some research and wrote the results as comments in dwarfread.c.
I found reports from gdb users with three different compilers mentioned:

  gcc
  diab
  absoft

All of these compilers now have released versions with dwarf-2 support.
gcc 3.4.0 has no more dwarf-1 at all.

My idea is to ask the steering committee to adopt a roadmap for
phasing out Dwarf 1 support.

What do you think?

Michael C


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

end of thread, other threads:[~2004-05-10 21:09 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-05  5:24 Phasing out Dwarf 1? Michael Elizabeth Chastain
2004-05-05 14:31 ` Andrew Cagney
2004-05-05 16:05   ` Kean Johnston
2004-05-05 18:30     ` Stan Shebs
2004-05-05 18:53       ` Kean Johnston
  -- strict thread matches above, loose matches on Subject: below --
2004-05-06 15:00 Michael Elizabeth Chastain
2004-05-07  1:19 ` Andrew Cagney
2004-05-05 22:01 Michael Elizabeth Chastain
2004-05-06 14:02 ` Andrew Cagney
2004-05-06 20:11 ` Mark Kettenis
2004-05-05 21:33 Michael Elizabeth Chastain
2004-05-05  5:03 Michael Elizabeth Chastain
2004-05-03 15:56 Michael Elizabeth Chastain
2004-05-04 15:37 ` Andrew Cagney
2004-05-04 17:09   ` Nathan J. Williams
2004-05-04 17:19     ` Kean Johnston
2004-05-05  0:28       ` Stan Shebs
2004-05-05  5:57       ` Jim Blandy
2004-05-10 21:09     ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox