public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/31210] New: [gdb, symtab] Deprecate stabs
@ 2024-01-04 12:27 vries at gcc dot gnu.org
  2024-01-04 12:34 ` [Bug symtab/31210] " vries at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2024-01-04 12:27 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31210

            Bug ID: 31210
           Summary: [gdb, symtab] Deprecate stabs
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

It has been discussed here and there that stabs support could be deprecated, so
I thought it would be good to have a PR to document and track why this is or
isn't a good idea.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug symtab/31210] [gdb, symtab] Deprecate stabs
  2024-01-04 12:27 [Bug symtab/31210] New: [gdb, symtab] Deprecate stabs vries at gcc dot gnu.org
@ 2024-01-04 12:34 ` vries at gcc dot gnu.org
  2024-01-05 10:23 ` ssbssa at sourceware dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2024-01-04 12:34 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31210

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
FWIW, one related idea I had: if there was a tool to translate stabs to dwarf,
either external or in the form of a library, then there would be no need for
gdb, or indeed any other tool supporting dwarf to continue supporting stabs
natively.  

My guess is that such a tool could be feasible given that dwarf is generally
considered the more expressive format.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug symtab/31210] [gdb, symtab] Deprecate stabs
  2024-01-04 12:27 [Bug symtab/31210] New: [gdb, symtab] Deprecate stabs vries at gcc dot gnu.org
  2024-01-04 12:34 ` [Bug symtab/31210] " vries at gcc dot gnu.org
@ 2024-01-05 10:23 ` ssbssa at sourceware dot org
  2024-01-08 12:08 ` vries at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ssbssa at sourceware dot org @ 2024-01-05 10:23 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31210

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug symtab/31210] [gdb, symtab] Deprecate stabs
  2024-01-04 12:27 [Bug symtab/31210] New: [gdb, symtab] Deprecate stabs vries at gcc dot gnu.org
  2024-01-04 12:34 ` [Bug symtab/31210] " vries at gcc dot gnu.org
  2024-01-05 10:23 ` ssbssa at sourceware dot org
@ 2024-01-08 12:08 ` vries at gcc dot gnu.org
  2024-01-08 23:22 ` tromey at sourceware dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2024-01-08 12:08 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31210

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
See for instance: https://sourceware.org/bugzilla/show_bug.cgi?id=23220#c6

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug symtab/31210] [gdb, symtab] Deprecate stabs
  2024-01-04 12:27 [Bug symtab/31210] New: [gdb, symtab] Deprecate stabs vries at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2024-01-08 12:08 ` vries at gcc dot gnu.org
@ 2024-01-08 23:22 ` tromey at sourceware dot org
  2024-01-09 10:17 ` vries at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2024-01-08 23:22 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31210

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug symtab/31210] [gdb, symtab] Deprecate stabs
  2024-01-04 12:27 [Bug symtab/31210] New: [gdb, symtab] Deprecate stabs vries at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2024-01-08 23:22 ` tromey at sourceware dot org
@ 2024-01-09 10:17 ` vries at gcc dot gnu.org
  2024-01-10 18:22 ` tromey at sourceware dot org
  2024-01-10 18:23 ` tromey at sourceware dot org
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2024-01-09 10:17 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31210

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
GCC 12 deprecated stabs generation, GCC 13 removed it:
- https://gcc.gnu.org/gcc-12/changes.html
- https://gcc.gnu.org/gcc-13/changes.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug symtab/31210] [gdb, symtab] Deprecate stabs
  2024-01-04 12:27 [Bug symtab/31210] New: [gdb, symtab] Deprecate stabs vries at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2024-01-09 10:17 ` vries at gcc dot gnu.org
@ 2024-01-10 18:22 ` tromey at sourceware dot org
  2024-01-10 18:23 ` tromey at sourceware dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2024-01-10 18:22 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31210

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
See this thread though:

https://inbox.sourceware.org/gdb-patches/20230119174156.654402-1-tom@tromey.com/

At least Eli was opposed IIRC.

I found out today that with GCC 12 I can't even run
gdb tests with stabs:

murgatroyd. runtest --target_board=stabs gdb.base/whatis-ptype-typedefs.exp
[...]
gdb compile failed, gcc: warning: switch '-gstabs+' is no longer supported
gdb compile failed, g++: warning: switch '-gstabs+' is no longer supported

                === gdb Summary ===

# of untested testcases         2


We'd need some kind of gcc wrapper.
And in the future we will have to build an old compiler or
something to test.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug symtab/31210] [gdb, symtab] Deprecate stabs
  2024-01-04 12:27 [Bug symtab/31210] New: [gdb, symtab] Deprecate stabs vries at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2024-01-10 18:22 ` tromey at sourceware dot org
@ 2024-01-10 18:23 ` tromey at sourceware dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2024-01-10 18:23 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31210

--- Comment #5 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Tom de Vries from comment #1)
> FWIW, one related idea I had: if there was a tool to translate stabs to
> dwarf, either external or in the form of a library, then there would be no
> need for gdb, or indeed any other tool supporting dwarf to continue
> supporting stabs natively.  
> 
> My guess is that such a tool could be feasible given that dwarf is generally
> considered the more expressive format.

Definitely feasible.  I think the main problem is that probably no-one
knows or cares enough to write it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2024-01-10 18:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-04 12:27 [Bug symtab/31210] New: [gdb, symtab] Deprecate stabs vries at gcc dot gnu.org
2024-01-04 12:34 ` [Bug symtab/31210] " vries at gcc dot gnu.org
2024-01-05 10:23 ` ssbssa at sourceware dot org
2024-01-08 12:08 ` vries at gcc dot gnu.org
2024-01-08 23:22 ` tromey at sourceware dot org
2024-01-09 10:17 ` vries at gcc dot gnu.org
2024-01-10 18:22 ` tromey at sourceware dot org
2024-01-10 18:23 ` tromey at sourceware dot org

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