* stabs or ecoff for Linux/mips
@ 2001-06-07 16:31 H . J . Lu
2001-06-07 16:56 ` Daniel Berlin
2001-06-07 18:41 ` Stan Shebs
0 siblings, 2 replies; 10+ messages in thread
From: H . J . Lu @ 2001-06-07 16:31 UTC (permalink / raw)
To: GDB, binutils, linux-mips
What is the better debug format for Linux/mips in the terms of gdb
and binutils, stabs or ecoff? I know the future is dwarf2. But I need
something stable now. Since Linux/x86 uses stabs, I lean toward to
stabs. Any comments?
H.J.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: stabs or ecoff for Linux/mips
2001-06-07 16:31 stabs or ecoff for Linux/mips H . J . Lu
@ 2001-06-07 16:56 ` Daniel Berlin
2001-06-07 16:56 ` Daniel Berlin
2001-06-07 18:41 ` Stan Shebs
1 sibling, 1 reply; 10+ messages in thread
From: Daniel Berlin @ 2001-06-07 16:56 UTC (permalink / raw)
To: H . J . Lu; +Cc: GDB, binutils, linux-mips
STABS definitely.
On Thu, 7 Jun 2001, H . J . Lu wrote:
> What is the better debug format for Linux/mips in the terms of gdb
> and binutils, stabs or ecoff? I know the future is dwarf2. But I need
> something stable now. Since Linux/x86 uses stabs, I lean toward to
> stabs. Any comments?
>
>
> H.J.
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: stabs or ecoff for Linux/mips
2001-06-07 16:56 ` Daniel Berlin
@ 2001-06-07 16:56 ` Daniel Berlin
0 siblings, 0 replies; 10+ messages in thread
From: Daniel Berlin @ 2001-06-07 16:56 UTC (permalink / raw)
To: H . J . Lu; +Cc: GDB, binutils, linux-mips
STABS definitely.
On Thu, 7 Jun 2001, H . J . Lu wrote:
> What is the better debug format for Linux/mips in the terms of gdb
> and binutils, stabs or ecoff? I know the future is dwarf2. But I need
> something stable now. Since Linux/x86 uses stabs, I lean toward to
> stabs. Any comments?
>
>
> H.J.
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: stabs or ecoff for Linux/mips
2001-06-07 16:31 stabs or ecoff for Linux/mips H . J . Lu
2001-06-07 16:56 ` Daniel Berlin
@ 2001-06-07 18:41 ` Stan Shebs
2001-06-07 19:05 ` Daniel Berlin
1 sibling, 1 reply; 10+ messages in thread
From: Stan Shebs @ 2001-06-07 18:41 UTC (permalink / raw)
To: H . J . Lu; +Cc: GDB, binutils, linux-mips
"H . J . Lu" wrote:
>
> What is the better debug format for Linux/mips in the terms of gdb
> and binutils, stabs or ecoff? I know the future is dwarf2. But I need
> something stable now. Since Linux/x86 uses stabs, I lean toward to
> stabs. Any comments?
Go with stabs and ELF. Neither ecoff's base file format nor the debug
info were particularly well-documented (I remember some of the bits in
GNU being figured out by reverse engineering!), perpetuating it will
just make your life more difficult in the long run. It will also be
easier to move to dwarf2 when the opportunity arises.
Stan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: stabs or ecoff for Linux/mips
2001-06-07 18:41 ` Stan Shebs
@ 2001-06-07 19:05 ` Daniel Berlin
2001-06-07 19:24 ` H . J . Lu
0 siblings, 1 reply; 10+ messages in thread
From: Daniel Berlin @ 2001-06-07 19:05 UTC (permalink / raw)
To: Stan Shebs; +Cc: H . J . Lu, GDB, binutils, linux-mips
Stan Shebs <shebs@apple.com> writes:
> "H . J . Lu" wrote:
>>
>> What is the better debug format for Linux/mips in the terms of gdb
>> and binutils, stabs or ecoff? I know the future is dwarf2. But I need
>> something stable now. Since Linux/x86 uses stabs, I lean toward to
>> stabs. Any comments?
>
> Go with stabs and ELF. Neither ecoff's base file format nor the debug
> info were particularly well-documented (I remember some of the bits in
> GNU being figured out by reverse engineering!), perpetuating it will
> just make your life more difficult in the long run. It will also be
> easier to move to dwarf2 when the opportunity arises.
mdebugread is also an evil piece of code.
It duplicates almost all of buildsym. I've had to perform *major*
surgery (and am still not done yet) to do the block hash table thing.
>
> Stan
--
"I looked out my apartment window, and I saw a bird wearing
sneakers and a button saying, "I ain't flying no where." I
said, "What's your problem buddy?" He said, "I'm sick of this
stuff -- winter here, summer there, winter here, summer there.
I don't know who thought this stuff up, but it certainly wasn't
a bird." I said, "Well, I was just making breakfast, come on
in. Want some eggs? Sorry."
"-Steven Wright
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: stabs or ecoff for Linux/mips
2001-06-07 19:05 ` Daniel Berlin
@ 2001-06-07 19:24 ` H . J . Lu
0 siblings, 0 replies; 10+ messages in thread
From: H . J . Lu @ 2001-06-07 19:24 UTC (permalink / raw)
To: Daniel Berlin; +Cc: Stan Shebs, GDB, binutils, linux-mips
On Thu, Jun 07, 2001 at 03:05:14PM -0400, Daniel Berlin wrote:
> Stan Shebs <shebs@apple.com> writes:
>
> > "H . J . Lu" wrote:
> >>
> >> What is the better debug format for Linux/mips in the terms of gdb
> >> and binutils, stabs or ecoff? I know the future is dwarf2. But I need
> >> something stable now. Since Linux/x86 uses stabs, I lean toward to
> >> stabs. Any comments?
> >
> > Go with stabs and ELF. Neither ecoff's base file format nor the debug
> > info were particularly well-documented (I remember some of the bits in
> > GNU being figured out by reverse engineering!), perpetuating it will
> > just make your life more difficult in the long run. It will also be
> > easier to move to dwarf2 when the opportunity arises.
>
> mdebugread is also an evil piece of code.
That matches my own experiences. In case you haven't noticed, I
have checked in patches to switch Linux/mips to stabs in ELF :-).
H.J.
^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <20010607093332.C13198@lucon.org>]
* Re: stabs or ecoff for Linux/mips
@ 2001-06-11 18:24 Bob Zulawnik
0 siblings, 0 replies; 10+ messages in thread
From: Bob Zulawnik @ 2001-06-11 18:24 UTC (permalink / raw)
To: hjl; +Cc: gdb, binutils, linux-mips
"H . J . Lu" wrote:
> That matches my own experiences. In case you haven't noticed, I
> have checked in patches to switch Linux/mips to stabs in ELF :-).
For what it's worth : stabs format cannot express certain types
of debug info that mdebug (used in ecoff) can. An example of
that is so-called PDRs (Procedure Description Records) - they
describe frame size, register masks etc.). Thus, in order to
obtain information about a function (e.g. when setting a
breakpoint at the entrance to a function), gdb has to resort to
heuristics and read the function prolog, trying to figure out
what registers are saved where, when is the frame setup complete
etc. There are assumptions made in that gdb code (e.g.
mips32_heuristic_proc_desc() and mips16_heuristic_proc_desc())
that have to match exactly what the compiler has done (as in
"the occurrence of instruction 'x' signifies this"). Thus,
using the stabs opens the debugger to potential misinterpretations
of the code generated by the compiler (e.g. when a new type
of frame is introduced, or maybe with some weird optimization).
I understand that there are other arguments for using stabs and
that dwarf2 is the long-term goal, this is just an FYI.
Bob Zulawnik
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2001-06-11 18:25 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-07 16:31 stabs or ecoff for Linux/mips H . J . Lu
2001-06-07 16:56 ` Daniel Berlin
2001-06-07 16:56 ` Daniel Berlin
2001-06-07 18:41 ` Stan Shebs
2001-06-07 19:05 ` Daniel Berlin
2001-06-07 19:24 ` H . J . Lu
[not found] <20010607093332.C13198@lucon.org>
[not found] ` <3B1FC23D.3020900@cygnus.com>
2001-06-07 18:13 ` H . J . Lu
2001-06-07 18:20 ` Ian Lance Taylor
2001-06-07 18:27 ` Andrew Cagney
-- strict thread matches above, loose matches on Subject: below --
2001-06-11 18:24 Bob Zulawnik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox