public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* proposed symbol format deprecations
@ 2012-12-13 16:04 Tom Tromey
  2012-12-14  8:37 ` Tristan Gingold
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2012-12-13 16:04 UTC (permalink / raw)
  To: GDB Development

I've been working on some changes that touch most of the symbol readers,
and I notice that a couple of them are barely active -- somread.c and
mdebugread.c.

somread.c is used to read the HP-UX SOM format:

    http://en.wikipedia.org/wiki/System_Object_Model_%28file_format%29

It is only used on 32-bit PA-RISC systems.  somread.c can't even be
built on other machines as it requires the HP-UX <syms.h>.


mdebugread.c is used to read the ECOFF format:

    http://en.wikipedia.org/wiki/ECOFF

It is most recently used, I think, by Tru64.


I would like to propose deprecating both of these readers.

I think somread.c hasn't been actively developed in some time.  32-bit
PA-RISC machines seem hard to come by nowadays.

mdebugread.c also seems unused.  I recently discovered that it doesn't
use buildsym to make blocks, so with the "global_block" changes it will
probably cause gdb crashes if it is actually used.  (It also leaks all
the blocks it creates ... quite bad.)


Specifically I propose that we announce the deprecations in NEWS and
remove the files from the build (but leave them in the source tree) for
gdb 7.6.  Then, after 7.6 is out, we remove the files from trunk.

If someone steps forward to maintain the code, we can easily resurrect
it.

Tom

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

* Re: proposed symbol format deprecations
  2012-12-13 16:04 proposed symbol format deprecations Tom Tromey
@ 2012-12-14  8:37 ` Tristan Gingold
  2012-12-14 15:56   ` Tom Tromey
  2012-12-14 18:07   ` Tom Tromey
  0 siblings, 2 replies; 4+ messages in thread
From: Tristan Gingold @ 2012-12-14  8:37 UTC (permalink / raw)
  To: Tom Tromey; +Cc: GDB Development


On Dec 13, 2012, at 5:00 PM, Tom Tromey wrote:

> I've been working on some changes that touch most of the symbol readers,
> and I notice that a couple of them are barely active -- somread.c and
> mdebugread.c.
> 
> somread.c is used to read the HP-UX SOM format:
> 
>    http://en.wikipedia.org/wiki/System_Object_Model_%28file_format%29
> 
> It is only used on 32-bit PA-RISC systems.  somread.c can't even be
> built on other machines as it requires the HP-UX <syms.h>.

[ bfd for HP/PA is able to be cross-built ]

> 
> 
> mdebugread.c is used to read the ECOFF format:
> 
>    http://en.wikipedia.org/wiki/ECOFF
> 
> It is most recently used, I think, by Tru64.
> 
> 
> I would like to propose deprecating both of these readers.

You should talk with the HP/PA GCC maintainer, as AFAIK only gdb is able to
debug gcc-generated binaries.

Tru64 is already deprecated in gcc.

Tristan.

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

* Re: proposed symbol format deprecations
  2012-12-14  8:37 ` Tristan Gingold
@ 2012-12-14 15:56   ` Tom Tromey
  2012-12-14 18:07   ` Tom Tromey
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Tromey @ 2012-12-14 15:56 UTC (permalink / raw)
  To: Tristan Gingold; +Cc: GDB Development, John David Anglin

CCing John.

John, the context here is this:

Tom> I've been working on some changes that touch most of the symbol readers,
Tom> and I notice that a couple of them are barely active -- somread.c and
Tom> mdebugread.c.
Tom> 
Tom> somread.c is used to read the HP-UX SOM format:
Tom> 
Tom> http://en.wikipedia.org/wiki/System_Object_Model_%28file_format%29
Tom> 
Tom> It is only used on 32-bit PA-RISC systems.  somread.c can't even be
Tom> built on other machines as it requires the HP-UX <syms.h>.

Tristan> You should talk with the HP/PA GCC maintainer, as AFAIK only
Tristan> gdb is able to debug gcc-generated binaries.

John, is 32-bit HP/PA using SOM objects a live target?

Tom

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

* Re: proposed symbol format deprecations
  2012-12-14  8:37 ` Tristan Gingold
  2012-12-14 15:56   ` Tom Tromey
@ 2012-12-14 18:07   ` Tom Tromey
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Tromey @ 2012-12-14 18:07 UTC (permalink / raw)
  To: Tristan Gingold; +Cc: GDB Development

Tristan> [ bfd for HP/PA is able to be cross-built ]

Thanks for the hint.

Tristan> You should talk with the HP/PA GCC maintainer, as AFAIK only
Tristan> gdb is able to debug gcc-generated binaries.

He replied off-list to say that this is what he uses for all his GCC
hacking.

He's going to test some patches for me.
I have a patch to make it possible to build somread.c anywhere the BFD
target is enabled, so that's a start.

So, consider this one dropped from the deprecation list.
I'd still like to deprecate mdebugread.c though.

Tom

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

end of thread, other threads:[~2012-12-14 18:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-13 16:04 proposed symbol format deprecations Tom Tromey
2012-12-14  8:37 ` Tristan Gingold
2012-12-14 15:56   ` Tom Tromey
2012-12-14 18:07   ` Tom Tromey

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).